______ ____ ____ ______ _____ __ ____ _____ ________ .' ___ ||_ \ / _||_ _ `.|_ _| / | |_ \|_ _||_ __ | / .' \_| | \/ | | | `. \ | | `| | | \ | | | |_ \_| | | | |\ /| | | | | | | | _ | | | |\ \| | | _| _ \ `.___.'\ _| |_\/_| |_ _| |_.' /_| |__/ | _| |_ _| |_\ |_ _| |__/ | `.____ .'|_____||_____||______.'|________||_____||_____|\____||________| █ Cracked By: CMDL1NE █ CMDL1NE@w.cn █ Twitter.com/CMDL1NE █ ALWAYS GIVE CREDITS BEFORE YOU SPREAD! █ █Website: Scsl.ru █Pagerank: 4 █IP: 213.159.197.24 ██████████████████████████████BEGIN█████████████████████████████████████ if ( !defined('IN_RPGLIST') ) { die("Hello, hacker-fucker!"); } if(!isset($ms)) { $ms=1; # êëàññ, îòâå÷àþùèé çà êîííåêò ê ÁÄ class MySQLDB { function MySQLDB($sqlserver, $sqluser, $sqlpassword, $database, $persistency = true) { $this->persistency = $persistency; $this->user = $sqluser; $this->pass = $sqlpassword; $this->host = $sqlserver; $this->db = $database; if($this->persistency) { $this->id = @mysql_pconnect($this->host, $this->user, $this->pass) or # MySQL_ErrorMsg("Unable to connect to MySQL server: $this->host : '$SERVER_NAME'"); MySQL_ErrorMsg("Unable to connect to MySQL server"); } else { $this->id = @mysql_connect($this->host, $this->user, $this->pass) or MySQL_ErrorMsg("Unable to connect to MySQL server"); } if($this->id) { if($database != "") { $this->db = $database; $dbselect = @mysql_select_db($this->db); if(!$dbselect) { @mysql_close($this->id); $this->db_connect_id = $dbselect; # MySQL_ErrorMsg ("Unable to select database: $database"); MySQL_ErrorMsg ("Unable to select database"); } } return $this->id; } else { return false; } } } # êëàññ, îòâå÷àþùèé çà ðàáîòó ñ îòêðûòîé ÁÄ (çàïðîñû, âûáîðêè è ò.ä.) class MySQL { # èíäåêñ ðåçóëüòàòà ïîñëå âûïîëíåíèÿ mysql_query var $result, $rows, $data, $a_rows; # óíèâåðñàëüíàÿ ôóíêöèÿ çàïðîñà function Query ($query) { # ãëîáàëüíûé îáúåêò äëÿ äîñòóïà ê áàçå global $dbSQL; $this->result = @mysql_query($query, $dbSQL->id) or # MySQL_ErrorMsg ("Unable to perform query: $query"); MySQL_ErrorMsg ("Unable to perform query"); $this->rows = @mysql_num_rows($this->result); $this->a_rows = @mysql_affected_rows($dbSQL->id); } # Âûïîëíÿåò çàïðîñ, çàïèñûâàåò ðåçóëüòàò â ïåðåìåííóþ data function QueryObj ($query) { $this->Query($query); $this->data = @mysql_fetch_object($this->result); return $this->rows; } # Âûïîëíÿåò çàïðîñ, çàïèñûâàåò ðåçóëüòàò â ïåðåìåííóþ data function QueryNum ($query) { $this->Query($query); $this->data = @mysql_result($this->result,0); return $this->data; } # Ô-èÿ çàïðàøèâàåò íàçâàíèÿ ïîëåé äëÿ çàäàííîé òàáëèöû function GetFields ($table) { # ãëîáàëüíûé îáúåêò äëÿ äîñòóïà ê áàçå global $dbSQL; $this->result = @mysql_list_fields($dbSQL->db, $table, $dbSQL->id) # or MySQL_ErrorMsg ("Unable to info for $table"); or MySQL_ErrorMsg ("Unable to info for table"); $columns=@mysql_num_fields($this->result); $this->rows = $columns; $this->a_rows = $columns; for($i=0; $i<$columns; $i++) { $this->data[$i]=mysql_field_name($this->result, $i); } return $this->data; } # Çàïèñûâàåò ñëåäóþùèé çàïèñü â ïåðåìåííóþ data function NextObj ($num = 0) { if($num) { mysql_data_seek($this->result, $num); } $this->data = @mysql_fetch_object($this->result); if($this->data) return 1; else return 0; } function Insert ($query) { $this->Query($query); return mysql_insert_id(); } function Update ($query) { $this->Query($query); return $this->a_rows; } function Delete ($query) { $this->Query($query); } } # ******************************************************************** # ôóíêöèÿ ïå÷àòàþùàÿ ñîîáùåíèå îá îøèáêå MySQL function MySQL_ErrorMsg ($msg) { global $already; # çàêðûâàåì òýãè, êîòîðûå ìîãëè áûòü îòêðûòûìè echo("\n"); echo("\n"); # ñîîáùåíèå îá îøèáêå $text = "

Error: $msg :"; # $text .= mysql_error(); $text .= $already; $text .= "\n"; die($text); } # ******************************************************************** # ãëîá. ïåðåìåííûå ïî óìîë÷àíèþ $dbSQL=new MySQLDB('localhost', 'scslru', 'ika3Shiut', 'scslru', 'false'); $bd=new MySQL; } ██████████████████████████████END█████████████████████████████████████ Have Fun! ████████████████████████████████████████████████████████████████████ CMDL1NE ████████████████████████████████████████████████████████████████████