Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.8
Author Message
badkemo
Worker
Worker



Joined: Mar 31, 2004
Posts: 111

PostPosted: Thu Sep 29, 2005 8:29 pm Reply with quote

can anyone tell me why the new news that i make wont appear on index.php?

when i press post sotorry nothing happens it bring me back to the admin.php site

does anyone has a solutio to this problem?

thank you
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Thu Sep 29, 2005 11:00 pm Reply with quote

Dump v7.8 and revert back to v7.6 as we are constantly advising!
 
View user's profile Send private message
badkemo







PostPosted: Fri Sep 30, 2005 8:34 pm Reply with quote

ok I did revert back to nuke 7.6 as a matter affect I created everything new installed nuke senitel and nov im not able to log into my_account it tells me access denied

everything was sucesfull exept for that
 
Raven







PostPosted: Fri Sep 30, 2005 10:13 pm Reply with quote

It sounds as if you haven't made all of the modifications to mainfile and possible admin.php. Verify your NukeSentinel changes.
 
badkemo







PostPosted: Fri Sep 30, 2005 10:18 pm Reply with quote

on the mainfile there is a big list of codes that i cant find in my mainfile.php

Code:
 #

#-----[ OPEN ]------------------------------------------
#
mainfile.php

#
#-----[ 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"); }
}

#
#-----[ FIND ]------------------------------------------
#
 
Raven







PostPosted: Fri Sep 30, 2005 11:11 pm Reply with quote

Did you d/l the v7.6pl3.1 from my site or have you at least applied the 3.1 Chatserv Patches?
 
Themis
Worker
Worker



Joined: Nov 17, 2003
Posts: 131

PostPosted: Fri Sep 30, 2005 11:12 pm Reply with quote

Move the scroll button down about an inch ;p

It's under this:

// Posting from other servers in not allowed
// Fix by Quake
// Bug found by PeNdEjO
if ($_SERVER['REQUEST_METHOD'] == "POST") {
if (isset($_SERVER['HTTP_REFERER'])) {
if (!stripos_clone($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST'])) {
die('Posting from another server not allowed!');
}
} else {
die($posttags);
}

_________________
Shonierose
Shonie's Retreat
www.shonie.com 
View user's profile Send private message Visit poster's website AIM Address
badkemo







PostPosted: Fri Sep 30, 2005 11:12 pm Reply with quote

yes the paches are applied pach3.1 for phpnuke7.6
 
badkemo







PostPosted: Fri Sep 30, 2005 11:16 pm Reply with quote

ok i got that resolved but how can i fix this

ok but i still have the problem with htaccess i can figure out where to set my admin password

when i go to ADMIN AUTH LIST and make a password for it and chmode the .htacces and .staccess it wont let me back on to the admin.php
 
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Sat Oct 01, 2005 2:38 am Reply with quote

I assume you are reffering to Sentinel settings in your last post?
First, make sure your IP is set in the 'Protected Range'.
Your htaccess needs to be writable and if you are lucky enough to have an SSL certificate (or shared SSL), your staccess file will need to be writable too.
Your htaccess and staccess files must have at least one empty line at the bottom.

I am assuming that, so far so good as the fact you were not able to log back in indicates the password was written to htaccess BUT for whatever reason, the password stored in htaccess does not match your admin password.

Are you sure you can use staccess on your hosting account?
Try removing the staccess path in the Sentinel config setting and trying again.

Have you verified your password was stored in htaccess?
 
View user's profile Send private message Send e-mail
badkemo







PostPosted: Sat Oct 01, 2005 10:07 am Reply with quote

how can i see if the passowrd is stored in htaccess? and yes im suer i can use staccess on my account

whhere do you set the ip to the "protected range" is it in Admin Auth List?
 
badkemo







PostPosted: Sat Oct 01, 2005 10:23 am Reply with quote

ok I fopund out where I can add my Ip adres to the protected range bit still if I rename the Haccess and stacces wont let me into the admin.pap
 
Guardian2003







PostPosted: Sat Oct 01, 2005 10:24 am Reply with quote

In Sentinesl main admin page, list on the left is 'Protected Range' - click that and then when the page changes, look for 'Add Protected IP'.

The Admin Auth list is just a list of authorised admins.

To see if anything has been written to the htaccess file you will need to view it via your FTP client software (you may have to adjust the FTP client settings to show hidden files).

Ask your host if secure htaccess (staccess) files are allowed to be sure you can use them - otherwise Sentinel will look for them, not find it and of course the authentication of the admin password will fail. Until you are certain, delete the path to it in Sentinel config.
 
badkemo







PostPosted: Sat Oct 01, 2005 10:29 am Reply with quote

ok let me send my host an e-mail aboput htaccess and staccess

thsi is how my htaccess looks like on my server right now

----------------------------------------------------------------------------------------------
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 /path/to/your/.staccess
</Files>

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



it has 1 line blank below #------------------------------------ like you said

the staccess is empty with one line blank
 
badkemo







PostPosted: Sat Oct 01, 2005 10:34 am Reply with quote

I just found out that they alow .htaccess on the server the admin is not sure about staccess he never heard of that file so i guess it's not suported
 
Raven







PostPosted: Sat Oct 01, 2005 1:02 pm Reply with quote

.staccess is just a hidden file that could be named anything. You should not have any of that code in your .htaccess. For the 150th time Laughing you do NOT need .htaccess and .staccess to use HTTP Authorization. For now, this is all you need in your .htaccess
Options All -Indexes
DirectoryIndex index.php index.htm index.html
 
badkemo







PostPosted: Sat Oct 01, 2005 3:06 pm Reply with quote

hehehe for the 150th time thank you you made everything clear Wink
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.8

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 ©