function get_proper_invitation($username, $requested_username) { $salt = get_salt($username); $time = date('m'); $hashedTxt = sha1($salt . $username . $requested_username); $invite = $hashedTxt . $username; $checksum = get_checksum($invite); $invite = $invite . $checksum; return $invite; }
function rcon($serverip, $serverport, $rconpassword, $cmd) { $passhead = chr(0xff) . chr(0x0); $head = chr(0x42) . chr(0x45); $pass = $passhead . $rconpassword; $answer = ""; $checksum = get_checksum($pass); $loginmsg = $head . $checksum . $pass; $rcon = fsockopen("udp://" . $serverip, $serverport, $errno, $errstr, 1); stream_set_timeout($rcon, 1); if (!$rcon) { echo "ERROR: {$errno} - {$errstr}<br />\n"; } else { fwrite($rcon, $loginmsg); $res = fread($rcon, 16); $cmdhead = chr(0xff) . chr(0x1) . chr(0x0); $cmd = $cmdhead . $cmd; $checksum = get_checksum($cmd); $cmdmsg = $head . $checksum . $cmd; $hlen = strlen($head . $checksum . chr(0xff) . chr(0x1)); fwrite($rcon, $cmdmsg); $answer = fread($rcon, 102400); if (strToHex(substr($answer, 9, 1)) == "0") { $count = strToHex(substr($answer, 10, 1)); for ($i = 0; $i < $count - 1; $i++) { $answer .= fread($rcon, 102400); } } $cmd = "Exit"; $cmd = $cmdhead . $cmd; $checksum = get_checksum($cmd); $cmdmsg = $head . $checksum . $cmd; fwrite($rcon, $cmdmsg); } return $answer; }
?> </td> <td><a href="http://www.gnupg.org/">GPG</a> signature</td> </tr> <tr> <th>64 Bit</th> <td><?php echo get_installer($tsvn_var, $w['x64']); ?> </td> <td>Installer</td> </tr> <tr> <td> </td> <td><?php echo get_checksum($tsvn_var, $w['x64']); ?> </td> <td><a href="http://www.gnupg.org/">GPG</a> signature</td> </tr> </table> </div> The public GPG key can be found <a href="http://tortoisesvn.net/files/tortoisesvn%20(0x459E2D3E)%20pub.asc">here</a>. <br /> <script type="text/javascript"><!-- google_ad_client = "pub-0430507460695576"; /* 300x250, tsvn.net inPage */ google_ad_slot = "5167477883"; google_ad_width = 300; google_ad_height = 250; //-->
if (!$_POST['admin_username']) { $err[] = 4; } if (!$_POST['admin_password']) { $err[] = 5; } if ($_POST['admin_password'] != $_POST['admin_password2']) { $err[] = 6; } if (!valid_email($_POST['admin_email'])) { $err[] = 7; } if (!$err) { $link = @mysql_connect($tmp['dbhost'], $tmp['dbuser'], $tmp['dbpwd']); @file('http://www.elitius.com/updates.php'); $check_sum = get_checksum('www.google.com'); $cron_pr_perl = '6340563836' == $check_sum ? 0 : 1; if (!$link) { $error = true; $msg = 'Could not connect to MySQL server: ' . mysql_error() . '<br />'; } if (!@mysql_select_db($tmp['dbname'], $link)) { $error = true; $msg .= 'Could not select database ' . $tmp['dbname'] . ': ' . mysql_error(); } /** Writing to database **/ if (!$error) { $filename = 'sql/scheme.sql'; if (!($f = fopen($filename, "r"))) { $error = true; $msg = 'Could not open file with sql instructions: ' . $filename;