Location: PHPKode > projects > MembersGear > membersgear/member/user_rotete.php
<?php
  require_once "../config/config.php"; 
  
  if(isset($_GET['url']))
  {
      $url=urldecode($_GET['url']);        
      $smarty->assign('url',     $url);
      $USERROTETE = $smarty->fetch('user_rotate.tpl');
      $smarty->assign('USER_CONTENT',     $USERROTETE);   
      $smarty->display('user_page_main.tpl');
  
  }
  else if(isset($_GET['exturl']))
  {   
      $url=urldecode($_GET['exturl']);
      /*Added By asmita For dynamic Rotate Page*/
      if(IS_ROTATING_LOGIN_PAGES_ENABLED=='true')
      {
          $rotateurl= RandomFile(PHYSICAL_DIR."/member/rotating_login_pages", array('html','htm','php')); 
          
          if($rotateurl!=false)
          {
            $url2=str_replace(PHYSICAL_DIR,'',$rotateurl);
            $url= WEB_URL.$url2;
       
          }
      }
      /***************************************/   
      $smarty->assign('url',     $url);
      $USERROTETE = $smarty->fetch('user_rotate.tpl');
      $smarty->assign('USER_CONTENT',     $USERROTETE);   
      $smarty->display('user_page_main.tpl');
    //  Redirect($url,true);  
  }
  else
  {
      $url=WEB_URL."/user_login.php";
      Redirect($url,true);
  } 


?>
Return current item: MembersGear