Location: PHPKode > projects > MembersGear > membersgear/installation/paygear_configuration_generate.php
<?php
  require_once "config/config.php";
   
  if($_POST)
   {
        
            $username=encrypt($_POST['paygear_username']);
            $lsPaygear_username=$username; 
            $lsPaygear_password=$_POST['paygear_password'];
            $lsPaygear_password_salt=$_POST['paygear_password_salt'];
                                                                                 
            $clientId=$PaygearWebserviceClient_installation->getPayGearUserId($_POST['paygear_username'],urlencode($_POST['paygear_password'])
            ,urlencode($_POST['paygear_password_salt']));
            
            
            if($clientId=="" or $clientId==NULL or !isset($clientId))
                $clientId=0;
                                            
            $clientId=$clientId;          
             
           
          
            
            
         if($clientId!=0)
          {   
                 $clientId=encrypt($clientId);        
                 $_SESSION['OPTIONS']['PAYGEAR_USERNAME']=$lsPaygear_username;         
                 $_SESSION['OPTIONS']['PAYGEAR_USERID']=$clientId;         
                 $_SESSION['OPTIONS']['PAYGEAR_SECRET_PASSWORD']=$lsPaygear_password;         
                 $_SESSION['OPTIONS']['PAYGEAR_SECRET_PASSWORD_SALT']=$lsPaygear_password_salt;         
                 $_SESSION['PAYGEAR_INSTALLATION']='done';
                 redirect("next_step.php");    
             
          
          }
          else
          {
               $smarty_installation->assign('msg','paygear configuration setup unsuccessful');
               $smarty_installation->assign(userName,$_POST['paygear_username']);
               $smarty_installation->assign(pass,$_POST['paygear_password']);  
               $smarty_installation->assign(passsolt,$_POST['paygear_password_salt']); 
               $smarty_installation->display('installation_paygear_configuration_generate.tpl');                   
          
          }          
     }
   else
    {    

           $smarty_installation->display('installation_paygear_configuration_generate.tpl');                     
       

    }
  ?>
Return current item: MembersGear