- ?php
- /*
- ERROR_REPORTING(E_ALL);
- if(!file_exists('./inc/config.inc.php')){
- header('Location: install.php');
- }*/
- ini_set('display_errors','Off'); //Fehlerreporting on
- error_reporting(E_ALL); //Fehlerreporting alles
- session_name("m2hp");
- session_start();
- require("./inc/phpFastCache.class.php"); //für fast_cache
- $fast_cache = new phpFastCache(); //für fast_cache
- require("./inc/config.inc.php");
- require("./inc/rights.inc.php");
- require("./inc/functions.inc.php");
- $sqlHp = new mysqli(SQL_HP_HOST, SQL_HP_USER, SQL_HP_PASS);
- $sqlServ = new mysqli(SQL_HOST, SQL_USER, SQL_PASS);
- $ip = (!empty($_SERVER["HTTP_CF_CONNECTING_IP"])?trim(addslashes($_SERVER["HTTP_CF_CONNECTING_IP"])):trim(addslashes($_SERVER['REMOTE_ADDR'])));
- $fprint = (!empty($_SESSION['fingerprint'])?$_SESSION['fingerprint']:null);
- $t = 60*60*24*1;
- $qry_get = 'SELECT * FROM account.hp_visitor_log WHERE (`ip` = "'.$ip.'" OR `fprint` = "'.$fprint.'") AND (`time` + '.$t.' - UNIX_TIMESTAMP()) > 0;';
- $qry_inc = 'INSERT INTO account.hp_visitor_log (`ip`,`fprint`,`time`) VALUES ("'.$ip.'","'.$fprint.'",UNIX_TIMESTAMP());';
- $exec_get = mysql_query($qry_get);
- $i = 0;
- while($data = mysql_fetch_object($exec_get)){
- if(!empty($data) && $data != null){
- if($data->status == "BLOCK")
- throw new Exception("Deine Ip ist Gesperrt wegen mehrere Verstösse, Das Kiyoshi2 Team! [".$fprint."]",0);
- if($data->ip == $ip)
- $i++;
- }
- }
- if($i == 0 && $fprint != null){
- mysql_query($qry_inc)or die(mysql_error());
- }
- if($sqlHp->connect_errno > 0 || $sqlServ->connect_errno > 0){
- exit("Verbindung zur Datenbank fehlgeschlagen: Abbruch!");
- }
- require("./inc/head.inc.php");
- echo '<?xml version=1.0"?>';
- ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html>
- <head>
- <title><?PHP echo $serverSettings['titel_page']; ?></title>
- <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
- <link rel="stylesheet" href="style.css">
- </head>
- <body>
- <?php
- include('./inc/navi.inc.php');
- ?>
- <div id="header"></div>
- <div id="banner">
- <div class="socialMedia">
- <ul>
- <li><a href="https://www.youtube.com/channel/UCfjZLwMPfDmBcjCxR239Bkw" class="bannerYoutube"></a></li><div class="bannerPlaceholder"></div>
- <li><a href="https://www.facebook.com/Kiyoshi2-1396558690357868/?fref=ts" class="bannerFacebook"></a></li><div class="bannerPlaceholder"></div>
- <li><a href="#" class="bannerElitepvpers"></a></li>
- </ul>
- <p class="bannerText"><span style="color: #75a3ea;">Kiyoshi</span> Social Media</p>
- </div>
- <div class="bannerStatistik">
- <p class="playerOnline"><span class="onlineAnzahl">
- <?php
- $content1 = $fast_cache->get("player_online");
- if($content1 == null){
- $output = mysqli_query($sqlServ, "SELECT COUNT(*) as count FROM player.player WHERE DATE_SUB(NOW(), INTERVAL 10 MINUTE) < last_play;");
- //$online_count = mysqli_fetch_object($output)->count+100; //frisierte Anzahl an Spielern omline -- hier +100!!
- $online_count = mysqli_fetch_object($output)->count;
- $content1 = $online_count;
- $fast_cache->set("player_online",$content1,300);
- }
- echo $content1;
- ?>
- </span><br>Spieler sind<br> Online</p>
- <p class="bannerAccounts"><span class="anzahlAccounts">
- <?php
- $content2 = $fast_cache->get("anzahl_accounts");
- if($content2 == null){
- $abfrage = mysqli_query($sqlServ, "SELECT COUNT(id) FROM account.account");
- $menge = mysqli_fetch_row($abfrage);
- $menge = $menge[0];
- $content2 = $menge;
- $fast_cache->set("anzahl_accounts",$content2,300);
- }
- echo $content2;
- ?>
- </span> Accounts</p>
- <p class="bannerCharaktere"><span class="anzahlCharaktere">
- <?php
- $content3 = $fast_cache->get("anzahl_char");
- if($content3 == null){
- $abfrage = mysqli_query($sqlServ, "SELECT COUNT(id) FROM player.player");
- $menge = mysqli_fetch_row($abfrage);
- $menge = $menge[0];
- $content3 = $menge;
- $fast_cache->set("anzahl_char",$content3,300);
- }
- echo $content3;
- ?>
- </span> Charaktere</p>
- <p class="bannerGilde"><span class="anzahlGilde">
- <?php
- $content4 = $fast_cache->get("anzahl_gilden");
- if($content4 == null){
- $abfrage = mysqli_query($sqlServ, "SELECT COUNT(id) FROM player.guild");
- $menge = mysqli_fetch_row($abfrage);
- $menge = $menge[0];
- $content4 = $menge;
- $fast_cache->set("anzahl_gilden",$content4,300);
- }
- echo $content4;
- ?>
- </span> Gilden</p>
- </div>
- <div class="bannerStatus" style=" float: left; width: 620px;">
- <ul>
- <?php
- include('./inc/status.inc.php');
- ?>
- </ul>
- </div>
- </div>
- <div id="main">
- <div class="mainContainer">
- <?PHP
- $includeDir = ".".DIRECTORY_SEPARATOR."pages".DIRECTORY_SEPARATOR;
- $includeDefault = $includeDir."home.php";
- if(isset($_GET['s']) && !empty($_GET['s'])){
- $_GET['s'] = str_replace("\0", '', $_GET['s']);
- $includeFile = basename(realpath($includeDir.$_GET['s'].".php"));
- $includePath = $includeDir.$includeFile;
- if(!empty($includeFile) && file_exists($includePath)) {
- include($includePath);
- }
- else{
- include($includeDefault);
- }
- }
- else {
- include($includeDefault);
- }
- ?>
- </div>
- </div>
- <div id="footer">
- <p class="footerText">
- Copyright © 2016 <a href="">Kiyoshi</a>. All rights reserved.
- Designed and Coded by <a href="">95Industries</a>.
- </p>
- <div class="socialMediaFooter">
- <ul>
- <li><a href="https://www.youtube.com/channel/UCfjZLwMPfDmBcjCxR239Bkw" class="bannerYoutube"></a></li><div class="bannerPlaceholder"></div>
- <li><a href="https://www.facebook.com/Kiyoshi2-1396558690357868/" class="bannerFacebook"></a></li><div class="bannerPlaceholder"></div>
- <li><a href="http://www.elitepvpers.com/forum/members/5451606-andreas-.html" class="bannerElitepvpers"></a></li>
- </ul>
- <br>
- <br>
- <p class="bannerText"><span style="color: #75a3ea;">95Industries</span> Social Media</p>
- </div>
- </div>
- </body>
- </html>
- <?PHP
- mysqli_close($sqlServ);
- ?>
- <a href="https://www.metin2pserver.info" title="Metin2 P Server">Metin2 P Server</a>
meine fehler meldung
[29-May-2017 05:26:36 UTC] PHP Deprecated: mysql_query(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/kiyoshik/public_html/index.php on line 31
[29-May-2017 05:26:36 UTC] PHP Warning: mysql_query(): Access denied for user 'root'@'localhost' (using password: NO) in /home/kiyoshik/public_html/index.php on line 31
[29-May-2017 05:26:36 UTC] PHP Warning: mysql_query(): A link to the server could not be established in /home/kiyoshik/public_html/index.php on line 31
[29-May-2017 05:26:36 UTC] PHP Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/kiyoshik/public_html/index.php on line 33
[29-May-2017 05:29:52 UTC] PHP Deprecated: mysql_query(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/kiyoshik/public_html/index.php on line 31
[29-May-2017 05:29:52 UTC] PHP Warning: mysql_query(): Access denied for user 'root'@'localhost' (using password: NO) in /home/kiyoshik/public_html/index.php on line 31
[29-May-2017 05:29:52 UTC] PHP Warning: mysql_query(): A link to the server could not be established in /home/kiyoshik/public_html/index.php on line 31
[29-May-2017 05:29:52 UTC] PHP Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/kiyoshik/public_html/index.php on line 33