srhh
Involved


Joined: Dec 27, 2005
Posts: 296
|
Posted:
Fri Dec 30, 2005 11:46 pm |
|
I have another question along this line. So I installed RN7.6 w/ Sentinel 2.4.2. Then uploaded CNBYA 750_440_beta2. Everything works ok, but I saw these posts and wondered if I need to change the same files too. |
_________________ Windows XP crashed.
I am the Blue Screen of Death.
No one hears your screams.
----------------------------------------
Yesterday it worked.
Today it is not working.
Windows is like that. |
|
srhh

|
Posted:
Tue Jan 03, 2006 1:38 pm |
|
Actually, now that I'm looking closer at the install files for Sentinel and CBNYA, the only thing I see changed is the Index for 7.6 in Sentinel. I'm assuming the mainfile.php, admin and header was already changed for RavenNuke 7.6. I'm just looking for confirmation that adding/replacing the following code in Your_account/index.php that come with CNBYA won't mess up CBNYA or Sentinel. Not sure how compatible they are.
/************************************************************************/
/* This file is for instructional use. */
/* By: NukeScripts Network (webmaster@nukescripts.net) */
/* http://www.nukescripts.net */
/* Modifications Copyright © 2000-2005 by NukeScripts Network */
/************************************************************************/
/* Based on Patched 3.1 Your_Account/index.php your */
/* Your_Account/index.php may differ from the examples found here. */
/************************************************************************/
#
#-----[ OPEN ]------------------------------------------
#
index.php
in function mail_password($username, $code) {
#
#-----[ FIND ]------------------------------------------
#
global $sitename, $adminmail, $nukeurl, $user_prefix, $db, $module_name;
#
#-----[ ADD TO IT ]------------------------------------------
#
$nsnst_const,
Now it will look something like:
global $nsnst_const, $sitename, $adminmail, $nukeurl, $user_prefix, $db, $module_name;
#
#-----[ FIND ]------------------------------------------
# This appears twice in this function
$host_name = $_SERVER['REMOTE_ADDR'];
#
#-----[ REPLACE WITH ]------------------------------------------
#
if(!defined("NUKESENTINEL_IS_LOADED")) {
$host_name = $_SERVER['REMOTE_ADDR'];
} else {
$host_name = $nsnst_const['remote_ip'];
}
in function login($username, $user_password, $redirect, $mode, $f, $t, $random_num, $gfx_check) {
#
#-----[ FIND ]------------------------------------------
#
global $setinfo, $user_prefix, $db, $module_name, $pm_login, $prefix;
#
#-----[ ADD TO IT ]------------------------------------------
#
$nsnst_const,
Now it will look something like:
global $nsnst_const, $setinfo, $user_prefix, $db, $module_name, $pm_login, $prefix;
#
#-----[ FIND ]------------------------------------------
#
$uname = $_SERVER['REMOTE_ADDR'];
#
#-----[ REPLACE WITH ]------------------------------------------
#
if(!defined("NUKESENTINEL_IS_LOADED")) {
$uname = $_SERVER['REMOTE_ADDR'];
} else {
$uname = $nsnst_const['remote_ip'];
}
in function userinfo($username, $bypass=0, $hid=0, $url=0) {
# Submitted by technocrat
#-----[ FIND ]------------------------------------------
#
echo "[ <a href='".$admin_file.".php?op=ipban&ip=".$userinfo['last_ip']."'>"._BANTHIS."</a> | <a href=\"".$admin_file.".php?op=modifyUser&chng_uid=".$userinfo['username']."\">"._EDITUSER."</a> ]</center>";
#
#-----[ REPLACE WITH ]------------------------------------------
#
echo "[ <a href='".$admin_file.".php?op=ABBlockedIPAdd&tip=".$userinfo['last_ip']."'>"._BANTHIS."</a> | <a href=\"".$admin_file.".php?op=modifyUser&chng_uid=".$userinfo['username']."\">"._EDITUSER."</a> ]</center>"; |
|
|