عرض مشاركة مفردة
 
  #4  
قديم 13-09-2004, 07:14 PM
ALALMASEE ALALMASEE غير متصل
عضو
 
تاريخ التسجيل: Jul 2004
مشاركة: 61
مستوى تقييم العضوية: 21
ALALMASEE is on a distinguished road
الافتراضي

السلام عليكم ورحمة الله وبركاته

شكرا لك اخوي DCI-Designs على مجهودك الطيب جعله الله في موازين اعمالك الصالحه


اخوي DCI-Designs انا جربت الكود على السيرفر المحلي والحمد لله اشتغل معاي مضبوط

ولكن للاسف لم اضفته على المجله على الانترنت ما اشتغل

كل ما ابي ادخل على لوحة التحكم تطلع لي الصفحه بيضه ما فيها شي تماما لم الغي الكود ترجع تشتغل المجله

وحتى اتاكد ان اللي سويته صح انا اضفت الكود في ملف admin.php اللي في المجلد الرئيسي للمجله


وهذا الملف قبل لا اضيف اي شيء كان بهذا الشكل /

كود PHP:
<?php
/************************************************************************/
/* PHP-NUKE: Advanced Content Management System                         */
/* ============================================                         */
/*                                                                     */
/* Copyright (c) 2002 by Francisco Burzi                                */
/* http://phpnuke.org                                                 */
/*                                                                     */
/* 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.     */
/*                                                                     */
/************************************************************************/
/* Additional security checking code 2003 by chatserv                 */
/* http://www.nukefixes.com -- http://www.nukeresources.com             */
/************************************************************************/
if(stristr($_SERVER["QUERY_STRING"],'AddAuthor') || stristr($_SERVER["QUERY_STRING"],'UpdateAuthor')) {
die(
"Illegal Operation");
}
$checkurl $_SERVER['REQUEST_URI']; 
if ((
preg_match("/\?admin/""$checkurl")) || (preg_match("/\&admin/""$checkurl"))) { 
echo 
"die"
exit; 
}
require_once(
"mainfile.php");
get_lang(admin);
function 
create_first($name$url$email$pwd$user_new) {
    global 
$prefix$db$user_prefix;
    
$first =

وبعد ما حطيت الكود حسب كلامك لازم اضيفه في البدايه حطيته بهذا الشكل /

كود PHP:
 <?php
 
$user 
"alal";
$pass "123";
if ((
$PHP_AUTH_USER!=$user)||($PHP_AUTH_PW!=$pass)) {
Header('WWW-Authenticate: Basic realm="لوحة تحكم المجلة"');
Header('HTTP/1.0 401 Unauthorized');
exit;
}
/************************************************************************/
/* PHP-NUKE: Advanced Content Management System                         */
/* ============================================                         */
/*                                                                     */
/* Copyright (c) 2002 by Francisco Burzi                                */
/* http://phpnuke.org                                                 */
/*                                                                     */
/* 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.     */
/*                                                                     */
/************************************************************************/
/* Additional security checking code 2003 by chatserv                 */
/* http://www.nukefixes.com -- http://www.nukeresources.com             */
/**********************************************************************

يا ريت اخوي لو تساعدني في هذا الموضوع فانا في حاجه له جدا جدا

شاكر لك ومقدر لك تعاونك وتجاوبك الكريم

وتمنياتي للجميع بالتوفيق