markehdotme |
Regular user |
|
|
Joined: Mar 15, 2011 |
Posts: 7 |
|
|
|
|
|
|
|
Here you go
Code: |
<?php
// Veritabanını çekelim
include('config.php');
// Anti SQL İnjection Function By SeveNStyLe
FUNCTION v4guvenlik($text) {
$text=htmlspecialchars($text);
$text=str_replace("'", "", $text);
$text=str_replace("TRUNCATE", "", $text);
$text=str_replace("truncate", "", $text);
$text=str_replace("update", "", $text);
$text=str_replace("UPDATE", "", $text);
$text=str_replace("from", "", $text);
$text=str_replace("FROM", "", $text);
$text=str_replace("drop", "", $text);
$text=str_replace("DROP", "", $text);
$text=str_replace("select", "", $text);
$text=str_replace("SELECT", "", $text);
$text=str_replace("delete", "", $text);
$text=str_replace("DELETE", "", $text);
$text=str_replace("insert into", "", $text);
$text=str_replace("INSERT INTO", "", $text);
$text=str_replace("where", "", $text);
$text=str_replace("WHERE", "", $text);
$text=str_replace("procedure", "", $text);
$text=str_replace("PROCEDURE", "", $text);
$text=str_replace("exec", "", $text);
$text=str_replace("EXEC", "", $text);
$text=str_replace("--", "", $text);
return $text;
}
// Web Sitesi Bilgileri
$websettings = odbc_exec($conn, "SELECT * FROM _WEBSETTINGS");
$title = odbc_result($websettings, 1);
$keywords = odbc_result($websettings, 2);
$description = odbc_result($websettings, 3);
$forum = odbc_result($websettings, 4);
$path = odbc_result($websettings, 5);
$siteurl = $_SERVER['HTTP_HOST'];
//Server Durum Bilgisi
if ($fp=@fsockopen($ipx,15100, $ERROR_NO, $ERROR_STR,(float)0.5))
{
fclose($fp);
$login = '<font face="Tahoma" style="font-size: 8pt;" color="#6cbbd9">Açık</font>';
}
else
{
$login = '<font face="Tahoma" style="font-size: 8pt;" color="#ff0000">Kapalı</font>';
}
if ($fp2=@fsockopen($ipx,15001, $ERROR_NO, $ERROR_STR,(float)0.5))
{
fclose($fp2);
$game = '<font face="Tahoma" style="font-size: 8pt;" color="#6cbbd9">Açık</font>';
}
else
{
$game = '<font face="Tahoma" style="font-size: 8pt;" color="#ff0000">Kapalı</font>';
}
// Varmı yokmu fonksiyonu
FUNCTION verivarmi($veri)
{
switch($veri){
case $veri: {$var = $veri;} break;
default:{$var = "Bulunamadi";} break;
}
return $var;
}
//Online Bilgisi ve İstatistikler
$onlinequery = odbc_exec($conn, "SELECT count(StrAccountID) FROM CURRENTUSER");
$toplamonline = odbc_result($onlinequery, 1);
$topaccquery = odbc_exec($conn, "SELECT count(StrAccountID) FROM TB_USER");
$toplamacc = odbc_result($topaccquery, 1);
$toplamkarus = odbc_exec($conn, "SELECT count(StrAccountID) FROM ACCOUNT_CHAR WHERE bNation = '1'");
$toplamkarusuyelik = odbc_result($toplamkarus, 1);
$toplamhuman = odbc_exec($conn, "SELECT count(StrAccountID) FROM ACCOUNT_CHAR WHERE bNation = '2'");
$toplamhumanuyelik = odbc_result($toplamhuman, 1);
$toplamkarakterquery = odbc_exec($conn, "SELECT count(StrAccountID) FROM ACCOUNT_CHAR");
$toplamkarakter = odbc_result($toplamkarakterquery, 1);
$toplamkaruskarakter = odbc_exec($conn, "SELECT count(StrUserID) FROM USERDATA WHERE Nation = '1'");
$toplamkaruschar = odbc_result($toplamkaruskarakter, 1);
$toplamhumankarakter = odbc_exec($conn, "SELECT count(StrUserID) FROM USERDATA WHERE Nation = '2'");
$toplamhumanchar = odbc_result($toplamhumankarakter, 1);
// Nation
function GNation($nation)
{
if ($nation == 1) {
$nation = '<img src="images/seven/karus.gif">';
} elseif ($nation == 2) {
$nation = '<img src="images/seven/elmo.gif">';
}
return $nation;
}
function GNation2($nation)
{
if ($nation == 1) {
$nation = 'Karus';
} elseif ($nation == 2) {
$nation = 'Human';
}
return $nation;
}
FUNCTION GGNation($nation)
{
if ($nation == '1') {
$nation = '<img src="images/karus.png" alt="" />';
} elseif ($nation == '2') {
$nation = '<img src="images/elmo.png" alt="" />';
}
return $nation;
}
// Grade
function GGrade($grade)
{
if ($grade <= 73999) {$grade = '<img width="15px" height="15px" src="images/seven/clanranks/gn_grade_5.gif">'; }
elseif ($grade <= 143999) {$grade = '<img width="15px" height="15px" src="images/seven/clanranks/gn_grade_4.gif">';}
elseif ($grade <= 359000) {$grade = '<img width="15px" height="15px" src="images/seven/clanranks/gn_grade_3.gif">';}
elseif ($grade <= 719999) {$grade = '<img width="15px" height="15px" src="images/seven/clanranks/gn_grade_2.gif">'; }
elseif ($grade >= 720000) {$grade = '<img width="15px" height="15px" src="images/seven/clanranks/gn_grade_1.gif">';}
return $grade;
}
// Yorum sayısı
$yorumquery = odbc_exec($conn, "SELECT count(id) FROM _COMMENTS WHERE strKonuId = '$id' AND strDurum = '1'");
$yorumsayisi = odbc_result($yorumquery, 1);
// Panel bilgisi
$panelsettings = odbc_exec($conn, "SELECT * FROM _PANELSETTINGS");
$up = odbc_result($panelsettings, 1);
$usergoster = odbc_result($panelsettings, 2);
$clangoster = odbc_result($panelsettings, 3);
$girisyap = odbc_result($panelsettings, 4);
$kayitol = odbc_result($panelsettings, 5);
$sifredegistir = odbc_result($panelsettings, 6);
$deloswar = odbc_result($panelsettings, 7);
$lunarwar = odbc_result($panelsettings, 8);
$paypal_adresi = odbc_result($panelsettings, 9);
// PUS Ayarları
$can = odbc_exec($conn,"select * from _PUSAYARLARI");
$ncscash = odbc_result($can,1);
$ntscash = odbc_result($can,2);
$pusstatus = odbc_result($can,3);
$ncsstatus = odbc_result($can,4);
$ntsstatus = odbc_result($can,5);
$classcash = odbc_result($can,6);
$classstatus = odbc_result($can,7);
// Tarih
date_default_timezone_set('Europe/Istanbul');
$date = date("j/m/Y");
function sevenpanelv4config($sp4)
{
global $scripturl;
if (!empty($_SERVER['SERVER_NAME']))
$site = $_SERVER['SERVER_NAME'];
elseif (!empty($_SERVER['HTTP_HOST']))
$site = $_SERVER['HTTP_HOST'];
else
$site = preg_match('~(http|ftp)[s]?:\/\/[w\.]*([a-zA-Z0-9\.]+)\/~i', $scripturl, $match) ? $match[2] : '';
if (empty($site))
return;
if (strpos($site, 'www.') !== false)
$site = substr($site, 4);
$sevenpanel = sha1(sha1(md5($site. 'karistir')). 'karistir2');
$sevenpanel = substr($sevenpanel, 0, 25);
$sevenpanel = wordwrap($sevenpanel, 5, '-', true);
$sevenpanel = mb_strtoupper($sevenpanel);
if ($sevenpanel != $sp4 || $sevenpanel !== $sp4)
die ('<b>Server Sahibine Duyurulur:</b> Lutfen SevenPanel yetkili saticisindan lisans satin aliniz.');
}
sevenpanelv4config($key);
?> |
|
|