Я вызываю это так:
на след. страницу
Как реализовать подобные вызовы?
или же лучше когда вызов идет во так: www/info/
Код: Выделить всё
<?php
include_once("defvar.inc");
require_once "class.Template.php";
creation_archive($maxmsgarch, $maxfilearch, $fread, $fpost, $finfo, $php_self);
if (!$page) $page = 1;
$listing = ceil(sizeof($fread)/$limit);
//////////////////////////////////////////////////////////////////////////////
if (($action != "print") && ($action != "send") && ($action != "info")) {
//////////////////////////////////////////////////////////////////////////////
$tpl = new Template("./inc");
$tpl->load("main,styles,counters,banner.top,menu.vert");
$title = "my title";
ob_start();
include "./inc/banner.top.tpl";
$content = ob_get_contents();
ob_end_clean();
eval("\$menu_vert = \"".$tpl->get("menu.vert")."\";");
eval("\$banner_top = \"".$tpl->get("banner.top")."\";");
eval("\$counters = \"".$tpl->get("counters")."\";");
eval("\$styles = \"".$tpl->get("styles")."\";");
eval("print \"".$tpl->get("main")."\";");
}
///////////////////////////////////////////////////////////////////////////////
elseif ($action == "info") {
///////////////////////////////////////////////////////////////////////////////
$tpl = new Template("./inc");
$tpl->load("main,styles,counters,banner.top,menu.vert");
$title = "my title";
ob_start();
include "./inc/banner.top.tpl";
$content = ob_get_contents();
ob_end_clean();
eval("\$menu_vert = \"".$tpl->get("menu.vert")."\";");
eval("\$banner_top = \"".$tpl->get("banner.top")."\";");
eval("\$counters = \"".$tpl->get("counters1")."\";");
eval("\$styles = \"".$tpl->get("styles")."\";");
eval("print \"".$tpl->get("main")."\";");
}
///////////
elseif ($action == "print") {
}
elseif ($action == "send") {
if ($redirect) {
}
}
?>