|
From: Benjamin C. <bc...@us...> - 2002-04-08 17:06:55
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv29663
Modified Files:
install.php
Log Message:
Move error messages to templates
Index: install.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/install.php,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- install.php 8 Apr 2002 15:19:33 -0000 1.23
+++ install.php 8 Apr 2002 17:06:50 -0000 1.24
@@ -31,21 +31,12 @@
//define ('SMARTY_PATH','./inc/smarty/');
if (!@include(SMARTY_PATH . 'Smarty.class.php')) { // Template class
- die('<br><br>
- <div align="center">The Smarty templates class is not in your include path.
- Without this class being available, phpBugTracker will not be able to work.
- Please visit <a href="http://www.phpinsider.com/php/code/Smarty/">the smarty
- website</a> and install the package. Please reload this page when smarty
- has been installed.</div>
- ');
+ include('templates/default/base/smartymissing.html');
+ exit;
}
if (!@is_writeable('c_templates')) {
- die('<br><br>
- <div align="center">The "c_templates" subdirectory is not writeable by the
- web process. This needs to be corrected before the installation can proceed
- so the templates can be compiled by smarty. Please reload this page when
- this has been corrected.</div>
- ');
+ include('templates/default/base/templatesperm.html');
+ exit;
}
// Template class
|