X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fplatal%2Fpage.inc.php;h=b309c67233e7117ebef6dae980d0eb23a9cfe50d;hb=a3a049fc80d3707bcc76903ab89f73974c470c0c;hp=fb527be6aa25aa9356cfb2f540b9ff8d4c9ac036;hpb=b4315e154da87ed9afc42426523e13f00530a8a2;p=platal.git
diff --git a/include/platal/page.inc.php b/include/platal/page.inc.php
index fb527be..b309c67 100644
--- a/include/platal/page.inc.php
+++ b/include/platal/page.inc.php
@@ -1,6 +1,6 @@
register_function("tag","diogenes_func_tag");
$this->register_function("toolbar","diogenes_func_toolbar");
}
-
+
// }}}
// {{{ function changeTpl()
@@ -109,9 +109,12 @@ class PlatalPage extends Smarty
function _run($skin)
{
global $globals, $TIME_BEGIN;
+
+ session_write_close();
+
$this->assign("xorg_errors", $this->_errors);
$this->assign("xorg_failure", $this->_failure);
-
+
if ($this->_page_type == NO_SKIN) {
$this->display($this->_tpl);
exit;
@@ -121,14 +124,14 @@ class PlatalPage extends Smarty
$this->display($skin);
exit;
}
-
+
if ($globals->debug & 1) {
$this->assign('db_trace', $globals->db->trace_format($this, 'database-debug.tpl'));
}
$this->assign('validate', urlencode($globals->baseurl.'/valid.html'));
$result = $this->fetch($skin);
- $ttime = sprintf('Temps total: %.02fs
', microtime_float() - $TIME_BEGIN);
+ $ttime .= sprintf('Temps total: %.02fs
', microtime_float() - $TIME_BEGIN);
$replc = "VALIDATION HTML INACTIVE
";
if ($globals->debug & 2) {
@@ -136,7 +139,7 @@ class PlatalPage extends Smarty
$fd = fopen($this->compile_dir."/valid.html","w");
fwrite($fd, $result);
fclose($fd);
-
+
exec($globals->spoolroot."/bin/devel/xhtml.validate.pl ".$this->compile_dir."/valid.html", $val);
foreach ($val as $h) {
if (preg_match("/^X-W3C-Validator-Errors: (\d+)$/", $h, $m)) {
@@ -209,10 +212,10 @@ class PlatalPage extends Smarty
// {{{ function doAuth()
function doAuth() { }
-
+
// }}}
// {{{ function loadModule()
-
+
function loadModule($modname)
{
require_once("$modname.inc.php");
@@ -236,7 +239,7 @@ class PlatalPage extends Smarty
// }}}
// {{{ function gassign
-
+
function gassign($varname)
{
global $$varname;