Show
Ignore:
Timestamp:
10/09/08 09:43:31 (14 years ago)
Author:
beans
Message:

* Fixed logo and T2 icon on about pages
* Fixed session, now using siteid also
* Removed Syncronization from administration menu

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/common/includes/class.session.php

    r254 r336  
    1717    function isAdmin() 
    1818    { 
    19         return (bool)$_SESSION['admin']; 
     19        return (bool)($_SESSION['admin'] && $_SESSION['rsite'] == $_SERVER["HTTP_HOST"]); 
    2020    } 
    2121 
    2222    function isSuperAdmin() 
    2323    { 
    24         return (bool)$_SESSION['admin_super']; 
     24        return (bool)($_SESSION['admin_super']&& $_SESSION['rsite'] == $_SERVER["HTTP_HOST"]); 
    2525    } 
    2626 
     
    2929        session_start(); 
    3030        $_SESSION['admin'] = $admin; 
     31                                $_SESSION['rsite'] = $_SERVER["HTTP_HOST"]; 
    3132    } 
    3233