Location: PHPKode > projects > MembersGear > membersgear/config/global_configuration.php
<?php 
        require_once PHYSICAL_DIR."/includes/system_get_set_options_class.php";
        $option_obj=new system_get_set_options_class();
        
   
        if(!isset($_SESSION[SESSION_PREFIX.'INCLUDE_DIR']))
         {
            $INCLUDE_DIR=stripslashes($option_obj->get_option('INCLUDE_DIR'));
            DEFINE('INCLUDE_DIR',$INCLUDE_DIR);
            $_SESSION[SESSION_PREFIX.'INCLUDE_DIR']=$INCLUDE_DIR;
         }
       else
         DEFINE('INCLUDE_DIR',$_SESSION[SESSION_PREFIX.'INCLUDE_DIR']);
           
        if(!isset($_SESSION[SESSION_PREFIX.'CONFIG_DIR']))
         {
            $CONFIG_DIR=stripslashes($option_obj->get_option('CONFIG_DIR'));
            DEFINE('CONFIG_DIR',$CONFIG_DIR);
            $_SESSION[SESSION_PREFIX.'CONFIG_DIR']=$CONFIG_DIR;
         }
       else
         DEFINE('CONFIG_DIR',$_SESSION[SESSION_PREFIX.'CONFIG_DIR']);  
   
       if(!isset($_SESSION[SESSION_PREFIX.'WEB_URL_SECURE']))
         {
           $WEB_URL_SECURE=stripslashes($option_obj->get_option('WEB_URL_SECURE'));
           DEFINE('WEB_URL_SECURE',$WEB_URL_SECURE);  
           $_SESSION[SESSION_PREFIX.'WEB_URL_SECURE']=$WEB_URL_SECURE;
         } 
       else
          DEFINE('WEB_URL_SECURE',$_SESSION[SESSION_PREFIX.'WEB_URL_SECURE']);

         
       if(!isset($_SESSION[SESSION_PREFIX.'WEB_URL']))
        {
          $WEB_URL=stripslashes($option_obj->get_option('WEB_URL'));
          $_SESSION[SESSION_PREFIX.'WEB_URL']=$WEB_URL;
        }
       else
         $WEB_URL=$_SESSION[SESSION_PREFIX.'WEB_URL'];
        
        if( isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on')
            DEFINE('WEB_URL',$WEB_URL_SECURE);
        else
            DEFINE('WEB_URL',$WEB_URL);
            
        
       
        if(!isset($_SESSION[SESSION_PREFIX.'WEB_TITLE']))
         {
            $WEB_TITLE=stripslashes($option_obj->get_option('WEB_TITLE'));
            DEFINE('WEB_TITLE',$WEB_TITLE);
            $_SESSION[SESSION_PREFIX.'WEB_TITLE']=$WEB_TITLE;
            
         }
        else
         DEFINE('WEB_TITLE',$_SESSION[SESSION_PREFIX.'WEB_TITLE']);  
        
        if(!isset($_SESSION[SESSION_PREFIX.'PAYGEAR_WEB_URL']))
         {
            $PAYGEAR_WEB_URL=stripslashes($option_obj->get_option('PAYGEAR_WEB_URL'));
            DEFINE('PAYGEAR_WEB_URL',$PAYGEAR_WEB_URL);
            $_SESSION[SESSION_PREFIX.'PAYGEAR_WEB_URL']=$PAYGEAR_WEB_URL;
         }
        else
         DEFINE('PAYGEAR_WEB_URL',$_SESSION[SESSION_PREFIX.'PAYGEAR_WEB_URL']);  
       
         if(!isset($_SESSION[SESSION_PREFIX.'SITE_VISIT_URL']))
         {
            $SITE_VISIT_URL=stripslashes($option_obj->get_option('SITE_VISIT_URL'));
            DEFINE('SITE_VISIT_URL',$SITE_VISIT_URL);
            $_SESSION[SESSION_PREFIX.'SITE_VISIT_URL']=$SITE_VISIT_URL;
         }
        else
         DEFINE('SITE_VISIT_URL',$_SESSION[SESSION_PREFIX.'SITE_VISIT_URL']);  
        
        
         if(!isset($_SESSION[SESSION_PREFIX.'USER_JS_DIR']))
         {
            $USER_JS_DIR=stripslashes(WEB_URL.$option_obj->get_option('USER_JS_DIR'));
            DEFINE('USER_JS_DIR',$USER_JS_DIR);
            $_SESSION[SESSION_PREFIX.'USER_JS_DIR']=$USER_JS_DIR; 
         }
        else
         DEFINE('USER_JS_DIR',$_SESSION[SESSION_PREFIX.'USER_JS_DIR']);  
       
        if(!isset($_SESSION[SESSION_PREFIX.'USER_CSS_DIR']))
         {
            $USER_CSS_DIR=stripslashes(WEB_URL.$option_obj->get_option('USER_CSS_DIR'));
            DEFINE('USER_CSS_DIR',$USER_CSS_DIR);
            $_SESSION[SESSION_PREFIX.'USER_CSS_DIR']=$USER_CSS_DIR;
         }
        else
         DEFINE('USER_CSS_DIR',$_SESSION[SESSION_PREFIX.'USER_CSS_DIR']);  
        
        if(!isset($_SESSION[SESSION_PREFIX.'USER_IMAGE_DIR']))
         {
            $USER_IMAGE_DIR=stripslashes(WEB_URL.$option_obj->get_option('USER_IMAGE_DIR'));
            DEFINE('USER_IMAGE_DIR',$USER_IMAGE_DIR);
            $_SESSION[SESSION_PREFIX.'USER_IMAGE_DIR']=$USER_IMAGE_DIR;
         }
        else
         DEFINE('USER_IMAGE_DIR',$_SESSION[SESSION_PREFIX.'USER_IMAGE_DIR']);  
         
         if(!isset($_SESSION[SESSION_PREFIX.'ADMIN_JS_DIR']))
         {
            $ADMIN_JS_DIR=stripslashes(WEB_URL.$option_obj->get_option('ADMIN_JS_DIR'));
            DEFINE('ADMIN_JS_DIR',$ADMIN_JS_DIR);
            $_SESSION[SESSION_PREFIX.'ADMIN_JS_DIR']=$ADMIN_JS_DIR;
         }
        else
         DEFINE('ADMIN_JS_DIR',$_SESSION[SESSION_PREFIX.'ADMIN_JS_DIR']);  
      
       if(!isset($_SESSION[SESSION_PREFIX.'ADMIN_CSS_DIR']))
         {
            $ADMIN_CSS_DIR=stripslashes(WEB_URL.$option_obj->get_option('ADMIN_CSS_DIR'));
            DEFINE('ADMIN_CSS_DIR',$ADMIN_CSS_DIR);
            $_SESSION[SESSION_PREFIX.'ADMIN_CSS_DIR']=$ADMIN_CSS_DIR; 
         }
        else
         DEFINE('ADMIN_CSS_DIR',$_SESSION[SESSION_PREFIX.'ADMIN_CSS_DIR']);  
        
     
        if(!isset($_SESSION[SESSION_PREFIX.'ADMIN_IMAGE_DIR']))
         {
            $ADMIN_IMAGE_DIR=stripslashes(WEB_URL.$option_obj->get_option('ADMIN_IMAGE_DIR'));
            DEFINE('ADMIN_IMAGE_DIR',$ADMIN_IMAGE_DIR);
            $_SESSION[SESSION_PREFIX.'ADMIN_IMAGE_DIR']=$ADMIN_IMAGE_DIR; 
         }
        else
         DEFINE('ADMIN_IMAGE_DIR',$_SESSION[SESSION_PREFIX.'ADMIN_IMAGE_DIR']);  
         
   
       if(!isset($_SESSION[SESSION_PREFIX.'PHYSICAL_UPLOADS_DIR']))
         {
            $PHYSICAL_UPLOADS_DIR=stripslashes($option_obj->get_option('PHYSICAL_UPLOADS_DIR'));
            DEFINE('PHYSICAL_UPLOADS_DIR',$PHYSICAL_UPLOADS_DIR);
            $_SESSION[SESSION_PREFIX.'PHYSICAL_UPLOADS_DIR']=$PHYSICAL_UPLOADS_DIR; 
         }
        else
         DEFINE('PHYSICAL_UPLOADS_DIR',$_SESSION[SESSION_PREFIX.'PHYSICAL_UPLOADS_DIR']);  
        
       if(!isset($_SESSION[SESSION_PREFIX.'VIRTUAL_UPLOADS_DIR']))
         {
            $VIRTUAL_UPLOADS_DIR=stripslashes(WEB_URL.$option_obj->get_option('VIRTUAL_UPLOADS_DIR'));
            DEFINE('VIRTUAL_UPLOADS_DIR',$VIRTUAL_UPLOADS_DIR);
            $_SESSION[SESSION_PREFIX.'VIRTUAL_UPLOADS_DIR']=$VIRTUAL_UPLOADS_DIR;
         }
        else
         DEFINE('VIRTUAL_UPLOADS_DIR',$_SESSION[SESSION_PREFIX.'VIRTUAL_UPLOADS_DIR']);  
        
      
        if(!isset($_SESSION[SESSION_PREFIX.'LIVE_MODE']))
         {
            $LIVE_MODE=stripslashes($option_obj->get_option('LIVE_MODE'));
            DEFINE('LIVE_MODE',$LIVE_MODE);
            $_SESSION[SESSION_PREFIX.'LIVE_MODE']=$LIVE_MODE;  
         }
        else
         DEFINE('LIVE_MODE',$_SESSION[SESSION_PREFIX.'LIVE_MODE']);  
        
       if(!isset($_SESSION[SESSION_PREFIX.'USER_MAX_LOGIN_ATTAMPT']))
         {
            $USER_MAX_LOGIN_ATTAMPT=stripslashes($option_obj->get_option('USER_MAX_LOGIN_ATTAMPT'));
            DEFINE('USER_MAX_LOGIN_ATTAMPT',$USER_MAX_LOGIN_ATTAMPT);
            $_SESSION[SESSION_PREFIX.'USER_MAX_LOGIN_ATTAMPT']=$USER_MAX_LOGIN_ATTAMPT;   
         }
        else
         DEFINE('USER_MAX_LOGIN_ATTAMPT',$_SESSION[SESSION_PREFIX.'USER_MAX_LOGIN_ATTAMPT']);  
       
       if(!isset($_SESSION[SESSION_PREFIX.'CAPTCHA_ENABLE_ON_ADMINSTRATOR_LOGIN_PAGE']))
         {
            $CAPTCHA_ENABLE_ON_ADMINSTRATOR_LOGIN_PAGE=stripslashes($option_obj->get_option('CAPTCHA_ENABLE_ON_ADMINSTRATOR_LOGIN_PAGE'));
            DEFINE('CAPTCHA_ENABLE_ON_ADMINSTRATOR_LOGIN_PAGE',$CAPTCHA_ENABLE_ON_ADMINSTRATOR_LOGIN_PAGE);
            $_SESSION[SESSION_PREFIX.'CAPTCHA_ENABLE_ON_ADMINSTRATOR_LOGIN_PAGE']=$CAPTCHA_ENABLE_ON_ADMINSTRATOR_LOGIN_PAGE;
         }
        else
         DEFINE('CAPTCHA_ENABLE_ON_ADMINSTRATOR_LOGIN_PAGE',$_SESSION[SESSION_PREFIX.'CAPTCHA_ENABLE_ON_ADMINSTRATOR_LOGIN_PAGE']);  
        
      
       if(!isset($_SESSION[SESSION_PREFIX.'CAPTCHA_ENABLE_ON_USER_LOGIN_PAGE']))
         {
            $CAPTCHA_ENABLE_ON_USER_LOGIN_PAGE=stripslashes($option_obj->get_option('CAPTCHA_ENABLE_ON_USER_LOGIN_PAGE'));
            DEFINE('CAPTCHA_ENABLE_ON_USER_LOGIN_PAGE',$CAPTCHA_ENABLE_ON_USER_LOGIN_PAGE);
            $_SESSION[SESSION_PREFIX.'CAPTCHA_ENABLE_ON_USER_LOGIN_PAGE']=$CAPTCHA_ENABLE_ON_USER_LOGIN_PAGE;
         }
        else
         DEFINE('CAPTCHA_ENABLE_ON_USER_LOGIN_PAGE',$_SESSION[SESSION_PREFIX.'CAPTCHA_ENABLE_ON_USER_LOGIN_PAGE']);  
        
    
       if(!isset($_SESSION[SESSION_PREFIX.'IS_USER_SUPPORT_LINK_VISIBLE']))
         {
            $IS_USER_SUPPORT_LINK_VISIBLE=stripslashes($option_obj->get_option('IS_USER_SUPPORT_LINK_VISIBLE'));
            DEFINE('IS_USER_SUPPORT_LINK_VISIBLE',$IS_USER_SUPPORT_LINK_VISIBLE);
            $_SESSION[SESSION_PREFIX.'IS_USER_SUPPORT_LINK_VISIBLE']=$IS_USER_SUPPORT_LINK_VISIBLE;
         }
        else
         DEFINE('IS_USER_SUPPORT_LINK_VISIBLE',$_SESSION[SESSION_PREFIX.'IS_USER_SUPPORT_LINK_VISIBLE']);  
        
       
       if(!isset($_SESSION[SESSION_PREFIX.'USER_SUPPORT_LINK']))
         {
            $USER_SUPPORT_LINK=stripslashes($option_obj->get_option('USER_SUPPORT_LINK'));
            DEFINE('USER_SUPPORT_LINK',$USER_SUPPORT_LINK);
            $_SESSION[SESSION_PREFIX.'USER_SUPPORT_LINK']=$USER_SUPPORT_LINK;
         }
        else
         DEFINE('USER_SUPPORT_LINK',$_SESSION[SESSION_PREFIX.'USER_SUPPORT_LINK']);  
        
       if(!isset($_SESSION[SESSION_PREFIX.'IS_ROTATING_LOGIN_PAGES_ENABLED']))
         {
            $IS_ROTATING_LOGIN_PAGES_ENABLED=stripslashes($option_obj->get_option('IS_ROTATING_LOGIN_PAGES_ENABLED'));
            DEFINE('IS_ROTATING_LOGIN_PAGES_ENABLED',$IS_ROTATING_LOGIN_PAGES_ENABLED);
            $_SESSION[SESSION_PREFIX.'IS_ROTATING_LOGIN_PAGES_ENABLED']=$IS_ROTATING_LOGIN_PAGES_ENABLED;
         }
        else
         DEFINE('IS_ROTATING_LOGIN_PAGES_ENABLED',$_SESSION[SESSION_PREFIX.'IS_ROTATING_LOGIN_PAGES_ENABLED']);  
        
       
        if(!isset($_SESSION[SESSION_PREFIX.'IS_ROTATING_LOGOUT_PAGES_ENABLED']))
         {
            $IS_ROTATING_LOGOUT_PAGES_ENABLED=stripslashes($option_obj->get_option('IS_ROTATING_LOGOUT_PAGES_ENABLED'));
            DEFINE('IS_ROTATING_LOGOUT_PAGES_ENABLED',$IS_ROTATING_LOGOUT_PAGES_ENABLED);
            $_SESSION[SESSION_PREFIX.'IS_ROTATING_LOGOUT_PAGES_ENABLED']=$IS_ROTATING_LOGOUT_PAGES_ENABLED;
         }
        else
         DEFINE('IS_ROTATING_LOGOUT_PAGES_ENABLED',$_SESSION[SESSION_PREFIX.'IS_ROTATING_LOGOUT_PAGES_ENABLED']);  
        
       
        if(!isset($_SESSION[SESSION_PREFIX.'IS_USER_DELETE_BUTTON_VISIBLE']))
         {
            $IS_USER_DELETE_BUTTON_VISIBLE=stripslashes($option_obj->get_option('IS_USER_DELETE_BUTTON_VISIBLE'));
            DEFINE('IS_USER_DELETE_BUTTON_VISIBLE',$IS_USER_DELETE_BUTTON_VISIBLE);
            $_SESSION[SESSION_PREFIX.'IS_USER_DELETE_BUTTON_VISIBLE']=$IS_USER_DELETE_BUTTON_VISIBLE;
         }
        else
         DEFINE('IS_USER_DELETE_BUTTON_VISIBLE',$_SESSION[SESSION_PREFIX.'IS_USER_DELETE_BUTTON_VISIBLE']);  
        
      
        if(!isset($_SESSION[SESSION_PREFIX.'IS_ENABLE_ONE_TIME_OFFER']))
         {
            $IS_ENABLE_ONE_TIME_OFFER=stripslashes($option_obj->get_option('IS_ENABLE_ONE_TIME_OFFER'));
            DEFINE('IS_ENABLE_ONE_TIME_OFFER',$IS_ENABLE_ONE_TIME_OFFER);
            $_SESSION[SESSION_PREFIX.'IS_ENABLE_ONE_TIME_OFFER']=$IS_ENABLE_ONE_TIME_OFFER;
         }
        else
         DEFINE('IS_ENABLE_ONE_TIME_OFFER',$_SESSION[SESSION_PREFIX.'IS_ENABLE_ONE_TIME_OFFER']);  
         
         if(!isset($_SESSION[SESSION_PREFIX.'MEMBER_SHOW_AFFILIATE']))
         {
            $MEMBER_SHOW_AFFILIATE=stripslashes($option_obj->get_option('MEMBER_SHOW_AFFILIATE'));
            DEFINE('MEMBER_SHOW_AFFILIATE',$MEMBER_SHOW_AFFILIATE);
            $_SESSION[SESSION_PREFIX.'MEMBER_SHOW_AFFILIATE']=$MEMBER_SHOW_AFFILIATE;
         }
        else
         DEFINE('MEMBER_SHOW_AFFILIATE',$_SESSION[SESSION_PREFIX.'MEMBER_SHOW_AFFILIATE']);  
         
         
   
  
?>
Return current item: MembersGear