Location: PHPKode > projects > MembersGear > membersgear/installation/validate_member_site.php
<?php
  require_once "config/config.php";
  require_once CONFIG_DIR_INSTALLATION."/db.php";
   
  if($_POST)
   {
               $is_membersite_approved_from_webservice = false;
                if(!isset($_COOKIE['is_membersite_approved']) ) 
                {
                    $is_membersite_approved = $PaygearWebserviceClient_installation->is_membersite_approved($_SESSION['OPTIONS']['PAYGEAR_USERID'], $_SESSION['OPTIONS']['WEB_URL']);
                    if($is_membersite_approved['isapproved'] == 'true') 
                    {
                          $is_membersite_approved_from_webservice = $is_membersite_approved['isapproved'];                
                          $tommorrow =  time() + (1*24*60*60);
                          setcookie('is_membersite_approved',encrypt(WEB_URL_INSTALLATION.' is true'),$tommorrow,"/");
                                
                          $_SESSION['VALIDATE_MEMBER_SITE']='done';
                          redirect("next_step.php");
                        
                        
                    }
                    else
                     {
                          $smarty_installation->assign('msg','MembersGear website validation faield on paygear.com.Please try again after some time.'); 
                          $smarty_installation->display('installation_validate_member_site.tpl'); 
                       
                       }  
                }
                else
                {
                  $_SESSION['VALIDATE_MEMBER_SITE']='done';
                  redirect("next_step.php");
                } 

     }
    else
     {
       $smarty_installation->display('installation_validate_member_site.tpl');
     }      
         
         
  ?>
Return current item: MembersGear