Changeset 1436
- Timestamp:
- 1/1/2010 1:31:29 AM (3 years ago)
- File:
-
- 1 edited
-
trunk/website/blackbox/upload.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/website/blackbox/upload.php
r1416 r1436 43 43 44 44 //Query for the list of exceptions containing the given functions 45 $query = mysql_query(sprintf('SELECT DISTINCT(BlackBox Exceptions.ID) FROM BlackBoxStackFrames46 INNER JOIN BlackBox Exceptions ON BlackBoxStackFrames.ExceptionID=BlackBoxExceptions.ID45 $query = mysql_query(sprintf('SELECT DISTINCT(BlackBox_Exceptions.ID) FROM BlackBox_StackFrames 46 INNER JOIN BlackBox_Exceptions ON BlackBox_StackFrames.ExceptionID=BlackBox_Exceptions.ID 47 47 WHERE (%s) AND ExceptionDepth=%d AND ExceptionType=\'%s\'', 48 48 substr($stackFrames, 0, strlen($stackFrames) - 4), $exceptionDepth, … … 61 61 { 62 62 mysql_query('BEGIN TRANSACTION'); 63 mysql_query(sprintf('INSERT INTO BlackBox Reports SET IPAddress=%u', ip2long($_SERVER['REMOTE_ADDR'])));63 mysql_query(sprintf('INSERT INTO BlackBox_Reports SET IPAddress=%u', ip2long($_SERVER['REMOTE_ADDR']))); 64 64 if (mysql_affected_rows() != 1) 65 65 throw new Exception('Could not insert crash report into Reports table: ' . mysql_error()); … … 68 68 foreach ($stackTrace as $exceptionDepth => $exception) 69 69 { 70 mysql_query(sprintf('INSERT INTO BlackBox Exceptions SET ReportID=%d, ExceptionType=\'%s\', ExceptionDepth=%d',70 mysql_query(sprintf('INSERT INTO BlackBox_Exceptions SET ReportID=%d, ExceptionType=\'%s\', ExceptionDepth=%d', 71 71 $reportId, mysql_real_escape_string($exception['exception']), $exceptionDepth)); 72 72 if (mysql_affected_rows() != 1) … … 94 94 } 95 95 96 mysql_query(sprintf('INSERT INTO BlackBox StackFrames SET96 mysql_query(sprintf('INSERT INTO BlackBox_StackFrames SET 97 97 ExceptionID=%d, StackFrameIndex=%d, Function=\'%s\', File=%s, Line=%s', 98 98 $exceptionId, $stackIndex, mysql_real_escape_string($function),
Note: See TracChangeset
for help on using the changeset viewer.
