View file ISP4Mobile/xrex/file.extract.php

File size: 2.35Kb
<?php
### Decoded IonCube by pimnik98 
### Декодировал Пиминов Никита 
### vk.com/piminov_remont
### Заказать декодирование: https://bymas.ru/forum/viewtopic.php?topic_id=131647

echo '<div class="head">' . "\n" . '<div class="logo"> Панель управления</div>' . "\n" . '</div><div class="menu" style="text-align:right"><img src="images/lv-server.png" alt="." />' . $server . ' | ' . "\n";
echo '<img src="images/lv-5.png" alt="." />' . htmlentities($_SESSION['username'], ENT_QUOTES, 'UTF-8') . ' | ' . "\n";
echo '<img src="images/sb-logout.gif" alt="." /><a href="?func=exit">Выйти</a>' . "\n";
echo '<hr /></div><div class="menu">' . "\n";

if (isset($_GET['plid']) && isset($_GET['elid'])) {
	$content = api_query('https://' . $server . '/manager/ispmgr?func=file.extract&elid=' . urlencode($_GET['file']) . '&plid=' . urlencode($_GET['plid'] . '/' . $_GET['elid']) . '&out=xml&authinfo=' . urlencode($_SESSION['username']) . ':' . urlencode($_SESSION['password']));
}
else if (isset($_GET['elid'])) {
	$content = api_query('https://' . $server . '/manager/ispmgr?func=file.extract&elid=' . urlencode($_GET['file']) . '&plid=' . urlencode($_GET['elid']) . '&out=xml&authinfo=' . urlencode($_SESSION['username']) . ':' . urlencode($_SESSION['password']));
}
else {
	$content = api_query('https://' . $server . '/manager/ispmgr?func=file.extract&elid=' . urlencode($_GET['file']) . '&out=xml&authinfo=' . urlencode($_SESSION['username']) . ':' . urlencode($_SESSION['password']));
}

$parse_xml = simplexml_load_string($content);

if (isset($parse_xml->ok)) {
	echo '<div style="text-align:center">' . "\n";
	echo 'Архив успешно распакован!<br />' . "\n";
	echo '<a href="?func=file';

	if (isset($_GET['elid'])) {
		echo '&amp;elid=' . urlencode($_GET['elid']);
	}

	if (isset($_GET['plid'])) {
		echo '&amp;plid=' . urlencode($_GET['plid']);
	}

	echo '">Продолжить&#187;</a>' . "\n";
	echo '</div>' . "\n";
}
else {
	echo '<div style="text-align:center">' . "\n";
	echo 'Ошибка при распаковке архива!<br />' . "\n";
	echo '<a href="?func=file&amp;elid=' . urlencode($_GET['elid']);

	if (isset($_GET['plid'])) {
		echo '&amp;plid=' . urlencode($_GET['plid']);
	}

	echo '">Продолжить&#187;</a>' . "\n";
	echo '</div>' . "\n";
}

echo '</div>';

?>