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)
Post new topic   Reply to topic
Author Message
sotas
New Member
New Member


Joined: Mar 22, 2009
Posts: 4

PostPosted: Sun Mar 22, 2009 4:40 pm Reply with quote Back to top

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(tm)
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
Only registered users can see links on this board!
Get registered or login to the forums!

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
View user's profile Send private message
evaders99
Former Moderator in Good Standing


Joined: Apr 30, 2004
Posts: 3221

PostPosted: Sun Mar 22, 2009 8:15 pm Reply with quote Back to top

Make sure your admin username has no special characters. It should only be alphanumeric
View user's profile Send private message Visit poster's website
sotas
New Member
New Member


Joined: Mar 22, 2009
Posts: 4

PostPosted: Sun Mar 22, 2009 11:10 pm Reply with quote Back to top

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!!"
View user's profile Send private message
jakec
Site Admin


Joined: Feb 06, 2006
Posts: 3028
Location: United Kingdom

PostPosted: Mon Mar 23, 2009 1:06 am Reply with quote Back to top

I suspect this may be to do with the setup of your local server installation. What are you using to run your localhost?
View user's profile Send private message
testy1
Involved
Involved


Joined: Apr 06, 2008
Posts: 483

PostPosted: Mon Mar 23, 2009 2:03 am Reply with quote Back to top

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!!');
View user's profile Send private message
sotas
New Member
New Member


Joined: Mar 22, 2009
Posts: 4

PostPosted: Mon Mar 23, 2009 2:50 am Reply with quote Back to top

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.
View user's profile Send private message
testy1
Involved
Involved


Joined: Apr 06, 2008
Posts: 483

PostPosted: Mon Mar 23, 2009 4:43 am Reply with quote Back to top

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.
View user's profile Send private message
sotas
New Member
New Member


Joined: Mar 22, 2009
Posts: 4

PostPosted: Mon Mar 23, 2009 4:55 am Reply with quote Back to top

All it displays is ::1
View user's profile Send private message
testy1
Involved
Involved


Joined: Apr 06, 2008
Posts: 483

PostPosted: Mon Mar 23, 2009 4:08 pm Reply with quote Back to top

mmm ok, has to be something to do with your setup, not sure what though.
View user's profile Send private message
hamster
Hangin' Around


Joined: Mar 19, 2009
Posts: 42

PostPosted: Thu Mar 26, 2009 11:49 am Reply with quote Back to top

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
View user's profile Send private message
testy1
Involved
Involved


Joined: Apr 06, 2008
Posts: 483

PostPosted: Thu Mar 26, 2009 4:09 pm Reply with quote Back to top

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)?
View user's profile Send private message
testy1
Involved
Involved


Joined: Apr 06, 2008
Posts: 483

PostPosted: Thu Mar 26, 2009 4:14 pm Reply with quote Back to top

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.

View user's profile Send private message
hamster
Hangin' Around


Joined: Mar 19, 2009
Posts: 42

PostPosted: Thu Mar 26, 2009 4:25 pm Reply with quote Back to top

Local setup MAMP

I had a clone site running locally to switch to Ravenuke. Got stuck at the same spot the OP did.
View user's profile Send private message
testy1
Involved
Involved


Joined: Apr 06, 2008
Posts: 483

PostPosted: Thu Mar 26, 2009 5:35 pm Reply with quote Back to top

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
View user's profile Send private message
hamster
Hangin' Around


Joined: Mar 19, 2009
Posts: 42

PostPosted: Thu Mar 26, 2009 5:43 pm Reply with quote Back to top

Looks like Mac does by default.
View user's profile Send private message
testy1
Involved
Involved


Joined: Apr 06, 2008
Posts: 483

PostPosted: Thu Mar 26, 2009 9:08 pm Reply with quote Back to top

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.
View user's profile Send private message
montego
Former Admin in Good Standing


Joined: Aug 29, 2004
Posts: 9070
Location: Arizona

PostPosted: Sat Mar 28, 2009 7:56 am Reply with quote Back to top

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!
View user's profile Send private message Visit poster's website
hamster
Hangin' Around


Joined: Mar 19, 2009
Posts: 42

PostPosted: Sat Mar 28, 2009 9:56 am Reply with quote Back to top

I'd like to see what the fix is for this.
View user's profile Send private message
testy1
Involved
Involved


Joined: Apr 06, 2008
Posts: 483

PostPosted: Sat Mar 28, 2009 5:25 pm Reply with quote Back to top

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
View user's profile Send private message
testy1
Involved
Involved


Joined: Apr 06, 2008
Posts: 483

PostPosted: Thu Apr 02, 2009 4:02 am Reply with quote Back to top

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!!' );
}



?>
View user's profile Send private message
hamster
Hangin' Around


Joined: Mar 19, 2009
Posts: 42

PostPosted: Fri Apr 03, 2009 1:54 pm Reply with quote Back to top

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.
View user's profile Send private message
Palbin
Site Admin


Joined: Mar 30, 2006
Posts: 2403
Location: Pennsylvania

PostPosted: Fri Apr 03, 2009 4:15 pm Reply with quote Back to top

If you are having invalid ip problems on local installations open rnconfig.php and set $bypassNukeSentinelInvalidIPCheck to true.
View user's profile Send private message Visit poster's website
testy1
Involved
Involved


Joined: Apr 06, 2008
Posts: 483

PostPosted: Fri Apr 03, 2009 5:13 pm Reply with quote Back to top

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.
View user's profile Send private message
hamster
Hangin' Around


Joined: Mar 19, 2009
Posts: 42

PostPosted: Fri Apr 03, 2009 6:51 pm Reply with quote Back to top

They are all blank, or it says, the page is not found on the server.

Setting that to "true" didn't do it.
View user's profile Send private message
testy1
Involved
Involved


Joined: Apr 06, 2008
Posts: 483

PostPosted: Fri Apr 03, 2009 7:00 pm Reply with quote Back to top

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.
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