PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
mega-G
New Member
New Member


Joined: Nov 03, 2003
Posts: 4

PostPosted: Mon Nov 03, 2003 8:15 am Reply with quote Back to top

I know theres no problem in the site info block code as it clearly works Wink

But for some reason the security code doesnt show up when your not logged in.... and heres the kicker.. but it shows up on the admin login page, and then when signed in as admin, the code shows on the site info block as well.

However if i log out of admin.... the security code on the block disappears again.
Only registered users can see links on this board!
Get registered or login to the forums!
is my site addy.

also, if i right click > properties on the broken security code to find out what code should be displayed, and then type that in to log in, i get diverted to 'You are trying to access a restricted area.We are Sorry, but this section of our site is for Registered Users Only'. I.... knowing the very minimum needed to know about php to run a nuke site, cannot understand what is going on Wink

any help will be greatly appreciated Smile

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


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Mon Nov 03, 2003 8:34 am Reply with quote Back to top

The admin login uses a different script than the user does. User login is handles through modules/Your_Account/index.php. Have you modified that script at all? If so, try replacing it with the original scripts. If you have not modified it, check all files that get included in the main() routine which I believe are header.php and footer.php and any files that they may call. Check for a blank line at the top or the bottom of all those scripts.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
mega-G
New Member
New Member


Joined: Nov 03, 2003
Posts: 4

PostPosted: Mon Nov 03, 2003 9:40 am Reply with quote Back to top

Im pretty sure that i hadnt modified the your_account/index.php file, but to be certain i uploaded the standard 6.5 file for it, but still getting problems with the security code.

Er about having blank lines in the code.... im not sure Wink


Quote:
<?php
/************************************************************************/
/* PHP-NUKE: Advanced Content Management System */
/* ============================================ */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/*
Only registered users can see links on this board!
Get registered or login to the forums!
*/
/* */
/* 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. */
/************************************************************************/
if (eregi("header.php",$_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}

require_once("mainfile.php");

##################################################
# Include some common header for HTML generation #
##################################################

$header = 1;

function head() {
global $slogan, $sitename, $banners, $nukeurl, $Version_Num, $artpage, $topic, $hlpfile, $user, $hr, $theme, $cookie, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $textcolor1, $textcolor2, $forumpage, $adminpage, $userpage, $pagetitle;
$ThemeSel = get_theme();
include("themes/$ThemeSel/theme.php");
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
echo "<html>\n";
echo "<head>\n";
echo "<title>$sitename $pagetitle</title>\n";

include("includes/meta.php");
include("includes/javascript.php");

if (file_exists("themes/$ThemeSel/images/favicon.ico")) {
echo "<link REL=\"shortcut icon\" HREF=\"themes/$ThemeSel/images/favicon.ico\" TYPE=\"image/x-icon\">\n";
}

echo "<LINK REL=\"StyleSheet\" HREF=\"themes/$ThemeSel/style/style.css\" TYPE=\"text/css\">\n\n\n";
include("includes/my_header.php");
echo "\n\n\n</head>\n\n";
themeheader();
}

online();
head();
include("includes/counter.php");
global $home;
if ($home == 1) {
message_box();
blocks(Center);
}
?>



Is what dreamweaver spouts at me Wink Thats the header.php file.
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Mon Nov 03, 2003 9:44 am Reply with quote Back to top

As I said, you need to check all files that get 'included' and look for blank lines before the opening <? or after the closing ?>.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
mega-G
New Member
New Member


Joined: Nov 03, 2003
Posts: 4

PostPosted: Mon Nov 03, 2003 9:56 am Reply with quote Back to top

ok ive checked all the related files, one file had a buggy space, but i deleted it and uploaded the fixed file.

Still having the same problem though :-/
View user's profile Send private message
mega-G
New Member
New Member


Joined: Nov 03, 2003
Posts: 4

PostPosted: Mon Nov 03, 2003 10:55 am Reply with quote Back to top

PROBLEM FIXED Smile

Quote:
FIXED!: I had the Your Account setting to Registered Members only.. makes sense right? You don't need to see that if you are a visitor.. but I guess the login and registration modules kinda parse their data throught that php file... Your_Account.php. Set that module to Visitors and all is well.


i found that on nukecops after hours of sifting through many many posts about buggy security keys etc, and realised i had done that myself just the other day.

While trying to cut down on the number of links in my main block, i put your account module set to hidden and viewable only by registered members. LOL how random is that :s

ty for ur help tho raven, you were much quicker to reply than most Smile

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


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Mon Nov 03, 2003 3:26 pm Reply with quote Back to top

Yep - that will do it too Rolling Eyes
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
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.

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