<? if (session_status() == PHP_SESSION_NONE) { session_start(); } include 'includes/connection_pdo.php'; include 'includes/bancheck.php'; include 'includes/loadvar.php'; require_once "includes/jBBCode-1.3.0/JBBCode/Parser.php"; ?> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <title>UCP - Diverse RP - User Control Panel</title> <!-- Bootstrap Core CSS --> <link href="css/bootstrap.min.css" rel="stylesheet"> <link href="css/bootstrap.css" rel="stylesheet"> <!-- Custom CSS --> <link href="css/main.css" rel="stylesheet"> <!--UCP by Xtralarge --> <link href="css/blog-post.css" rel="stylesheet"> <link href="css/animate.min.css" rel="stylesheet"> <script type="text/javascript" src="includes/ckeditor/ckeditor.js"></script> </head> <!--<body style="background-image: url('img/background.JPG'); background-size: 100% 100%; background-attachment: fixed;">--> <body style="background-image: url('localhost/ucp/images/bg_tile.gif');"> <!-- Page Content --> <div class="container"> <div class="row"> <?include 'includes/menu.php'; ?> <img src="images/banner.png" width="100%"/> </div> <div class="row" style="background-color:white;"> <?php include "includes/functions.php"; if(!ISSET($_GET["page"])) { $pageselected = "news"; } else { $pageselected = $_GET["page"]; } if(file_exists("pages/".$pageselected.".php")) { include "pages/".$pageselected.".php"; include 'includes/sidebar.php'; } else { $sql = "SELECT * FROM pages WHERE name = '$pageselected' LIMIT 1"; $query = $pdo->prepare("SELECT * FROM pages WHERE name = :1 LIMIT 1"); $query->execute(array(':1' => $pageselected)); $num = $query->fetchColumn(); if($num > 0) { while($row = $query->fetch(PDO::FETCH_ASSOC)) { $parser = new JBBCode\Parser(); $parser->addCodeDefinitionSet(new JBBCode\DefaultCodeDefinitionSet()); $parser->parse($row["text1"]); echo "<div class='col-lg-8'>"; echo "<h1>".$row["header1"]."</h1>"; echo "<p>".$parser->getAsHtml()."</p>"; echo "<hr>"; echo "Last updated: ".$row["last_date"]." By ".$row["last_user"]; echo "</div>"; } } else { ?> <div class="col-lg-8"> <h1>Sorry! This page does not exist.</h1> </div> <? } include 'includes/sidebar.php'; } ?> </div> <!-- /.row --> <!-- Footer --> <footer> <div class="row"> <div class="col-lg-12" style="background-color:white;"> <hr> <p>Copyright © Diverse RP 2015</p> <hr> </div> </div> </footer> </div> <!-- /.container --> <!-- jQuery --> <script src="js/jquery.js"></script> <!-- Bootstrap Core JavaScript --> <script src="js/bootstrap.min.js"></script> </body> </html> |
<? } include 'includes/sidebar.php'; } ?>
<?php } include 'includes/sidebar.php'; } ?>
Check Line 91
Код:
<? } include 'includes/sidebar.php'; } ?> Код:
<?php } include 'includes/sidebar.php'; } ?> |
Notice: Undefined index: domain in C:\Documents and Settings\Bill\Escritorio\USBSERVER\root\ucp\includ es\functions.php on line 10 6) { $query_s1 = $pdo->prepare("UPDATE articles SET title=:1, text=:2 WHERE id=:3"); $query_s1->execute(array(':1' => $_POST["title"], ':2' => $_POST["text"], ':3' => $_GET["id"])); } $query = $pdo->prepare("SELECT * FROM articles WHERE active = 1 ORDER BY id DESC"); $query->execute(); $count = 0; $count2 = 0; while($row = $query->fetch(PDO::FETCH_ASSOC)) { $count++; if($count >= $min AND $count <= $max) { $id = $row["id"]; $count2++; if(isset($_POST["save"]) AND $_SESSION["session_admin"] > 6 AND $_GET["id"] == $id) { echo " |
<?php /************************************************************************* php easy :: whois lookup script ========================================================================== Author: php easy code, www.phpeasycode.com Web Site: http://www.phpeasycode.com Contact: webmaster@phpeasycode.com *************************************************************************/ $domain = $_GET['domain']; // For the full list of TLDs/Whois servers see http://www.iana.org/domains/root/db/ and http://www.whois365.com/en/listtld/ $whoisservers = array( "ac" => "whois.nic.ac", // Ascension Island // ad - Andorra - no whois server assigned "ae" => "whois.nic.ae", // United Arab Emirates "aero"=>"whois.aero", "af" => "whois.nic.af", // Afghanistan "ag" => "whois.nic.ag", // Antigua And Barbuda "ai" => "whois.ai", // Anguilla "al" => "whois.ripe.net", // Albania "am" => "whois.amnic.net", // Armenia // an - Netherlands Antilles - no whois server assigned // ao - Angola - no whois server assigned // aq - Antarctica (New Zealand) - no whois server assigned // ar - Argentina - no whois server assigned "arpa" => "whois.iana.org", "as" => "whois.nic.as", // American Samoa "asia" => "whois.nic.asia", "at" => "whois.nic.at", // Austria "au" => "whois.aunic.net", // Australia // aw - Aruba - no whois server assigned "ax" => "whois.ax", // Aland Islands "az" => "whois.ripe.net", // Azerbaijan // ba - Bosnia And Herzegovina - no whois server assigned // bb - Barbados - no whois server assigned // bd - Bangladesh - no whois server assigned "be" => "whois.dns.be", // Belgium "bg" => "whois.register.bg", // Bulgaria "bi" => "whois.nic.bi", // Burundi "biz" => "whois.biz", "bj" => "whois.nic.bj", // Benin // bm - Bermuda - no whois server assigned "bn" => "whois.bn", // Brunei Darussalam "bo" => "whois.nic.bo", // Bolivia "br" => "whois.registro.br", // Brazil "bt" => "whois.netnames.net", // Bhutan // bv - Bouvet Island (Norway) - no whois server assigned // bw - Botswana - no whois server assigned "by" => "whois.cctld.by", // Belarus "bz" => "whois.belizenic.bz", // Belize "ca" => "whois.cira.ca", // Canada "cat" => "whois.cat", // Spain "cc" => "whois.nic.cc", // Cocos (Keeling) Islands "cd" => "whois.nic.cd", // Congo, The Democratic Republic Of The // cf - Central African Republic - no whois server assigned "ch" => "whois.nic.ch", // Switzerland "ci" => "whois.nic.ci", // Cote d'Ivoire "ck" => "whois.nic.ck", // Cook Islands "cl" => "whois.nic.cl", // Chile // cm - Cameroon - no whois server assigned "cn" => "whois.cnnic.net.cn", // China "co" => "whois.nic.co", // Colombia "com" => "whois.verisign-grs.com", "coop" => "whois.nic.coop", // cr - Costa Rica - no whois server assigned // cu - Cuba - no whois server assigned // cv - Cape Verde - no whois server assigned // cw - Curacao - no whois server assigned "cx" => "whois.nic.cx", // Christmas Island // cy - Cyprus - no whois server assigned "cz" => "whois.nic.cz", // Czech Republic "de" => "whois.denic.de", // Germany // dj - Djibouti - no whois server assigned "dk" => "whois.dk-hostmaster.dk", // Denmark "dm" => "whois.nic.dm", // Dominica // do - Dominican Republic - no whois server assigned "dz" => "whois.nic.dz", // Algeria "ec" => "whois.nic.ec", // Ecuador "edu" => "whois.educause.edu", "ee" => "whois.eenet.ee", // Estonia "eg" => "whois.ripe.net", // Egypt // er - Eritrea - no whois server assigned "es" => "whois.nic.es", // Spain // et - Ethiopia - no whois server assigned "eu" => "whois.eu", "fi" => "whois.ficora.fi", // Finland // fj - Fiji - no whois server assigned // fk - Falkland Islands - no whois server assigned // fm - Micronesia, Federated States Of - no whois server assigned "fo" => "whois.nic.fo", // Faroe Islands "fr" => "whois.nic.fr", // France // ga - Gabon - no whois server assigned "gd" => "whois.nic.gd", // Grenada // ge - Georgia - no whois server assigned // gf - French Guiana - no whois server assigned "gg" => "whois.gg", // Guernsey // gh - Ghana - no whois server assigned "gi" => "whois2.afilias-grs.net", // Gibraltar "gl" => "whois.nic.gl", // Greenland (Denmark) // gm - Gambia - no whois server assigned // gn - Guinea - no whois server assigned "gov" => "whois.nic.gov", // gr - Greece - no whois server assigned // gt - Guatemala - no whois server assigned "gs" => "whois.nic.gs", // South Georgia And The South Sandwich Islands // gu - Guam - no whois server assigned // gw - Guinea-bissau - no whois server assigned "gy" => "whois.registry.gy", // Guyana "hk" => "whois.hkirc.hk", // Hong Kong // hm - Heard and McDonald Islands (Australia) - no whois server assigned "hn" => "whois.nic.hn", // Honduras "hr" => "whois.dns.hr", // Croatia "ht" => "whois.nic.ht", // Haiti "hu" => "whois.nic.hu", // Hungary // id - Indonesia - no whois server assigned "ie" => "whois.domainregistry.ie", // Ireland "il" => "whois.isoc.org.il", // Israel "im" => "whois.nic.im", // Isle of Man "in" => "whois.inregistry.net", // India "info" => "whois.afilias.net", "int" => "whois.iana.org", "io" => "whois.nic.io", // British Indian Ocean Territory "iq" => "whois.cmc.iq", // Iraq "ir" => "whois.nic.ir", // Iran, Islamic Republic Of "is" => "whois.isnic.is", // Iceland "it" => "whois.nic.it", // Italy "je" => "whois.je", // Jersey // jm - Jamaica - no whois server assigned // jo - Jordan - no whois server assigned "jobs" => "jobswhois.verisign-grs.com", "jp" => "whois.jprs.jp", // Japan "ke" => "whois.kenic.or.ke", // Kenya "kg" => "www.domain.kg", // Kyrgyzstan // kh - Cambodia - no whois server assigned "ki" => "whois.nic.ki", // Kiribati // km - Comoros - no whois server assigned // kn - Saint Kitts And Nevis - no whois server assigned // kp - Korea, Democratic People's Republic Of - no whois server assigned "kr" => "whois.kr", // Korea, Republic Of // kw - Kuwait - no whois server assigned // ky - Cayman Islands - no whois server assigned "kz" => "whois.nic.kz", // Kazakhstan "la" => "whois.nic.la", // Lao People's Democratic Republic // lb - Lebanon - no whois server assigned // lc - Saint Lucia - no whois server assigned "li" => "whois.nic.li", // Liechtenstein // lk - Sri Lanka - no whois server assigned "lt" => "whois.domreg.lt", // Lithuania "lu" => "whois.dns.lu", // Luxembourg "lv" => "whois.nic.lv", // Latvia "ly" => "whois.nic.ly", // Libya "ma" => "whois.iam.net.ma", // Morocco // mc - Monaco - no whois server assigned "md" => "whois.nic.md", // Moldova "me" => "whois.nic.me", // Montenegro "mg" => "whois.nic.mg", // Madagascar // mh - Marshall Islands - no whois server assigned "mil" => "whois.nic.mil", // mk - Macedonia, The Former Yugoslav Republic Of - no whois server assigned "ml" => "whois.dot.ml", // Mali // mm - Myanmar - no whois server assigned "mn" => "whois.nic.mn", // Mongolia "mo" => "whois.monic.mo", // Macao "mobi" => "whois.dotmobiregistry.net", "mp" => "whois.nic.mp", // Northern Mariana Islands // mq - Martinique (France) - no whois server assigned // mr - Mauritania - no whois server assigned "ms" => "whois.nic.ms", // Montserrat // mt - Malta - no whois server assigned "mu" => "whois.nic.mu", // Mauritius "museum" => "whois.museum", // mv - Maldives - no whois server assigned // mw - Malawi - no whois server assigned "mx" => "whois.mx", // Mexico "my" => "whois.domainregistry.my", // Malaysia // mz - Mozambique - no whois server assigned "na" => "whois.na-nic.com.na", // Namibia "name" => "whois.nic.name", "nc" => "whois.nc", // New Caledonia // ne - Niger - no whois server assigned "net" => "whois.verisign-grs.net", "nf" => "whois.nic.nf", // Norfolk Island "ng" => "whois.nic.net.ng", // Nigeria // ni - Nicaragua - no whois server assigned "nl" => "whois.domain-registry.nl", // Netherlands "no" => "whois.norid.no", // Norway // np - Nepal - no whois server assigned // nr - Nauru - no whois server assigned "nu" => "whois.nic.nu", // Niue "nz" => "whois.srs.net.nz", // New Zealand "om" => "whois.registry.om", // Oman "org" => "whois.pir.org", // pa - Panama - no whois server assigned "pe" => "kero.yachay.pe", // Peru "pf" => "whois.registry.pf", // French Polynesia // pg - Papua New Guinea - no whois server assigned // ph - Philippines - no whois server assigned // pk - Pakistan - no whois server assigned "pl" => "whois.dns.pl", // Poland "pm" => "whois.nic.pm", // Saint Pierre and Miquelon (France) // pn - Pitcairn (New Zealand) - no whois server assigned "post" => "whois.dotpostregistry.net", "pr" => "whois.nic.pr", // Puerto Rico "pro" => "whois.dotproregistry.net", // ps - Palestine, State of - no whois server assigned "pt" => "whois.dns.pt", // Portugal "pw" => "whois.nic.pw", // Palau // py - Paraguay - no whois server assigned "qa" => "whois.registry.qa", // Qatar "re" => "whois.nic.re", // Reunion (France) "ro" => "whois.rotld.ro", // Romania "rs" => "whois.rnids.rs", // Serbia "ru" => "whois.tcinet.ru", // Russian Federation // rw - Rwanda - no whois server assigned "sa" => "whois.nic.net.sa", // Saudi Arabia "sb" => "whois.nic.net.sb", // Solomon Islands "sc" => "whois2.afilias-grs.net", // Seychelles // sd - Sudan - no whois server assigned "se" => "whois.iis.se", // Sweden "sg" => "whois.sgnic.sg", // Singapore "sh" => "whois.nic.sh", // Saint Helena "si" => "whois.arnes.si", // Slovenia "sk" => "whois.sk-nic.sk", // Slovakia // sl - Sierra Leone - no whois server assigned "sm" => "whois.nic.sm", // San Marino "sn" => "whois.nic.sn", // Senegal "so" => "whois.nic.so", // Somalia // sr - Suriname - no whois server assigned "st" => "whois.nic.st", // Sao Tome And Principe "su" => "whois.tcinet.ru", // Russian Federation // sv - El Salvador - no whois server assigned "sx" => "whois.sx", // Sint Maarten (dutch Part) "sy" => "whois.tld.sy", // Syrian Arab Republic // sz - Swaziland - no whois server assigned "tc" => "whois.meridiantld.net", // Turks And Caicos Islands // td - Chad - no whois server assigned "tel" => "whois.nic.tel", "tf" => "whois.nic.tf", // French Southern Territories // tg - Togo - no whois server assigned "th" => "whois.thnic.co.th", // Thailand "tj" => "whois.nic.tj", // Tajikistan "tk" => "whois.dot.tk", // Tokelau "tl" => "whois.nic.tl", // Timor-leste "tm" => "whois.nic.tm", // Turkmenistan "tn" => "whois.ati.tn", // Tunisia "to" => "whois.tonic.to", // Tonga "tp" => "whois.nic.tl", // Timor-leste "tr" => "whois.nic.tr", // Turkey "travel" => "whois.nic.travel", // tt - Trinidad And Tobago - no whois server assigned "tv" => "tvwhois.verisign-grs.com", // Tuvalu "tw" => "whois.twnic.net.tw", // Taiwan "tz" => "whois.tznic.or.tz", // Tanzania, United Republic Of "ua" => "whois.ua", // Ukraine "ug" => "whois.co.ug", // Uganda "uk" => "whois.nic.uk", // United Kingdom "us" => "whois.nic.us", // United States "uy" => "whois.nic.org.uy", // Uruguay "uz" => "whois.cctld.uz", // Uzbekistan // va - Holy See (vatican City State) - no whois server assigned "vc" => "whois2.afilias-grs.net", // Saint Vincent And The Grenadines "ve" => "whois.nic.ve", // Venezuela "vg" => "whois.adamsnames.tc", // Virgin Islands, British // vi - Virgin Islands, US - no whois server assigned // vn - Viet Nam - no whois server assigned // vu - Vanuatu - no whois server assigned "wf" => "whois.nic.wf", // Wallis and Futuna "ws" => "whois.website.ws", // Samoa "xxx" => "whois.nic.xxx", // ye - Yemen - no whois server assigned "yt" => "whois.nic.yt", // Mayotte "yu" => "whois.ripe.net"); function LookupDomain($domain) { global $whoisservers; $domain_parts = explode(".", $domain); $tld = strtolower(array_pop($domain_parts)); $whoisserver = $whoisservers[$tld]; if(!$whoisserver) { return "Error: No appropriate Whois server found for $domain domain!"; } $result = QueryWhoisServer($whoisserver, $domain); if(!$result) { return "Error: No results retrieved from $whoisserver server for $domain domain!"; } else { while(strpos($result, "Whois Server:") !== FALSE){ preg_match("/Whois Server: (.*)/", $result, $matches); $secondary = $matches[1]; if($secondary) { $result = QueryWhoisServer($secondary, $domain); $whoisserver = $secondary; } } } return "$domain domain lookup results from $whoisserver server:\n\n" . $result; } function generate_password($length = 14) { $chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; $password = substr( str_shuffle( $chars ), 0, $length ); return $password; } function LookupIP($ip) { $whoisservers = array( //"whois.afrinic.net", // Africa - returns timeout error :-( "whois.lacnic.net", // Latin America and Caribbean - returns data for ALL locations worldwide :-) "whois.apnic.net", // Asia/Pacific only "whois.arin.net", // North America only "whois.ripe.net" // Europe, Middle East and Central Asia only ); $results = array(); foreach($whoisservers as $whoisserver) { $result = QueryWhoisServer($whoisserver, $ip); if($result && !in_array($result, $results)) { $results[$whoisserver]= $result; } } $res = "RESULTS FOUND: " . count($results); foreach($results as $whoisserver=>$result) { $res .= "\n\n-------------\nLookup results for " . $ip . " from " . $whoisserver . " server:\n\n" . $result; } return $res; } function ValidateIP($ip) { $ipnums = explode(".", $ip); if(count($ipnums) != 4) { return false; } foreach($ipnums as $ipnum) { if(!is_numeric($ipnum) || ($ipnum > 255)) { return false; } } return $ip; } function ValidateDomain($domain) { if(!preg_match("/^([-a-z0-9]{2,100})\.([a-z\.]{2,8})$/i", $domain)) { return false; } return $domain; } function QueryWhoisServer($whoisserver, $domain) { $port = 43; $timeout = 10; $fp = @fsockopen($whoisserver, $port, $errno, $errstr, $timeout) or die("Socket Error " . $errno . " - " . $errstr); //if($whoisserver == "whois.verisign-grs.com") $domain = "=".$domain; // whois.verisign-grs.com requires the equals sign ("=") or it returns any result containing the searched string. fputs($fp, $domain . "\r\n"); $out = ""; while(!feof($fp)){ $out .= fgets($fp); } fclose($fp); $res = ""; if((strpos(strtolower($out), "error") === FALSE) && (strpos(strtolower($out), "not allocated") === FALSE)) { $rows = explode("\n", $out); foreach($rows as $row) { $row = trim($row); if(($row != '') && ($row{0} != '#') && ($row{0} != '%')) { $res .= $row."\n"; } } } return $res; } $HASH_KEY = "43xkjs81z2h"; function get_max_faction_rank($factionid) { $amount = 0; for($i=1; $i < 25; $i++) { $query = $pdo->prepare("SELECT Rank".$i." FROM factions WHERE ID=:1"); $query->execute(array(':1' => $i)); while($row = $query->fetch(PDO::FETCH_ASSOC)) { if(strlen($row["Rank".$i]) >= 2) { $amount++; } } } return $amount; } function get_job_name($jobid) { $jobname = "Unemployed"; if($jobid == 1) $jobname = "Mechanic"; if($jobid == 2) $jobname = "Garbage man"; if($jobid == 3) $jobname = "Street Sweeper"; if($jobid == 4) $jobname = "Food delivery"; if($jobid == 5) $jobname = "Taxi driver"; if($jobid == 6) $jobname = "Trucker"; if($jobid == 7) $jobname = "Farmer"; return $jobname; } function get_donation_rank($donation_rank) { $donation_name = "None"; if($donation_rank == 1) $donation_name = "Bronze Package"; if($donation_rank == 2) $donation_name = "Silver Package"; if($donation_rank == 3) $donation_name = "Gold Package"; if($donation_rank == 4) $donation_name = "Premium Package"; return $donation_name; } function get_rights_name($rights) { $rights_name = "None"; if($rights == 1) $rights_name = "Weapons warehouse"; if($rights == 2) $rights_name = "Narcotics warehouse"; if($rights == 3) $rights_name = "Narcotics warehouse"; return $rights_name; } function generate_validate($input) { $string1 = "1563yw,2-b"; $string2 = "h4wy#4bd,[]-"; $string3 = strtolower($input); for($i = 0; $i < strlen($string3); $i++) { $string5 = $string4.($i * 4 + 2); } $string4 = $string1.$string2.$string3.$string2.$string5; $validationcode = md5($string4); return $validationcode; } function generate_random($input) { $string1 = "vse35f"; $string2 = date("Y-m-d"); $string3 = strtolower($input); for($i = 0; $i < strlen($string3); $i++) { $string5 = $string4.($i * 4 + 2); } $string4 = $string1.$string2.$string3.$string2.$string5; $validationcode = md5($string4); return $validationcode; } function get_client_ip() { $ipaddress = ''; if ($_SERVER['HTTP_CLIENT_IP']) $ipaddress = $_SERVER['HTTP_CLIENT_IP']; else if($_SERVER['HTTP_X_FORWARDED_FOR']) $ipaddress = $_SERVER['HTTP_X_FORWARDED_FOR']; else if($_SERVER['HTTP_X_FORWARDED']) $ipaddress = $_SERVER['HTTP_X_FORWARDED']; else if($_SERVER['HTTP_FORWARDED_FOR']) $ipaddress = $_SERVER['HTTP_FORWARDED_FOR']; else if($_SERVER['HTTP_FORWARDED']) $ipaddress = $_SERVER['HTTP_FORWARDED']; else if($_SERVER['REMOTE_ADDR']) $ipaddress = $_SERVER['REMOTE_ADDR']; else $ipaddress = 'UNKNOWN'; return $ipaddress; } function get_vehicle_name($vehicleid) { $vehname = "None"; if($vehicleid == 400) $vehname = "Landstalker"; else if($vehicleid == 401) $vehname = "Bravura"; else if($vehicleid == 402) $vehname = "Buffalo"; else if($vehicleid == 403) $vehname = "Linerunner"; else if($vehicleid == 404) $vehname = "Perenail"; else if($vehicleid == 405) $vehname = "Sentinel"; else if($vehicleid == 406) $vehname = "Dumper"; else if($vehicleid == 407) $vehname = "Firetruck"; else if($vehicleid == 408) $vehname = "Trashmaster"; else if($vehicleid == 409) $vehname = "Stretch"; else if($vehicleid == 410) $vehname = "Manana"; else if($vehicleid == 411) $vehname = "Infernus"; else if($vehicleid == 412) $vehname = "Vodooo"; else if($vehicleid == 413) $vehname = "Pony"; else if($vehicleid == 414) $vehname = "Mule"; else if($vehicleid == 415) $vehname = "Cheetah"; else if($vehicleid == 416) $vehname = "Ambulance"; else if($vehicleid == 417) $vehname = "Leviathan"; else if($vehicleid == 418) $vehname = "Moonbeam"; else if($vehicleid == 419) $vehname = "Esperanto"; else if($vehicleid == 420) $vehname = "Taxi"; else if($vehicleid == 421) $vehname = "Washington"; else if($vehicleid == 422) $vehname = "Bobcat"; else if($vehicleid == 423) $vehname = "Mr Whoopee"; else if($vehicleid == 424) $vehname = "BF Injection"; else if($vehicleid == 425) $vehname = "Hunter"; else if($vehicleid == 426) $vehname = "Premier"; else if($vehicleid == 427) $vehname = "S.W.A.T Truck"; else if($vehicleid == 428) $vehname = "Securicar"; else if($vehicleid == 429) $vehname = "Banshee"; else if($vehicleid == 430) $vehname = "Predator"; else if($vehicleid == 431) $vehname = "Bus"; else if($vehicleid == 432) $vehname = "Rhino"; else if($vehicleid == 433) $vehname = "Barracks"; else if($vehicleid == 434) $vehname = "Hotknife"; else if($vehicleid == 435) $vehname = "Trailer"; else if($vehicleid == 436) $vehname = "Previon"; else if($vehicleid == 437) $vehname = "Coach"; else if($vehicleid == 438) $vehname = "Cabbie"; else if($vehicleid == 439) $vehname = "Stallion"; else if($vehicleid == 440) $vehname = "Rumpo"; else if($vehicleid == 441) $vehname = "RC Bandit"; else if($vehicleid == 442) $vehname = "Romero"; else if($vehicleid == 443) $vehname = "Packer"; else if($vehicleid == 444) $vehname = "Monster"; else if($vehicleid == 445) $vehname = "Admiral"; else if($vehicleid == 446) $vehname = "Squalo"; else if($vehicleid == 447) $vehname = "Seasparrow"; else if($vehicleid == 448) $vehname = "Pizza Boy"; else if($vehicleid == 449) $vehname = "Tram"; else if($vehicleid == 450) $vehname = "Trailer 2"; else if($vehicleid == 451) $vehname = "Turismo"; else if($vehicleid == 452) $vehname = "Speeder"; else if($vehicleid == 453) $vehname = "Refeer"; else if($vehicleid == 454) $vehname = "Tropic"; else if($vehicleid == 455) $vehname = "Flatbed"; else if($vehicleid == 456) $vehname = "Yankee"; else if($vehicleid == 457) $vehname = "Caddy"; else if($vehicleid == 458) $vehname = "Solair"; else if($vehicleid == 459) $vehname = "Top Fun"; else if($vehicleid == 460) $vehname = "Skimmer"; else if($vehicleid == 461) $vehname = "PCJ-600"; else if($vehicleid == 462) $vehname = "Faggio"; else if($vehicleid == 463) $vehname = "Freeway"; else if($vehicleid == 464) $vehname = "RC Baron"; else if($vehicleid == 465) $vehname = "RC Raider"; else if($vehicleid == 466) $vehname = "Glendade"; else if($vehicleid == 467) $vehname = "Oceanic"; else if($vehicleid == 468) $vehname = "Sanchez"; else if($vehicleid == 469) $vehname = "Sparrow"; else if($vehicleid == 470) $vehname = "Patriot"; else if($vehicleid == 471) $vehname = "Quad"; else if($vehicleid == 472) $vehname = "Coastguard"; else if($vehicleid == 473) $vehname = "Dinghy"; else if($vehicleid == 474) $vehname = "Hermes"; else if($vehicleid == 475) $vehname = "Sabre"; else if($vehicleid == 476) $vehname = "Rustler"; else if($vehicleid == 477) $vehname = "ZR-350"; else if($vehicleid == 478) $vehname = "Walton"; else if($vehicleid == 479) $vehname = "Regina"; else if($vehicleid == 480) $vehname = "Comet"; else if($vehicleid == 481) $vehname = "BMX"; else if($vehicleid == 482) $vehname = "Burrito"; else if($vehicleid == 483) $vehname = "Camper"; else if($vehicleid == 484) $vehname = "Marquis"; else if($vehicleid == 485) $vehname = "Baggage"; else if($vehicleid == 486) $vehname = "Dozer"; else if($vehicleid == 487) $vehname = "Maverick"; else if($vehicleid == 488) $vehname = "News Maverick"; else if($vehicleid == 489) $vehname = "Rancher"; else if($vehicleid == 490) $vehname = "Federal Rancher"; else if($vehicleid == 491) $vehname = "Virgo"; else if($vehicleid == 492) $vehname = "Greenwood"; else if($vehicleid == 493) $vehname = "Jetmax"; else if($vehicleid == 494) $vehname = "Hotring"; else if($vehicleid == 495) $vehname = "Sandking"; else if($vehicleid == 496) $vehname = "Blista Compact"; else if($vehicleid == 497) $vehname = "Police Maverick"; else if($vehicleid == 498) $vehname = "Boxville"; else if($vehicleid == 499) $vehname = "Benson"; else if($vehicleid == 500) $vehname = "Mesa"; else if($vehicleid == 501) $vehname = "RC Goblin"; else if($vehicleid == 502) $vehname = "Hotring A"; else if($vehicleid == 503) $vehname = "Hotring B"; else if($vehicleid == 504) $vehname = "Blooding Banger"; else if($vehicleid == 505) $vehname = "Rancher"; else if($vehicleid == 506) $vehname = "Super GT"; else if($vehicleid == 507) $vehname = "Elegant"; else if($vehicleid == 508) $vehname = "Journey"; else if($vehicleid == 509) $vehname = "Bike"; else if($vehicleid == 510) $vehname = "Mountain Bike"; else if($vehicleid == 511) $vehname = "Beagle"; else if($vehicleid == 512) $vehname = "Cropduster"; else if($vehicleid == 513) $vehname = "Stuntplane"; else if($vehicleid == 514) $vehname = "Petrol"; else if($vehicleid == 515) $vehname = "Roadtrain"; else if($vehicleid == 516) $vehname = "Nebula"; else if($vehicleid == 517) $vehname = "Majestic"; else if($vehicleid == 518) $vehname = "Buccaneer"; else if($vehicleid == 519) $vehname = "Shamal"; else if($vehicleid == 520) $vehname = "Hydra"; else if($vehicleid == 521) $vehname = "FCR-300"; else if($vehicleid == 522) $vehname = "NRG-500"; else if($vehicleid == 523) $vehname = "HPV-1000"; else if($vehicleid == 524) $vehname = "Cement Truck"; else if($vehicleid == 525) $vehname = "Towtruck"; else if($vehicleid == 526) $vehname = "Fortune"; else if($vehicleid == 527) $vehname = "Cadrona"; else if($vehicleid == 528) $vehname = "Federal Truck"; else if($vehicleid == 529) $vehname = "Williard"; else if($vehicleid == 530) $vehname = "Fork Lift"; else if($vehicleid == 531) $vehname = "Tractor"; else if($vehicleid == 532) $vehname = "Combine"; else if($vehicleid == 533) $vehname = "Feltzer"; else if($vehicleid == 534) $vehname = "Remington"; else if($vehicleid == 535) $vehname = "Slamvan"; else if($vehicleid == 536) $vehname = "Blade"; else if($vehicleid == 537) $vehname = "Freight"; else if($vehicleid == 538) $vehname = "Streak"; else if($vehicleid == 539) $vehname = "Vortex"; else if($vehicleid == 540) $vehname = "Vincent"; else if($vehicleid == 541) $vehname = "Bullet"; else if($vehicleid == 542) $vehname = "Clover"; else if($vehicleid == 543) $vehname = "Sadler"; else if($vehicleid == 544) $vehname = "FireTruck Type B"; else if($vehicleid == 545) $vehname = "Hustler"; else if($vehicleid == 546) $vehname = "Intruder"; else if($vehicleid == 547) $vehname = "Primo"; else if($vehicleid == 548) $vehname = "Cargobob"; else if($vehicleid == 549) $vehname = "Tampa"; else if($vehicleid == 550) $vehname = "Sunrise"; else if($vehicleid == 551) $vehname = "Merit"; else if($vehicleid == 552) $vehname = "Utility Van"; else if($vehicleid == 553) $vehname = "Nevada"; else if($vehicleid == 554) $vehname = "Yosemite"; else if($vehicleid == 555) $vehname = "Windsor"; else if($vehicleid == 556) $vehname = "Monster A"; else if($vehicleid == 557) $vehname = "Monster B"; else if($vehicleid == 558) $vehname = "Uranus"; else if($vehicleid == 559) $vehname = "Jester"; else if($vehicleid == 560) $vehname = "Sultan"; else if($vehicleid == 561) $vehname = "Stratum"; else if($vehicleid == 562) $vehname = "Elegy"; else if($vehicleid == 563) $vehname = "Raindance"; else if($vehicleid == 564) $vehname = "RC Tiger"; else if($vehicleid == 565) $vehname = "Flash"; else if($vehicleid == 566) $vehname = "Tahoma"; else if($vehicleid == 567) $vehname = "Savanna"; else if($vehicleid == 568) $vehname = "Bandito"; else if($vehicleid == 569) $vehname = "Freight Flat"; else if($vehicleid == 570) $vehname = "Streak"; else if($vehicleid == 571) $vehname = "Kart"; else if($vehicleid == 572) $vehname = "Mower"; else if($vehicleid == 573) $vehname = "Duneride"; else if($vehicleid == 574) $vehname = "Sweeper"; else if($vehicleid == 575) $vehname = "Broadway"; else if($vehicleid == 576) $vehname = "Tornado"; else if($vehicleid == 577) $vehname = "AT-400"; else if($vehicleid == 578) $vehname = "DFT-30"; else if($vehicleid == 579) $vehname = "Huntley"; else if($vehicleid == 580) $vehname = "Stafford"; else if($vehicleid == 581) $vehname = "BF-400"; else if($vehicleid == 582) $vehname = "Raindance"; else if($vehicleid == 583) $vehname = "News Van"; else if($vehicleid == 584) $vehname = "Tug"; else if($vehicleid == 585) $vehname = "Petrol Tanker"; else if($vehicleid == 586) $vehname = "Wayfarer"; else if($vehicleid == 587) $vehname = "Euros"; else if($vehicleid == 588) $vehname = "Hotdog"; else if($vehicleid == 589) $vehname = "Club"; else if($vehicleid == 590) $vehname = "Freight Box"; else if($vehicleid == 591) $vehname = "Trailer 3"; else if($vehicleid == 592) $vehname = "Andromada"; else if($vehicleid == 593) $vehname = "Dodo"; else if($vehicleid == 594) $vehname = "RC Cam"; else if($vehicleid == 595) $vehname = "Launch"; else if($vehicleid == 596) $vehname = "LSPD Patrol Car"; else if($vehicleid == 597) $vehname = "FBI Patrol Car"; else if($vehicleid == 598) $vehname = "B.C.S.D Patrol Car"; else if($vehicleid == 599) $vehname = "B.C.S.D Patrol Ranger"; else if($vehicleid == 600) $vehname = "Picador"; else if($vehicleid == 601) $vehname = "S.W.A.T Tank"; else if($vehicleid == 602) $vehname = "Alpha"; else if($vehicleid == 603) $vehname = "Phoenix"; else if($vehicleid == 609) $vehname = "Boxville"; else $vehname = "None"; return $vehname; } function get_item_name($item_ID) { $item_NAME = " "; if($item_ID == 1) $item_NAME = "Brassknuckles"; else if($item_ID == 2) $item_NAME = "Golfclub"; else if($item_ID == 3) $item_NAME = "Nitestick"; else if($item_ID == 4) $item_NAME = "Knife"; else if($item_ID == 5) $item_NAME = "Baseball Bat"; else if($item_ID == 6) $item_NAME = "Shovel"; else if($item_ID == 7) $item_NAME = "Poolstick"; else if($item_ID == 8) $item_NAME = "Katana"; else if($item_ID == 9) $item_NAME = "Chainsaw"; else if($item_ID == 10) $item_NAME = "Dildo"; else if($item_ID == 11) $item_NAME = "Dildo 2"; else if($item_ID == 12) $item_NAME = "Vibrator"; else if($item_ID == 13) $item_NAME = "Vibrator 2"; else if($item_ID == 14) $item_NAME = "Flowers"; else if($item_ID == 15) $item_NAME = "Cane"; else if($item_ID == 16) $item_NAME = "Frag Grenade"; else if($item_ID == 17) $item_NAME = "Tear Gas Grenade"; else if($item_ID == 22) $item_NAME = "M1911"; else if($item_ID == 23) $item_NAME = "M1911 (SILENCED)"; else if($item_ID == 24) $item_NAME = "Desert Eagle"; else if($item_ID == 25) $item_NAME = "Shotgun"; else if($item_ID == 26) $item_NAME = "Sawnoff Shotgun"; else if($item_ID == 27) $item_NAME = "Spas12"; else if($item_ID == 28) $item_NAME = "Micro Uzi"; else if($item_ID == 29) $item_NAME = "HK MP5"; else if($item_ID == 30) $item_NAME = "AK-47"; else if($item_ID == 31) $item_NAME = "M4 Carbine"; else if($item_ID == 32) $item_NAME = "Tec-9"; else if($item_ID == 33) $item_NAME = "Country Rifle"; else if($item_ID == 34) $item_NAME = "Sniper Rifle"; else if($item_ID == 41) $item_NAME = "Spray Can"; else if($item_ID == 42) $item_NAME = "Fire Extinguisher"; else if($item_ID == 43) $item_NAME = "Camera"; else if($item_ID == 100) $item_NAME = ".45 ACP"; else if($item_ID == 101) $item_NAME = ".45 ACP .ext"; else if($item_ID == 106) $item_NAME = ".50AE"; else if($item_ID == 107) $item_NAME = ".50AE .ext"; else if($item_ID == 110) $item_NAME = "12-G BIRDSHOT"; else if($item_ID == 111) $item_NAME = "12-G BUCKSHOT"; else if($item_ID == 112) $item_NAME = "12-G SLUG"; else if($item_ID == 113) $item_NAME = "12-G BEANBAG"; else if($item_ID == 115) $item_NAME = "9x19mm"; else if($item_ID == 116) $item_NAME = "9x19mm .ext"; else if($item_ID == 120) $item_NAME = "7.62x39mm"; else if($item_ID == 121) $item_NAME = "5.56x45mm"; else if($item_ID == 122) $item_NAME = "7.62x39mm T"; else if($item_ID == 123) $item_NAME = "5.56x45mm T"; else if($item_ID == 125) $item_NAME = "7.62x51mm"; else if($item_ID == 126) $item_NAME = "7.62x39mm (drum)"; else if($item_ID == 127) $item_NAME = "5.56x45mm (drum)"; else if($item_ID == 128) $item_NAME = "5.56x45mm RUBBER"; else if($item_ID == 200) $item_NAME = "Pizza Slice"; else if($item_ID == 201) $item_NAME = "Hamburger"; else if($item_ID == 202) $item_NAME = "Chickenburger"; else if($item_ID == 203) $item_NAME = "French Fries"; else if($item_ID == 204) $item_NAME = "Potato Wedges"; else if($item_ID == 205) $item_NAME = "Chicken Legs"; else if($item_ID == 206) $item_NAME = "Salad"; else if($item_ID == 207) $item_NAME = "Pizza Combo"; else if($item_ID == 208) $item_NAME = "Buffalo Wings"; else if($item_ID == 209) $item_NAME = "Burger Combo"; else if($item_ID == 210) $item_NAME = "Rice"; else if($item_ID == 211) $item_NAME = "Pasta"; else if($item_ID == 212) $item_NAME = "Chips"; else if($item_ID == 213) $item_NAME = "Sandwich"; else if($item_ID == 214) $item_NAME = "Yellowfish"; else if($item_ID == 215) $item_NAME = "Flatfish"; else if($item_ID == 216) $item_NAME = "Rainbow Fish"; else if($item_ID == 217) $item_NAME = "Mackerel"; else if($item_ID == 300) $item_NAME = "Cigar"; else if($item_ID == 301) $item_NAME = "Vodka"; else if($item_ID == 302) $item_NAME = "Beer"; else if($item_ID == 303) $item_NAME = "Sprunk"; else if($item_ID == 400) $item_NAME = "Dice"; else if($item_ID == 401) $item_NAME = "Mask"; else if($item_ID == 402) $item_NAME = "Walkie Talkie"; else if($item_ID == 404) $item_NAME = "Watch"; else if($item_ID == 405) $item_NAME = "Cellphone"; else if($item_ID == 406) $item_NAME = "Toolkit"; else if($item_ID == 407) $item_NAME = "Lottery Ticket"; else if($item_ID == 408) $item_NAME = "MP3 Player"; else if($item_ID == 409) $item_NAME = "Cannabis Seeds"; else if($item_ID == 410) $item_NAME = "Growing Chemical"; else if($item_ID == 411) $item_NAME = "Baking Soda"; else if($item_ID == 415) $item_NAME = "Police Scanner"; else if($item_ID == 417) $item_NAME = "Firewood"; else if($item_ID == 500) $item_NAME = "ACID"; else if($item_ID == 501) $item_NAME = "Cocaine"; else if($item_ID == 502) $item_NAME = "Crystal-meth"; else if($item_ID == 503) $item_NAME = "Ecstasy"; else if($item_ID == 504) $item_NAME = "Meth"; else if($item_ID == 505) $item_NAME = "Heroin"; else if($item_ID == 506) $item_NAME = "Cannabis"; else if($item_ID == 507) $item_NAME = "Crack"; else if($item_ID == 801) $item_NAME = "Spare Engine"; else if($item_ID == 802) $item_NAME = "Spare Battery"; else if($item_ID == 803) $item_NAME = "Spare Tire"; else if($item_ID == 1000) $item_NAME = "Kevlar"; else if($item_ID == 1001) $item_NAME = "Health"; else if($item_ID == 1002) $item_NAME = "Silencer"; else if($item_ID == 1003) $item_NAME = "Boombox"; else if($item_ID == 1004) $item_NAME = "Bomb"; else if($item_ID == 1005) $item_NAME = "Bulletproof Vest"; else if($item_ID == 1006) $item_NAME = "Backpack"; else if($item_ID == 1007) $item_NAME = "Fishing Rod"; else if($item_ID == 1008) $item_NAME = "Gas Can"; else if($item_ID == 1050) $item_NAME = "Pack of Cigarettes"; else if($item_ID == 1051) $item_NAME = "Worms"; else $item_NAME = "Item [".$item_ID."]"; return $item_NAME; } //Donator functions. function handle_buy_cash($name, $amount) { $query = $pdo->prepare("UPDATE accounts SET Cash=Cash+:1 WHERE Name=:2"); $query->execute(array(':1' => $amount, ':2' => $name)); return 1; } function handle_buy_car($name, $vehicleID) { $plate = 1000 + rand(0,99999999); $query = $pdo->prepare("INSERT INTO `vehicles` (`Model`,`X`,`Y`,`Z`,`Angle`,`ColorOne`,`ColorTwo`,`Owner`,`Value`,`Fuel`,`Plate`,`Health`,`Donate`) VALUES (:1,1917.7135,-2256.3835,13.2139,179.9601,0,0,:2,0,100,:3,1000.0,1)"); $query->execute(array(':1' => $vehicleID, ':2' => $name, ':3' => $plate)); return 1; } function handle_buy_carticket($name, $amount){ $query = $pdo->prepare("UPDATE accounts SET CarTicket=CarTicket+:1 WHERE Name=:2"); $query->execute(array(':1' => $amount, ':2' => $name)); return 1; } //$skill = "9mmSkill" or "uziSkill" or "sawnoffSkill" function handle_buy_skill($name, $skill) { $query = $pdo->prepare("UPDATE accounts SET :1=999 WHERE Name=:2"); $query->execute(array(':1' => $skill, ':2' => $name)); return 1; } function handle_buy_gunlic($name) { $query = $pdo->prepare("UPDATE accounts SET GunLic=1 WHERE Name=:1"); $query->execute(array(':1' => $name)); return 1; } ?>
if (!empty($_GET['domain'])) { $domain = $_GET['domain']; }