projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Port X.net session to the new schema.
[platal.git]
/
include
/
xnet.inc.php
diff --git
a/include/xnet.inc.php
b/include/xnet.inc.php
index
e9689e3
..
ce22b5d
100644
(file)
--- a/
include/xnet.inc.php
+++ b/
include/xnet.inc.php
@@
-19,21
+19,19
@@
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************/
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************/
+define('PL_GLOBALS_CLASS', 'PlatalGlobals');
+define('PL_SESSION_CLASS', 'XnetSession');
+define('PL_PAGE_CLASS', 'XnetPage');
+
require_once('platal.inc.php');
require_once('platal.inc.php');
+require_once('xorg.misc.inc.php');
require_once('globals.inc.php');
require_once('xnet/session.inc.php');
require_once('globals.inc.php');
require_once('xnet/session.inc.php');
-$globals = new PlatalGlobals('XnetSession');
-XnetSession::init();
+require_once('xnet/page.inc.php');
-function
new_skinned_page($tpl_name
)
+function
__autoload($cls
)
{
{
- global $page;
- require_once("xnet/page.inc.php");
- if (!$page instanceof XnetPage) {
- $page = new XnetPage($tpl_name);
- } else {
- $page->changeTpl($tpl_name);
- }
+ pl_autoload($cls);
}
// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
}
// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: