View file pages/skin.php

File size: 2.14Kb
<?php
#-----------------------------------------------------#
#          ********* WAP-MOTORS *********             #
#             Made by   :  VANTUZ                     #
#               E-mail  :  [email protected]         #
#                 Site  :  http://pizdec.ru           #
#             WAP-Site  :  http://visavi.net          #
#                  ICQ  :  36-44-66                   #
#  Вы не имеете право вносить изменения в код скрипта #
#        для его дальнейшего распространения          #
#-----------------------------------------------------#
require_once "../includes/start.php";
require_once "../includes/functions.php";
require_once "../includes/header.php";
include_once "../themes/".$config['themes']."/verh.dat";

if (isset($_GET['action'])) {$action = check($_GET['action']);} else {$action = "";}

############################################################################################
##                                    Главная страница                                    ##
############################################################################################
if ($action==""){
if (isset($_GET['skins'])) {$skins = check($_GET['skins']);} elseif (isset($_POST['skins'])) {$skins = check($_POST['skins']);} else {$skins = "";}

if (preg_match('|^[a-z0-9_\-]+$|i', $skins)){
if (file_exists(BASEDIR."themes/$skins/verh.dat")){

$_SESSION['my_themes'] = "";
unset($_SESSION['my_themes']);
$_SESSION['my_themes'] = $skins;

}}
header ("Location: ".BASEDIR."index.php"); exit;
}

############################################################################################
##                                    Переход по навигации                                ##
############################################################################################
if ($action=="navigation"){
if (isset($_POST['link'])) {$link = check($_POST['link']);} else {$link = "index.php";}

header ("Location: ".BASEDIR.$link); exit;
}

echo '<br><a href="../index.php">На главную</a>';
include_once "../themes/".$config['themes']."/niz.dat";
?>