Author |
Message |
sotas
New Member
![New Member New Member](modules/Forums/images/ranks/1star.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Mar 22, 2009
Posts: 4
|
Posted:
Sun Mar 22, 2009 4:40 pm |
|
I've gone through the installation with no issues and everything is successful, the tables are created in the DB, but when I get to this point.
Configure Base RavenNuke™
Most settings have already been pre-configured in the installation process so far. There are just a few more settings that you may want to configure at this time. It is suggested that you open up another browser session and point your address bar to http://YOURDOMAIN.com/admin.php
When I try the URL on my machine I get a blank page with the message "Nice Try!!", I have tried various pages with the same message.
I am running a Windows, IE7, MySQL, PHP setup on the localhost.
Any suggestions?
Thanks |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
evaders99
Former Moderator in Good Standing
![](modules/Forums/images/avatars/803d73f6452557b947721.jpg)
Joined: Apr 30, 2004
Posts: 3221
|
Posted:
Sun Mar 22, 2009 8:15 pm |
|
Make sure your admin username has no special characters. It should only be alphanumeric |
_________________ - Only registered users can see links on this board! Get registered or login! -
Need help? Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
sotas
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Mar 22, 2009 11:10 pm |
|
I don't have any special characters in my admin usename or password. Every PHP file I try and go to just gives me the same, blank page with the message "Nice Try!!" |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
jakec
Site Admin
![](modules/Forums/images/avatars/502a2d1345d88a86ddb4a.png)
Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom
|
Posted:
Mon Mar 23, 2009 1:06 am |
|
I suspect this may be to do with the setup of your local server installation. What are you using to run your localhost? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
testy1
Involved
![Involved Involved](modules/Forums/images/ranks/4stars.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Apr 06, 2008
Posts: 484
|
Posted:
Mon Mar 23, 2009 2:03 am |
|
remove your ip address from nuke_banned_ip
actually more likely something to do with this...
File: includes/ipban.php
Code:
$ip = $_SERVER['REMOTE_ADDR'];
if(!ereg('^([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})$', $ip)) die('Nice try!!');
|
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
sotas
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Mar 23, 2009 2:50 am |
|
testy1 wrote: | remove your ip address from nuke_banned_ip
actually more likely something to do with this...
File: includes/ipban.php
Code:
$ip = $_SERVER['REMOTE_ADDR'];
if(!ereg('^([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})$', $ip)) die('Nice try!!');
| |
Thanks, this sorted the issue.
The nuke_banned_ip is blank, but the code was the issue. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
testy1
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Mar 23, 2009 4:43 am |
|
change it to this
Code:
$ip = $_SERVER['REMOTE_ADDR'];
echo $ip;
//if(!ereg('^([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})$', $ip)) die('Nice try!!');
|
and let me know what is displays....
should be at the top left hand side of your site. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
sotas
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Mar 23, 2009 4:55 am |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
testy1
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Mar 23, 2009 4:08 pm |
|
mmm ok, has to be something to do with your setup, not sure what though. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hamster
Hangin' Around
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Mar 19, 2009
Posts: 42
|
Posted:
Thu Mar 26, 2009 11:49 am |
|
Hello,
I'm having the same issue. After the testy1 change to ipban.php, I get this.
::1
YOUR ATTENTION PLEASE
You have attempted to access this site with an invalid IP.
If you think this is a mistake you can contact the site webmaster at xxxxxxx(at)xxxx(dot)com.
Be SURE to include the following information in any email!
etc |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
testy1
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Mar 26, 2009 4:09 pm |
|
is this a local setup.
Are you using Apache, mysql
Anything else you can tell me that may be out of the ordinary (sounds vague because it is lol)? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
testy1
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Mar 26, 2009 4:14 pm |
|
Im wondering if it has something to do with ipv6 address's
e.g.
Quote: |
* ::1/128 — the loopback address is a unicast localhost address. If an application in a host sends packets to this address, the IPv6 stack will loop these packets back on the same virtual interface (corresponding to 127.0.0.1 in IPv4).
* fe80::/10 — The link-local prefix specifies that the address is only valid in the scope of a given local link. This is analogous to the Autoconfiguration IP addresses 169.254.0.0/16 in IPv4.
|
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hamster
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Mar 26, 2009 4:25 pm |
|
Local setup MAMP
I had a clone site running locally to switch to Ravenuke. Got stuck at the same spot the OP did. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
testy1
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Mar 26, 2009 5:35 pm |
|
mmmm mamp is mac i think?
does mac use ipv6 network protocol?
it is definitely a hardware based issue by the sound of it.
@sotas, are you using mac? or which operating system are you on?
I also came across this for future reference
Code:
/*** try to validate as IPV6 address ***/
if(filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6) === FALSE)
{
echo "$ip is not a valid IP";
}
else
{
echo "$ip is valid";
}
|
EDIT: Just as note filter_var is only available since php version 5.2.3 |
Last edited by testy1 on Thu Mar 26, 2009 9:09 pm; edited 1 time in total |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hamster
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Mar 26, 2009 5:43 pm |
|
Looks like Mac does by default. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
testy1
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Mar 26, 2009 9:08 pm |
|
In windows you can revert back to ipv4 by uninstalling ipv6, maybe mac has a similar setup?
Mac's may also have a hosts file like windows where you might be able to map ::1 to 127.0.0.1
This issue will need discussion by the dev's as I feel it could become a significant problem in the long run. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
Site Admin
![](modules/Forums/images/avatars/0c0adf824792d6d341ef4.gif)
Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Sat Mar 28, 2009 7:56 am |
|
testy1, if you haven't submitted an issue for the team yet, would you please do so? I believe you have the permission level to do so. Thanks! |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hamster
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Mar 28, 2009 9:56 am |
|
I'd like to see what the fix is for this. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
testy1
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Mar 28, 2009 5:25 pm |
|
montego wrote: | testy1, if you haven't submitted an issue for the team yet, would you please do so? I believe you have the permission level to do so. Thanks! |
Im not sure that I do montego, or I dont remember one of the two ![Sad](modules/Forums/images/smiles/icon_sad.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
testy1
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Apr 02, 2009 4:02 am |
|
ok this got me interested :(
If someone wants to try this and let me know if it works alright it would be appreciated.Someone with an interment knowledge of reg could probably enhance this.
Replace the code in ipban.php file with this
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 ( stristr(htmlentities($_SERVER['PHP_SELF']), "ipban.php") ) {
Header( "Location: ../index.php" );
die();
}
global $prefix, $db;
$bIPver = false;
$ip = $_SERVER['REMOTE_ADDR'];
if ( ereg('^([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})$', $ip) ) {
$bIPver = true;
} elseif ( ereg("^[0-9a-fA-F:]+([0-9a-fA-F]{1,4})[:]{1,2}([0-9a-fA-F]{1,4})[:]{1,2}([0-9a-fA-F]{1,4})[:]{1,2}([0-9a-fA-F]{1,4})$", $ip) ) {
$bIPver = true;
} elseif ( ereg("^::[1]{1}$", $ip) ) {
$bIPver = true;
}
$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 ( $bIPver == true ) {
$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] == "*" ) { // "isset" is faster than "count"
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();
}
}
} else {
die( 'Nice try!!' );
}
?>
|
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hamster
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Apr 03, 2009 1:54 pm |
|
Well, it's seems to be moving in the right direction.
I went through the whole INSTALLATION/setup.php again. Got to the
end, it said all is good, go to admin.php.
But the page is completely blank. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Palbin
Site Admin
![](modules/Forums/images/avatars/Dilbert/Dilbert_-_Dogbert_King.gif)
Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania
|
Posted:
Fri Apr 03, 2009 4:15 pm |
|
If you are having invalid ip problems on local installations open rnconfig.php and set $bypassNukeSentinelInvalidIPCheck to true. |
_________________ "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. |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
testy1
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Apr 03, 2009 5:13 pm |
|
Palbin wrote: | If you are having invalid ip problems on local installations open rnconfig.php and set $bypassNukeSentinelInvalidIPCheck to true. |
He should of been shown the block page if it was for invalid ip, I would assume there is another check somewhere in admin.php which has flagged his ip as invalid again.
is it only the admin page or all pages that are blank.Turn on error reporting as well just to check. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hamster
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Apr 03, 2009 6:51 pm |
|
They are all blank, or it says, the page is not found on the server.
Setting that to "true" didn't do it. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
testy1
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Apr 03, 2009 7:00 pm |
|
it is only your local pc that is having issues all hosts online will not be a problem.
I assume mac have ipv6 by default as do windows vista now, so it is something that will have to be looked into as most o/s's will be that way now I suppose.But untill then I would revert your o/s back to ipv4, it is a simple process in windows vista and I assume mac are the same. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|