| |||||||
| المدوّنات | البحث | مشاركات اليوم | اجعل كافة المشاركات مقروءة |
|
| | LinkBack | أدوات الموضوع |
| |||||
| اخواني اخواتي السلام عليكم ورحمة الله وبركاته المشكله وجدتها لدى جميع من يركب هذا السكربت ولم اجد حل لها حتى المواقع الروسية فتشت ولكن دون جدوى http://www.google.com/search?num=50&...line+11.&meta= المشكلة: عند تركيب سكربت على هذا الرابط http://www.swalif.net/softs/swalif68/softs228587/ مشيت في الخطوات وعرفت طريقة التركيب ولكن يظهر الخطأ includes/ip.php on line 11 /home/xxxxx/public_html/includes/ip.php on line 11 xxxx= اليوزر فما هو حل الدالة في السطر 11 محتوى الملف =========بداية محتوى===الملفip.php ======= <?php define('SMALL', 0); define('BIG', 1); class ClientInfo { var $flag_dirs = array(SMALL => 'assets/flags/small', BIG => 'assets/flags/big'); var $flag_ext = 'png'; cfunction getctrybycode($code) { $countryArray = array(); $input = "includes/countries.dat"; $fd = fopen($input,"r") or die("Error: cannot open $input!"); while ($buffer = fgets($fd,4096)) { $buffer = preg_replace("/\n/","",$buffer); //chomp() $pieces = explode(",",$buffer); $countryCode = $pieces[0]; $countryName = $pieces[1]; $countryArray[$countryCode] = $countryName; } fclose($fd); return $countryArray[$code]; } cfunction getctrybyhost($hostname) { return($this->getctrybycode($this->getctrycodebyhost($hostname))); } cfunction getctrycodebyhost($hostname) { return(substr(strrchr($hostname,'.'),1)); } cfunction MaskOtherIP($IP) { if($IP==getenv("REMOTE_ADDR")) return($IP); $IP=strtr($IP,"0123456789","##########"); return($IP); } cfunction getClientIP() { $IP = getenv('REMOTE_ADDR'); return $IP; } cfunction getClientHostname() { $error = 0; $IP = $this->getClientIP(); $hostname = gethostbyaddr($IP); if(!strcmp($hostname,$IP)) $error = 1; // if failure, gethostbyaddr() returns the IP if (!$error) //if no error { return $hostname; } //else return ""; } cfunction getClientCountry() { $error = 0; $hostname = $this->getClientHostname(); if (!strcmp($hostname,"")) $error = 1; if (!$error) { $country = $this->getctrybyhost($hostname); return $country; } //else return ""; } cfunction getClientFlag($size) { $error = 0; $hostname = $this->getClientHostname(); if (!strcmp($hostname,"")) $error = 1; if (!$error) { $country_code = strtolower($this->getctrycodebyhost($hostname)); $file_name = $this->flag_dirs[$size] . '/' . $country_code . '.' . $this->flag_ext; if (is_readable($file_name)) { return $file_name; } } //else return ""; } cfunction getClientFlagHTML($size) { $error = 0; $flag = $this->getClientFlag($size); if (!strcmp($flag,"")) $error = 1; if (!$error) { return '<img src="' . $flag . '">'; } //else return ""; } }; ======================انتهى=============== | |||||
|
| |||||
|
مثال http://www.odcsearch.com/search/search.php?dir=Games نص الخطا Parse error: syntax error, unexpected T_STRING, expecting T_FUNCTION in /home/gooxu/domains/odcsearch.com/public_html/search/includes/ip.php on line 11 | |||||
|
| |||||
|
يا حبيبي؟ انت تستخدم كود صنع في بدايه العام 1998 .. الام cfunction قديم جدا .. اذا اردت ان تحل مشكلتك حول جميع السطور التي فيها cfrunction الى old_function الشيء الاخر اللذي اود انك تتقيد فيه هو ان تضع عنوان واضح لمشكلتك .. لانك الان قد اخترقت بعض قوانين منتدى سوالف. وللذي ينص على وضع عنوان واضح يشير الى نوعيه المسئله. وشكرا | |||||
|
![]() |
| |
| |
| أدوات الموضوع | |
| |
المواضيع المتشابهه | ||||
| الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
| جـــوجـــل www.google.com | الملاك الحزين | تطوير الويب | 24 | 16-02-2008 12:43 PM |
| إختراق المواقع و طرق الوقاية | webayu | تطوير الويب | 1 | 07-12-2006 12:13 PM |
| تعلم وإحترف : لغة البحث على شبكة الإنترنت . مع فقرة خاصة لأصحاب المواقع | قصيمي نت | تقنية محركات البحث والـSearch Engine Optimization | 16 | 27-03-2006 08:10 PM |
| "الهاجانة".. حرب صهيونية على مواقع الإنترنت الإسلامية | أبو غريب | تطوير الويب | 0 | 13-12-2004 05:27 PM |
| بعض اخطاء للاسف يقع فيها الاعضاء رجاء الانتباه | Help For You | خدمات البيع والشراء والإعلانات التجارية | 18 | 15-04-2004 02:22 PM |