PDA

View Full Version : Lỗi Web MU NBB của mrHau :(( trên vps help !



godhoang
09-05-11, 07:07 PM
Connect($database,$databaseuser,$databsepassword); if (!$connect_mssql) die("Ket noi voi SQL Server loi! Hay kiem tra lai ODBC ton tai hoac User & Pass SQL dung."); } elseif($type_connect=='mssql'){ if (extension_loaded('mssql')) {echo("");} else Die("Loi! Khong the load thu vien php_mssql.dll. Hay cho phep su dung php_mssql.dll trong php.ini"); $db = &ADONewConnection('mssql'); $connect_mssql = $db->Connect($localhost,$databaseuser,$databsepassword, $database); if (!$connect_mssql) die("Loi! Khong the ket noi SQL Server"); } include('config/config_dongbo.php'); //Nạp thẻ $Card_per_page = 30; // Số lượng card tren 1 trang. $datedisplay = 'd/m/Y'; //Kiểu ngày tháng hiển thị //Danh sách các Server: $server[] = 'Sub-1'; //Tên Sub lấy trong GameServer1\Data\ServerInfo.dat : ServerName $server[] = 'Sub-2'; //Tên Sub lấy trong GameServer2\Data\ServerInfo.dat : ServerName $server[] = 'Sub-3'; //Tên Sub lấy trong GameServer3\Data\ServerInfo.dat : ServerName $server[] = 'Sub-4'; //Tên Sub lấy trong GameServer4\Data\ServerInfo.dat : ServerName //Lựa chọn khi Reset: $XoayKiem = '1'; //Học Xoáy Kiếm cho DK ngay ở LV1 $MuiTenVoTan = '1'; //Học Mũi Tên Vô Tận cho Elf Cấp 3 ngay ở LV1 $RedStom = '1'; //Học Skill đánh Lan RedStom cho Summoner ngay ở LV1 ?>
Warning: in_array() expects parameter 2 to be array, null given in C:\xampp\htdocs\server\security.php on line 19
Khong co quyen truy cap
$this->numChars)) $this->numChars = $num; # generate string randmica $this->texto = $this->gerString(); $_SESSION['vImageCodS'] = $this->texto; } function loadCodes(){ $this->postCode = strtoupper($_POST['vImageCodP']); $this->sessionCode = $_SESSION['vImageCodS']; } function checkCode(){ if (isset($this->postCode)) $this->loadCodes(); if ($this->postCode == $this->sessionCode) return true; else return false; } function showCodBox($mode=0,$extra=''){ $str = " "; if ($mode) echo $str; else return $str; } function showImage(){ $this->gerImage(); header("Content-type: image/png"); ImagePng($this->im); } function gerImage(){ # Calculate size to fit text $this->w = ($this->numChars*$this->charx) + 40; #5px de cada lado, 4px por char # Create img $this->im = imagecreatetruecolor($this->w, $this->h); #draw border and background imagefill($this->im, 0, 0, $this->getColor($this->colBorder)); imagefilledrectangle ( $this->im, 1, 1, ($this->w-2), ($this->h-2), $this->getColor($this->colBG) ); #draw circles for ($i=1;$i<=$this->numCirculos;$i++) { $randomcolor = imagecolorallocate ($this->im , rand(100,255), rand(100,255),rand(100,255)); imageellipse($this->im,rand(0,$this->w-10),rand(0,$this->h-3), rand(20,60),rand(20,60),$randomcolor); } #write text $ident = 20; for ($i=0;$i<$this->numChars;$i++){ $char = substr($this->texto, $i, 1); $font = rand(4,5); $y = round(($this->h-15)/2); $col = $this->getColor($this->colTxt); imagechar ( $this->im, $font, $ident, $y, $char, $col ); $ident = $ident+$this->charx; } } function getColor($var){ $rgb = explode(" ",$var); $col = imagecolorallocate ($this->im, $rgb[0], $rgb[1], $rgb[2]); return $col; } function gerString(){ rand(0,time()); $possible="AGHacefhjkrStVxY124579"; while(strlen($str)<$this->numChars) { $str.=substr($possible,(rand()%(strlen($possible)) ),1); } $txt = strtoupper($str); return $txt; } } ?>

loveistodie
09-05-11, 08:29 PM
Warning: in_array() expects parameter 2 to be array, null given in C:\xampp\htdocs\server\security.php on line 19
~>Khong co quyen truy cap
file có j nhỉ hinh như có đoạn check ip host bạn sửa ip của host trong phần server or bỏ quách đoạn check ip trong đó đi thử xem post kiểu nayf k biết lối mà lần :-s hcar hiẻu bạn hỏi cái j nữa