Файл: modules/user/type_theme.php
Строк: 31
<?php
/**
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) 2013-2014, Taras Chornyi, Sergiy Mazurenko, Ivan Kotliar
* @link http://perf-engine.net
* @package PerfEngine
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
if(isset($_GET['return'])) {
$return = input($_GET['return']);
} else {
$return = URL;
}
if(Core::TypeTheme() == 'wap') {
setcookie('TypeTheme', 'web', time()+60*60*24*1024, '/');
} else {
setcookie('TypeTheme', 'wap', time()+60*60*24*1024, '/');
}
redirect($return);
?>