Author |
Message |
Mike2098
New Member


Joined: May 30, 2005
Posts: 10
|
Posted:
Wed Mar 08, 2006 2:52 am |
|
I am running pcnuke-extreme I have managed to edit all the files exept the your Account as this system is ussing CNB Your Account the index file just makes referance to other files in a public folder which is part of the CNB Your Account does anyone know how or where to modify the code for sentinal to be included
thanks
Mike |
|
|
|
 |
montego
Site Admin

Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Wed Mar 08, 2006 5:37 am |
|
Mike2098, I updated your topic text to include Nuke Sentinel in it since it is a very specific question that will need someone who uses both CNBYA and NS to help you. |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
 |
slappy
New Member


Joined: May 28, 2006
Posts: 23
|
Posted:
Wed Aug 30, 2006 11:04 pm |
|
Hi,
I am having a similar issue, different version of NUKE.
Here is the info that I would want to know if I were helping me...
website: www.seceight.com
PHP-NUKE v7.6 / patched 1.3
Apache2Triad version 1.4.4
Apache version 2.0.55
MySQL version 4.0.26
PHP version 4.4.2
CNB Your Account 4.4.0
Gallery 2 version 2.1.1a full
Gallery 2 migration v0512
NukeSentinel(tm) 2.5.01
CNB 4.4.0 all ready installed and working fine. Then the install for Nuke Sentinel went fine except for the changes in the index.php of Your_Account because I'm using CNB Your Account. It seems like everything is working except for when users try to access the 'Change Info' option when viewing their home 'Your Account' page. The page times out when they click on Change Info. I would really really really appriciate some help with this and am willing to pay for this help!!
Thanks,
Slappy |
Last edited by slappy on Tue Sep 05, 2006 3:38 pm; edited 1 time in total |
|
|
 |
evaders99
Former Moderator in Good Standing

Joined: Apr 30, 2004
Posts: 3221
|
Posted:
Thu Aug 31, 2006 10:57 am |
|
What does it return? Any error messages? |
_________________ - Only registered users can see links on this board! Get registered or login! -
Need help? Only registered users can see links on this board! Get registered or login! |
|
|
 |
kguske
Site Admin

Joined: Jun 04, 2004
Posts: 6437
|
Posted:
Thu Aug 31, 2006 11:08 am |
|
If I remember correctly, the changes for the Your_Account module were to address a specific security issue with your account. CNB doesn't have that issue... |
_________________ I search, therefore I exist...
Only registered users can see links on this board! Get registered or login! |
|
|
 |
slappy

|
Posted:
Thu Aug 31, 2006 1:45 pm |
|
Thanks for the quick reply!
There is no return error. I also checked the php error log, and sql error log, and no errors on this issue. The page will just time out when clicking on Change Info. The other links on Your Account page are working fine. If there is any information you guys need me to post here, let me know.
One other thing, I found a thread on this issue here:
http://www.ravenphpscripts.com/posts6375-highlight-sentinel+cnb.html
I'm not sure if this is the solution to my issue...
Slappy |
|
|
|
 |
slappy

|
Posted:
Sat Sep 02, 2006 12:15 pm |
|
So, Is there anything you guys need in order to help me out with this problem I am having? Or is there a solution you can offer? PLEASE!
EDIT: If I am posting this in the wrong area or am doing somthing wrong, please let me know....
BTW: Our site was hit really hard this weekend and Sentenal saved my butt. 48 total hack attempts and still running! I just would really like to get the ability for our users to edit their user information.
Again, if there is anything I am leaving out, please let me know!
Thanks,
Slappy |
|
|
|
 |
slappy

|
Posted:
Wed Sep 06, 2006 3:16 pm |
|
So, I take it that I am the only one who has every had this issue and it's probably somthing that I messed up.... OK Well, I will figure it out on my own! =( |
|
|
|
 |
srhh
Involved


Joined: Dec 27, 2005
Posts: 296
|
Posted:
Wed Sep 06, 2006 3:53 pm |
|
Hi slappy,
I'm running about the same programs you are. I've installed CNBYA 4.42 and have sentinel 2.5.2 and I have not had the same time-out problem you've been experiencing. (I also did *not* apply the suggested code changes in the post you referenced up there).
Im only a beginner-intermediate Nuke user, so these are the only suggestions I've come up with:
Try re-uploading the CNBYA files again. Maybe one of the files got corrupted. Also, double check the tables in your MySQL to make sure they are all there.
Make sure the "Cookie Checker" is deactivated in the CNBYA Admin section (under cookie configuration) I had that on once and it gave me alot of headaches.
I have had a few minor issues with CNBYA, but nothing that has affected the big things, like changing info, etc etc. Its more than likely something on your end, whether file/database or server related.
Hopefully these other problems will be addressed when the now mythical new CNBYA 5.0 come out.
 |
|
|
|
 |
slappy

|
Posted:
Wed Sep 06, 2006 5:31 pm |
|
Thank you for your reply!! Somtimes my posts go un-answered and as more time goes by it just makes me feel like a bigger idiot than I all ready am!
Well, I copied the CNBYA files from the origional back to public and that had no effect. The thing is, I had CNBYA working fine. It was the install of Sentinel that screwed up everyones ability to change their user settings....
I will digg around and do a few restores and see where it takes me.... |
|
|
|
 |
srhh

|
Posted:
Wed Sep 06, 2006 8:43 pm |
|
slappy wrote: | Hi,
Here is the info that I would want to know if I were helping me...
NukeSentinel(tm) 2.5.01
|
There is a Sentinel upgrade available: 2.5.02. |
|
|
|
 |
slappy

|
Posted:
Wed Sep 06, 2006 10:18 pm |
|
OK,
I got to thinking and noticed that the sentinel version I had was for upgrade only. So I restored the files I changed and downloaded 2.5.00 full version.
A problem that I am having in the install of the full version is the core changes in the mainfile.php
The install instructions for mainfile 7.6 say:
Code:
#-----[ FIND ]------------------------------------------
#
if (defined('FORUM_ADMIN')) {
@require_once("../../../config.php");
@require_once("../../../db/db.php");
@require_once("../../../includes/sql_layer.php");
if (file_exists("../../../includes/custom_files/custom_mainfile.php")) { @include_once("../../../includes/custom_files/custom_mainfile.php"); }
@require_once("../../../includes/ipban.php");
if (defined('NUKE_HEADER') && file_exists("../../../includes/custom_files/custom_head.php")) { @include_once("../../../includes/custom_files/custom_head.php"); }
if (defined('NUKE_HEADER') && file_exists("../../../includes/custom_files/custom_header.php")) { @include_once("../../../includes/custom_files/custom_header.php"); }
} elseif (defined('INSIDE_MOD')) {
@require_once("../../config.php");
@require_once("../../db/db.php");
@require_once("../../includes/sql_layer.php");
if (file_exists("../../includes/custom_files/custom_mainfile.php")) { @include_once("../../includes/custom_files/custom_mainfile.php"); }
@require_once("../../includes/ipban.php");
if (defined('NUKE_HEADER') && file_exists("../../includes/custom_files/custom_head.php")) { @include_once("../../includes/custom_files/custom_head.php"); }
if (defined('NUKE_HEADER') && file_exists("../../includes/custom_files/custom_header.php")) { @include_once("../../includes/custom_files/custom_header.php"); }
} else {
@require_once("config.php");
@require_once("db/db.php");
@require_once("includes/sql_layer.php");
if (file_exists("includes/custom_files/custom_mainfile.php")) { @include_once("includes/custom_files/custom_mainfile.php"); }
@require_once("includes/ipban.php");
if (defined('NUKE_HEADER') && file_exists("includes/custom_files/custom_head.php")) { @include_once("includes/custom_files/custom_head.php"); }
if (defined('NUKE_HEADER') && file_exists("includes/custom_files/custom_header.php")) { @include_once("includes/custom_files/custom_header.php"); }
}
#
#-----[ CHANGE TO ]------------------------------------------
#
if (defined('FORUM_ADMIN')) {
@require_once("../../../config.php");
@require_once("../../../db/db.php");
@require_once("../../../includes/sql_layer.php");
if (file_exists("../../../includes/custom_files/custom_mainfile.php")) { @include_once("../../../includes/custom_files/custom_mainfile.php"); }
//@require_once("../../../includes/ipban.php");
@include_once("../../../includes/nukesentinel.php");
if (defined('NUKE_HEADER') && file_exists("../../../includes/custom_files/custom_head.php")) { @include_once("../../../includes/custom_files/custom_head.php"); }
if (defined('NUKE_HEADER') && file_exists("../../../includes/custom_files/custom_header.php")) { @include_once("../../../includes/custom_files/custom_header.php"); }
} elseif (defined('INSIDE_MOD')) {
@require_once("../../config.php");
@require_once("../../db/db.php");
@require_once("../../includes/sql_layer.php");
if (file_exists("../../includes/custom_files/custom_mainfile.php")) { @include_once("../../includes/custom_files/custom_mainfile.php"); }
//@require_once("../../includes/ipban.php");
@include_once("../../includes/nukesentinel.php");
if (defined('NUKE_HEADER') && file_exists("../../includes/custom_files/custom_head.php")) { @include_once("../../includes/custom_files/custom_head.php"); }
if (defined('NUKE_HEADER') && file_exists("../../includes/custom_files/custom_header.php")) { @include_once("../../includes/custom_files/custom_header.php"); }
} else {
@require_once("config.php");
@require_once("db/db.php");
@require_once("includes/sql_layer.php");
if (file_exists("includes/custom_files/custom_mainfile.php")) { @include_once("includes/custom_files/custom_mainfile.php"); }
//@require_once("includes/ipban.php");
@include_once("includes/nukesentinel.php");
if (defined('NUKE_HEADER') && file_exists("includes/custom_files/custom_head.php")) { @include_once("includes/custom_files/custom_head.php"); }
if (defined('NUKE_HEADER') && file_exists("includes/custom_files/custom_header.php")) { @include_once("includes/custom_files/custom_header.php"); }
}
|
I am not able to find that exact group of lines in my mainfile.php
These are the groups I found:
Group 1
Code:
if(defined('FORUM_ADMIN')) {
define('INCLUDE_PATH', '../../../');
} elseif(defined('INSIDE_MOD')) {
define('INCLUDE_PATH', '../../');
} else {
define('INCLUDE_PATH', './');
}
@require_once(INCLUDE_PATH."config.php");
@require_once(INCLUDE_PATH."db/db.php");
@require_once(INCLUDE_PATH."includes/sql_layer.php");
@require_once(INCLUDE_PATH."includes/ipban.php");
if (file_exists(INCLUDE_PATH."includes/custom_files/custom_mainfile.php")) {
@include_once(INCLUDE_PATH."includes/custom_files/custom_mainfile.php");
}
if (!defined('FORUM_ADMIN')) {
if(empty($admin_file)) {
die ("You must set a value for admin_file in config.php");
} elseif (!empty($admin_file) && !file_exists($admin_file.".php")) {
die ("The admin_file you defined in config.php does not exist");
}
}
|
Group 2
Code:
if (!defined('FORUM_ADMIN')) {
if ((isset($newlang)) AND (stristr($newlang,"."))) {
if (file_exists("language/lang-".$newlang.".php")) {
setcookie("lang",$newlang,time()+31536000);
include_once("language/lang-".$newlang.".php");
$currentlang = $newlang;
} else {
setcookie("lang",$language,time()+31536000);
include_once("language/lang-".$language.".php");
$currentlang = $language;
}
} elseif (isset($lang)) {
include_once("language/lang-".$lang.".php");
$currentlang = $lang;
} else {
setcookie("lang",$language,time()+31536000);
include_once("language/lang-".$language.".php");
$currentlang = $language;
}
}
|
Group 3
Code:
if(!defined('FORUM_ADMIN')) {
$ThemeSel = get_theme();
include_once("themes/$ThemeSel/theme.php");
}
if(!function_exists("themepreview")) {
function themepreview($title, $hometext, $bodytext="", $notes="") {
echo "<b>$title</b><br><br>$hometext";
if (!empty($bodytext)) {
echo "<br><br>$bodytext";
}
if (!empty($notes)) {
echo "<br><br><b>"._NOTE."</b> <i>$notes</i>";
}
}
}
|
Group 4
Code:
if(!defined('FORUM_ADMIN')) {
$ThemeSel = get_theme();
include_once("themes/$ThemeSel/theme.php");
}
if(!function_exists("themecenterbox")) {
function themecenterbox($title, $content) {
OpenTable();
echo "<center><font class=\"option\"><b>$title</b></font></center><br>$content";
CloseTable();
echo "<br>";
}
}
|
Any ideas? |
|
|
|
 |
montego

|
Posted:
Thu Sep 07, 2006 6:59 am |
|
It is the first one. After where you see this:
@require_once(INCLUDE_PATH."config.php");
@require_once(INCLUDE_PATH."db/db.php");
@require_once(INCLUDE_PATH."includes/sql_layer.php");
@require_once(INCLUDE_PATH."includes/ipban.php");
if (file_exists(INCLUDE_PATH."includes/custom_files/custom_mainfile.php")) {
@include_once(INCLUDE_PATH."includes/custom_files/custom_mainfile.php");
}
Simply add this line:
@require_once(INCLUDE_PATH."includes/nukesentinel.php"); |
|
|
|
 |
slappy

|
Posted:
Thu Sep 07, 2006 7:35 pm |
|
OK
I was able to get Sentinel re-installed and it works great. Before that I restored the mainfile.php, admin.php and header.php and all the files in Your_Account folder.
I am still not able to do the edit user function.
I did a little test.... not that this may mean anything.. but perhaps it may mean somthing to someone else. The edit user link takes you to the following:
http://www.seceight.com/modules.php?name=Your_Account&op=edituser
If I restore the index.php that I had before the install of CNBYA, I am able to get to the edit user page. But, I am not able to goto the main page:
http://www.seceight.com/modules.php?name=Your_Account&op=userinfo&username=Slappy
I have a feeling even if I Un-install CNBYA and restore the origional Your_account files and take out the added line at the end of the mainfile.php, that it will still act the same If I re-install CNBYA.....
Im not sure what I have done wrong! I wish I had some error messages to work with!
So what should I do next? Remove CNBYA compleatly and restore the origional Your_account files, then start over with a fresh install of CNBYA? There has got to be a way to check out the edituser.php file, see what it is asking for and find an answere that way?
I hope someone can help!
EDIT: One thing that I have failed to mention, that may be the cause of all my problems.... I also did the BBtoNUKE upgrades on the forums. It was at v17 and I got it to the latest version 21. I didn't think that it would affect the edit user function of Your_Account but perhaps it did... |
|
|
|
 |
slappy

|
Posted:
Wed Sep 13, 2006 10:35 pm |
|
OK, I have found an error that happens every time I try to edit my account. The error is in MySQL error log.
Aborted connection 2614 to db: 'nuke' user: 'root' host: `localhost' (Got an error reading communication packets)
This is happening only when I try to access Change Info or edituser.php
Im looking for a solution |
|
|
|
 |
evaders99

|
Posted:
Thu Sep 14, 2006 3:30 pm |
|
|
|
 |
slappy

|
Posted:
Thu Sep 14, 2006 11:22 pm |
|
OK, well I changed the only pconnect in mysql.php file and it had no affect.
I did a repair on all the tables in the database, everything checked out ok. The same problem is happening when selecting download details in our downloads area.
In Mozilla I get:
The connection was reset
The connection to the server was reset while the page was loading.
If I were to pay someone to help me fix this, would anyone know what a fair rate would be? I am willing to pay for help...
HELP! |
|
|
|
 |
slappy

|
Posted:
Sun Sep 17, 2006 9:05 pm |
|
OK,
Well, seeing how I had no takers on paying for help, I figured I would fix it myself. The solution was to re-write the edituser.php and incorporate the edituser function from the origional index.php of NUKE. Well, I got it to work and it looks great.
I know this may not be the way to go for some people, but it worked for me...
Now I need to figure out why the download details link in the download area produces the same results that I had with the edituser.php.
Thanks for all who replied! |
|
|
|
 |
|