aboutsummaryrefslogtreecommitdiffstats
path: root/include/page_tail.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/page_tail.php23
1 files changed, 15 insertions, 8 deletions
diff --git a/include/page_tail.php b/include/page_tail.php
index d4548f170..e960ab983 100644
--- a/include/page_tail.php
+++ b/include/page_tail.php
@@ -1,19 +1,26 @@
<?php
-$handle = $vtp->Open( './template/'.$user['template'].'/footer.vtp' );
+$template->set_filenames(array('tail'=>'footer.tpl'));
//------------------------------------------------------------- generation time
+
$time = get_elapsed_time( $t2, get_moment() );
-$vtp->setGlobalVar( $handle, 'time', $time );
-$vtp->setGlobalVar( $handle, 'generation_time', $lang['generation_time'] );
-$vtp->setGlobalVar( $handle, 'version', $conf['version'] );
-$vtp->setGlobalVar( $handle, 'site_url', $conf['site_url'] );
-$vtp->setVarF( $handle, 'footer', './template/'.$user['template'].'/footer.htm' );
+$template->assign_vars(array(
+ 'L_GEN_TIME' => $lang['generation_time'],
+ 'S_TIME' => $time,
+ 'S_VERSION' => $conf['version'],
+ 'U_SITE' => add_session_id( $conf['site_url'] )
+ )
+ );
+
+if (DEBUG)
+{
+ $template->assign_block_vars('debug', array());
+}
//
// Generate the page
//
-$code = $vtp->Display( $handle, 0 );
-echo $code;
+$template->pparse('tail');
?> \ No newline at end of file