|
From: Benjamin C. <bc...@us...> - 2001-08-01 13:56:00
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv7509
Modified Files:
include.php
Log Message:
Move the templates down a directory to help in creating themes
Index: include.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/include.php,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- include.php 2001/07/30 13:47:33 1.14
+++ include.php 2001/08/01 13:55:56 1.15
@@ -11,6 +11,7 @@
define ('TIMEFORMAT','g:i A');
define ('ADMINEMAIL','ph...@be...');
define ('ENCRYPTPASS',0); // Whether to store passwords encrypted
+define ('THEME','default/'); // Which set of templates to use
require PHPLIBPATH.'db_mysql.inc';
require PHPLIBPATH.'ct_sql.inc';
@@ -83,7 +84,7 @@
function auth_loginform() {
global $sess;
- include 'templates/login.html';
+ include 'templates/'.THEME.'login.html';
}
@@ -159,7 +160,7 @@
}
}
-$t = new templateclass('templates','keep');
+$t = new templateclass('templates/'.THEME,'keep');
$t->set_var(array(
'TITLE' => '',
'me' => $PHP_SELF,
|