Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Installation Help
Author Message
Mike2098
New Member
New Member



Joined: May 30, 2005
Posts: 10

PostPosted: Thu Feb 02, 2006 12:04 pm Reply with quote

The code for the mainfile in pcnuke does not have the following lines
Code:
if (defined('FORUM_ADMIN')) {

   @require_once("../../../config.php");
   @require_once("../../../db/db.php");
   @require_once("../../../includes/sql_layer.php");
 etc etc


Instead they have

Code:
if (!defined('ADMIN_FILE') && !file_exists('includes/nukesentinel.php')) {

  foreach ($_GET as $sec_key => $secvalue) {
    if ((eregi("<[^>]*script*\"?[^>]*>", $secvalue)) ||
   (eregi("<[^>]*object*\"?[^>]*>", $secvalue)) ||
   (eregi("<[^>]*iframe*\"?[^>]*>", $secvalue)) ||


which looks like it does the same thing but sentinal just gives me
Quote:
It appears that NukeSentinel™ has not been configured correctly. The most common cause is that you either have an error in the syntax that is including includes/nukesentinel.php from your mainfile.php, or you have not added the NukeSentinel™ code to your mainfile.php. Details for including this code are included in the download package in the Edits_For_Core_Files directory.


the Your_Account/index.php does not have this code in it either
Code:
in function mail_password($username, $code) {


it looks nothing like the original

Code:
define('INDEX_FILE', true);




if (!eregi("modules.php", $_SERVER['SCRIPT_NAME'])) {

        die ("You can't access this file directly...");

}

$module_name = basename(dirname(__FILE__));

require_once("modules/Your_Account/includes/constants.php");

if (!defined('CNBYA')) { echo "CNBYA protection"; exit; }

require_once("mainfile.php");

include_once("modules/$module_name/includes/functions.php");



// menelaos: removed because it is already called in /modules/Your_Account/includes/mainfileend.php

$ya_config = ya_get_configs();



get_lang($module_name);

$userpage = 1;

//$index    = 1;

include("modules/$module_name/navbar.php");

include("modules/$module_name/includes/cookiecheck.php");

cookiedecode($user);



switch($op) {



    case "activate":

        include("modules/$module_name/public/activate.php");

    break;



    case "avatarlist":

        if (is_user($user)) {

            include("modules/$module_name/public/avatarlist.php");

        } else {

            notuser();

        }

    break;



    case "avatarsave":

        if (is_user($user)) {

            include("modules/$module_name/public/avatarsave.php");

        } else {

            notuser();

        }

    break;



    case "avatarlinksave":

        if (is_user($user)) {

            include("modules/$module_name/public/avatarlinksave.php");

        } else {

            notuser();

        }

    break;



    case "broadcast":

        if ($broadcast_msg == 1) {

            include("modules/$module_name/public/broadcast.php");

        } else {

            disabled();

        }

    break;



    case "delete":

        if ($ya_config['allowuserdelete'] == 1) {

            include("modules/$module_name/public/delete.php");

        } else {

            disabled();

        }

    break;



    case "deleteconfirm":

        if ($ya_config['allowuserdelete'] == 1) {

            include("modules/$module_name/public/deleteconfirm.php");

        } else {

            disabled();

        }

    break;




anyone have any sugestions

thanks
 
View user's profile Send private message
sting
Involved
Involved



Joined: Sep 23, 2003
Posts: 456
Location: Somewhere out there...

PostPosted: Thu Feb 02, 2006 3:50 pm Reply with quote

Did you add the sentinel code t your mainfile.php?

-sting
 
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Installation Help

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©