مرحبا ...
لاحظت أنه الخطأ في ملف \includes\my_header.php في السطر 52 ... ذهبت للملف في هذا السطر فوجدت أن هناك تعديل على هذا الملف لأني أضفت عدة سطور خاصة ببرنامج المتواجدون حاليا في الموقع ... وهو على هذا الرابط :
http://www.dged.net/modules.php?name=Who-is-Where
وهذه السطور التي يحتوي عليها الملف :
كود PHP:
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* [url]http://phpnuke.org[/url] */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
/*
This file is to customize whatever stuff you need to include in your site
when the header loads. This can be used for third party banners, custom
javascript, popup windows, etc. With this file you don't need to edit
system code each time you upgrade to a new version. Just remember, in case
you add code here to not overwrite this file when updating!
Whatever you put here will be between <head> and </head> tags.
*/
/*Funcion Favoritos*/
echo " <script languaje=\"JavaScript\"> \n";
echo " var bookmarkurl=\"$nukeurl\" \n";
echo " var bookmarktitle=\"$sitename\" \n";
echo " function addbookmark(){ \n";
echo " if (document.all) \n";
echo " window.external.AddFavorite(bookmarkurl,bookmarktitle) \n";
echo " } \n";
echo " </script> \n";
// السطور الخاصة ببرنامج تواجد المتصفحين الان
$content = "";
global $user, $cookie, $prefix, $user_prefix, $dbi, $anonymous,$name,$REQUEST_URI;
cookiedecode($user);
$ip = getenv("REMOTE_ADDR");
$username = $cookie[1];
if (!isset($username)) {
$username = "$ip";
$guest = 1;
}
$past = time()-900;
sql_query("DELETE FROM $prefix"._whoiswhere." WHERE time < $past", $dbi);
$result = sql_query("SELECT time FROM $prefix"._whoiswhere." WHERE username='$username'", $dbi);
$ctime = time();
if ($row = sql_fetch_array($result, $dbi)) {
sql_query("UPDATE $prefix"._whoiswhere." SET username='$username', time='$ctime', host_addr='$ip', guest='$guest',module='$name',url='$REQUEST_URI' WHERE username='$username'", $dbi);
} else {
sql_query("INSERT INTO $prefix"._whoiswhere." (username, time, host_addr, guest,module,url) VALUES ('$username', '$ctime', '$ip', '$guest','$name','$REQUEST_URI')", $dbi);
}
// نهاية تواجد المتصفحين الان
?>
قمت بإلغاء هذه السطور لبرنامج المتصفحون في الموقع فاختفى هذا الخطأ وظهر خطأ آخر في الصفحة في ملف theme.php السطر 54 :
وهو هذا الخطأ :
Parse error: parse error, expecting `T_CASE' or `T_DEFAULT' or `'}'' in /home/dgednet/public_html/includes/sql_layer.php on line 285
Fatal error: Call to undefined function: sql_fetch_array() in /home/dgednet/public_html/themes/Iris/theme.php on line 54
وهذا هو السطر 54 في ملف theme.php :
while(list($topicid, $topics) = sql_fetch_row($toplist, $dbi)) {
على العمو سوف أدرج ملف my_header.php المعدل إذا كان يحتاج له تعديل لأني أريد أستخدم البرنامج المتواجدون حاليا ولا أستطيع الأستغناء عنه وقد حملته من هذا الموقع :
http://www.shababnet.com/
وأيضا سوف أدرج ملف theme.php الثيم الخاص بالموقع إذا يحتاج له تعديل أو فيه خطأ .