} $version = $match[1]; echo "OK (" . $version . ")\n"; xecho("Adding new version to database: "); rename($dashdpath, "/opt/dashd/0.12/dashd-" . $version); exec("/opt/dmnctl/dmnctl version /opt/dashd/0.12/dashd-" . $version . " " . $version . " 1 1", $output, $ret); var_dump($output); var_dump($ret); delTree($tdir); echo "OK\n"; xecho("Restarting testnet node: "); exec("/opt/dmnctl/dmnctl restart testnet p2pool", $output, $ret); if ($ret != 0) { echo "ERROR (return code of dmnctl restart was {$ret})\n"; var_dump($output); die2(8); } exec("/opt/dmnctl/dmnctl restart testnet masternode", $output, $ret); if ($ret != 0) { echo "ERROR (return code of dmnctl restart was {$ret})\n"; var_dump($output); die2(8); } echo "OK\n"; xecho("Saving data for next run..."); if (file_put_contents("dmnautoupdate.data.json", json_encode($headers)) === FALSE) { echo "ERROR\n"; die2(7); } echo "OK\n"; }
if ($pfDebug) { report_message("1.5 Session Issue...", "<ul><li>We have to pass data in a GET request to 15, because I can't get the session working!</li></ul>"); } } if (!isset($my)) { if (isset($_SESSION[md5('my')])) { $my = $_SESSION[md5('my')]; } } if (isJ10()) { if (!isset($_SESSION[md5('form_id')])) { report_error(18, PF_ERROR_18, PF_ERROR_18_COMMENT); return; } if (!isset($_SESSION[md5('pdfAvailable')])) { die2("Intruder Alert 19!"); } //setting $paranoid to true will enable 'messages that self-destruct' ;) $paranoid = isset($_SESSION[md5('paranoid')]); // well... sorta if (isset($_SESSION[md5('my')])) { $my = $_SESSION[md5('my')]; /* $my->gid = intval($_SESSION[md5('session_gid')]); $my->id = intval($_SESSION[md5('session_user_id')]); */ } $formId = intval($_SESSION[md5('form_id')]); //one-time pads if ($paranoid) { $_SESSION = array(); if (isset($_COOKIE[session_name()])) { setcookie(session_name(), '', time() - 4200, '/');
if (mysql_num_rows($result) != 1) { // unrecoverable error, we must giveup $reason = "Can't find domain '" . $domainName . "' (error code x)"; $res = false; } $req = mysql_fetch_array($result); $backup_patch_url = $req["backup_patch_url"]; $patch_urls = $req["patch_urls"]; $args = $patch_urls; $urls = explode(";", $args); // first display backup url echo "<version "; echo 'serverPath="' . $backup_patch_url . '"'; echo ">\n"; // then display default uris $first = 0; $last = count($urls); for (; $first != $last; $first++) { if ($urls[$first] == "") { } else { echo "\t<patchURI>{$urls[$first]}</patchURI>\n"; } } echo "</version>\n"; mysql_close($nelLink); unset($nelLink); break; default: echo "0:Unknown command"; die2(); }