31 lines
900 B
PHP
31 lines
900 B
PHP
<?php
|
|
require_once("inc_common.php");
|
|
#trying to get preffered design from cookies
|
|
set_variable("c_design");
|
|
set_variable("c_user_name");
|
|
$design = "";
|
|
set_variable("design");
|
|
if ($c_design!="" and $design=="") $design = $c_design;
|
|
if (!in_array($design, $designes)) $design = $default_design;
|
|
|
|
$impro_id = 0;
|
|
$impro_code = -1;
|
|
|
|
if ($impro_registration) {
|
|
include($ld_engine_path."impro.php");
|
|
list($usec, $sec) = explode(' ', microtime());
|
|
srand( (float) $sec + ((float) $usec * 100000));
|
|
|
|
$impro_id = md5(uniqid(rand()));
|
|
$impro_code = rand(1000,9999);
|
|
impro_save($impro_id, $impro_code);
|
|
}
|
|
|
|
set_variable("user_lang");
|
|
set_variable("c_ulang");
|
|
if ($c_ulang != "" && $user_lang == "") $user_lang = $c_ulang;
|
|
if (!in_array($user_lang, $allowed_langs)) $user_lang = $language;
|
|
else include_once($file_path."languages/".$language.".php");
|
|
|
|
include($file_path."designes/".$design."/index.php");
|
|
?>
|