Author |
Message |
tntplus1
New Member


Joined: Nov 22, 2010
Posts: 14
|
Posted:
Tue Nov 23, 2010 2:54 pm |
|
Hi everyone,
Please help me with this: after I installed RavenNuke[tm] Version 2.40.01 Released [.7z pkg. 6.51meg] on Vista Ultimate SP1, I got a blank page with the message "Nice Try!!" when I tried to access http://localhost/admin.php or http:// localhost/index.php. I followed the installation instruction from http://rnwiki.ravennuke.com/wiki/RavenNuke2:Installation#Setup_and_Configure_Main_Site_Configuration_Settings
My installation + configuration went smoothly with no error. I have only index.php in my wwwroot/ dir (no index.html file there) and I also verified that users have "read & write" access to the following files (
1. .htaccess
2. .staccess
3. /cache
4. /uploads/File
5. /uploads/Flash
6. /uploads/Image
7. /uploads/Media )
Still I got the "Nice Try!!" blank pages when accessing admin.php and index.php.
Following is my system info:
Vista Ultimate SP1, IIS 7, PHP 5.2.14, and MySQL 5.1.52, browser(s): FireFox 3.6.12 and/or IE 8. This Vista box is my local testing site. My IIS + PHP + MySQL work fine.
Please, can someone tell me what's wrong and how to fix it.
Thanks very much in advance.
|
|
|
|
 |
tntplus1

|
Posted:
Tue Nov 23, 2010 3:04 pm |
|
Hi,
It's me again. I'd like to add that after successful installations of Raven Nuke, I already renamed the installation directory. Still the blank pages appear when I tried /localhost/admin.php or index.php.
Please help me fix this.
Thanks very much. |
|
|
|
 |
nuken
RavenNuke(tm) Development Team

Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina
|
Posted:
Tue Nov 23, 2010 3:28 pm |
|
In your rnconfig.php find this line:
Code:$bypassNukeSentinelInvalidIPCheck = false;
|
and change it to true. |
_________________ Only registered users can see links on this board! Get registered or login! |
|
|
 |
tntplus1

|
Posted:
Wed Nov 24, 2010 9:29 am |
|
Hi nuken,
Thanks for your reply. In my rnconfig.php, I changed $bypassNukeSentinelInvalidIPCheck = false; to $bypassNukeSentinelInvalidIPCheck = true; and even rebooted my PC. Still the blank pages with the message "Nice Try!!" remain whenever I accessed admin.php and index.php. Please help me! Raven Nuke team, could you please check the logic of your code to see which case(s) trigger that message and how to fix it.
Thank you so much.
P.S.: also, please show me how to turn on Raven Nuke logging. Maybe the logs would give some hints of what's going wrong. Thanks. |
|
|
|
 |
Palbin
Site Admin

Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania
|
Posted:
Wed Nov 24, 2010 10:08 am |
|
http://www.ravenphpscripts.com/postxf17396-0-0.html |
_________________ "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. |
|
|
 |
tntplus1

|
Posted:
Wed Nov 24, 2010 3:16 pm |
|
Hi Nuken,
Thanks for your reply. I set the $bypassNukeSentinelInvalidIPCheck = true;
still the blank pages with the message "Nice Try!!" remain when I accessed index.pp and admin.php. Please help me fix this. Raven Nuke team, could you please check the logic of the code to see what triggers that message and how to fix it.
Also, please show to how to turn on logging for raven nuke and where to look for the log files.
Thanks very much. |
|
|
|
 |
Palbin

|
Posted:
Wed Nov 24, 2010 3:40 pm |
|
Read the topic I posted. It will solve your problems. This is only a problem because you are tying to run the site locally. |
|
|
|
 |
nuken

|
Posted:
Wed Nov 24, 2010 3:45 pm |
|
The Link Palbin posted should answer your questions and get you up and running. |
|
|
|
 |
tntplus1

|
Posted:
Fri Nov 26, 2010 5:53 pm |
|
Hi guys,
Thanks for your answers and the link. I encountered the exact problem as mentioned in the link. In includes/ipban.php, after I added echo $ip;
//if(!ereg('^([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})$', $ip)) die('Nice try!!');
The display is ::1, and I could see the admin login page, but I cannot log in. I entered the security code, but it does not let me in.
I restored the ipban.php to "if(!ereg('^([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})$', $ip)) die('Nice try!!');" and disabled IPv6, still did not solve anything. Blank pages with "Nice Try!!".
Please someone help me! Yes, I am using a local system. But Raven Nuke should run on local sites as well; otherwise, there's no way that users can fully test their local site before having it hosted.
Thanks. |
|
|
|
 |
nuken

|
Posted:
Fri Nov 26, 2010 6:26 pm |
|
Have you turned on error logging?
In config.php change
$display_errors = true;
in rnconfig.php change
$loglevel = 1;
You should be able to view your errors in rnlogs/dblog
make sure dblog is 777
paste the errors you get when you try to login as admin. |
|
|
|
 |
Palbin

|
Posted:
Fri Nov 26, 2010 8:20 pm |
|
tntplus1 wrote: | Hi guys,
Thanks for your answers and the link. I encountered the exact problem as mentioned in the link. In includes/ipban.php, after I added echo $ip;
//if(!ereg('^([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})$', $ip)) die('Nice try!!');
The display is ::1, and I could see the admin login page, but I cannot log in. I entered the security code, but it does not let me in.
I restored the ipban.php to "if(!ereg('^([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})$', $ip)) die('Nice try!!');" and disabled IPv6, still did not solve anything. Blank pages with "Nice Try!!".
Please someone help me! Yes, I am using a local system. But Raven Nuke should run on local sites as well; otherwise, there's no way that users can fully test their local site before having it hosted.
Thanks. |
If you disabled IPv6 what do you get when you echo the IP? |
|
|
|
 |
hicuxunicorniobestbuildpc
The Mouse Is Extension Of Arm

Joined: Aug 13, 2009
Posts: 1123
|
Posted:
Tue Nov 30, 2010 2:05 am |
|
I guess 127.0.0.1 is already blocked by admin and that is why you can't access. I think you need to remove this ip manually in phpMyadmin
remember http://localhost/admin.php is the same as http://127.0.0.1/admin.php
I made a test on Windows 7 Ultimate Edition and no problem. Just to let you know. |
|
|
|
 |
Palbin

|
Posted:
Tue Nov 30, 2010 9:05 pm |
|
If someone could try this revised ipban.php it would be appreciated. Please note that PHP 5.2+ is required. You will also have to have $bypassinvalidipcheck set to true if you are using IPv6.
Code:
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2004 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. */
/************************************************************************/
if (realpath(__FILE__) == realpath($_SERVER['SCRIPT_FILENAME'])) {
header('Location: ../index.php');
exit('Access Denied');
}
global $bypassNukeSentinelInvalidIPCheck, $db, $prefix;
$ip = $_SERVER['REMOTE_ADDR'];
$ipv4 = filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4);
$ipv6 = filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6);
if(!$ipv4 && (!$ipv6 && !$bypassNukeSentinelInvalidIPCheck)) die('Invalid IP Address!');
$numrow = $db->sql_numrows($db->sql_query('SELECT `id` FROM `' . $prefix . '_banned_ip` WHERE `ip_address`="' . $ip . '"'));
if ($numrow != 0) {
echo '<br /><br /><center><img src="images/admin/ipban.gif" /><br /><br /><b>You have been banned by the administrator</b></center>';
die();
}
if ($ipv4) {
$ip_class = explode('.', $ip);
$ip = $ip_class[0] . '.' . $ip_class[1] . '.' . $ip_class[2] . '.*';
list($ip_address) = $db->sql_fetchrow($db->sql_query('SELECT `ip_address` FROM `' . $prefix . '_banned_ip` WHERE `ip_address`="' . $ip . '"'));
$ip_class_banned = explode('.', $ip_address);
if (isset($ip_class_banned[3]) && $ip_class_banned[3] == '*') {
if ($ip_class[0] == $ip_class_banned[0] && $ip_class[1] == $ip_class_banned[1] && $ip_class[2] == $ip_class_banned[2]) {
echo '<br /><br /><center><img src="images/admin/ipban.gif" /><br /><br /><b>You have been banned by the administrator</b></center>';
die();
}
}
}
?>
|
|
|
|
|
 |
|