<?php
/***************************************************************************
- * Copyright (C) 2003-2004 Polytechnique.org *
+ * Copyright (C) 2003-2006 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
class PlatalPage extends Smarty
{
// {{{ properties
-
+
var $_page_type;
var $_tpl;
var $_errors;
// }}}
// {{{ function fakeDiogenes()
-
+
function fakeDiogenes()
{
require_once 'diogenes/diogenes.core.page.inc.php';
$this->register_function("tag","diogenes_func_tag");
$this->register_function("toolbar","diogenes_func_toolbar");
}
-
+
// }}}
// {{{ function changeTpl()
$this->assign("xorg_errors", $this->_errors);
$this->assign("xorg_failure", $this->_failure);
-
+
if ($this->_page_type == NO_SKIN) {
$this->display($this->_tpl);
exit;
$this->display($skin);
exit;
}
-
+
if ($globals->debug & 1) {
$this->assign('db_trace', $globals->db->trace_format($this, 'database-debug.tpl'));
}
$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)) {
// {{{ function doAuth()
function doAuth() { }
-
+
// }}}
// {{{ function loadModule()
-
+
function loadModule($modname)
{
require_once("$modname.inc.php");
// }}}
// {{{ function gassign
-
+
function gassign($varname)
{
global $$varname;