Location: PHPKode > projects > MembersGear > membersgear/installation/signup_global_configuration.php
<?php
  require_once "config/config.php";
   
   if($_POST)
   {
      
          if(isset($_POST['generate_login']) )  
             $lsGenerate_login=$_POST['generate_login']; 
            else
              $lsGenerate_login='false';  
            
            
            $generate_login_prefix=trim($_POST['generate_login_prefix']); 
            
       
            $lsLogin_min_length=trim($_POST['login_min_length']);
            $lsLogin_max_length=trim($_POST['login_max_length']);
            if(isset($_POST['generate_password']) )
                 $lsGenerate_password=$_POST['generate_password'];     
                
            else
                $lsGenerate_password='false'; 
               
            $lsPass_min_length=trim($_POST['pass_min_length']);
            $lsPass_max_length=trim($_POST['pass_max_length']);
            
            if(isset($_POST['unique_email']) )
                   $lsUnique_email=trim($_POST['unique_email']);
                  
            else
                 $lsUnique_email='false'; 
                 
            $lsUse_address_info=trim($_POST['use_address_info']);
            
            $ls_show_support_email=trim($_POST['show_support_email']);
            
            $lb_Enabled_Rotating_Login_Pages = trim($_POST['Enabled_Rotating_Login_Pages']);
            
            $lb_Enabled_Rotating_Logout_Pages = trim($_POST['Enabled_Rotating_Logout_Pages']);
            
            
            //$lsCurrency=trim($_POST['currency']);
            
            $lsUse_validate_info=trim($_POST['ddluservalidate']);
            
            
            $lb_show_delete_button = trim($_POST['ddldelaccbut']);  
            
            $lb_enable_one_time_offer = trim($_POST['ddlenableonetimeoffer']);  
             
            if(isset($_POST['live_mode']) )  
                $lsLive_mode=$_POST['live_mode']; 
            else
               $lsLive_mode='false';  
            
            
               
               
            $lsWbe_url=$_POST['wbe_url'];
            
                 
            $lsSite_title=trim(addslashes($_POST['site_title'])); 
            
            $lsSite_visit_url=trim(addslashes($_POST['site_visit_url']));  
            
            
            $lsMax_login_attemp=trim($_POST['max_login_attemp']);
            
            $lsEnable_Captcha_On_Admin_Login_Page = (isset($_POST['captcha_on_admin_login_page']) and $_POST['captcha_on_admin_login_page'] != '') ? trim($_POST['captcha_on_admin_login_page']): 'false';
            
            $lsEnable_Captcha_On_User_Login_Page = (isset($_POST['captcha_on_user_login_page']) and $_POST['captcha_on_user_login_page'] != '') ? trim($_POST['captcha_on_user_login_page']) :'false';
      
            $lsUse_subscribelink=trim($_POST['ddlusersubscribelink']);
            
            $lsMembers_showpriceon_signup_page=trim($_POST['ddlpricesignup']);
            
            $lsMembers_showpricon_memberdefault_page=trim($_POST['ddlpricedefault']);     
                  
            $_SESSION['OPTIONS']['MEMBER_GENERATE_USERNAME']= $lsGenerate_login;   
            $_SESSION['OPTIONS']['MEMBER_GENERATE_USERNAME_PREFIX']= $generate_login_prefix;   
            $_SESSION['OPTIONS']['MEMBER_LOGIN_MIN_LENGTH']= $lsLogin_min_length;   
            $_SESSION['OPTIONS']['MEMBER_LOGIN_MAX_LENGTH']= $lsLogin_max_length;   
            $_SESSION['OPTIONS']['MEMBER_GENERATE_PASSWORD']= $lsGenerate_password;   
            $_SESSION['OPTIONS']['MEMBER_PASSWORD_MIN_LENGTH']= $lsPass_min_length;   
            $_SESSION['OPTIONS']['MEMBER_PASSWORD_MAX_LENGTH']= $lsPass_max_length;   
            $_SESSION['OPTIONS']['MEMBER_UNIQUE_EMAIL']= $lsUnique_email;   
            $_SESSION['OPTIONS']['MEMBER_USE_ADDRESS_INFO']= $lsUse_address_info;   
            $_SESSION['OPTIONS']['MEMBER_USE_VALIDATE_INFO']= $lsUse_validate_info;   
            $_SESSION['OPTIONS']['MEMBER_USE_SUBSCRIBELINK']= $lsUse_subscribelink;   
            $_SESSION['OPTIONS']['INCLUDE_DIR']= PHYSICAL_DIR_INSTALLATION.'includes';   
            $_SESSION['OPTIONS']['CONFIG_DIR']= PHYSICAL_DIR_INSTALLATION.'config';   
            $lsWbe_url=addslashes($lsWbe_url);
            $web_url_secure=addslashes($_SESSION['INSTALLATION_WEB_URL_SECURE']);
            
            $_SESSION['OPTIONS']['WEB_URL']= $lsWbe_url;   
            $_SESSION['OPTIONS']['WEB_URL_SECURE']= $web_url_secure;   
           
            $_SESSION['OPTIONS']['WEB_TITLE']= $lsSite_title;   
            $_SESSION['OPTIONS']['SITE_VISIT_URL']= $lsSite_visit_url;   
                 
            $_SESSION['OPTIONS']['PAYGEAR_WEB_URL']= PAYGEAR_WEB_URL;   
            
            $_SESSION['OPTIONS']['USER_JS_DIR']= '/js';   
            
            $_SESSION['OPTIONS']['USER_CSS_DIR']= '/css';   
            $_SESSION['OPTIONS']['USER_IMAGE_DIR']= '/images';   
            $_SESSION['OPTIONS']['ADMIN_JS_DIR']= '/admin/js';   
            $_SESSION['OPTIONS']['ADMIN_CSS_DIR']= '/admin/css';   
            $_SESSION['OPTIONS']['ADMIN_IMAGE_DIR']= '/admin/images';   
            $_SESSION['OPTIONS']['PHYSICAL_UPLOADS_DIR']= PHYSICAL_DIR_INSTALLATION.'uploads';   
            $_SESSION['OPTIONS']['VIRTUAL_UPLOADS_DIR']= '/uploads';   
            $_SESSION['OPTIONS']['LIVE_MODE']= $lsLive_mode;
            $_SESSION['OPTIONS']['USER_MAX_LOGIN_ATTAMPT']= $lsMax_login_attemp;
            $_SESSION['OPTIONS']['CAPTCHA_ENABLE_ON_ADMINSTRATOR_LOGIN_PAGE']= $lsEnable_Captcha_On_Admin_Login_Page;
            $_SESSION['OPTIONS']['CAPTCHA_ENABLE_ON_USER_LOGIN_PAGE']= $lsEnable_Captcha_On_User_Login_Page;
            
            
            if($ls_show_support_email=="true")
             {
                    $_SESSION['OPTIONS']['IS_USER_SUPPORT_LINK_VISIBLE']= 'true';
                    $_SESSION['OPTIONS']['USER_SUPPORT_LINK']= 'user_support.php';
                    
                  
             }
            else
             {
                    $_SESSION['OPTIONS']['IS_USER_SUPPORT_LINK_VISIBLE']= 'false';
                    $_SESSION['OPTIONS']['USER_SUPPORT_LINK']= ' ';
                    
                  
             }
             
             if($_POST['show_affiliate']=='true')
             {
                $_SESSION['OPTIONS']['MEMBER_SHOW_AFFILIATE']= 'true'; 
             }
            else
               $_SESSION['OPTIONS']['MEMBER_SHOW_AFFILIATE']= 'false'; 
                
             
             $_SESSION['OPTIONS']['IS_ROTATING_LOGIN_PAGES_ENABLED']= $lb_Enabled_Rotating_Login_Pages;
             $_SESSION['OPTIONS']['IS_ROTATING_LOGOUT_PAGES_ENABLED']= $lb_Enabled_Rotating_Logout_Pages;
             $_SESSION['OPTIONS']['IS_USER_DELETE_BUTTON_VISIBLE']= $lb_show_delete_button;
             $_SESSION['OPTIONS']['IS_ENABLE_ONE_TIME_OFFER']= $lb_enable_one_time_offer;
             $_SESSION['OPTIONS']['MEMBER_SHOWPRICE_SIGNUP_PAGE']=$lsMembers_showpriceon_signup_page;
             $_SESSION['OPTIONS']['MEMBER_SHOWPRICE_MEMBERDEFAULT_PAGE']=$lsMembers_showpricon_memberdefault_page;
             $_SESSION['GLOBAL_INSTALLATION']='done';
             
           
             redirect("next_step.php");     
     
      
         
   }
   else
    {    

        
           
        $web_url=$_SESSION['INSTALLATION_WEB_URL'];
        $web_url_secure=$_SESSION['INSTALLATION_WEB_URL_SECURE'];
        
        $smarty_installation->assign('web_url',$web_url); 
        $smarty_installation->assign('SITE_VISIT_URL',$web_url); 
        
        $smarty_installation->assign('web_url_secure',$web_url_secure); 
                                              
        $smarty_installation->assign('login_maximum_length',20); 
        $smarty_installation->assign('login_minimum_length',6); 
        $smarty_installation->assign('user_max_login_attampt',5); 
        $smarty_installation->assign('password_min_length',6); 
        $smarty_installation->assign('password_max_length',20); 
        $smarty_installation->assign('use_validate_info','true'); 
        $smarty_installation->assign('member_use_subscribelink','true'); 
        $smarty_installation->assign('is_user_support_link_visible','true'); 
        $smarty_installation->assign('captcha_enable_on_administrator_login_page','true'); 
        $smarty_installation->assign('captcha_enable_on_user_login_page','true'); 
        $smarty_installation->assign('MEMBER_SHOW_AFFILIATE','true'); 
        
        
        $smarty_installation->assign('generate_username_prefix','user_'); 
        $smarty_installation->display('installation_generate_configuration.tpl'); 
    }
  ?>
Return current item: MembersGear