Вход Регистрация
Файл: adultscript-2.0.3-pro/files/modules/enter/enter.php
Строк: 18
<?php
defined
('_VALID') or die('Restricted Access!');
class 
VModule_enter
{
    public function 
__construct()
    {
    }
    
    public function 
render()
    {
        if (isset(
$_GET['check']) && is_numeric($_GET['check'])) {
              
$check = (int) $_GET['check'];
              if (
$check === 0) {
                
VF::redirect('http://www.google.com');
              } elseif (
$check === 1) {
                
VCookie::set('age_check''1'31536000);
                
VF::redirect(BASE_URL);
              }
        }
      
      
VLanguage::load('frontend.enter');

      
$tpl VF::factory('template');
      
$tpl->menu      'home';
      
$tpl->submenu    '';
      
$tpl->load('enter');
      
$tpl->display();
    }
}
?>
Онлайн: 1
Реклама