Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Netika Sintakse

Parašė Dzinglis· 2013 Sau. 18 18:01:36
#5


<?php
include('config.php');
 
if(!$dbdata)
	die("Sistema neįrašyta, norėdami ją įrašyti spauskite <a href='install.php'>čia</a>!");
 
$sistema = 0; // 0 - mokejimai.lt, 1 - fortumo.com, 2 - vpsnet.lt, 3 - static.lt
$amxbans_version = "0"; //0 - amxbans 5, 1 - amxbans 6 ir amxbans GM
$makro = "0"; //1 - on, 0 - off || jei on, butinai nusistatyti makro nustatymus!!
$sms_status = "1"; //1 - on, 0 - off || jei on, sms siuntimas ijungas.
 
$connect = @mysql_connect($dbhost, $dbuser, $dbpass) or die(mysql_error()); //Nieko nekeisti
$select = @mysql_select_db($dbdata, $connect) or die(mysql_error()); //Nieko nekeisti
$ip = $_SERVER['REMOTE_ADDR']; //Nieko nekeisti
$i = 1; //Nieko nekeisti
$ok = "OK "; //Nieko nekeisti
include '/functions.php';
 
//numbers of bans/unbans/admins and title
$bansnm = "10";
$unbannm = "10";
$adminsnm = "10"; 
$unban_title = "SMS Unban";
 
//WEB Nustatymai
$style = "green"; //green or grey
$lastbans_on = "1";
$lastunbans_on = "1";
$topadmins = "1";
 
$web_admin_name = "admin"; //CHANGE
$web_admin_pass = "admin"; //CHANGE
 
//SMS nustatymai (Mokejimai.lt) !!! JEI $sistema = 0 !!!
$projectid = ""; //mokejimai.lt projekto id
$sign_pass = ""; //mokejimai.lt projekto sign slaptazodis
 
//SMS nustatymai (Fortumo.com) !!! JEI $sistema = 1 !!!
$billing = 1; //Tikrinimas ar zinute yra apmoketa. 0 - isjungta, 1 - ijungta.
$secret = ""; //Secret
 
//SMS nustatymai (Vpsnet.lt) !!! JEI $sistema = 2 !!!
$vpsnet_pass = ""; //VPSnet.lt raktazodzio slaptazodis.
 
//SMS nustatymai (Static.lt) !!! JEI $sistema = 3 !!!
$static_pass = ""; //Static.lt raktazodzio slaptazodis.
 
//Makro nustatymai
$projectid = ""; //projekto id mokejimai.lt sistemoje
$mkaina = ""; //kaina centais
$signPassword = ""; //sign slaptazodis sugeneruotas mokejimai.lt, ji rasite projekto bendroje informacijoje
 
//Atsakymai
$unbanned = "Jus sekmingai atbanintas!"; //Atsakomoji zinute, jei viskas pavyko ir zaidejas atbanintas
$no_ban_exist = "IP kuri issiuntete neegzistuoja musu ban list'e!"; //Atsakomoji zinute, jei nerastas uzbanintojo zaidejo IP sisstemoje
 
//visi unbanai
switch($amxbans_version)
{
	case 0:
	{
		$unbans = mysql_query("SELECT * FROM `amx_banhistory`");
		$banned = mysql_query("SELECT * FROM amx_bans WHERE player_ip = '$ip'");
		$bans = mysql_query("SELECT * FROM amx_bans");
		break;
	}
	case 1:
	{
		$unbans = mysql_query("SELECT * FROM `amx_bans` WHERE `expired` = '1'");
		$bans = mysql_query("SELECT * FROM `amx_bans` WHERE `expired` = '0'");
		$banned = mysql_query("SELECT * FROM amx_bans WHERE player_ip = '$ip' AND expired = '0'");
		break;
	}
}
 
$bans1 = mysql_num_rows($bans); //visi banai
$unbans1 = mysql_num_rows($unbans); //visi unbanai
$banned1 = mysql_num_rows($banned); //ar zaidejas uzbanintas
 
$lastunbans = mysql_query("SELECT * FROM `amx_banhistory` ORDER BY `unban_created` DESC LIMIT $unbannm"); //paskutiniai unbanai v5
 
$lastunbans_v6 = mysql_query("SELECT * FROM `amx_bans` WHERE `expired` = '1' ORDER BY `ban_created` DESC LIMIT $unbannm"); //paskutiniai unbanai v6
 
$lastbans = mysql_query("SELECT * FROM amx_bans ORDER BY ban_created DESC LIMIT $bansnm"); //paskutiniai banai
 
$g_admin = mysql_query("SELECT `admin_nick`, COUNT(admin_nick) AS bans FROM `amx_bans` GROUP BY `admin_nick` ORDER BY bans DESC LIMIT $adminsnm"); 
 
//top5 admin
 
$fl = mysql_query("SELECT * FROM `unban_flags`"); //gaunami saliu prefixai
 
?>
Pilnas.