Changeset 2 for trunk/globals/common.php
- Timestamp:
- 06/19/2005 04:58:42 AM (7 years ago)
- File:
-
- 1 edited
-
trunk/globals/common.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/globals/common.php
r1 r2 20 20 */ 21 21 22 if (!file_exists($root_path."config.php")) { 23 die("WiND error: Please make config.php file ..."); 24 } 22 25 include_once($root_path."config.php"); 23 26 include_once($root_path."globals/vars.php"); … … 28 31 include_once($root_path."globals/classes/form.php"); 29 32 include_once($root_path."globals/classes/table.php"); 33 if (!file_exists($vars['smarty']['class'])) { 34 die("WiND error: Cannot find Smarty lib. Please check config.php ..."); 35 } 30 36 include_once($vars['smarty']['class']); 31 37 … … 34 40 $db = new mysql($vars['db']['server'], $vars['db']['username'], $vars['db']['password'], $vars['db']['database']); 35 41 36 if ($db->error) die("Database error: $db->error_report"); 42 if ($db->error) { 43 die("WiND MySQL database error: $db->error_report"); 44 } 37 45 38 46 $smarty = new Smarty;
Note: See TracChangeset
for help on using the changeset viewer.
