Joined: Apr 26, 2008 Posts: 60 Location: Windy City
Posted:
Sun Aug 10, 2008 5:21 pm
I have a problem related to NukeSentinel that's included with RavenNuke version 2.20.01. Somehow it won't allow me to change the NS setting. I got this error 403 or something warning. I tried saving the CGIAuth Setup into the .htaccess & if I tried to login to my site's ACP, it will asked for my NS Admin name & password, after providing the name & password, it won't let me login even after many attempts. What's not so clear to me is that when I installed this CMS with NS, besides dding CGIAuth Setup (.htaccess) & renaming sample.access, etc.. & CHModing (666) the .htaccess, .staccess & .ftaccess, do I have to change some scripts or not. I need your help on this one.
Joined: Apr 26, 2008 Posts: 60 Location: Windy City
Posted:
Sun Aug 10, 2008 9:00 pm
Susann, I completely unistalled the NS that comes with RN CMS (no matter how I tried I can't adjust the NS settings) then installed the latest version of NS (version 2.6.01). During the installation, I renamed both the sample.staccess & sample.ftaccess to .staccess & .ftaccess then CHMOD both to 666. The installation looks OK. I can now adjust the settings. There are 2 edit core files I omited editing prior to installation, the (admin.php) & the (index.php - inside Your Account module). Somehow, the scripts to change doesn't match that to look for & change in the edit core file instruction. Below are the files I'm referring to:
My admin.php
Code:
<?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. */
/************************************************************************/
/************************************************************************/
/* Raven - http://ravenphpscripts.com http://ravenwebhosting.com */
/* 10/19/2006 - Brought up to or as near to XHTML standards as possible.*/
/* */
/************************************************************************/
function deleteNotice($id) {
global $prefix, $db, $admin_file;
$id = intval($id);
$db->sql_query('DELETE FROM '.$prefix.'_reviews_add WHERE id = \''.$id.'\'');
Header('Location: '.$admin_file.'.php?op=reviews');
}
/*********************************************************/
/* Administration Menu Function */
/*********************************************************/
function GraphicAdmin() {
global $aid, $admingraphic, $language, $admin, $prefix, $db, $counter, $admin_file;
$newsubs = $db->sql_numrows($db->sql_query('SELECT qid FROM '.$prefix.'_queue'));
$row = $db->sql_fetchrow($db->sql_query('SELECT radminsuper FROM '.$prefix.'_authors WHERE aid=\''.$aid.'\''));
$radminsuper = intval($row['radminsuper']);
if ($radminsuper == 1) {
OpenTable();
echo '<center><a href="'.$admin_file.'.php"><font class="title">'._ADMINMENU.'</font></a>';
echo '<br /><br /></center>';
echo'<table align="center" border="0" width="100%" cellspacing="1"><tr>';
$linksdir = dir('admin/links');
$menulist = '';
while($func=$linksdir->read()) {
if(substr($func, 0, 6) == 'links.') {
$menulist .= "$func ";
}
}
closedir($linksdir->handle);
$menulist = explode(' ', $menulist);
sort($menulist);
for ($i=0; $i < sizeof($menulist); $i++) {
if(!empty($menulist[$i])) {
$sucounter = 0;
include_once($linksdir->path."/$menulist[$i]");
}
}
adminmenu($admin_file.'.php?op=logout',_ADMINLOGOUT, 'logout.gif');
if ($counter==0) echo '<td></td>'; //Added by Raven 7/1/2007 to fix a warning in xhtml
echo'</tr></table>';
$counter = '';
CloseTable();
echo '<br />';
}
OpenTable();
echo '<center><a href="'.$admin_file.'.php"><font class="title">'._MODULESADMIN.'</font></a>';
echo '<br /><br />';
echo'<table border="0" width="100%" cellspacing="1"><tr>';
$result = $db->sql_query('SELECT title, admins FROM '.$prefix.'_modules ORDER BY title ASC');
$row2 = $db->sql_fetchrow($db->sql_query('SELECT name FROM '.$prefix.'_authors WHERE aid=\''.$aid.'\''));
while ($row = $db->sql_fetchrow($result)) {
$admins = explode(',', $row['admins']);
$auth_user = 0;
for ($i=0; $i < sizeof($admins); $i++) {
if ($row2['name'] == $admins[$i]) {
$auth_user = 1;
}
}
if ($radminsuper == 1 OR $auth_user == 1) {
if (file_exists('modules/'.$row['title'].'/admin/index.php') AND file_exists('modules/'.$row['title'].'/admin/links.php') AND file_exists('modules/'.$row['title'].'/admin/case.php')) {
include_once('modules/'.$row['title'].'/admin/links.php');
}
}
}
adminmenu($admin_file.'.php?op=logout', _ADMINLOGOUT, 'logout.gif');
if ($counter==0) echo '<td></td>'; //Added by Raven 7/1/2007 to fix a warning in xhtml
echo'</tr></table></center>';
CloseTable();
echo '<br />';
}
/*********************************************************/
/* Administration Main Function */
/*********************************************************/
function adminMain() {
global $language, $admin, $aid, $prefix, $user_prefix, $file, $db, $sitename, $admin_file, $bgcolor1;
include_once('header.php');
/*
$dummy = 0;
$month = date('M');
$curDate2 = '%'.$month[0].$month[1].$month[2].'%'.date('d').'%'.date('Y').'%';
$ty = time() - 86400;
$preday = strftime('%d', $ty);
$premonth = strftime('%B', $ty);
$preyear = strftime('%Y', $ty);
$curDateP = '%'.$premonth[0].$premonth[1].$premonth[2].'%'.$preday.'%'.$preyear.'%';
*/
//Executing SQL For Today and Yesterday
$userCount = 0;
$userCount2 = 0;
$todayDST = date('I',time())*3600; // 2.2.0
$yesterdayDST = date('I',time()-86400)*3600; // 2.2.0
$Today = date('M d, Y',time()-$todayDST); // 2.2.0
$Yesterday = date('M d, Y',time()-86400-$yesterdayDST); // 2.2.0
$sql = 'SELECT user_regdate, COUNT(user_regdate) FROM '.$user_prefix.'_users where user_regdate IN(\''.$Today.'\', \''.$Yesterday.'\') GROUP BY user_regdate LIMIT 0,2';
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result)) {
if ($row[0]==$Today) $userCount = $row[1];
elseif ($row[0]==$Yesterday) $userCount2 = $row[1];
}
GraphicAdmin();
$aid = substr("$aid", 0,25);
$row = $db->sql_fetchrow($db->sql_query('SELECT radminsuper, admlanguage FROM '.$prefix.'_authors WHERE aid=\''.$aid.'\''));
$radminsuper = intval($row['radminsuper']);
$admlanguage = addslashes($row['admlanguage']);
$result = $db->sql_query('SELECT admins FROM '.$prefix.'_modules WHERE title=\'News\'');
$result2 = $db->sql_query('SELECT name FROM '.$prefix.'_authors WHERE aid=\''.$aid.'\'');
list($aidname) = $db->sql_fetchrow($result2);
$radminarticle = 0;
while (list($admins) = $db->sql_fetchrow($result)) {
$admins = explode(',', $admins);
$auth_user = 0;
for ($i=0; $i < sizeof($admins); $i++) {
if ($aidname == $admins[$i]) {
$auth_user = 1;
}
}
if ($auth_user == 1) {
$radminarticle = 1;
}
}
if (!empty($admlanguage)) {
$queryalang = 'WHERE alanguage=\''.$admlanguage.'\'';
} else {
$queryalang = '';
}
list($main_module) = $db->sql_fetchrow($db->sql_query('SELECT main_module from '.$prefix.'_main'));
OpenTable();
echo '<center><b>'."$sitename".': '._DEFHOMEMODULE.'</b><br /><br />'
._MODULEINHOME.' <b>'."$main_module".'</b><br />[ <a href="'.$admin_file.'.php?op=modules">'._CHANGE.'</a> ]</center>';
CloseTable();
echo '<br />';
OpenTable();
$guest_online_num = intval($db->sql_numrows($db->sql_query('SELECT uname FROM '.$prefix.'_session WHERE guest=1')));
$member_online_num = intval($db->sql_numrows($db->sql_query('SELECT uname FROM '.$prefix.'_session WHERE guest=0')));
$who_online_num = $guest_online_num + $member_online_num;
$who_online = '<center><font class="option">'._WHOSONLINE.'</font><br /><br /><font class="content">'._CURRENTLY." $guest_online_num "._GUESTS." $member_online_num "._MEMBERS.'<br />';
// list($userCount) = $db->sql_fetchrow($db->sql_query('SELECT COUNT(user_id) AS userCount from '.$user_prefix.'_users WHERE user_regdate LIKE \''.$curDate2.'\''));
// list($userCount2) = $db->sql_fetchrow($db->sql_query('SELECT COUNT(user_id) AS userCount FROM '.$user_prefix.'_users WHERE user_regdate LIKE \''.$curDateP.'\''));
echo $who_online.'<br />'
._BTD.': <b>'.$userCount.'</b> - '._BYD.': <b>'.$userCount2.'</b></font></center>';
CloseTable();
if (is_active('News')) {
echo '<br />';
OpenTable();
echo '<center><b>'._AUTOMATEDARTICLES.'</b></center><br />';
$count = 0;
$result5 = $db->sql_query('SELECT anid, aid, title, time, alanguage FROM '.$prefix.'_autonews '.$queryalang.' ORDER BY time ASC');
while (list($anid, $aid, $listtitle, $time, $alanguage) = $db->sql_fetchrow($result5)) {
$anid = intval($anid);
$said = substr($aid, 0,25);
$title = $listtitle;
if (empty($alanguage)) {
$alanguage = _ALL;
}
if (!empty($anid)) {
if ($count == 0) {
echo '<table border="1" width="100%">';
$count = 1;
}
$time = str_replace(' ', '@', $time);
if (($radminarticle==1) OR ($radminsuper==1)) {
if (($radminarticle==1) AND ($aid == $said) OR ($radminsuper==1)) {
echo '<tr><td nowrap="nowrap"> (<a href="'.$admin_file.'.php?op=autoEdit&anid='.$anid.'">'._EDIT.'</a>-<a href="'.$admin_file.'.php?op=autoDelete&anid='.$anid.'">'._DELETE.'</a>) </td><td width="100%"> '.$title.' </td><td align="center"> '.$alanguage.' </td><td nowrap="nowrap"> '.$time.' </td></tr>'; /* Multilingual Code : added column to display language */
}else {
echo '<tr><td> ('._NOFUNCTIONS.') </td><td width="100%"> '.$title.' </td><td align="center"> '.$alanguage.' </td><td nowrap="nowrap"> '.$time.' </td></tr>'; /* Multilingual Code : added column to display language */
}
} else {
echo '<tr><td width="100%"> '.$title.' </td><td align="center"> '.$alanguage.' </td><td nowrap="nowrap"> '.$time.' </td></tr>'; /* Multilingual Code : added column to display language */
}
}
}
if ((empty($anid)) AND ($count == 0)) {
echo '<center><i>'._NOAUTOARTICLES.'</i></center>';
}
if ($count == 1) {
echo '</table>';
}
CloseTable();
echo '<br />';
OpenTable();
/*
if ($queryalang != '') {
$queryalang = ' AND alanguage= \'' . $admlanguage . '\'';
} */
echo '<center><b>'._LAST.' 20 '._ARTICLES.'</b></center><br />';
$result6 = $db->sql_query('SELECT sid, aid, title, time, topic, informant, alanguage, topicname FROM '.$prefix.'_stories left join ' .$prefix.'_topics ON topicid=topic '. $queryalang.' ORDER BY time DESC LIMIT 0,20');
echo '<center><table border="1" width="100%" bgcolor="'.$bgcolor1.'">';
while ($row = $db->sql_fetchrow($result6)) {
$sid = intval($row['sid']);
$said = substr($row['aid'], 0,25);
if ((empty($row['alanguage']))) {
$alanguage = _ALL;
}
else {
$alanguage = $row['alanguage'];
}
formatTimestamp($row['time']);
echo '<tr><td align="right"><b>'.$sid.'</b>'
.'</td><td align="left" width="100%"><a href="modules.php?name=News&file=article&sid='.$sid.'">'.$row['title'].'</a>'
.'</td><td align="center">'.$alanguage
.'</td><td align="right">'.$row['topicname'];
if ($radminarticle == 1 OR $radminsuper == 1) {
if (($radminarticle==1) AND ($aid == $said) OR ($radminsuper==1)) {
echo '</td><td align="right" nowrap="nowrap">(<a href="'.$admin_file.'.php?op=EditStory&sid='.$sid.'">'._EDIT.'</a>-<a href="'.$admin_file.'.php?op=RemoveStory&sid='.$sid.'">'._DELETE.'</a>)'
.'</td></tr>';
} else {
echo '</td><td align="right" nowrap="nowrap"><font class="content"><i>('._NOFUNCTIONS.')</i></font>'
.'</td></tr>';
}
} else {
echo '</td></tr>';
}
}
echo '</table></center>';
if (($radminarticle==1) OR ($radminsuper==1)) {
echo '<center>'
.'<form action="'.$admin_file.'.php" method="post">'
.'<table><tr><td>'
._STORYID.': <input type="text" name="sid" size="10" /></td>'
.'<td><select name="op">'
.'<option value="EditStory" selected="selected">'._EDIT.'</option>'
.'<option value="RemoveStory">'._DELETE.'</option>'
.'</select></td>'
.'<td><input type="submit" value="'._GO.'" /></td></tr></table>'
.'</form></center>';
}
CloseTable();
}
if (is_active('Surveys')) {
list($pollID, $pollTitle) = $db->sql_fetchrow($db->sql_query('SELECT pollID, pollTitle FROM '.$prefix.'_poll_desc WHERE artid=0 ORDER BY pollID DESC LIMIT 1'));
$pollID = intval($pollID);
echo '<br />';
OpenTable();
echo '<center><b>'._CURRENTPOLL.':</b> '.$pollTitle.' [ <a href="'.$admin_file.'.php?op=polledit&pollID='.$pollID.'">'._EDIT.'</a> | <a href="'.$admin_file.'.php?op=create">'._ADD.'</a> ]</center>';
CloseTable();
}
unset($title);
include_once('footer.php');
}
default:
if (!is_admin($admin)) {
login();
}
$casedir = dir('admin/case');
while($func=$casedir->read()) {
if(substr($func, 0, 5) == 'case.') {
include_once($casedir->path."/$func");
}
}
closedir($casedir->handle);
$result = $db->sql_query('SELECT title FROM '.$prefix.'_modules ORDER BY title ASC');
while (list($mod_title) = $db->sql_fetchrow($result)) {
if (file_exists('modules/'.$mod_title.'/admin/index.php') AND file_exists('modules/'.$mod_title.'/admin/links.php') AND file_exists('modules/'.$mod_title.'/admin/case.php')) {
include_once('modules/'.$mod_title.'/admin/case.php');
}
}
break;
}
}else {
switch($op) {
default:
login();
break;
}
}
?>
Edit admin.php instruction
Code:
/************************************************************************/
/* This file is for instructional use. */
/* By: NukeScripts Network (webmaster@nukescripts.net) */
/* http://www.nukescripts.net */
/* Modifications Copyright Đ 2000-2008 by NukeScripts Network */
/************************************************************************/
/* Based on Patched 3.3 admin.php your admin.php may differ from the */
/* examples found here. */
/************************************************************************/
#
#-----[ OPEN ]------------------------------------------
#
admin.php
/*********************************************************************************/
/* CNB Your Account: An Advanced User Management System for phpnuke */
/* ============================================ */
/* */
/* Copyright (c) 2004 by Comunidade PHP Nuke Brasil */
/* http://dev.phpnuke.org.br & http://www.phpnuke.org.br */
/* */
/* Contact author:
Only registered users can see links on this board! Get registered or login to the forums!
*/
/* International Support Forum: http://ravenphpscripts.com/forum76.html */
/* */
/* 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. */
/* */
/*********************************************************************************/
/* CNB Your Account it the official successor of NSN Your Account by Bob Marion */
/*********************************************************************************/
if (!eregi("modules.php", $_SERVER['SCRIPT_NAME'])) {
die ("You can't access this file directly...");
}
/**********************************/
/* Configuration */
/* */
/* You can change this: */
/* $index = 0; (right side off) */
/**********************************/
//$index = 1;
define('INDEX_FILE', true);
/**********************************/
case "login":
$result = $db->sql_query("SELECT * FROM ".$user_prefix."_users WHERE username='$username'");
$setinfo = $db->sql_fetchrow($result);
// menelaos: check of the member agreed with the TOS and update the database field
if (($ya_config['tos'] == intval(1)) AND ($_POST['tos_yes'] == intval(1))) {
$db->sql_query("UPDATE ".$user_prefix."_users SET agreedtos='1' WHERE username='$username'");
}
$forward = ereg_replace("redirect=", "", "$redirect");
if (ereg("privmsg", $forward)) { $pm_login = "active"; }
if ($db->sql_numrows($result) == 0) {
include("header.php");
Show_CNBYA_menu();
OpenTable();
echo "<center><font class='title'>"._SORRYNOUSERINFO."</font></center>\n";
CloseTable();
include("footer.php");
} elseif ($db->sql_numrows($result) == 1 AND $setinfo['user_id'] != 1 AND $setinfo['user_password'] != "" AND $setinfo['user_active'] >0 AND $setinfo['user_level'] >0) {
$dbpass = $setinfo[user_password];
$non_crypt_pass = $user_password;
$old_crypt_pass = crypt($user_password,substr($dbpass,0,2));
$new_pass = md5($user_password);
if (($dbpass == $non_crypt_pass) OR ($dbpass == $old_crypt_pass)) {
$db->sql_query("UPDATE ".$user_prefix."_users SET user_password='$new_pass' WHERE username='$username'");
$result = $db->sql_query("SELECT user_password FROM ".$user_prefix."_users WHERE username='$username'");
list($dbpass) = $db->sql_fetchrow($result);
}
if ($dbpass != $new_pass) {
Header("Location: modules.php?name=$module_name&stop=1");
return;
}
$datekey = date("F j");
$rcode = hexdec(md5($_SERVER['HTTP_USER_AGENT'] . $sitekey . $random_num . $datekey));
$code = substr($rcode, 2, $ya_config['codesize']);
if (extension_loaded("gd") AND $code != $gfx_check AND ($ya_config['usegfxcheck'] == 2 OR $ya_config['usegfxcheck'] == 3)) {
Header("Location: modules.php?name=$module_name&stop=1");
die();
} else {
// menelaos: show a member the current TOS if he has not agreed yet
if (($ya_config['tos'] == intval(1)) AND ($ya_config['tosall'] == intval(1)) AND ($setinfo[agreedtos] != intval(1))) {
if($_POST['tos_yes'] != intval(1)) {
include("modules/$module_name/public/ya_tos.php");
exit;
}
}
// menelaos: show a member the current TOS if he has not agreed yet
yacookie($setinfo[user_id], $setinfo[username], $new_pass, $setinfo[storynum], $setinfo[umode], $setinfo[uorder], $setinfo[thold], $setinfo[noscore], $setinfo[ublockon], $setinfo[theme], $setinfo[commentmax]);
$uname = $_SERVER["REMOTE_ADDR"];
$db->sql_query("DELETE FROM ".$prefix."_session WHERE uname='$uname' AND guest='1'");
if ($Version_Num >= 7.4) $db->sql_query("UPDATE ".$prefix."_users SET last_ip='$uname' WHERE username='$username'");
}
// menelaos: the cookiecheck is run here
if ($ya_config['cookiecheck']==1) {
$cookiecheck = yacookiecheckresults();
}
case "logout":
cookiedecode($user);
$r_uid = $cookie[0];
$r_username = $cookie[1];
setcookie("user");
if (trim($ya_config[cookiepath]) != '') setcookie("user","expired",time()-604800,"$ya_config[cookiepath]"); //correct the problem of path change
$db->sql_query("DELETE FROM ".$prefix."_session WHERE uname='$r_username'");
$db->sql_query("OPTIMIZE TABLE ".$prefix."_session");
//$db->sql_query("DELETE FROM ".$prefix."_bbsessions WHERE session_user_id='$r_uid'");
//$db->sql_query("OPTIMIZE TABLE ".$prefix."_bbsessions");
$user = "";
include("header.php");
if ($redirect != "") {
echo "<META HTTP-EQUIV=\"refresh\" content=\"2;URL=modules.php?name=$redirect\">";
} else {
echo "<META HTTP-EQUIV=\"refresh\" content=\"2;URL=index.php\">";
}
title(_YOUARELOGGEDOUT);
include("footer.php");
break;
case "mailpasswd":
include("modules/$module_name/public/mailpass.php");
break;
case "my_headlines":
include("modules/$module_name/public/headlines.php");
break;
case "new_user":
if (is_user($user)) {
mmain($user);
} else {
if ($ya_config['allowuserreg']==0) {
if ($ya_config['coppa'] == intval(1)) {
if($_POST['coppa_yes']!= intval(1)) {
include("modules/$module_name/public/ya_coppa.php");
exit;
}
}
if ($ya_config['tos'] == intval(1)) {
if($_POST['tos_yes'] != intval(1)) {
include("modules/$module_name/public/ya_tos.php");
exit;
}
}
if ($ya_config['coppa'] !== intval(1) OR $ya_config['coppa'] == intval(1) AND $_POST['coppa_yes'] = intval(1)){
if ($ya_config['tos'] !== intval(1) OR $ya_config['tos'] == intval(1) AND $_POST['tos_yes']=intval(1)){
if ($ya_config['requireadmin'] == 1) {
include("modules/$module_name/public/new_user1.php");
} elseif ($ya_config['requireadmin'] == 0 AND $ya_config['useactivate'] == 0) {
include("modules/$module_name/public/new_user2.php");
} elseif ($ya_config['requireadmin'] == 0 AND $ya_config['useactivate'] == 1) {
include("modules/$module_name/public/new_user3.php");
}
}
}
}else {
disabled();
}
}
break;
case "new_confirm":
if (is_user($user)) {
mmain($user);
} else {
if ($ya_config['allowuserreg']==0) {
if ($ya_config['requireadmin'] == 1) {
include("modules/$module_name/public/new_confirm1.php");
} elseif ($ya_config['requireadmin'] == 0 AND $ya_config['useactivate'] == 0) {
include("modules/$module_name/public/new_confirm2.php");
} elseif ($ya_config['requireadmin'] == 0 AND $ya_config['useactivate'] == 1) {
include("modules/$module_name/public/new_confirm3.php");
}
} else {
disabled();
}
}
break;
case "new_finish":
if (is_user($user)) {
mmain($user);
} else {
if ($ya_config['allowuserreg']==0) {
if ($ya_config['requireadmin'] == 1) {
include("modules/$module_name/public/new_finish1.php");
} elseif ($ya_config['requireadmin'] == 0 AND $ya_config['useactivate'] == 0) {
include("modules/$module_name/public/new_finish2.php");
} elseif ($ya_config['requireadmin'] == 0 AND $ya_config['useactivate'] == 1) {
include("modules/$module_name/public/new_finish3.php");
}
} else {
disabled();
}
}
break;
case "pass_lost":
include("modules/$module_name/public/passlost.php");
break;
case "saveactivate":
include("modules/$module_name/public/saveactivate.php");
break;
case "savecomm":
if (is_user($user)) {
include("modules/$module_name/public/savecomm.php");
} else {
notuser();
}
break;
case "savehome":
if (is_user($user)) {
include("modules/$module_name/public/savehome.php");
} else {
notuser();
}
break;
case "savetheme":
if (is_user($user)) {
if ($ya_config['allowusertheme']==0) {
include("modules/$module_name/public/savetheme.php");
} else {
disabled();
}
} else {
notuser();
}
break;
case "saveuser":
if (is_user($user)) {
include("modules/$module_name/public/saveuser.php");
} else {
notuser();
}
break;
case "userinfo":
include("modules/$module_name/public/userinfo.php");
break;
case "ShowCookiesRedirect":
ShowCookiesRedirect();
break;
case "ShowCookies":
ShowCookies();
break;
case "DeleteCookies":
DeleteCookies();
break;
default:
mmain($user);
break;
}
?>
Edit index.php instruction (index7.6)
Code:
/************************************************************************/
/* This file is for instructional use. */
/* By: NukeScripts Network (webmaster@nukescripts.net) */
/* http://www.nukescripts.net */
/* Modifications Copyright Đ 2000-2008 by NukeScripts Network */
/************************************************************************/
/* Based on Patched 3.3 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'];
Joined: Dec 19, 2004 Posts: 3132 Location: Germany:Moderator German NukeSentinel Support
Posted:
Mon Aug 11, 2008 2:48 am
CNBYA works with RavenNuke I had it installed in a previous version.Because there were bugs I never found out to fix this I deinstalled it.
You really donīt need to install this because in the next release of RavenNuke, wich is coming soon, is a new enhanced Your Account module with parts of CNBYA included.
Joined: Apr 26, 2008 Posts: 60 Location: Windy City
Posted:
Mon Aug 11, 2008 7:44 am
warren-the-ape wrote:
Are you sure you're editting the correct admin.php?
Should be; root/admin.php and not; root/admin/admin.php
That's what I've edited Warren (it's also the default admin.php that comes with RV CMS I've installed in my site). Unfortunately, I can't find what to look for as said in the instruction.
Last edited by kb9nha on Mon Aug 11, 2008 9:33 am; edited 2 times in total
Joined: Apr 26, 2008 Posts: 60 Location: Windy City
Posted:
Mon Aug 11, 2008 8:53 am
Susann wrote:
CNBYA works with RavenNuke I had it installed in a previous version.Because there were bugs I never found out to fix this I deinstalled it.
You really donīt need to install this because in the next release of RavenNuke, wich is coming soon, is a new enhanced Your Account module with parts of CNBYA included.
Sorry, but I really don't have time to wait for the next version of RavenNuke inorder to use a CNBYA. The CNBYA I've installed just works fine for me. What I want now is how to make this NukeSentinel working.
Joined: Apr 26, 2008 Posts: 60 Location: Windy City
Posted:
Mon Aug 11, 2008 12:20 pm
Any help about this problem? I'm sorry but if you ask me again to wait for the release of the new RavenNuke version it's not gonna happen. I want some solution to this problem now instead of telling me to use your default Your Account module.
Your Your Account module is too old. So as your Downloads module. I'm making my site Downloads section accessible by subscription. Your Downloads module combined with the old Your Account module just don't jive. I just can't used your modules. I wish I could. Sorry but it's just how things go (I'm not ranting)...
Last edited by kb9nha on Mon Aug 11, 2008 1:19 pm; edited 2 times in total
Joined: Apr 26, 2008 Posts: 60 Location: Windy City
Posted:
Mon Aug 11, 2008 1:00 pm
To add, The NukeSentinel instruction re: changing some scripts in admin.php says to look for a particular script in the admin.php. Well, I did look for the particular script mentioned (in the default admin.php file thats comes with the RavenNuke CMS). I just can't find the script. This is a legit problem that I raised.
I also did try to look into the Nukescripts Script Depository. The link provided in the NukeSentinel User Guide 2.2.2 doesn't exist.
Only registered users can see links on this board! Get registered or login to the forums!
Do you have any other instruction manual for NukeSentinel installation? Something that's nsync with RavenNuke CMS...
Last edited by kb9nha on Mon Aug 11, 2008 1:20 pm; edited 1 time in total
Joined: Dec 19, 2004 Posts: 3132 Location: Germany:Moderator German NukeSentinel Support
Posted:
Mon Aug 11, 2008 1:20 pm
Please search within the forums if I remember there are several threads about how to install CBYA with NukeSentinel also I believe you have to change something in the mainfile.php.
No, there is currently no up-to-date manual available for Nuke Sentinel.
Here is one:
Only registered users can see links on this board! Get registered or login to the forums!
Another alternative is to install the light version of Approve Membership from:
Only registered users can see links on this board! Get registered or login to the forums!
wich is tested with RavenNuke.
Last edited by Susann on Mon Aug 11, 2008 1:24 pm; edited 1 time in total
Joined: Apr 26, 2008 Posts: 60 Location: Windy City
Posted:
Mon Aug 11, 2008 1:23 pm
Susann wrote:
Please search within the forums if I remember there are several threads about how to install CBYA with NukeSentinel also I believe you have to change something in the mainfile.php.
No, there is currently no up-to-date manual available for Nuke Sentinel.
Another alternative is to install install the light version of Approve Membership from
Only registered users can see links on this board! Get registered or login to the forums!
I did changed some scripts including the mainfile.php. But there's files that I'm omitted as mentioned in my previous post above.
Joined: Apr 26, 2008 Posts: 60 Location: Windy City
Posted:
Mon Aug 11, 2008 1:26 pm
Susann wrote:
Another alternative is to install the light version of Approve Membership from:
Only registered users can see links on this board! Get registered or login to the forums!
wich is tested with RavenNuke.
In other words, the NukeSentinel doesn't work with CNBYA v2.4.2?
In the CNBYA copyright it says "CNB Your Account is the official successor of NSN Your Account by Bob Marion". I'm beginning to wonder why... Any words from Bob Marion on this matter?
Last edited by kb9nha on Mon Aug 11, 2008 1:48 pm; edited 7 times in total
Joined: Feb 06, 2006 Posts: 3028 Location: United Kingdom
Posted:
Mon Aug 11, 2008 3:37 pm
You are not the only one using RN, but the only one who seems to be having this specific problem.
Please remember this is an Open Source project and the Developers, Moderators and Admin here are volunteers helping people in their spare time. So in answer to your other question technically we are all freelance.
Joined: Apr 26, 2008 Posts: 60 Location: Windy City
Posted:
Mon Aug 11, 2008 6:03 pm
jakec wrote:
You are not the only one using RN, but the only one who seems to be having this specific problem.
Not really, I've posted my admin.php file which is the default file for RavenNuke CMS. I compaired it with the edit cores file instruction on how to change some scripts inside the admin.php file. I posted it for you all to see. I'm not a coder (my background is medicine) yet I can see that the instruction provided doesn't jive. Try to expand the code images I've provided (including the default admin.php that comes with RavenNuke CMS) & check it again. Even if you use an electron microscope (magnified x100), it's not there to see.
I'm fully aware that this CMS is opensource. I raised a legitimate question as to why the script doesn't jive. This site is a NukeSentinel support site & I'm using NukeSentinel as well as RavenNuke. If you can't figure this out then eventually this problem will continue to exist. This is not an isolated problem. This is very real & I got a point raising this problem. Try to review your NukeSentinel instruction manual again & again & you'll see that I'm right.
If you can't see this (problem I'm referring to) in your admin.php file then you're not using RavenNuke. If you do, then you probably used an old version of RavenNuke CMS & not the latest one. I'm 100% sure of this (as 1+1=2 & not 11)...
Sorry to jump in late on this, but better late than never...
First, I don't think you need to modify any files to use NukeSentinel's latest version with RN 2.20. How did you completely uninstall the version that comes with it? You should be able to overwrite the latest NS, run the upgrade script and go. I doubt the instructions that come with NS are updated to reflect RavenNuke's enhanced code for the simple reasons that a) it takes time to update the documentation, b) security updates are usually too important to delay until documentation can be updated, and c) it's already integrated with RN, and updating it is simple (as I mentioned).
It sounds like there are some basic issues with understanding how admin authentication works, and how it's related to RN and NS. Admin authentication takes place completely outside of NS (in your case, via the htaccess and staccess files). Although you can *possibly* (depending on your server configuration) use NS to update the htaccess and staccess files, you should also be able to set it up manually. Just to clarify, the user ID and password used in staccess are (and should be) completely separate from the Nuke admin user and password. If you're using RN 2.20, you should have been able to install admin authentication using the version of NS that came with 2.20, then upgrade to the current without modifying any files and without impacting the admin authentication configuration.
As for not being able to save NS settings, is there anything in your site error log or PHP error log? Have you turned on error messages via the setting in rnconfig.php?
Finally, you mentioned using CNBYA 2.4.2 - the latest released version is 4.4.2, and it's VERY different from the original NSN YA and from the Your Account module used in RN 2.20. When Bob transitioned NSN YA to the CNB team years ago, he was no longer involved in the development of that fine addon and did not test NukeSentinel with CNB going forward (thus, no instructions for modifying CNB files - i.e. why the instruction doesn't jive).
If you'd like to PM information so I can look at your site via FTP, I can assess where you are with both NukeSentinel and CNB (I use 4.4.2 on some sites, and am part of the development team for the new RNYA module, which is based on CNB 4.4.2). I'm sure there is a simple solution to this issue and that it won't be difficult to use 4.4.2 with RN 2.20. I'm also sure that once you see RNYA, you'll understand why jakec suggested waiting...
Joined: Apr 26, 2008 Posts: 60 Location: Windy City
Posted:
Tue Aug 12, 2008 12:29 am
Thanks for clarifying it all to me kguske. By the way, I uninstalled the NS version that comes with the latest RN CMS by querying on nsnst.php that comes with the latest NS that I've downloaded form Nukescripts. Thus, I was able to removed all of the NS databases. I've checked it too via cPanel (MySQL database) & verified that all of the NS database entries were removed. I then uploaded all the files from the latest NS to the server, replacing the old NS files.
As far as the edits for core files, I've managed to completely edit the header.php & mainfile.php. I tried editing the admin.php by commenting the script die("Illegal Operation");} (this is the only script that matches with what's to be changed in the edits for core files instruction) but had to uncomment the script coz I'm not able to access (instead got a white page) when I tried to access the admin section of my site.
You are right with CNBYA. It's completely different from NSNYA. You are right again re: no instructions for modifying CNB files. I've researched in the net (used different kinds of search engines) for NS edit core file for CNBYA but can't find any.
I still tried to edit the index.php inside CNBYA module & found a single script ($uname = $_SERVER['REMOTE_ADDR']; that matches with what to be changed in the edits for core file instruction.
I've tried to reinstall again the old NS version (2.5.06) that's included with the latest RN CMS but unable to for I can't find any available downloads for the older version. I tried googleing for it & checked Nukescript's archives without any luck.
I'll email you the info of my FTP so you can check it & make the necessary corrections. Again, thanks a lot man...
Joined: Nov 19, 2007 Posts: 196 Location: Netherlands
Posted:
Tue Aug 12, 2008 1:35 am
kb9nha wrote:
I tried editing the admin.php by commenting the script die("Illegal Operation");} (this is the only script that matches with what's to be changed in the edits for core files instruction) but had to uncomment the script coz I'm not able to access (instead got a white page) when I tried to access the admin section of my site.
You really shouldn't comment out that part, as you already noticed since its part of the function that verifies if you're allowed to access or not.
Like Kguske said, most core file edits should already be there/done for RN (not sure though?), except for those CNBYA edits. All in all, i dont think its a major problem if you miss some of those edits.
Joined: Aug 29, 2004 Posts: 9071 Location: Arizona
Posted:
Tue Aug 12, 2008 5:36 am
It is a correct statement that no core file edits are required IF you were using the core RavenNuke provided mainfile.php, header.php, etc. The changes that were made for 2.6.0 were minor and did not produce a functional difference. Touching a core RN file only opens up the possibility for having issues such as the above.
Can't tell you what is playing nice together, but it looks as though Kguske has offered to take a look. However, the other alternative is to wait a few weeks for the next release of RN to get CNBYA type capability out-of-the-box.
The error file is pretty large. It indicates that there are currently problems with the installation, as well as with the Neos_Chronos module, whatever that is. I'm looking through the installation issues, but it will take some time.
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
All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest Đ 2002-2011 by Raven
You can syndicate our news using the file
Website engines core code is Đ copyright by PHP-Nuke but has been heavily patched and modified by myself and others. PHP-Nuke is a free software released under the GNU/GPL.