Current time: 05-21-2024, 05:24 PM Hello There, Guest! (LoginRegister)


Thread Closed 
[solved] IP configuration
Author Message
victor531 Offline
Junior Member
*

Posts: 167
Joined: Oct 2007
Reputation: 3
Post: #7
RE: IP configuration
(03-10-2009 08:16 PM)rbtux Wrote:  missing parenthesis somewhere in the code would be like error on last line ;-)

please check in point 6 In /var/www/ispcp/gui/include/login.php in line 188 change: ( add } at the end )

Code:
if ($checkReferer) {
         if (isset($_SERVER['HTTP_REFERER']) && !empty($_SERVER['HTTP_REFERER'])) {

            $info = parse_url($_SERVER['HTTP_REFERER']);
            if (isset($info['host']) && !empty($info['host'])) {
                if ($_SERVER['SERVER_PORT']!=80) {                
                    if ($info['host'].':'.$_SERVER['SERVER_PORT'] != $_SERVER['HTTP_HOST']|| $info['host'].':'.$_SERVER['SERVER_PORT'] != $_SERVER['SERVER_NAME'].':'.$_SERVER['SERVER_PORT']) {
                        set_page_message(tr('Request from foreign host was blocked!'));
                        redirect_to_level_page();
                    }
                }else{
                    if ($info['host'] != $_SERVER['HTTP_HOST'] || $info['host'] != $_SERVER['SERVER_NAME']) {
                        set_page_message(tr('Request from foreign host was blocked!'));
                        redirect_to_level_page();
                    }
                }
             }    
         }
     }
} -----------> ADD



Victor
03-10-2009 11:11 PM
Find all posts by this user
Thread Closed 


Messages In This Thread
[solved] IP configuration - puster - 03-07-2009, 01:50 AM
RE: IP configuration - kilburn - 03-07-2009, 03:05 AM
RE: IP configuration - victor531 - 03-07-2009, 08:14 AM
RE: IP configuration - puster - 03-08-2009, 04:29 AM
RE: IP configuration - puster - 03-10-2009, 03:08 PM
RE: IP configuration - rbtux - 03-10-2009, 08:16 PM
RE: IP configuration - victor531 - 03-10-2009 11:11 PM
RE: IP configuration - puster - 03-11-2009, 02:13 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)