"; require("stats/required.php"); $lang=$_SESSION['lang']; theme_header(); //require ("stats/log.php"); $lang=$_SESSION['lang']; blocks_left(); $lang=$_SESSION['lang']; //Open main frame table open_table(); $lang=$_SESSION['lang']; $lang=$_SESSION['lang']; $id = $_GET['id']; f(); close_table(); $lang=$_SESSION['lang']; //Check do we want right menu block // $index = $_GET['index']; if ($index<>1) { blocks_right(); } $lang=$_SESSION['lang']; theme_footer(); //session_destroy(); //------------------------------------------------------------------// //$lang=$_SESSION['lang']; function f() { global $lang,$window_inside_height, $content; $index = $_GET['index']; //$id = $_GET['id']; //Check to see if lang is empty $lang=$_SESSION['lang']; require("include/$lang.php"); require("spaw/oko.php"); $oko = "oko".$id; $sid="$id$lang"; if (file_exists("content/$sid.htm") and !$$oko == 0) { echo ""; echo ""; echo ""; maximise(); //Frame option $fr=$_SESSION['fr']; if ($fr==1) { $window_inside_height=$window_inside_height; echo "\n"; } else { echo "
"; //PRINT OUT LAST UPDATE OF STORY $filename = "content/$sid.htm"; if (file_exists($filename) and $id>0) { switch ($lang) { case en: echo "
Posted on: " . date ("d.m.Y/H:i", filemtime($filename))."h
"; break; case bg: echo "
Публикувано на: " . date ("d.m.Y/H:i", filemtime($filename))."h
"; break; } } include("content/$sid.htm"); echo "
"; } } else { echo "
"; echo "
No such story go back
"; echo "
"; } } function maximise() { global $lang,$index; //$index = $_GET['index']; //$lang = $_GET['lang']; $id = $_GET['id']; $lang=$_SESSION['lang']; //Switch languages on every window if ($lang==bg) { echo "
"; echo " "; echo " "; echo "
"; if (!isset($id) or $id==null) { echo $header; } else { $header="header$id"; echo $$header; } echo "
 "; } else { echo " "; } //Switch window size if ($index==1) { echo "

"; } else { echo "
"; } } function menu_left() { global $lang; $index = $_GET['index']; $id = $_GET['id']; $lang=$_SESSION['lang']; //require("include/$lang.php"); switch ($lang) { case en; echo "
"; ?>
"; break; case bg; echo "
"; ?>
"; break; } } function menu_right() { global $lang; require("include/$lang.php"); switch ($lang) { case en; echo "
$change_theme_text
"; $newsletter_title = "If you want to receive our newsletter, please fill in the form below."; break; case bg; echo "
$change_theme_text
"; $newsletter_title ="Ако желаете да получавате новини от нас, моля попълнете формата"; break; } echo "
"; echo " "; echo "\">"; echo "
"; echo "
".$newsletter_title; echo "
"; echo "Your name:
"; echo ""; echo "
Your e-mail:
"; echo ""; echo ""; echo "

"; echo ""; echo "
"; echo ""; } ?>