Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $symb = new Symb;
- echo "<meta http-equiv='Content-Type' content='text/html; charset=utf-8'><script src='http://code.jquery.com/jquery-1.11.0.min.js'></script><script src='http://code.jquery.com/jquery-migrate-1.2.1.min.js'></script>";
- $showWiki = true;
- // Symb
- class Symb {
- /* ----Config Section---- */
- /* Configurable */
- /* SQL Database */
- public $sql_user = ""; // SQL Database USER
- public $sql_pass = ""; // SQL Database PASSWORD
- public $sql_host = ""; // SQL Database HOST
- public $sql_datb = ""; // SQL Database DATABASE
- public $owner = array("213.195.209.14"); // Your IP, if have different IPs add them here
- public $owner_email = "ares75@email.cz";
- public $enableLogs = true;
- public $enableGlobalBan = true;
- public $enableAccounts = true;
- public $debugLog = array();
- public $version = "2.0"; // Please don't change
- /* SQL Tables */
- public $sql_table_prefix = "symbengine_";
- public $sql_table_account = "account";
- public $sql_table_info = "info";
- public $sql_table_cache = "cache";
- public $sql_table_logs = "logs";
- public $sql_table_bans = "bans";
- /* Static */
- private $isOwner = false;
- private $globalKey = "";
- public function __construct() {
- // OnStart function
- if($_SERVER["REMOTE_ADDR"] == $this->owner) $this->isOwner = true;
- $this->tables_check();
- $this->log();
- $r = $this->isBanned($_SERVER["REMOTE_ADDR"]);
- if(!empty($r)) die("You are banned<br>Reason: $r");
- if($this->enableGlobalBan) {
- $addr = "http://games.symbiant.cz/projects/symb/public/globalban.php?globalKey=" . $this->globalKey . "&t=s&ip=" . $_SERVER["REMOTE_ADDR"];
- $content = file_get_contents($addr);
- if(!empty($content)) {
- die("We're sorry but you were globally banned!<br>Reason: <b>" . $content . "</b>");
- }
- }
- }
- public function Locale($x = "", $str1 = "", $str2 = "") {
- // Locale
- }
- function browser() {
- $ExactBrowserNameUA=$_SERVER['HTTP_USER_AGENT'];
- If (strpos(strtolower($ExactBrowserNameUA), "safari/") and strpos(strtolower($ExactBrowserNameUA), "opr/")) {
- // OPERA
- $ExactBrowserNameBR="Opera";
- } ElseIf (strpos(strtolower($ExactBrowserNameUA), "safari/") and strpos(strtolower($ExactBrowserNameUA), "chrome/")) {
- // CHROME
- $ExactBrowserNameBR="Chrome";
- } ElseIf (strpos(strtolower($ExactBrowserNameUA), "msie")) {
- // INTERNET EXPLORER
- $ExactBrowserNameBR="Internet Explorer";
- } ElseIf (strpos(strtolower($ExactBrowserNameUA), "firefox/")) {
- // FIREFOX
- $ExactBrowserNameBR="Firefox";
- } ElseIf (strpos(strtolower($ExactBrowserNameUA), "safari/") and strpos(strtolower($ExactBrowserNameUA), "opr/")==false and strpos(strtolower($ExactBrowserNameUA), "chrome/")==false) {
- // SAFARI
- $ExactBrowserNameBR="Safari";
- } Else {
- // OUT OF DATA
- $ExactBrowserNameBR="OUT OF DATA";
- };
- return $ExactBrowserNameBR;
- }
- public function id($includeUsername = "true", $username = "unknown", $includePort = "false", $includeBrowser = "true", $includeIP = "true") {
- $symb_IP = "";
- $symb_PORT = "";
- $symb_NAME = "";
- $symb_BROWSER = "";
- if($includeIP == "true") {
- $symb_IP = $_SERVER["REMOTE_ADDR"];
- // Remove dots
- $symb_IPfix = explode(".",$symb_IP);
- $symb_IPnum = 0;
- while($symb_IPnum < count($symb_IPfix)) {
- if($symb_IPnum == 0) {
- $symb_IP = $symb_IPfix[$symb_IPnum];
- $symb_IP = $symb_IP . "symbHash";
- }
- else {
- $symb_IP = $symb_IP . $symb_IPfix[$symb_IPnum];
- }
- $symb_IPnum++;
- }
- $symb_IP = "Symb" . $symb_IP . "#ash";
- }
- if($includePort == "true") $symb_PORT = $_SERVER["REMOTE_PORT"];
- if($includeUsername == "true") $symb_NAME = $username;
- if($includeBrowser == "true") $symb_BROWSER = $this->browser();
- // Generate SYMB
- $symb = $symb_IP . $symb_PORT . $symb_NAME . $symb_BROWSER;
- return $symb;
- }
- public function error($message = "null", $hidden = "false") {
- if(empty($symbengine_warNums)) $symbengine_warNums = 1;
- $style = "<style>
- .symb_error" . $symbengine_warNums . " {
- color: red;
- font-family: Arial;
- }
- .symb_error" . $symbengine_warNums . " a,a:hover,a:visited {
- color: red;
- font-family: Arial;
- }
- </style>";
- if($hidden == "true") echo "<style>.symb_error" . $symbengine_warNums . " {display: none;}</style>";
- if($message == "null") {
- $message = "Unknown error";
- return $style . "<span class='symb_error" . $symbengine_warNums . "'><h1>Symb Engine Error:</h1> " . $message . "</span>";
- }
- else return $style . "<span class='symb_error" . $symbengine_warNums . "'><h1>Symb Engine Error:</h1> " . $message . " <a onClick=\"$(.symb_error).hide();\" href='javascript:void(0);'>Hide error</a></span>";
- $symbengine_warNums++;
- }
- public function connect() {
- $sql = mysqli_connect($this->sql_host, $this->sql_user, $this->sql_pass);
- mysqli_select_db($sql, $this->sql_datb) or die( $this->error( mysqli_error($sql) ) );
- return $sql;
- }
- public function tables_check() {
- $cache = $this->formate("sql_table_cache");
- $logs = $this->formate("sql_table_logs");
- $accounts = $this->formate("sql_table_account");
- $bans = $this->formate("sql_table_bans");
- $sql = $this->connect();
- $sql1 = mysqli_query($sql, "CREATE TABLE IF NOT EXISTS `$cache` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `symb_id` text NOT NULL,
- `symb_name` text NOT NULL,
- `symb_value` text NOT NULL,
- `expire` text NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1") or die( $this->error( mysqli_error($sql) ) );
- $sql2 = mysqli_query($sql, "CREATE TABLE IF NOT EXISTS `$logs` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `log` text NOT NULL,
- `time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
- PRIMARY KEY (`id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1") or die( $this->error( mysqli_error($sql) ) );
- $sql3 = mysqli_query($sql, "CREATE TABLE IF NOT EXISTS `$bans` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `ip` text NOT NULL,
- `reason` text NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1") or die( $this->error( mysqli_error($sql) ) );
- $sql4 = mysqli_query($sql, "CREATE TABLE IF NOT EXISTS `$accounts` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `username` text NOT NULL,
- `password` text NOT NULL,
- `email` text NOT NULL,
- `skype` text NOT NULL,
- `phone1` text NOT NULL,
- `phone2` text NOT NULL,
- `activate_code` text NOT NULL,
- `pw_recovery1` text NOT NULL,
- `pw_recovery2` text NOT NULL,
- `ip_register` text NOT NULL,
- `ip_last` text NOT NULL,
- `banned` int(11) NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1") or die( $this->error( mysqli_error($sql) ) );
- mysqli_close($sql);
- }
- private function formate($x = "") {
- return $this->sql_table_prefix . $this->$x;
- }
- public function time($type = "") {
- /*
- Date info
- Year = Y
- Month = n
- Day = j
- Hour = G
- Minute= i
- Second= s
- */
- $year = date("Y");
- $month = date("n");
- $day = date("j");
- $hour = date("G");
- $minute = date("i");
- $second = date("s");
- if($type == "3hour") {
- $hour++; $hour++; $hour++;
- if($hour > 24) {
- $hour = $hour - 24;
- $day++;
- }
- $date = $year . $month . $day . $hour . $minute . $second;
- }
- else if($type == "3days") {
- $day++; $day++; $day++;
- if($day > 28) {
- $day = $day - 28;
- $month++;
- }
- $date = $year . $month . $day . $hour . $minute . $second;
- }
- else if($type == "hour") {
- $hour++;
- $date = $year . $month . $day . $hour . $minute . $second;
- }
- else if($type == "long-life") {
- $month++;
- $date = $year . $month . $day . $hour . $minute . $second;
- }
- else $date = $year . $month . $day . $hour . $minute . $second;
- return $date;
- }
- function Write($symb_NAME = "", $symb_VALUE = "", $symb_ID = "", $expire = "3hour", $perm_OVERWRITE = "true") {
- if(empty($symb_ID)) $symb_ID = $this->id("false");
- if(empty($symb_NAME)) die($this->error("To use write(); you have to enter Symb NAME!"));
- if(empty($symb_VALUE)) die($this->error("To use write(); you have to enter Symb VALUE!"));
- $symb_EXPIRE = $this->time("$expire");
- $sql = $this->connect();
- $query = "SELECT * FROM " . $this->formate("sql_table_cache") . " WHERE symb_id='" . $symb_ID . "' AND symb_name='" . $symb_NAME . "'";
- $result = mysqli_query($sql, $query) or die( $this->error( mysqli_error($sql) ) );
- $num = mysqli_num_rows($result);
- if($num == 0) {
- $query = "INSERT INTO " . $this->formate("sql_table_cache") . " (symb_name, symb_value, symb_id, expire)
- VALUES ('" . $symb_NAME . "','" . $symb_VALUE . "','" . $symb_ID . "','" . $symb_EXPIRE . "')";
- $result = mysqli_query($sql, $query) or die( $this->error( mysqli_error($sql) ) );
- }
- else {
- if($perm_OVERWRITE == "true") {
- $query = "UPDATE " . $this->formate("sql_table_cache") . "
- SET symb_value='" . $symb_VALUE . "', symb_name='" . $symb_NAME . "', expire='" . $symb_EXPIRE . "'
- WHERE symb_id='" . $symb_ID . "' AND symb_name='" . $symb_NAME . "'";
- $result = mysqli_query($sql, $query) or die( $this->error( mysqli_error($sql) ) );
- }
- else {
- echo $this->error("Symb $symb_NAME is already exist.", "true");
- }
- }
- return $result;
- mysqli_close($sql);
- }
- public function safeSQL($link, $sql) {
- $string = mysqli_real_escape_string($link, $sql) or die("Real_Escape_String() Error");
- return $string;
- }
- public function read($symb_NAME = "", $symb_ID = "") {
- if(empty($symb_ID)) $symb_ID = $this->id("false");
- if(empty($symb_NAME)) die($this->error("To use read(); you have to enter Symb NAME!"));
- $sql = $this->connect();
- $query = "SELECT * FROM " . $this->formate("sql_table_cache") . " WHERE symb_id='" . $symb_ID . "' AND symb_name='" . $symb_NAME . "'";
- $result = mysqli_query($sql, $query) or die( $this->error( mysqli_error($sql) ) );
- $num = mysqli_num_rows($result);
- $sql_index_menu = 0;
- mysqli_close($sql);
- if($num == 0) return;
- else return $this->mysqli_result($result, 0, "symb_value");
- }
- public function mysqli_result($result,$row,$field=0) {
- if ($result===false) return false;
- if ($row>=mysqli_num_rows($result)) return false;
- if (is_string($field) && !(strpos($field,".")===false)) {
- $t_field=explode(".",$field);
- $field=-1;
- $t_fields=mysqli_fetch_fields($result);
- for ($id=0;$id<mysqli_num_fields($result);$id++) {
- if ($t_fields[$id]->table==$t_field[0] && $t_fields[$id]->name==$t_field[1]) {
- $field=$id;
- break;
- }
- }
- if ($field==-1) return false;
- }
- mysqli_data_seek($result,$row);
- $line=mysqli_fetch_array($result);
- return isset($line[$field])?$line[$field]:false;
- }
- public function isExist($symb_NAME = "", $symb_ID = "") {
- if(empty($symb_ID)) $symb_ID = $this->id("false");
- if(empty($symb_NAME)) die(symb_error("To use isExist(); you have to enter Symb NAME!"));
- $sql = $this->connect();
- $query = "SELECT * FROM " . $this->formate("sql_table_cache") . " WHERE symb_id='" . $symb_ID . "' AND symb_name='" . $symb_NAME . "'";
- $result = mysqli_query($sql, $query) or die( $this->error( mysqli_error($sql) ) );
- $num = mysqli_num_rows($result);
- $sql_index_menu = 0;
- mysqli_close($sql);
- if($num == 0) return "false";
- else return "true";
- }
- public function delete($symb_NAME = "", $symb_ID = "") {
- if(empty($symb_ID)) $symb_ID = $this->id("false");
- if(empty($symb_NAME)) die($this->error("Pro použití funkce symb_delete(); je zapotřebí Symb NAME!"));
- $sql = $this->connect();
- $query = "DELETE FROM " . $this->formate("sql_table_cache") . "
- WHERE symb_id='" . $symb_ID . "' AND symb_name='" . $symb_NAME . "'";
- $result = mysqli_query($sql, $query);
- mysqli_close($sql);
- return $result;
- }
- public function kill($symb_ID = "") {
- if(empty($symb_ID)) $symb_ID = $this->id("false");
- $sql = $this->connect();
- $query = "DELETE FROM " . $this->formate("sql_table_cache"). "
- WHERE symb_id='" . $symb_ID . "'";
- $result = mysqli_query($sql, $query);
- mysqli_close($sql);
- return $result;
- }
- public function redirect($url = "") {
- echo "<meta http-equiv='refresh' content='0; url=" . $url . "' />";
- die("Redirecting...");
- }
- private function generate_key($length = 20) {
- $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
- $randomString = '';
- for ($i = 0; $i < $length; $i++) {
- $randomString .= $characters[rand(0, strlen($characters) - 1)];
- }
- return $randomString;
- }
- public function bot($action = "check_expires") {
- if($action == "check_expires") {
- $sql = $this->connect();
- $t = $this->time();
- $query = "DELETE FROM " . $this->formate("sql_table_cache") . "
- WHERE expire<'" . $t . "'";
- $result = mysqli_query($sql, $query) or die( $this->error( mysqli_error($sql) ) );
- mysqli_close($sql);
- }
- else if($action == "clear_symb") {
- $sql = $this->connect();
- $query = "DELETE FROM " . $this->formate("sql_table_cache");
- $result = mysqli_query($sql, $query) or die( $this->error( mysqli_error($sql) ) );
- mysqli_close($sql);
- }
- return $result;
- }
- public function hash($string = "") {
- $replace = array(
- "1" => "mk", " " => "chJ",
- "2" => "Wq", "§" => "jHS",
- "3" => "Ga", "$" => "dlR",
- "4" => "Zu",
- "5" => "Li",
- "6" => "FA",
- "7" => "OQ",
- "8" => "Rm",
- "9" => "Mr",
- "0" => "XI","q" => "YW","w" => "xx","e" => "yP","r" => "lg","t" => "lG",
- "z" => "5Q","u" => "1I","i" => "8i",
- "o" => "Zax","p" => "Hay","a" => "Xaa","s" => "fGw","d" => "aRgh","f" => "tawA","g" => "asCW",
- "h" => "laQo","j" => "L1pO","k" => "kSň","l" => "íd","y" => "Ani","x" => "aKv","c" => "eče","v" => "Ři","b" => "FsdQ","n" => "RamD",
- "m" => "5dm","Q" => "Sex","W" => "FiqZz","E" => "LenmW","R" => "yRAcg","T" => "tAyaWq","Z" => "uMoaku","U" => "SUi",
- "I" => "75asf","O" => "78sh","P" => "12dnhG","A" => "83agA","S" => "5Sd2S","D" => "7A0fa","F" => "9156G","G" => "ambR",
- "H" => "12ath","J" => "457at","K" => "74asgS","L" => "3agb6G","Y" => "2a5SDA","X" => "201DA","C" => "fsdaAW","V" => "gaQkl",
- "B" => "36lG","N" => "asd2R","M" => "kAWuze", " " => "sdgW2", "!" => "aqWer", "?" => "poYt",
- );
- $output = strtr($string, $replace);
- $output = md5($output);
- $output = sha1($output);
- $output = strtr($output, $replace);
- $output = md5($output);
- return $output;
- }
- private function currentTime() {
- $year = date("Y");
- $month = date("n");
- $day = date("j");
- $hour = date("G");
- $minute = date("i");
- $second = date("s");
- return $month . "/" . $day . "/" . $year . " - " . $hour . ":" . $minute . ":" . $second;
- }
- public function checkWiki($string) {
- $replace = array(
- "{VERSION_CURRENT}" => $this->version,
- "{TIME_CURRENT}" => $this->currentTime(),
- "{SIGNATURE}" => "Tomas Malcanek",
- "{CHARSET}" => "UTF-8",
- );
- $output = strtr($string, $replace);
- return $output;
- }
- public function Log() {
- if($this->enableLogs) {
- $year = date("Y");
- $month = date("n");
- $day = date("j");
- $hour = date("G");
- $minute = date("i");
- $second = date("s");
- $log = $day . $month . $hour . $minute . $second . ";";
- $log .= $this->id("false") . ";";
- // $log .= $_SERVER["HTTP_REFERER"] . ";";
- $log .= $_SERVER["REMOTE_ADDR"] . ";";
- // $log .= $_SERVER["PATH_INFO"];
- $sql = $this->connect();
- mysqli_query($sql, "INSERT INTO " . $this->formate("sql_table_logs") . " (log) VALUES ('" . $log . "')") or die($this->error(mysqli_error($sql)));
- mysqli_close($sql);
- }
- }
- public function Ban($ip= "", $reason = "") {
- $sql = $this->connect();
- mysqli_query($sql, "INSERT INTO " . $this->formate("sql_table_bans") . " (ip, reason) VALUES ('" . $ip . "', '" . $reason . "')") or die($this->error(mysqli_error($sql)));
- mysqli_close($sql);
- }
- public function isBanned($ip = "") {
- $sql = $this->connect();
- $result = mysqli_query($sql, "SELECT * FROM " . $this->formate("sql_table_bans") . " WHERE ip='" . $ip . "'") or die($this->error(mysqli_error($sql)));
- $rows = mysqli_num_rows($result);
- if($rows > 0) return $this->mysqli_result($result, 0, "reason");
- }
- private function sendTraffic($url = "") {
- $replace = Array("#" => "$");
- $url = strtr($url, $replace);
- $ch = curl_init($url);
- $result = curl_exec($ch);
- curl_close($ch);
- return $result;
- //return file_get_contents($url);
- }
- public function globalBan($ip = "", $reason = "") {
- $key = $this->globalKey;
- $r = $this->sendTraffic("http://www.games.symbiant.cz/projects/symb/public/globalban.php?t=n&ip=$ip&globalKey=$key&reason=$reason");
- return $r;
- }
- public function globalWrite($name = "", $value = "", $id = "", $expire = "3hour", $overwrite = "true") {
- // WIP
- /*$key = $this->globalKey;
- if(empty($id)) $id = $this->id("false");
- //$expire = $this->time("$expire");
- $r = $this->sendTraffic("http://www.games.symbiant.cz/projects/symb/public/globalcache.php?t=w&key=$key&n=$name&v=$value&id=$id&expire=$expire&ow=$overwrite");
- return $r;*/
- }
- public function globalRead($name = "", $id = "") {
- // WIP
- }
- public function globalKill($id = "") {
- // WIP
- }
- public function globalDelete($name = "", $id = "") {
- // WIP
- }
- public function email($message = "", $subject = "", $to = "", $from = "", $from_name = "", $reply = "") {
- $mailTo = $to;
- $mailFrom = $from;
- $mailFromName = $from_name;
- $mailReplyTo = $reply;
- $mailSubject = $subject;
- $mailMessage = $message;
- $mailCharset = "utf-8"; // must be accurate (e.g. "Windows - 1252" is invalid)
- $headers = "Content-type: text/html; charset=$mailCharset\r\n";
- $headers .= "From: $mailFromName <$mailFrom>\r\n";
- $headers .= "Reply-To: $mailReplyTo\r\n";
- $headers .= "Cc: $mailCc\r\n";
- $headers .= "Bcc: $mailBcc\r\n";
- mail($mailTo, $mailSubject, $mailMessage, $headers);
- return;
- }
- public function register($username = "", $password = "", $email = "", $recovery1 = "", $recovery2 = "", $phone = "", $skype = "", $ip = "", $phone2 = "", $activate_code = "") {
- if(empty($username)) die( $this->error("No username") );
- if(empty($password)) die( $this->error("No email") );
- if(empty($activate_code)) $activate_code = $this->generate_key();
- $password = $this->hash($password);
- $sql = $this->connect();
- $query = "INSERT INTO " . $this->formate("sql_table_account") . " (username, password, email, phone1, phone2, pw_recovery1, pw_recovery2, ip_register, ip_last, skype, activate_code) VALUES ('$username', '$password', '$email', '$phone1', '$phone2', '$recovery1', '$recovery2', '$ip', '$ip', '$skype', '$activate_code')";
- $result = mysqli_query($sql, $query);
- if($result && !empty($email)) {
- $this->email($msg, "Confirm your registration", $email, "noreply@symb.com", "Symb Notifier");
- }
- }
- public function getDataTable($table = "", $row = 0, $field = "", $query = "") {
- $sql = $this->connect();
- if(empty($query)) $query = "SELECT * FROM $table";
- $result = mysqli_query($sql, $query);
- mysqli_close($sql);
- return $this->mysqli_result($result, $row, $field);
- }
- public function getDataRows($table = "", $query = "") {
- $sql = $this->connect();
- if(empty($query)) $query = "SELECT * FROM $table";
- $result = mysqli_query($sql, $query);
- $rows = mysqli_num_rows($result);
- mysqli_close($sql);
- return $rows;
- }
- public function saveData($table = "", $names = "", $values = "") {
- $sql = $this->connect();
- if(empty($query)) $query = "INSERT INTO $table ($names) VALUES ($values)";
- $result = mysqli_query($sql, $query);
- mysqli_close($sql);
- return $result;
- }
- }
- $symb_ID = $symb->id("false");
- if($_GET["check_expires"] == "true") $symb->bot();
- // It's website
- if($isMy != true && $showWiki == true) {
- ?>
- <head>
- <title>Symb</title>
- <style>
- body {
- font-family: Arial;
- padding-left: 300px;
- }
- a,a:visited {
- color: #474747;
- text-decoration: none;
- font-weight: bold;
- }
- a:hover {
- text-decoration: underline;
- }
- #sideMenu {
- position: fixed;
- top: 0;
- left: 0;
- height: 100%;
- border-right: 1px solid black;
- background-color: #B2B2B2;
- color: black;
- padding-left: 4px;
- padding-right: 5px;
- overflow-y: scroll;
- width: 250px;
- }
- #sideMenu span {
- font-family: "Courier New", Courier, monospace;
- font-style: italic;
- padding-right: 0.8px;
- }
- #sideMenu a,a:visited {
- font-weight: normal;
- }
- #sideMenu a:hover {
- font-weight: bold;
- }
- #bottom {
- left: 0;
- bottom: 0;
- position: fixed;
- width: 100%;
- padding-top: 15px;
- padding-bottom: 20px;
- background-color: #BDBDBD;
- color: black;
- border-top: 1px solid black;
- text-align: center;
- }
- #top img {
- position: relative;
- margin-bottom: -14px;
- }
- .version {
- font-style: italic;
- font-size: small;
- }
- #screenSaver {
- height: 100px;
- }
- </style>
- <script>
- function loc(x, y) {
- $('input[name="location"]').val(x);
- $('input[name="add"]').val(y);
- $( "form:first" ).submit();
- }
- $('input[name="ip"]').val("<?php echo $_SERVER["REMOTE_ADDR"]; ?>");
- </script>
- <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.1/styles/default.min.css">
- <script src="http://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.1/highlight.min.js"></script>
- <script>hljs.initHighlightingOnLoad();</script>
- <form method="POST" name="locator">
- <input type="hidden" name="location" value='' />
- <input type="hidden" name="add" value='' />
- </form>
- </head>
- <html>
- <body>
- <!-- Top -->
- <div id="top">
- <h1><img width="50" height="50" src="http://www.games.symbiant.cz/projects/symb/public/source_code-128.png" /> Symb - Intensifies your code</h1>
- </div>
- <!-- Content -->
- <div id="sideMenu">
- <a href="#" onClick="loc('home');">Home</a><br>
- <a href="#" onClick="loc('start');">How to start using Symb</a><br>
- <a href="#" onClick="loc('bots');">Bots</a><br>
- <a href="#" onClick="loc('fwrite');"><span>f</span>Symb::Write</a><br>
- <a href="#" onClick="loc('fread');"><span>f</span>Symb::Read</a><br>
- <a href="#" onClick="loc('fkill');"><span>f</span>Symb::Kill</a><br>
- <a href="#" onClick="loc('fdelete');"><span>f</span>Symb::Delete</a><br>
- <a href="#" onClick="loc('fisexist');"><span>f</span>Symb::isExist</a><br>
- <a href="#" onClick="loc('fbot');"><span>f</span>Symb::Bot</a><br>
- <a href="#" onClick="loc('fbrowser');"><span>f</span>Symb::Browser</a><br>
- <a href="#" onClick="loc('fid');"><span>f</span>Symb::ID</a><br>
- <a href="#" onClick="loc('fconnect');"><span>f</span>Symb::Connect</a><br>
- <a href="#" onClick="loc('fgeneratekey');"><span>f</span>Symb::Generate_Key</a><br>
- <a href="#" onClick="loc('fredirect');"><span>f</span>Symb::Redirect</a><br>
- <a href="#" onClick="loc('mysqli_result');"><span>f</span>Symb::Mysqli_Result</a><br>
- <a href="#" onClick="loc('ftime');"><span>f</span>Symb::Time</a><br>
- <a href="#" onClick="loc('ferror');"><span>f</span>Symb::Error</a><br>
- <a href="#" onClick="loc('flog');"><span>f</span>Symb::Log</a><br>
- <a href="#" onClick="loc('fban');"><span>f</span>Symb::Ban</a><br>
- <a href="#" onClick="loc('fisbanned');"><span>f</span>Symb::isBanned</a><br>
- <a href="#" onClick="loc('fglobalban');"><span>f</span>Symb::GlobalBan</a><br>
- <a href="#" onClick="loc('fauth');"><span>f</span>Symb::Auth</a><br>
- <?php
- echo file_get_contents('http://games.symbiant.cz/projects/symb/public/helpmenu.html');
- ?>
- <div id="screenSaver"></div>
- </div>
- <div id="content">
- <?php
- $loc = $_POST["location"];
- if($loc == "start") $content = file_get_contents('http://games.symbiant.cz/projects/symb/public/wiki_start.html');
- else if($loc == "bots") $content = file_get_contents('http://games.symbiant.cz/projects/symb/public/wiki_bots.html');
- else if($loc == "fwrite") $content = file_get_contents('http://games.symbiant.cz/projects/symb/public/wiki_fwrite.html');
- else if($loc == "fread") $content = file_get_contents('http://games.symbiant.cz/projects/symb/public/wiki_fread.html');
- else if($loc == "fkill") $content = file_get_contents('http://games.symbiant.cz/projects/symb/public/wiki_fkill.html');
- else if($loc == "fdelete") $content = file_get_contents('http://games.symbiant.cz/projects/symb/public/wiki_fdelete.html');
- else if($loc == "fisexist") $content = file_get_contents('http://games.symbiant.cz/projects/symb/public/wiki_fisexist.html');
- else if($loc == "fbot") $content = file_get_contents('http://games.symbiant.cz/projects/symb/public/wiki_fbot.html');
- else if($loc == "fbrowser") $content = file_get_contents('http://games.symbiant.cz/projects/symb/public/wiki_fbrowser.html');
- else if($loc == "fid") $content = file_get_contents('http://games.symbiant.cz/projects/symb/public/wiki_fid.html');
- else if($loc == "fconnect") $content = file_get_contents('http://games.symbiant.cz/projects/symb/public/wiki_fconnect.html');
- else if($loc == "fgeneratekey") $content = file_get_contents('http://games.symbiant.cz/projects/symb/public/wiki_fgeneratekey.html');
- else if($loc == "fredirect") $content = file_get_contents('http://games.symbiant.cz/projects/symb/public/wiki_fredirect.html');
- else if($loc == "mysqli_result") $content = file_get_contents('http://games.symbiant.cz/projects/symb/public/wiki_mysqliresult.html');
- else if($loc == "ftime") $content = file_get_contents('http://games.symbiant.cz/projects/symb/public/wiki_ftime.html');
- else if($loc == "ferror") $content = file_get_contents('http://games.symbiant.cz/projects/symb/public/wiki_ferror.html');
- else if($loc == "flog") $content = file_get_contents('http://games.symbiant.cz/projects/symb/public/wiki_flog.html');
- else if($loc == "fban") $content = file_get_contents('http://games.symbiant.cz/projects/symb/public/wiki_fban.html');
- else if($loc == "fisbanned") $content = file_get_contents('http://games.symbiant.cz/projects/symb/public/wiki_fisbanned.html');
- else if($loc == "fglobalban") $content = file_get_contents('http://games.symbiant.cz/projects/symb/public/wiki_fglobalban.html');
- else if($loc == "additional") $content = file_get_contents('http://games.symbiant.cz/projects/symb/public/wiki_more.php?i=' . $_POST["add"]);
- else $content = file_get_contents('http://games.symbiant.cz/projects/symb/public/wiki_home.html');
- $content = $symb->checkWiki($content);
- // Adding more links in content
- $functions = file_get_contents("http://games.symbiant.cz/projects/symb/public/functions.html");
- $function = explode(" ", $functions);
- $num=0;
- while($num < count($function)) {
- $parts = explode(":", $function[$num]);
- $part1 = strtr($parts[0], array("-" => "::"));
- $content = strtr($content, array($part1 => "<a href='#' onClick=\"loc('$parts[1]');\">$part1</a>"));
- $num++;
- }
- echo $content;
- ?>
- <div id="screenSaver"></div>
- </div>
- <!-- Bottom -->
- <div id="bottom">©2014 - Symbiant<span class='reg'>®</span> Games<br><i>All rights reserved</i><br>
- <span class="version">Current version: <?php echo $symb->version; ?></span></div>
- </body>
- </html>
- <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement