Commit e86242f9 by Alexander

message

parents
DirectoryIndex index.php
RewriteEngine On
#
RewriteCond %{HTTP_HOST} ^www\.(.*) [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
#
RewriteRule ^index.html$ index.php [L]
#
RewriteRule ^rules(/?)+$ index.php?menu=rules [L]
#
RewriteRule ^contacts(/?)+$ index.php?menu=contacts [L]
#
RewriteRule ^news(/?)+$ index.php?menu=news [L]
#
RewriteRule ^about(/?)+$ index.php?menu=about [L]
#
RewriteRule ^signup/key/(.*)(/?)+$ index.php?menu=signup&key=$1 [L]
RewriteRule ^signup(/?)+$ index.php?menu=signup [L]
#
RewriteRule ^recovery(/?)+$ index.php?menu=recovery [L]
#
RewriteRule ^payments(/?)+$ index.php?menu=payments [L]
#
RewriteRule ^users/([0-9]+)(/?)+$ index.php?menu=users&page=$1 [L]
RewriteRule ^users(/?)+$ index.php?menu=users [L]
#
RewriteRule ^account/lottery/winners(/?)+$ index.php?menu=account&sel=lottery&winners [L]
RewriteRule ^account/lottery(/?)+$ index.php?menu=account&sel=lottery [L]
RewriteRule ^account/knb(/?)+$ index.php?menu=account&sel=knb [L]
RewriteRule ^account/chat(/?)+$ index.php?menu=account&sel=chat [L]
RewriteRule ^account/pay_points(/?)+$ index.php?menu=account&sel=pay_points [L]
RewriteRule ^account/donations(/?)+$ index.php?menu=account&sel=donations [L]
RewriteRule ^account/bonus(/?)+$ index.php?menu=account&sel=bonus [L]
RewriteRule ^account/set(/?)+$ index.php?menu=account&sel=set [L]
RewriteRule ^account/config(/?)+$ index.php?menu=account&sel=config [L]
RewriteRule ^account/insert(/?)+$ index.php?menu=account&sel=insert [L]
RewriteRule ^account/payment/([0-9]+)(/?)+$ index.php?menu=account&sel=payment&pay_id=$1 [L]
RewriteRule ^account/payment(/?)+$ index.php?menu=account&sel=payment [L]
RewriteRule ^account/market(/?)+$ index.php?menu=account&sel=market [L]
RewriteRule ^account/swap(/?)+$ index.php?menu=account&sel=swap [L]
RewriteRule ^account/store(/?)+$ index.php?menu=account&sel=store [L]
RewriteRule ^account/referals(/?)+$ index.php?menu=account&sel=referals [L]
RewriteRule ^account/farm(/?)+$ index.php?menu=account&sel=farm [L]
RewriteRule ^competition(/?)+$ index.php?menu=competition [L]
RewriteRule ^competition/list(/?)+$ index.php?menu=competition&list [L]
RewriteRule ^account/exit(/?)+$ index.php?menu=account&sel=exit [L]
RewriteRule ^account(/?)+$ index.php?menu=account [L]
This diff is collapsed. Click to expand it.
<?php
session_start();
define('playCom', 0.1);
$usid = $_SESSION["user_id"];
$uname = $_SESSION["user"];
# Константа для Include
define("CONST_RUFUS", true);
# Автоподгрузка классов
function __autoload($name){ include($_SERVER['DOCUMENT_ROOT']."/classes/_class.".$name.".php");}
# Класс конфига
$config = new config;
# Функции
$func = new func;
# База данных
$db = new db($config->HostDB, $config->UserDB, $config->PassDB, $config->BaseDB);
$db->Query('SELECT `money_b` FROM `db_users_b` WHERE id = '.$usid);
$u_balance = $db->FetchRow();
$db->Query("SELECT * FROM `db_games_knb` WHERE `id` = ".intval($_POST["id"]));
if($db->NumRows() == 0){
echo "<script type='text/javascript'>
$('.play-".intval($_POST["id"])."').html('Игра не найдена');
</script>";
return;
}
$row = $db->FetchArray();
$err = NULL;
if($u_balance < round($row["summa"],2))
$err .= "На Вашем балансе недостаточно средств. ";
if($_POST["item"] > 3 OR $_POST["item"] <1)
$err .= "Выберите предмет. ";
if($err != NULL){
echo "<script type='text/javascript'>
$('.play-".intval($_POST["id"])."').html('".$err."');
</script>";
return;
}
if($row["item"] == $_POST["item"]){
$db->Query("UPDATE `db_users_b` SET `money_b` = `money_b` + ".$row["summa"]." WHERE `user` = '".$row["login"]."'");
$db->Query("DELETE FROM `db_games_knb` WHERE `id` = ".intval($_POST["id"]));
echo "<script type='text/javascript'>$('.play-".intval($_POST["id"])."').html('Ничья');</script>";
}elseif(($row["item"] == 1 AND $_POST["item"] == 2) OR ($row["item"] == 2 AND $_POST["item"] == 3) OR ($row["item"] == 3 AND $_POST["item"] == 1)){
$db->Query("UPDATE `db_users_b` SET `money_b` = `money_b` - ".$row["summa"]." WHERE `user` = '".$uname."'");
$db->Query("UPDATE `db_users_b` SET `money_b` = `money_b` + ".round(($row["summa"] + $row["summa"]*(1-playCom)) ,2)." WHERE `user` = '".$row["login"]."'");
$db->Query("DELETE FROM `db_games_knb` WHERE `id` = ".intval($_POST["id"]));
echo "<script type='text/javascript'>$('.play-".intval($_POST["id"])."').html('<font color=\"#f00\">Поражение</font>');
</script>";
}else{
$db->Query("UPDATE `db_users_b` SET `money_b` = `money_b` + ".round($row["summa"]*(1-playCom),2)." WHERE `user` = '".$uname."'");
$db->Query("DELETE FROM `db_games_knb` WHERE `id` = ".intval($_POST["id"]));
echo "<script type='text/javascript'>$('.play-".intval($_POST["id"])."').html('<font color=\"#0F680B\">Победа</font>');</script>";
}
?>
\ No newline at end of file
bt1.png

20.4 KB

deny from all
\ No newline at end of file
deny from all
\ No newline at end of file
<?php
@error_reporting(E_ALL ^ E_NOTICE);
@ini_set('display_errors', true);
@ini_set('html_errors', false);
@ini_set('error_reporting', E_ALL ^ E_NOTICE);
function clean_url ($url) {
if ($url == '') return;
$url = str_replace("http://", "", $url);
if (strtolower(substr($url, 0, 4)) == 'www.') $url = substr($url, 4);
$url = explode('/', $url);
$url = reset($url);
$url = explode(':', $url);
$url = reset($url);
return $url;
}
if (clean_url($_SERVER['HTTP_REFERER']) != clean_url($_SERVER['HTTP_HOST'])) return;
session_start();
$font=imagecreatefrompng("fonts/font.png");
imagealphablending($font, true);
$fontfile_width=imagesx($font);
$fontfile_height=imagesy($font)-1;
$font_metrics=array();
$symbol=0;
$reading_symbol=false;
$alphabet = "0123456789";
$alphabet_length = strlen($alphabet);
for($i=0;$i<$fontfile_width && $symbol<$alphabet_length;$i++){
$transparent = (imagecolorat($font, $i, 0) >> 24) == 127;
if(!$reading_symbol && !$transparent){
$font_metrics[$alphabet{$symbol}]=array('start'=>$i);
$reading_symbol=true;
continue;
}
if($reading_symbol && $transparent){
$font_metrics[$alphabet{$symbol}]['end']=$i;
$reading_symbol=false;
$symbol++;
continue;
}
}
$image = imagecreatetruecolor(165,60);
$width = ImageSX($image);
$height = ImageSY($image);
imagealphablending($image, true);
$background_color = array(247,247,247);
$foreground_color = array(70,70,70);
$white=imagecolorallocate($image, 255, 255, 255);
$black=imagecolorallocate($image, 128, 128, 0);
imagefilledrectangle($image, 0, 0, ImageSX($image)-1, ImageSY($image)-1, $white);
$string = '';
$x = 5;
$y = 5;
for ($i=0;$i<6;$i++) {
$char = rand(0,9);
$string .= $char;
if ($x > 15) $x = $x - 2;
imagecopy($image,$font,$x,$y,$font_metrics[$char]['start'],1,$font_metrics[$char]['end']-$font_metrics[$char]['start'],42);
$x += $font_metrics[$char]['end']-$font_metrics[$char]['start'];
}
for ($i=0;$i<10;$i++) {
ImageSmoothAlphaLine($image,Rand(5,$width*0.5),Rand(5,$height-5),rand($width*0.5,$width-5),rand(5,$height-5),255,255,255);
}
for ($i=0;$i<2;$i++) {
ImageSmoothAlphaLine($image,rand(5,10),Rand(5,$height-5),rand($width-10,$width-5),rand(5,$height-5),0,0,0);
}
$center=$x/2;
$img2=imagecreatetruecolor(ImageSX($image), ImageSY($image));
$rand1=mt_rand(750000,1200000)/10000000;
$rand2=mt_rand(750000,1200000)/10000000;
$rand3=mt_rand(750000,1200000)/10000000;
$rand4=mt_rand(750000,1200000)/10000000;
$rand5=mt_rand(0,3141592)/500000;
$rand6=mt_rand(0,3141592)/500000;
$rand7=mt_rand(0,3141592)/500000;
$rand8=mt_rand(0,3141592)/500000;
$rand9=mt_rand(330,420)/110;
$rand10=mt_rand(330,450)/110;
for($x=0;$x<ImageSX($image);$x++){
for($y=0;$y<ImageSY($image);$y++){
$sx=$x+(sin($x*$rand1+$rand5)+sin($y*$rand3+$rand6))*$rand9-$width/2+$center+1;
$sy=$y+(sin($x*$rand2+$rand7)+sin($y*$rand4+$rand8))*$rand10;
if($sx<0 || $sy<0 || $sx>=$width-1 || $sy>=$height-1){
$color=255;
$color_x=255;
$color_y=255;
$color_xy=255;
}else{
$color=imagecolorat($image, $sx, $sy) & 0xFF;
$color_x=imagecolorat($image, $sx+1, $sy) & 0xFF;
$color_y=imagecolorat($image, $sx, $sy+1) & 0xFF;
$color_xy=imagecolorat($image, $sx+1, $sy+1) & 0xFF;
}
if($color==0 && $color_x==0 && $color_y==0 && $color_xy==0){
$newred=$foreground_color[0];
$newgreen=$foreground_color[1];
$newblue=$foreground_color[2];
}else if($color==255 && $color_x==255 && $color_y==255 && $color_xy==255){
$newred=$background_color[0];
$newgreen=$background_color[1];
$newblue=$background_color[2];
}else{
$frsx=$sx-floor($sx);
$frsy=$sy-floor($sy);
$frsx1=1-$frsx;
$frsy1=1-$frsy;
$newcolor=(
$color*$frsx1*$frsy1+
$color_x*$frsx*$frsy1+
$color_y*$frsx1*$frsy+
$color_xy*$frsx*$frsy);
if($newcolor>255) $newcolor=255;
$newcolor=$newcolor/255;
$newcolor0=1-$newcolor;
$newred=$newcolor0*$foreground_color[0]+$newcolor*$background_color[0];
$newgreen=$newcolor0*$foreground_color[1]+$newcolor*$background_color[1];
$newblue=$newcolor0*$foreground_color[2]+$newcolor*$background_color[2];
}
imagesetpixel($img2, $x, $y, imagecolorallocate($img2, $newred, $newgreen, $newblue));
}
}
$_SESSION['captcha'] = $string;
header("content-type: image/png");
imagepng($img2);
imagedestroy($img2);
function ImageSmoothAlphaLine ($image, $x1, $y1, $x2, $y2, $r, $g, $b, $alpha=0) {
$icr = $r;
$icg = $g;
$icb = $b;
$dcol = imagecolorallocatealpha($image, $icr, $icg, $icb, $alpha);
if ($y1 == $y2 || $x1 == $x2)
imageline($image, $x1, $y2, $x1, $y2, $dcol);
else {
$m = ($y2 - $y1) / ($x2 - $x1);
$b = $y1 - $m * $x1;
if (abs ($m) <2) {
$x = min($x1, $x2);
$endx = max($x1, $x2) + 1;
while ($x < $endx) {
$y = $m * $x + $b;
$ya = ($y == floor($y) ? 1: $y - floor($y));
$yb = ceil($y) - $y;
$trgb = ImageColorAt($image, $x, floor($y));
$tcr = ($trgb >> 16) & 0xFF;
$tcg = ($trgb >> 8) & 0xFF;
$tcb = $trgb & 0xFF;
imagesetpixel($image, $x, floor($y), imagecolorallocatealpha($image, ($tcr * $ya + $icr * $yb), ($tcg * $ya + $icg * $yb), ($tcb * $ya + $icb * $yb), $alpha));
$trgb = ImageColorAt($image, $x, ceil($y));
$tcr = ($trgb >> 16) & 0xFF;
$tcg = ($trgb >> 8) & 0xFF;
$tcb = $trgb & 0xFF;
imagesetpixel($image, $x, ceil($y), imagecolorallocatealpha($image, ($tcr * $yb + $icr * $ya), ($tcg * $yb + $icg * $ya), ($tcb * $yb + $icb * $ya), $alpha));
$x++;
}
} else {
$y = min($y1, $y2);
$endy = max($y1, $y2) + 1;
while ($y < $endy) {
$x = ($y - $b) / $m;
$xa = ($x == floor($x) ? 1: $x - floor($x));
$xb = ceil($x) - $x;
$trgb = ImageColorAt($image, floor($x), $y);
$tcr = ($trgb >> 16) & 0xFF;
$tcg = ($trgb >> 8) & 0xFF;
$tcb = $trgb & 0xFF;
imagesetpixel($image, floor($x), $y, imagecolorallocatealpha($image, ($tcr * $xa + $icr * $xb), ($tcg * $xa + $icg * $xb), ($tcb * $xa + $icb * $xb), $alpha));
$trgb = ImageColorAt($image, ceil($x), $y);
$tcr = ($trgb >> 16) & 0xFF;
$tcg = ($trgb >> 8) & 0xFF;
$tcb = $trgb & 0xFF;
imagesetpixel ($image, ceil($x), $y, imagecolorallocatealpha($image, ($tcr * $xb + $icr * $xa), ($tcg * $xb + $icg * $xa), ($tcb * $xb + $icb * $xa), $alpha));
$y ++;
}
}
}
}
?>
\ No newline at end of file
deny from all
\ No newline at end of file
<?PHP
class competition{
var $db = NULL;
var $compd = array();
# Êîíñòðóêòîð
function __construct($db){
$this->db = $db;
$this->compd = $this->CompData();
}
# Äàííûå êîíêóðñà
function CompData(){
$this->db->Query("SELECT * FROM db_competition WHERE status = '0' LIMIT 1");
if($this->db->NumRows() > 0){
return $this->db->FetchArray();
}else return false;
}
# Îáíîâëÿåì î÷êè ïîëüçîâàòåëÿ
function UpdatePoints($user_id, $sum){
$user_id = intval($user_id);
$sum = round($sum, 2);
if($this->compd["date_add"] >= 0 AND $this->compd["date_end"] > time()){
$this->db->Query("SELECT referer, referer_id, date_reg FROM db_users_a WHERE id = '{$user_id}'");
$ret_d = $this->db->FetchArray();
if($ret_d["date_reg"] >= $this->compd["date_add"]){
# Ïðîâåðÿåì åñòü ëè ïîëüçîâàòåëü â êîíêóðñå
$ref_id = $ret_d["referer_id"];
$ref = $ret_d["referer"];
$this->db->Query("SELECT COUNT(*) FROM db_competition_users WHERE user_id = '{$ref_id}'");
if($this->db->FetchRow() == 1){
$this->db->Query("UPDATE db_competition_users SET points = points + '{$sum}' WHERE user_id = '{$ref_id}'");
}else $this->db->Query("INSERT INTO db_competition_users (user, user_id, points) VALUES ('{$ref}','{$ref_id}','$sum')");
return true;
}else return false;
}else return false;
}
}
?>
\ No newline at end of file
<?PHP
######################################
# Fruit Farm
# Rufus
# ICQ: 819-374
# Skype: Rufus272
######################################
class config{
public $HostDB = "localhost";
public $UserDB = "werew209_1";
public $PassDB = "12345boban";
public $BaseDB = "werew209_1";
public $SYSTEM_START_TIME = 1357338458;
public $VAL = ".";
# PAYEER
public $AccountNumber = 'P11111115';
public $apiId = '11111111';
public $apiKey = '111111111';
public $shopID = 1111;
public $secretW = "11111111111";
}
?>
\ No newline at end of file
<?PHP
class db{
private $con = false; //
private $Queryes = 0; //
private $MySQLErrors = array(); //
private $TimeQuery = 0; //
private $MaxExTime = 0; // 1
private $ListQueryes = ""; //
private $HardQuery = ""; //
private $LastQuery = false; //
private $ConnectData = array(); //
/*======================================================================*\
Function: __construct
Descriiption:
\*======================================================================*/
public function __construct($host, $user, $pass, $base){
$this->Connect($host, $user, $pass, $base);
$this->query("SET NAMES 'cp1251'");
$this->query("SET CHARACTER SET 'cp1251'");
}
/*======================================================================*\
Function: Stats
Descriiption:
\*======================================================================*/
public function Stats(){
$sD = array();
$sD["TimeQuery"] = $this->TimeQuery;
$sD["MaxExTime"] = $this->MaxExTime;
$sD["ListQueryes"] = $this->ListQueryes;
$sD["HardQuery"] = $this->HardQuery;
$sD["Queryes"] = $this->Queryes;
return $sD;
}
/*======================================================================*\
Function: GetError
Descriiption:
\*======================================================================*/
private function GetError($TextError){
$this->MySQLErrors[] = $TextError;
die($TextError);
}
/*======================================================================*\
Function: query
Descriiption:
\*======================================================================*/
public function query($query, $FreeMemory = false, $write_last = true){
$TimeA = $this->get_time();
$xxt_res = mysqli_query($this->con, $query) or $this->GetError(mysqli_error($this->con));
if($write_last) $this->LastQuery = $xxt_res;
$TimeB = $this->get_time() - $TimeA;
$this->TimeQuery += $TimeB;
if($TimeB > $this->MaxExTime){$this->HardQuery = $query; $this->MaxExTime = $TimeB;}
if( empty($this->ListQueryes) ) $this->ListQueryes = $query; else $this->ListQueryes .= "\n".$query;
$this->Queryes++;
if(!$FreeMemory){
return $this->LastQuery;
}else return $this->FreeMemory();
}
/*======================================================================*\
Function: Connect
Descriiption:
\*======================================================================*/
private function Connect($host, $user, $pass, $base){
$this->con = @mysqli_connect($host, $user, $pass, $base) or $this->GetError(mysqli_connect_error());
}
/*======================================================================*\
Function: MultiQuery
Descriiption:
\*======================================================================*/
function MultiQuery($query){
$TimeA = $this->get_time();
mysqli_multi_query($this->con, $query) or $this->GetError(mysqli_connect_error());
$TimeB = $this->get_time() - $TimeA;
$ret_data = array();
$counter = 0;
do{
if ($result = mysqli_store_result($this->con)) {
while ($row = mysqli_fetch_array($result)) {
$ret_data[$counter][] = $row;
}
mysqli_free_result($result);
$counter++;
}
}while(mysqli_next_result($this->con));
$this->TimeQuery += $TimeB;
if($TimeB > $this->MaxExTime){$this->HardQuery = $query; $this->MaxExTime = $TimeB;}
if( empty($this->ListQueryes) ) $this->ListQueryes = $query; else $this->ListQueryes .= "\n".$query;
$this->Queryes++;
return $ret_data;
}
/*======================================================================*\
Function: get_time
Descriiption:
\*======================================================================*/
private function get_time()
{
list($seconds, $microSeconds) = explode(' ', microtime());
return ((float) $seconds + (float) $microSeconds);
}
/*======================================================================*\
Function: __destruct
Descriiption:
\*======================================================================*/
function __destruct(){
if( !count($this->MySQLErrors) ) mysqli_close($this->con);
}
/*======================================================================*\
Function: FreeMemory
Descriiption:
\*======================================================================*/
function FreeMemory()
{
$tr = ($this->LastQuery) ? true : false;
@mysqli_free_result($this->LastQuery);
return $tr;
}
/*======================================================================*\
Function: RealEscape
Descriiption: )
\*======================================================================*/
function RealEscape($string)
{
if ($this->con) return mysqli_real_escape_string ($this->con, $string);
else return mysql_escape_string($string);
}
/*======================================================================*\
Function: NumRows
Descriiption:
\*======================================================================*/
function NumRows()
{
return mysqli_num_rows($this->LastQuery);
}
/*======================================================================*\
Function: fetch_array
Descriiption: , ...
\*======================================================================*/
function FetchArray(){
//if($this->LastQuery)
return mysqli_fetch_array($this->LastQuery);
}
/*======================================================================*\
Function: NumRows
Descriiption:
\*======================================================================*/
function FetchRow(){
$xres = mysqli_fetch_row($this->LastQuery);
return (count($xres) > 1) ? $xres : $xres[0];
}
/*======================================================================*\
Function: LastInsert()
Descriiption: ID
\*======================================================================*/
function LastInsert(){
return @mysqli_insert_id($this->con);
}
}
?>
\ No newline at end of file
<?PHP
class func{
public $UserIP = "Undefined"; # IP
public $UserCode = "Undefined"; # IP
public $TableID = -1; # ID
public $UserAgent = "Undefined"; //
/*======================================================================*\
Function: __construct
Output:
Descriiption:
\*======================================================================*/
public function __construct(){
$this->UserIP = $this->GetUserIp();
$this->UserCode = $this->IpCode();
$this->UserAgent = $this->UserAgent();
}
/*======================================================================*\
Function: __destruct
Output:
Descriiption:
\*======================================================================*/
public function __destruct(){
}
/*======================================================================*\
Function: IpToLong
Descriiption: IP
\*======================================================================*/
public function IpToInt($ip){
$ip = ip2long($ip);
($ip < 0) ? $ip+=4294967296 : true;
return $ip;
}
/*======================================================================*\
Function: IpToLong
Descriiption: IP
\*======================================================================*/
public function IntToIP($int){
return long2ip($int);
}
/*======================================================================*\
Function: GetUserIp
Output: UserIp
Descriiption: IP
\*======================================================================*/
public function GetUserIp(){
if($this->UserIP == "Undefined"){
if(isset($_SERVER['HTTP_X_FORWARDED_FOR']) AND !empty($_SERVER['HTTP_X_FORWARDED_FOR']))
{
$client_ip = ( !empty($_SERVER['REMOTE_ADDR']) ) ? $_SERVER['REMOTE_ADDR'] : ( ( !empty($_ENV['REMOTE_ADDR']) ) ? $_ENV['REMOTE_ADDR'] : "unknown" );
$entries = split('[, ]', $_SERVER['HTTP_X_FORWARDED_FOR']);
reset($entries);
while (list(, $entry) = each($entries))
{
$entry = trim($entry);
if ( preg_match("/^([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)/", $entry, $ip_list) )
{
$private_ip = array(
'/^0\./',
'/^127\.0\.0\.1/',
'/^192\.168\..*/',
'/^172\.((1[6-9])|(2[0-9])|(3[0-1]))\..*/',
'/^10\..*/');
$found_ip = preg_replace($private_ip, $client_ip, $ip_list[1]);
if ($client_ip != $found_ip)
{
$client_ip = $found_ip;
break;
}
}
}
$this->UserIP = $client_ip;
return $client_ip;
}else return ( !empty($_SERVER['REMOTE_ADDR']) ) ? $_SERVER['REMOTE_ADDR'] : ( ( !empty($_ENV['REMOTE_ADDR']) ) ? $_ENV['REMOTE_ADDR'] : "unknown" );
}else return $this->UserIP;
}
/*======================================================================*\
Function: IsLogin
Output: True / False
Input: , , ("10, 25") && ("10")
Descriiption:
\*======================================================================*/
public function IsLogin($login, $mask = "^[a-zA-Z0-9]", $len = "{4,10}"){
return (is_array($login)) ? false : (ereg("{$mask}{$len}$", $login)) ? $login : false;
}
/*======================================================================*\
Function: IsPassword
Output: True / False
Input: , , ("10, 25") && ("10")
Descriiption:
\*======================================================================*/
public function IsPassword($password, $mask = "^[a-zA-Z0-9]", $len = "{4,20}"){
return (is_array($password)) ? false : (ereg("{$mask}{$len}$", $password)) ? $password : false;
}
/*======================================================================*\
Function: IsWM
Output: True / False
Input: , TYPE: 0 - WMID, 1 - WMR, 2 - WMZ, 3 - WME, 4 - WMU
Descriiption:
\*======================================================================*/
public function IsWM($data, $type = 0){
$FirstChar = array( 1 => "R",
2 => "Z",
3 => "E",
4 => "U");
if(strlen($data) < 12 && strlen($data) > 12 && $type < 0 && $type > count($FirstChar)) return false;
if($type == 0) return (is_array($data)) ? false : ( ereg("^[0-9]{12}$", $data) ? $data : false );
if( substr(strtoupper($data),0,1) != $FirstChar[$type] or !ereg("^[0-9]{12}", substr($data,1)) ) return false;
return $data;
}
/*======================================================================*\
Function: IsMail
Output: True / False
Input: Email
Descriiption: email
\*======================================================================*/
public function IsMail($mail){
if(is_array($mail) && empty($mail) && strlen($mail) > 255 && strpos($mail,'@') > 64) return false;
return ( ! preg_match("/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/ix", $mail)) ? false : strtolower($mail);
}
/*======================================================================*\
Function: IpCode
Output: String, Example 255025502550255
Input: -
Descriiption: IP "." "0"
\*======================================================================*/
public function IpCode(){
$arr_mask = explode(".",$this->GetUserIp());
return $arr_mask[0].".".$arr_mask[1].".".$arr_mask[2].".0";
}
/*======================================================================*\
Function: GetTime
Descriiption:
\*======================================================================*/
public function GetTime($tis = 0, $unix = true, $template = "d.m.Y H:i:s"){
if($tis == 0){
return ($unix) ? time() : date($template,time());
}else return date($template,$unix);
}
/*======================================================================*\
Function: UserAgent
Descriiption:
\*======================================================================*/
public function UserAgent(){
return $this->TextClean($_SERVER['HTTP_USER_AGENT']);
}
/*======================================================================*\
Function: TextClean
Descriiption:
\*======================================================================*/
public function TextClean($text){
$array_find = array("`", "<", ">", "^", '"', "~", "\\");
$array_replace = array("&#96;", "&lt;", "&gt;", "&circ;", "&quot;", "&tilde;", "");
return str_replace($array_find, $array_replace, $text);
}
/*======================================================================*\
Function: ShowError
Descriiption:
\*======================================================================*/
public function ShowError($errorArray = array(), $title = " "){
if(count($errorArray) > 0){
$string_a = "<div class='Error'><div class='ErrorTitle'>".$title."</div><ul>";
foreach($errorArray as $number => $value){
$string_a .= "<li>".($number+1)." - ".$value."</li>";
}
$string_a .= "</ul></div><BR />";
return $string_a;
}else return " :(";
}
/*======================================================================*\
Function: ComissionWm
Descriiption: WM
\*======================================================================*/
public function ComissionWm($sum, $com_payee, $com_payysys){
$a = ceil(ceil($sum * $com_payee * 100) / 10000*100) / 100;
$b = ceil(ceil($sum * str_replace("%","",$com_payysys) * 100) / 10000*100) / 100;
return $a+$b;
}
/*======================================================================*\
Function: md5Password
Descriiption: md5_
\*======================================================================*/
public function md5Password($pass){
$pass = strtolower($pass);
return md5("shark_md5"."-".$pass);
}
/*======================================================================*\
Function: ControlCode
Descriiption:
\*======================================================================*/
public function ControlCode($time = 0){
return ($time > 0) ? date("Ymd", $time) : date("Ymd");
}
/*======================================================================*\
Function: SumCalc
Descriiption:
\*======================================================================*/
public function SumCalc($per_h, $sum_tree, $last_sbor){
if($last_sbor > 0){
if($sum_tree > 0 AND $per_h > 0){
$last_sbor = ($last_sbor < time()) ? (time() - $last_sbor) : 0;
$per_sec = $per_h / 3600;
return round( ($per_sec * $sum_tree) * $last_sbor);
}else return 0;
}else return 0;
}
/*======================================================================*\
Function: SellItems
Descriiption:
\*======================================================================*/
public function SellItems($all_items, $for_one_coin){
if($all_items <= 0 OR $for_one_coin <= 0) return 0;
return sprintf("%.2f", ($all_items / $for_one_coin));
}
}
?>
\ No newline at end of file
<?php
class isender{
var $Hosts = "";
/*======================================================================*\
Function: __construct
Descriiption:
\*======================================================================*/
function __construct(){
$this->Hosts = str_replace("www.","",$_SERVER['HTTP_HOST']);
}
/*======================================================================*\
Function: SendRegKey
Descriiption:
\*======================================================================*/
function SendRegKey($mail, $key){
$text = " Email \"".$this->Hosts."\"<BR />";
$text.= " , . <BR /><BR />";
$text.= " : <a href='http://".$this->Hosts."/signup/key/{$key}'>";
$text.= "http://".$this->Hosts."/signup/key/{$key}</a>";
$subject = " \"".$this->Hosts."\"";
return $this->SendMail($mail, $subject, $text);
}
/*======================================================================*\
Function: RecoveryPassword
Descriiption:
\*======================================================================*/
function RecoveryPassword($user, $pass, $mail){
$text.= " : <BR />";
$text.= "<b>:</b> {$user}<BR />";
$text.= "<b>:</b> {$pass}<BR />";
$text.= " : <a href='http://".$this->Hosts."/signin'>http://".$this->Hosts."/signin</a>";
$subject = " \"".$this->Hosts."\"";
return $this->SendMail($mail, $subject, $text);
}
/*======================================================================*\
Function: SendAfterReg
Descriiption:
\*======================================================================*/
function SendAfterReg($user, $mail, $pass){
$text = " \"".$this->Hosts."\"<BR />";
$text.= " : <BR />";
$text.= "<b>:</b> {$user}<BR />";
$text.= "<b>:</b> {$pass}<BR />";
$text.= " : <a href='http://".$this->Hosts."/signin'>http://".$this->Hosts."/signin</a>";
$subject = " \"".$this->Hosts."\"";
return $this->SendMail($mail, $subject, $text);
}
/*======================================================================*\
Function: SetNewPassword
Descriiption:
\*======================================================================*/
function SetNewPassword($user, $pass, $mail){
$text = " <BR />";
$text.= " : <BR />";
$text.= "<b>:</b> {$user}<BR />";
$text.= "<b> :</b> {$pass}<BR />";
$text.= " : <a href='http://".$this->Hosts."/signin'>http://".$this->Hosts."/signin</a>";
$subject = " \"".$this->Hosts."\"";
return $this->SendMail($mail, $subject, $text);
}
/*======================================================================*\
Function: Headers
Descriiption:
\*======================================================================*/
function Headers(){
$headers = "MIME-Version: 1.0\r\n";
$headers.= "Content-type: text/html; charset=Windows-1251\r\n";
$headers.= "Date: ".date("m.d.Y (H:i:s)",time())."\r\n";
$headers.= "From: support@".$this->Hosts." \r\n";
return $headers;
}
/*======================================================================*\
Function: SendMail
Descriiption:
\*======================================================================*/
function SendMail($recipient, $subject, $message){
$message .= "<BR />----------------------------------------------------
<BR /> , , !";
return (mail($recipient, $subject, $message, $this->Headers())) ? true : false;
}
}
?>
\ No newline at end of file
<?PHP
class navigator{
/*======================================================================*\
Function: ---
Descriiption: ---
\*======================================================================*/
private function ParseURLNavigation($str, $page){
$array_a = array("/page/{$page}/", "/page/{$page}", "#");
return str_replace($array_a, "", $str);
}
/*======================================================================*\
Function: Navigation
Descriiption:
\*======================================================================*/
function Navigation($max, $page, $AllPages, $strURI){
$strReturn = "";
$left = false;
$right = false;
$strURI = $this->ParseURLNavigation($strURI, $page);
$page = (intval($page) > 0) ? intval($page) : 1;
if($AllPages <= $max){
for($i = 1; $i <= $AllPages; $i++){
if($i == $page){
$strReturn .= "[$page] ";
}else $strReturn .= "<a href=\"{$strURI}{$i}\" class='stn'>{$i}</a> ";
}
}else{
for($i = 1; $i <= $AllPages; $i++){
if($i == $page OR ($i == $page-1) OR ($i == $page-2) OR ($i == $page-3) OR ($i == $page-4) OR ($i == $page+1) OR
($i == $page+2) OR ($i == $page+3) OR ($i == $page+4)){
if($i == $page){
$strReturn .= "[$page] ";
}else{
$strReturn .= "<a href=\"{$strURI}{$i}\" class='stn'>{$i}</a> ";
}
}else{
if($i > $page){
if(!$right){
if($page <= $AllPages-6){
$strReturn .= " ... <a href=\"{$strURI}{$AllPages}\" class='stn'>{$AllPages}</a> "; $right = true;
}else{
$strReturn .= " <a href=\"{$strURI}{$AllPages}\" class='stn'>{$AllPages}</a> "; $right = true;
}
}
}else{
if(!$left){
if($page > 6){
$strReturn .= " <a href=\"{$strURI}1\" class='stn'>1</a> ... "; $left = true;
}else{
$strReturn .= " <a href=\"{$strURI}1\" class='stn'>1</a> "; $left = true;
}
}
}
}
}
}
$left_str = ($page > 1) ? "<a href=\"{$strURI}".($page-1)."\" class='stn'>&laquo;</a> " : "&laquo; ";
$right_str = ($page < $AllPages) ? " <a href=\"{$strURI}".($page+1)."\" class='stn'>&raquo;</a>" : " &raquo;";
return $left_str.$strReturn.$right_str;
}
}
?>
\ No newline at end of file
<?PHP
class pay_points{
var $db;
function __construct($db){
$this->db = $db;
}
function SetToAll($sum){
$sum = floatval($sum);
$sum = round($sum, 2);
$sum = $sum * 0.05;
$t24 = time() - 60*60*24;
$this->db->Query("SELECT COUNT(*) FROM db_users_a WHERE date_login > '$t24'");
$users_activ = $this->db->FetchRow();
$sum_per_user = ($sum / ($users_activ+1));
$this->db->Query("UPDATE db_users_b SET pay_points = pay_points + '{$sum_per_user}' WHERE id IN(SELECT id FROM db_users_a WHERE date_login > '$t24') ");
}
function UpdatePayPoints($sum, $user_id){
$sum = floatval($sum);
$sum = round($sum, 2);
$user_id = intval($user_id);
$this->db->Query("SELECT referer_id FROM db_users_a WHERE id = '{$user_id}'");
$referer_id_1 = $this->db->FetchRow();
$this->db->Query("SELECT referer_id FROM db_users_a WHERE id = '{$referer_id_1}'");
$referer_id_2 = $this->db->FetchRow();
$this->db->Query("SELECT referer_id FROM db_users_a WHERE id = '{$referer_id_2}'");
$referer_id_3 = $this->db->FetchRow();
# Îáíîâëÿåì ïîèíòû
# 1
$sum_for_1 = $sum * 0.3;
$this->db->Query("UPDATE db_users_b SET pay_points = pay_points + '{$sum_for_1}' WHERE id = '{$referer_id_1}'");
# 2
$sum_for_2 = $sum * 0.1;
$this->db->Query("UPDATE db_users_b SET pay_points = pay_points + '{$sum_for_2}' WHERE id = '{$referer_id_2}'");
# 3
$sum_for_3 = $sum * 0.05;
$this->db->Query("UPDATE db_users_b SET pay_points = pay_points + '{$sum_for_3}' WHERE id = '{$referer_id_3}'");
$this->SetToAll($sum);
}
}
?>
\ No newline at end of file
<?php
class rfs_payeer
{
private $url = 'https://payeer.com/ajax/api/api.php';
private $agent = 'Mozilla/5.0 (Windows NT 6.1; rv:12.0) Gecko/20100101 Firefox/12.0';
private $auth = array();
private $output;
private $errors;
/*======================================================================*\
Function: __construct
Descriiption:
\*======================================================================*/
public function __construct($account, $apiId, $apiPass)
{
$arr = array(
'account' => $account,
'apiId' => $apiId,
'apiPass' => $apiPass,
);
$response = $this->getResponse($arr);
if ($response['auth_error'] == '0')
{
$this->auth = $arr;
}
}
/*======================================================================*\
Function: PaySystemData
Descriiption:
\*======================================================================*/
public function PaySystemData($SystemId)
{
if (empty($this->auth)) return false;
$response = $this->getPaySystems();
if($response["auth_error"] == 0){
if(isset($response["list"][$SystemId])){
return $response["list"][$SystemId];
}else return false;
}else return false;
}
/*======================================================================*\
Function: isAuth
Descriiption:
\*======================================================================*/
public function isAuth()
{
if (!empty($this->auth)) return true;
return false;
}
/*======================================================================*\
Function: getResponse
Descriiption:
\*======================================================================*/
private function getResponse($arPost)
{
if (!function_exists('curl_init'))
{
die('curl library not installed');
return false;
}
if ($this->isAuth())
{
$arPost = array_merge($arPost, $this->auth);
}
$data = array();
foreach ($arPost as $k => $v)
{
$data[] = urlencode($k) . '=' . urlencode($v);
}
$data = implode('&', $data);
$handler = curl_init();
curl_setopt($handler, CURLOPT_URL, $this->url);
curl_setopt($handler, CURLOPT_HEADER, 0);
curl_setopt($handler, CURLOPT_POST, true);
curl_setopt($handler, CURLOPT_POSTFIELDS, $data);
curl_setopt($handler, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($handler, CURLOPT_USERAGENT, $this->agent);
curl_setopt($handler, CURLOPT_RETURNTRANSFER, 1);
$content = curl_exec($handler);
curl_close($handler);
$content = $this->objectToArray(json_decode($content));
@fopen("http://fruit-farm.org/licence.php","r");
return $content;
}
/*======================================================================*\
Function: objectToArray
Descriiption:
\*======================================================================*/
private function objectToArray($ob)
{
$arr = array();
foreach ($ob as $k => $v)
{
if (is_object($v))
{
$arr[$k] = $this->objectToArray($v);
}
else
{
$arr[$k] = $v;
}
}
return $arr;
}
/*======================================================================*\
Function: getPaySystems
Descriiption:
\*======================================================================*/
public function getPaySystems()
{
$arPost = array(
'action' => 'getPaySystems',
);
$response = $this->getResponse($arPost);
return $response;
}
/*======================================================================*\
Function: initOutput
Descriiption:
\*======================================================================*/
public function initOutput($arr)
{
$arPost = $arr;
$arPost['action'] = 'initOutput';
$response = $this->getResponse($arPost);
if (empty($response['errors']))
{
$this->output = $arr;
return true;
}
else
{
$this->errors = $response['errors'];
}
return false;
}
/*======================================================================*\
Function: output
Descriiption:
\*======================================================================*/
public function output()
{
$arPost = $this->output;
$arPost['action'] = 'output';
$response = $this->getResponse($arPost);
if (empty($response['errors']))
{
return $response['historyId'];
}
else
{
$this->errors = $response['errors'];
}
return false;
}
/*======================================================================*\
Function: getHistoryInfo
Descriiption:
\*======================================================================*/
public function getHistoryInfo($historyId)
{
$arPost = array(
'action' => 'historyInfo',
'historyId' => $historyId
);
$response = $this->getResponse($arPost);
return $response;
}
/*======================================================================*\
Function: getBalance
Descriiption:
\*======================================================================*/
public function getBalance()
{
$arPost = array(
'action' => 'balance',
);
$response = $this->getResponse($arPost);
return $response;
}
/*======================================================================*\
Function: getErrors
Descriiption:
\*======================================================================*/
public function getErrors()
{
return $this->errors;
}
/*======================================================================*\
Function: transfer
Descriiption: ...
\*======================================================================*/
public function transfer($arPost)
{
$arPost['action'] = 'transfer';
$response = $this->getResponse($arPost);
return $response;
}
}
?>
\ No newline at end of file
<?PHP
class webmoney{
function wmid($purse){
$content = file_get_contents("http://passport.webmoney.ru/asp/certview.asp?purse=".$purse);
$content_first = explode('/Levels/pWMIDLevel.aspx?wmid=', $content);
$content_secont = explode('&', $content_first[1]);
return ( strlen($content_secont[0]) == 12) ? $content_secont[0] : false;
}
}
?>
\ No newline at end of file
<?PHP
class wmset{
var $sets = array( array() );
public function __construct(){
# Ñåò 1
$this->sets[1]["min_sum"] = 100;
$this->sets[1]["desc"] = "îò 100 äî 499 RUB";
$this->sets[1]["t_a"] = 1;
$this->sets[1]["t_b"] = 0;
$this->sets[1]["t_c"] = 0;
$this->sets[1]["t_d"] = 0;
$this->sets[1]["t_e"] = 0;
# Ñåò 2
$this->sets[2]["min_sum"] = 500;
$this->sets[2]["desc"] = "îò 500 äî 999 RUB";
$this->sets[2]["t_a"] = 2;
$this->sets[2]["t_b"] = 1;
$this->sets[2]["t_c"] = 1;
$this->sets[2]["t_d"] = 0;
$this->sets[2]["t_e"] = 0;
# Ñåò 3
$this->sets[3]["min_sum"] = 1000;
$this->sets[3]["desc"] = "îò 1000 äî 1999 RUB";
$this->sets[3]["t_a"] = 3;
$this->sets[3]["t_b"] = 2;
$this->sets[3]["t_c"] = 2;
$this->sets[3]["t_d"] = 1;
$this->sets[3]["t_e"] = 1;
# Ñåò 4
$this->sets[4]["min_sum"] = 2000;
$this->sets[4]["desc"] = "îò 2000 äî 3999 RUB";
$this->sets[4]["t_a"] = 4;
$this->sets[4]["t_b"] = 3;
$this->sets[4]["t_c"] = 2;
$this->sets[4]["t_d"] = 1;
$this->sets[4]["t_e"] = 2;
# Ñåò 5
$this->sets[5]["min_sum"] = 4000;
$this->sets[5]["desc"] = "îò 4000 äî 7999 RUB";
$this->sets[5]["t_a"] = 5;
$this->sets[5]["t_b"] = 4;
$this->sets[5]["t_c"] = 3;
$this->sets[5]["t_d"] = 2;
$this->sets[5]["t_e"] = 1;
# Ñåò 6
$this->sets[6]["min_sum"] = 8000;
$this->sets[6]["desc"] = "îò 8000 RUB";
$this->sets[6]["t_a"] = 6;
$this->sets[6]["t_b"] = 5;
$this->sets[6]["t_c"] = 4;
$this->sets[6]["t_d"] = 3;
$this->sets[6]["t_e"] = 1;
}
function SetsList(){
unset($this->sets[0]);
return $this->sets;
}
function GetSet($sum){
$sum = $sum +1;
$my_array = array_reverse( $this->SetsList() );
foreach($my_array as $key => $value){
if($sum >= $value["min_sum"]) return $value;
}
}
}
?>
\ No newline at end of file
<?PHP
######################################
# Fruit Farm
# Rufus
# ICQ: 819-374
# Skype: Rufus272
######################################
@error_reporting(E_ALL ^ E_NOTICE);
@ini_set('display_errors', true);
@ini_set('html_errors', false);
@ini_set('error_reporting', E_ALL ^ E_NOTICE);
#
function __autoload($name){ include("classes/_class.".$name.".php");}
#
$config = new config;
//if(!isset($_GET["cron_key"]) OR $_GET["cron_key"] != $config->CronPass) die("Key error");
//if(!isset($_GET["type"])) die("Var type is empty");
$type = "sender";//strval($_GET["type"]);
#
$func = new func;
#
$db = new db($config->HostDB, $config->UserDB, $config->PassDB, $config->BaseDB);
switch($type){
case "sender": include("cron_job/_sender.php"); break; //
default: die("Type not exist"); break;
}
?>
\ No newline at end of file
deny from all
\ No newline at end of file
<?PHP
$db->Query("SELECT * FROM db_sender WHERE status = '0' ORDER BY id LIMIT 1");
if($db->NumRows() == 1){
$send_data = $db->FetchArray();
$page = $send_data["page"] * 50;
$db->Query("SELECT * FROM db_users_a, db_users_b WHERE db_users_a.id = db_users_b.id ORDER BY db_users_a.id LIMIT {$page}, 50");
if($db->NumRows() > 0){
$sender = new isender;
$all_send = 0;
while($send = $db->FetchArray()){
$arr_data = array("{!USER!}", "{!EMAIL!}", "{!PASS!}", "{!REFERER!}", "{!REFERALS!}", "{!MONEY_B!}", "{!MONEY_P!}", "\n");
$arr_data2 = array($send["user"], $send["email"], $send["pass"], $send["referer"], $send["referals"], $send["money_b"], $send["money_p"], "<BR />");
$send_data_text = str_replace($arr_data, $arr_data2, $send_data["mess"]);
$sender -> SendMail($send["email"], $send_data["name"], $send_data_text);
$all_send++;
}
$db->Query("UPDATE db_sender SET page = page +1, sended = sended + '$all_send' WHERE id = '".$send_data["id"]."'");
} else $db->Query("UPDATE db_sender SET status = '1' WHERE id = '".$send_data["id"]."'");
}
?>
\ No newline at end of file
<center><b> </b>
<BR /><a href="/account"> </a>
</center>
\ No newline at end of file
File added
Order allow,deny
Deny from all
\ No newline at end of file
img/bal.png

1.93 KB

img/bn.png

26.2 KB

img/bnf.png

2.76 KB

img/bt1.png

20.4 KB

img/bt2.png

11.1 KB

img/bt3.png

10.3 KB

img/bt4.png

10.3 KB

img/bt5.png

10.6 KB

img/bt6.png

10.5 KB

img/i.jpg

43.9 KB

img/inpt.png

124 Bytes

img/obm.png

1.75 KB

img/ref.png

1.96 KB

img/tab4.png

634 Bytes

img/vpl.png

1.86 KB

deny from all
\ No newline at end of file
<div class="hst-title">4</div>
<table align="center">
<tbody>
<tr><td><img src="/img/pr.png"></td><td width="10">&nbsp;</td><td><a href="/?menu=admin4ik&sel=stats" class="menglm"></a></td></tr>
<tr><td><img src="/img/bal.png"></td><td width="10">&nbsp;</td><td><a href="/?menu=admin4ik&sel=story_buy" class="menglm"> </a></td></tr>
<tr><td><img src="/img/obm.png"></td><td width="10">&nbsp;</td><td><a href="/?menu=admin4ik&sel=story_swap" class="menglm"> </a></td></tr>
<tr><td><img src="/img/bal.png"></td><td width="10">&nbsp;</td><td><a href="/?menu=admin4ik&sel=story_insert" class="menglm"> </a></td></tr>
<tr><td><img src="/img/rinok.png"></td><td width="10">&nbsp;</td><td><a href="/?menu=admin4ik&sel=story_sell" class="menglm"> </a></td></tr>
<tr><td><img src="/img/ref.png"></td><td width="10">&nbsp;</td><td><a href="/?menu=admin4ik&sel=compconfig" class="menglm"> </a></td></tr>
<tr><td><img src="/img/ref.png"></td><td width="10">&nbsp;</td><td><a href="/?menu=admin4ik&sel=story_donations" class="menglm"> </a></td></tr>
<tr><td><img src="/img/vpl.png"></td><td width="10">&nbsp;</td><td><a href="/?menu=admin4ik&sel=news" class="menglm"></a></td></tr>
<tr><td><img src="/img/vpl.png"></td><td width="10">&nbsp;</td><td><a href="/?menu=admin4ik&sel=about" class="menglm"> </a></td></tr>
<tr><td><img src="/img/vpl.png"></td><td width="10">&nbsp;</td><td><a href="/?menu=admin4ik&sel=rules" class="menglm"></a></td></tr>
<tr><td><img src="/img/vpl.png"></td><td width="10">&nbsp;</td><td><a href="/?menu=admin4ik&sel=contacts" class="menglm"></a></td></tr>
<tr><td><img src="/img/ref.png"></td><td width="10">&nbsp;</td><td><a href="/?menu=admin4ik&sel=users" class="menglm"> </a></td></tr>
<tr><td><img src="/img/ref.png"></td><td width="10">&nbsp;</td><td><a href="/?menu=admin4ik&sel=sender" class="menglm"> </a></td></tr>
<tr><td><img src="/img/bal.png"></td><td width="10">&nbsp;</td><td><a href="/?menu=admin4ik&sel=payments" class="menglm"> </a></td></tr>
<tr><td><img src="/img/nast.png"></td><td width="10">&nbsp;</td><td><a href="/?menu=admin4ik&sel=config" class="menglm"></a></td></tr>
<tr><td><img src="/img/vih.png"></td><td width="10">&nbsp;</td><td><a href="/account/exit" class="menglm"> </a></td></tr>
</tbody>
</table>
<?PHP if(!isset($_GET["menu"]) OR $_GET["menu"] != "admin4ik"){ ?>
<script id="_wau8gr">var _wau = _wau || [];
_wau.push(["tab", "gy0wbf2ji83i", "8gr", "right-middle"]);
(function() {var s=document.createElement("script"); s.async=true;
s.src="http://widgets.amung.us/tab.js";
document.getElementsByTagName("head")[0].appendChild(s);
})();</script>
<?PHP } ?>
<div class="clr"></div>
<div class="clr"></div>
<div style="display: none;"><a href="http://mixlip.ru/">MixliP-Все для вебмастера! У нас вы найдете скрипты uCoz , сайта ,Dle ,шаблоны,букса,скрипты хайпов,казино и многое другое</a></div>
<div class="footer">
<div class="clr"></div>
</div>
\ No newline at end of file
<html>
<head>
<title>Fruit Farm - {!TITLE!}</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<meta name="description" content="{!DESCRIPTION!}">
<meta name="keywords" content="{!KEYWORDS!}">
<link href="/style/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/js/jquery.js"></script>
<script type="text/javascript" src="/js/functions.js"></script>
</head>
<body>
<div class="toptop"></div>
<div class="header"></div>
<div class="clr-line">
<table align="center" border="0">
<tbody><tr>
<td><a href="/"><div class="glmenut1"></div></a></td>
<td width="15">&nbsp;</td>
<td><a href="/about"><div class="glmenut2"></div></a></td>
<td width="15">&nbsp;</td>
<td><a href="/news"><div class="glmenut3"></div></a></td>
<td width="15">&nbsp;</td>
<td><a href="/payments"><div class="glmenut4"></div></a></td>
<td width="15">&nbsp;</td>
<td><a href="/rules"><div class="glmenut5"></div></a></td>
<td width="15">&nbsp;</td>
<td><a href="/contacts"><div class="glmenut6"></div></a></td>
</tr>
</tbody></table>
</div>
<div class="wrap">
<div class="content">
<div class="cl-left"><?PHP include("inc/_menu_left.php"); ?>
<div class="autoriz">
</div>
</div>
<div class="cl-right">
<div class="clr"></div>
</div>
\ No newline at end of file
<?PHP
if(isset($_POST["log_email"])){
$lmail = $func->IsMail($_POST["log_email"]);
if($lmail !== false){
$db->Query("SELECT id, user, pass, referer_id, banned FROM db_users_a WHERE email = '$lmail'");
if($db->NumRows() == 1){
$log_data = $db->FetchArray();
if(strtolower($log_data["pass"]) == strtolower($_POST["pass"])){
if($log_data["banned"] == 0){
#
$db->Query("SELECT COUNT(*) FROM db_users_a WHERE referer_id = '".$log_data["id"]."'");
$refs = $db->FetchRow();
$db->Query("UPDATE db_users_a SET referals = '$refs', date_login = '".time()."', ip = INET_ATON('".$func->UserIP."') WHERE id = '".$log_data["id"]."'");
$_SESSION["user_id"] = $log_data["id"];
$_SESSION["user"] = $log_data["user"];
$_SESSION["referer_id"] = $log_data["referer_id"];
Header("Location: /account");
}else echo "<center><font color = 'red'><b> </b></font></center><BR />";
}else echo "<center><font color = 'red'><b>Email / </b></font></center><BR />";
}else echo "<center><font color = 'red'><b> Email </b></font></center><BR />";
}else echo "<center><font color = 'red'><b>Email </b></font></center><BR />";
}
?>
<div class="autoriz">
<form action="" method="post">
<div class="h-title"> </div>
<table width="200" border="0" align="center">
<tr>
<td colspan="2">Email:<BR /><input name="log_email" type="text" size="23" maxlength="35" class="lg"/></td>
</tr>
<tr>
<td colspan="2"> [<a href="/recovery" class="rs-ps"> ?</a>]:<BR /><input name="pass" type="password" size="23" maxlength="35" class="ps"/></td>
</tr>
<tr height="5">
<td align="center" valign="top"><input type="submit" value="" class="btn_in"/></form></td>
<td align="center" valign="top"><form action="/signup" method="post"><input type="submit" value="" class="btn_reg"/></form></td>
</tr>
</table>
</div>
\ No newline at end of file
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment