PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
silicastorm
New Member
New Member


Joined: Jan 15, 2010
Posts: 22
Location: Abu Dhabi, UAE

PostPosted: Thu Jan 21, 2010 7:47 am Reply with quote Back to top

My first installation of NukeSentinel,

uploaded the files:

Quote:
html/abuse/*.* ----------------> root/abuse/*.*
html/admin/*.* ----------------> root/admin/*.*
html/blocks/*.* ----------------> root/blocks/*.*
html/cache/ ----------------> root/cache/ <--- CHMOD to 777
html/images/*.* ----------------> root/images/*.*
html/includes/*.* ----------------> root/includes/*.*
html/language/*.* ----------------> root/language/*.*
html/modules/*.* ----------------> root/modules/*.*
html/nsnst_installer/*.* ----------------> root/nsnst_installer/*.*
html/nsnst.php ----------------> root/nsnst.php


then followed the instuctions to edit the following files:
Your_Account/index.php
mainfile.php
header.php
admin.php

opened a browser and entered
Only registered users can see links on this board!
Get registered or login to the forums!

installed the many pages of tables with all Green Go

Deleted nsnst_installer folder and nsnst.php file

clicked Administration in menu, made adjustments to Sentinel configuration, clicked save.

Uploaded .htaccess and .staccess (blank) and .ftaccess into root with admin.php

NOW BANNED FROM WEBSITE.

//////////////////////////////////

Went to phpmyadmin to view nsnst_Blocked_ips and no data in table indicating my IP is banned...

is there something I am missing?

replaced the following files with backup to regain access to site:
Your_Account/index.php
mainfile.php
header.php
admin.php
View user's profile Send private message Visit poster's website
nuken
RavenNuke(tm) Development Team


Joined: Mar 11, 2007
Posts: 1437
Location: North Carolina

PostPosted: Thu Jan 21, 2010 8:28 am Reply with quote Back to top

Did you look in the .htaccess to see if your ip was blocked there? It would be at the bottom.
View user's profile Send private message Send e-mail Visit poster's website
silicastorm
New Member
New Member


Joined: Jan 15, 2010
Posts: 22
Location: Abu Dhabi, UAE

PostPosted: Thu Jan 21, 2010 9:32 am Reply with quote Back to top

This is what is in the .htaccess file

Quote:

Options All -Indexes
DirectoryIndex index.php index.htm index.html

# -------------------------------------------
# Start of NukeSentinel(tm) admin.php Auth
# -------------------------------------------
<Files .ftaccess>
deny from all
</Files>

<Files .staccess>
deny from all
</Files>

#<Files admin.php>
<Limit GET POST PUT>
require valid-user
</Limit>
AuthName "Restricted"
AuthType Basic
AuthUserFile
Only registered users can see links on this board!
Get registered or login to the forums!

#</Files>

# -------------------------------------------
# Start of NukeSentinel(tm) DENY FROM area
# -------------------------------------------


All three files are chmod 666


Last edited by silicastorm on Fri Jan 22, 2010 1:12 pm; edited 2 times in total
View user's profile Send private message Visit poster's website
silicastorm
New Member
New Member


Joined: Jan 15, 2010
Posts: 22
Location: Abu Dhabi, UAE

PostPosted: Fri Jan 22, 2010 4:47 am Reply with quote Back to top

~

I see mention of the term "Patched 3.3" in various forum posts and wonder if I was to do this for my phpnuke 8.0 ?

I have a login pop up window with the following message:

Quote:
A user name and password are being requested by
Only registered users can see links on this board!
Get registered or login to the forums!
The site says: "Restricted"
View user's profile Send private message Visit poster's website
spasticdonkey
RavenNuke(tm) Development Team


Joined: Dec 02, 2006
Posts: 1253
Location: Texas, USA

PostPosted: Fri Jan 22, 2010 7:29 am Reply with quote Back to top

Yes I'm pretty sure patches to standard nuke are required.
Only registered users can see links on this board!
Get registered or login to the forums!


I think you want to use an relative path to your .staccess file.
AuthUserFile
Only registered users can see links on this board!
Get registered or login to the forums!

(wont work)

remove your htaccess file, and go back to nuke sentinel admin, look for
htaccess Path:
staccess Path:

below each one you will see
Normally:
followed by the addresses you should use for each. Fill in, save, and then click
CGIAuth Setup
and that is what the code for that part of htaccess should look like. Also make sure your IP address is not blocked in the htaccess file.

.staccess shouldn't be a blank file either, see this for detailed info:
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message
silicastorm
New Member
New Member


Joined: Jan 15, 2010
Posts: 22
Location: Abu Dhabi, UAE

PostPosted: Fri Jan 22, 2010 9:01 am Reply with quote Back to top

SD,

Thanks alot,,, the link you provided with the config settings was a huge help... did not see a link for that in the README.txt

Getting things configured,,, .staccess is no longer blank with the password in some kind of hash value

setting up the blockers... chmod is now reset back to 666 for the three files...

But I have one strange problem.... all modules function ok except for one!
Only registered users can see links on this board!
Get registered or login to the forums!


//////////////////////////////////////

IS BLANK,,,, TOTALLY WHITE

/////////////////////////////////////

I will keep looking to see but if you have an idea shoot one over,,,

Thanks again,,, you have been a huge help...

Cheers,


SilicaStorm
View user's profile Send private message Visit poster's website
spasticdonkey
RavenNuke(tm) Development Team


Joined: Dec 02, 2006
Posts: 1253
Location: Texas, USA

PostPosted: Fri Jan 22, 2010 9:13 am Reply with quote Back to top

try setting $display_errors to true in config.php and post back any error you get..
(remove the path info from the error message for security reasons)
View user's profile Send private message
silicastorm
New Member
New Member


Joined: Jan 15, 2010
Posts: 22
Location: Abu Dhabi, UAE

PostPosted: Fri Jan 22, 2010 9:23 am Reply with quote Back to top

Ok,, yeah got something here:

Quote:

Parse error: syntax error, unexpected T_FUNCTION in /mywebsite/modules/Your_Account/index.php on line 790

~
Quote:

in function login($username, $user_password, $redirect, $mode, $f, $t, $random_num, $gfx_check) {


~


Quote:

$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) {
$row = $db->sql_fetchrow($result);
$user_email = filter($row['user_email'], "nohtml");
$user_password = $row['user_password'];
$user_password = htmlspecialchars(stripslashes($user_password));
$areyou = substr($user_password, 0, 10);
if ($areyou==$code) {
$newpass=makepass();
$message = ""._USERACCOUNT." '$username' "._AT." $sitename "._HASTHISEMAIL." "._AWEBUSERFROM." $host_name "._HASREQUESTED."\n\n"._YOURNEWPASSWORD." $newpass\n\n "._YOUCANCHANGE." $nukeurl/modules.php?name=$module_name\n\n"._IFYOUDIDNOTASK."";
$subject = ""._USERPASSWORD4." $username";
mail($user_email, $subject, $message, "From: $adminmail\nX-Mailer: PHP/" . phpversion());
/* Next step: add the new password to the database */
$cryptpass = md5($newpass);
$query = "UPDATE ".$user_prefix."_users SET user_password='$cryptpass' WHERE username='$username'";
if (!$db->sql_query($query)) {
echo ""._UPDATEFAILED."";
}
include ("header.php");
OpenTable();
echo "<center>"._PASSWORD4." $username "._MAILED."<br><br>"._GOBACK."</center>";
CloseTable();
include ("footer.php");
/* If no Code, send it */
} else {
$sql = "SELECT user_email, user_password FROM ".$user_prefix."_users WHERE username='$username'";
$result = $db->sql_query($sql);
if($db->sql_numrows($result) == 0) {
include ("header.php");
OpenTable();
echo "<center>"._SORRYNOUSERINFO."</center>";
CloseTable();
include ("footer.php");
} else {
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) {
$row = $db->sql_fetchrow($result);
$user_email = filter($row['user_email'], "nohtml");
$user_password = $row['user_password'];
$areyou = substr($user_password, 0, 10);
$message = ""._USERACCOUNT." '$username' "._AT." $sitename "._HASTHISEMAIL." "._AWEBUSERFROM." $host_name "._CODEREQUESTED."\n\n"._YOURCODEIS." $areyou \n\n"._WITHTHISCODE." $nukeurl/modules.php?name=$module_name&op=pass_lost\n"._IFYOUDIDNOTASK2."";


Thanks again,
View user's profile Send private message Visit poster's website
spasticdonkey
RavenNuke(tm) Development Team


Joined: Dec 02, 2006
Posts: 1253
Location: Texas, USA

PostPosted: Fri Jan 22, 2010 10:33 am Reply with quote Back to top

an unexpected T_FUNCTION error means that the PHP compiler has encountered a function where it should not be.

Usually a case of a missing semicolon and/or closing brace..

Make sure you got the edits for
Your_Account/index.php
correct.....

in looking at the last snippet of code did you define the
in function login($username, $user_password, $redirect, $mode, $f, $t, $random_num, $gfx_check)
twice??
View user's profile Send private message
silicastorm
New Member
New Member


Joined: Jan 15, 2010
Posts: 22
Location: Abu Dhabi, UAE

PostPosted: Fri Jan 22, 2010 10:42 am Reply with quote Back to top

/////////////////////////////////////

The files I edit are in this directory to view
Only registered users can see links on this board!
Get registered or login to the forums!



Yes I did put in "twice" as I thought I was following the instructions correctly,,,,?

Quote:

#-----[ 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) {
View user's profile Send private message Visit poster's website
spasticdonkey
RavenNuke(tm) Development Team


Joined: Dec 02, 2006
Posts: 1253
Location: Texas, USA

PostPosted: Fri Jan 22, 2010 12:08 pm Reply with quote Back to top

are you using the nuke patched? that code looks different...
Only registered users can see links on this board!
Get registered or login to the forums!


I see references to nukesentinel in the pre-edited files that come with that download... might give those a try. I've never used standard phpnuke and sentinel comes pre-installed on ravennuke, so I'm working a little bit in the dark here Smile
View user's profile Send private message
silicastorm
New Member
New Member


Joined: Jan 15, 2010
Posts: 22
Location: Abu Dhabi, UAE

PostPosted: Fri Jan 22, 2010 12:30 pm Reply with quote Back to top

After 4 hours,,,, I finally decided not to edit the patch Your_Account/index.php ,,,,

just dropped it and no more error.... maybe the instructions are out of date to the new version?

Anyway,,, thanks so much for your assistance SD,,, you're a good support...

Wow,,, that was a long one,,, need to have a friday night drink now... cheers from the desert in UAE
View user's profile Send private message Visit poster's website
eldorado
Involved
Involved


Joined: Sep 10, 2008
Posts: 366
Location: France

PostPosted: Fri Jan 22, 2010 8:44 pm Reply with quote Back to top

Patch is suppose to cover Nuke till 8.1 m8.. Depending on where you stopped , you might have some errors.
silicastorm wrote:
Wow,,, that was a long one,,, need to have a friday night drink now... cheers from the desert in UAE

I love Abu Dhabi, my favorite after Doha, cheers from France Smile
View user's profile Send private message Visit poster's website MSN Messenger
scianima
New Member
New Member


Joined: Aug 22, 2010
Posts: 3

PostPosted: Thu May 05, 2011 8:25 pm Reply with quote Back to top

I have the same error with the in function and it doesn't load the your_account...jus a white page i am patched to 3.5. Has anyone found the fix?
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6300
Location: Vsetin, Czech Republic

PostPosted: Sat May 07, 2011 7:10 am Reply with quote Back to top

There isn't a function called in I think you might be referring to the function login() ?
Which php-nuke version are you using?
Did you try the fix already posted in this thread?
View user's profile Send private message Send e-mail Visit poster's website
scianima
New Member
New Member


Joined: Aug 22, 2010
Posts: 3

PostPosted: Sat May 07, 2011 8:40 am Reply with quote Back to top

yeah, I am in reference to the in function login() but I have nuke 8.1 not 8.0 and I'm patched to 3.5. patched as instructed in the index8.1 but white page
View user's profile Send private message
scianima
New Member
New Member


Joined: Aug 22, 2010
Posts: 3

PostPosted: Sat May 07, 2011 8:42 am Reply with quote Back to top

Parse error: syntax error, unexpected T_FUNCTION in /html/modules/Your_Account/index.php on line 802
which is the login function
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

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 xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

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.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum