Changeset 2
- Timestamp:
- 06/19/2005 04:58:42 AM (7 years ago)
- Location:
- trunk/globals
- Files:
-
- 2 edited
-
classes/mysql.php (modified) (1 diff)
-
common.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/globals/classes/mysql.php
r1 r2 192 192 if ($main->userdata->privileges['admin'] === TRUE) $if_admin .= '<br /><br />Last MySQL query:<br />'.$this->last_query; 193 193 $main->message->set('MySQL Error', $this->get_error().$if_admin); 194 } else {195 echo $this->get_error();196 194 } 197 195 } -
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.
