* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************/
+
require_once('platal.inc.php');
require_once('xorg/globals.inc.php');
require_once('xorg/session.inc.php');
XorgGlobals::setlocale();
XorgSession::init();
-require_once('platal/page.inc.php');
+require_once dirname(__FILE__).'/../classes/Page.php';
// {{{ class XorgPage
class XorgPage extends PlatalPage
{
- function XorgPage($tpl, $type=SKINNED)
+ function XorgPage($tpl, $type = SKINNED)
{
$this->PlatalPage($tpl, $type);
}
function run()
{
global $globals;
- if ($this->_page_type != NO_SKIN) {
- $this->assign('menu', $globals->menu->menu());
- }
+ $this->assign('globals', $globals);
$this->_run('skin/'.S::v('skin', 'default.tpl'));
}
}
{
// {{{ function XorgAdmin()
- function XorgAdmin($tpl, $type=SKINNED)
+ function XorgAdmin($tpl, $type = SKINNED)
{
$this->XorgPage($tpl, $type);
check_perms();
function new_admin_table_editor($table, $idfield, $idedit=false)
{
- array_walk($_GET, 'unfix_gpc_magic');
- array_walk($_POST, 'unfix_gpc_magic');
- array_walk($_REQUEST, 'unfix_gpc_magic');
-
global $editor;
new_admin_page('table-editor.tpl');
require_once('xorg.table-editor.inc.php');