View file dl/ses.php

File size: 2.98Kb
<?php
#********************************** AgS MOD DOWNLOAD CENTR SEA *************************************#
#***************************************************************************************************#
#  /||||||||||||||| *********************  /||||||||||||||| *********************  /||||||||||||||| #
# | ||||||||||||||| ********************* | ||||||||||||||| ********************* | ||||||||||||||| #
# | |||||/////||||| ********************* | |||||/////////  ********************* | |||||/////////  #
# | |||||   | ||||| ****** E-MAIL ******* | |||||           ****** WAP/WEB ****** | |||||           #
# | |||||   | ||||| *** [email protected] *** | |||||           * http://ags.h2m.ru * | ||||||||||||||| #
# | |||||   | ||||| ********************* | ||||||||||||||| ********************* | ||||||||||||||| #
# | |||||   | ||||| ********************* | |||||/////||||| ********************* |///////////||||| #
# | ||||||||||||||| ****** SKYPE ******** | |||||   | ||||| ***** MOD AUTHOR ****           | ||||| #
# | |||||////|||||| ***** agrizz15 ****** | |||||   | ||||| ***** Agris Cišs ****  /||||||||||||||| #
# | |||||   | ||||| ********************* | ||||||||||||||| ********************* | ||||||||||||||| #
# |/////    |/////  ********************* |///////////////  ********************* |///////////////  #
#***************************************************************************************************#
#********************************* MOD by AgS in 2010 @ LATVIA *************************************#


require_once"system/start.php";
require_once"system/config.php";
require_once"system/db.php";
require_once"system/functions.php";
require_once"system/cookies.php";

$id = intval($_GET['id']);
$page = intval($_GET['page']);


/* Tēmu sakšanas sesija */
if($act=="skins"){
$skins=parbaude($skins);

if(is_dir('thm/'.$skins)){
$_SESSION['thm']="";
unset($_SESSION['thm']);

if(isset($skins) && $skins!="" && !eregi("[^a-z0-9_-]",$skins)){
$_SESSION['thm']=$skins;}

header ('Location: index.php?id='.$id.'&page='.$page.'&'.SID); exit;}
header ('Location: index.php?id='.$id.'&page='.$page.'&'.SID); exit;}


/* Valodas sakšanas sesija */
if($act=="lng"){
$lngu=parbaude($lngu);
if(is_dir('lng/'.$lngu)){

$_SESSION['lng']="";
unset($_SESSION['lng']);

if(isset($lngu) && $lngu!="" && !eregi("[^a-z0-9_-]",$lngu)){
$_SESSION['lng']=$lngu;}

header ('Location: index.php?id='.$id.'&page='.$page.'&'.SID); exit;}
header ('Location: index.php?id='.$id.'&page='.$page.'&'.SID); exit;}


/* Priekšskata sākšanas funkcija */
if($act=="prew"){
$prieksview=parbaude($prieksview);
if($prieksview=="ON" or $prieksview=="OFF"){
$_SESSION['ses_preview']="";
unset($_SESSION['ses_preview']);

if(isset($prieksview) && $prieksview!="" && !eregi("[^a-z0-9_-]",$prieksview)){
$_SESSION['ses_preview']=$prieksview;}
header ('Location: index.php?id='.$id.'&page='.$page.'&'.SID); exit;}
header ('Location: index.php?id='.$id.'&page='.$page.'&'.SID); exit;}

?>