Changeset 1213 for branches/1.2
- Timestamp:
- 02/22/10 14:16:27 (3 years ago)
- Location:
- branches/1.2
- Files:
-
- 3 edited
-
Hotaru.php (modified) (1 diff)
-
libs/Initialize.php (modified) (1 diff)
-
libs/extensions/ezSQL/mysql/ez_sql_mysql.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/Hotaru.php
r1198 r1213 84 84 $this->checkCssJs(); // check if we need to merge css/js 85 85 $this->csrf('set'); // set a csrfToken 86 $this->db->setHotaru($this); // pass $h object to EzSQL for error reporting 86 87 } 87 88 } -
branches/1.2/libs/Initialize.php
r1152 r1213 53 53 $this->isDebug = $this->checkDebug(); 54 54 55 $this->setUpJsConstants();55 $this->setUpJsConstants(); 56 56 57 57 return $this; -
branches/1.2/libs/extensions/ezSQL/mysql/ez_sql_mysql.php
r1208 r1213 48 48 $this->dbname = $dbname; 49 49 $this->dbhost = $dbhost; 50 } 51 52 /********************************************************************** 53 * Set $h - global Hotaru object 54 */ 55 56 function setHotaru($h) 57 { 58 $this->h = $h; 50 59 } 51 60 … … 219 228 $headers = "From: " . SITE_EMAIL . "\r\nReply-To: " . SITE_EMAIL . "\r\nX-Priority: 3\r\n"; 220 229 $subject = SITE_NAME . " Database Error"; 221 $body = "SQL query:\r\n"; 230 $body = SITE_NAME . " Database Error\r\n\r\n"; 231 $body .= "Date: " . date('d M Y H:i:s') . " (timezone: " . date_default_timezone_get() . ")\r\n\r\n"; 232 $body .= "SQL query:\r\n"; 222 233 $body .= $query . "\r\n\r\n"; 223 234 224 235 $body .= "PHP error log:\r\n"; 225 236 $body .= $str . "\r\n\r\n"; 237 238 if(isset($this->h)) { 239 $body .= "Current User: " . $this->h->currentUser->name . " (id: " . $this->h->currentUser->id .")\r\n"; 240 $body .= "User Role: " . $this->h->currentUser->role . "\r\n"; 241 $body .= "Page Name: " . $this->h->pageName . "\r\n"; 242 $body .= "Sub Page: " . $this->h->subPage . "\r\n"; 243 $body .= "Plugin: " . $this->h->plugin->folder . "\r\n\r\n"; 244 } 226 245 227 246 $body .= "If you need help, visit the forums at http://hotarucms.org\r\n";
Note: See TracChangeset
for help on using the changeset viewer.