Changeset 2689 for trunk/website/scripts/blackbox/upload.php
- Timestamp:
- 05/25/12 01:35:32 (13 months ago)
- File:
-
- 1 edited
-
trunk/website/scripts/blackbox/upload.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/website/scripts/blackbox/upload.php
r2688 r2689 56 56 57 57 //Query for the list of exceptions containing the given functions 58 $statement = $pdo->prepare(sprintf('SELECT DISTINCT( BlackBox_Exceptions.ID) FROM BlackBox_StackFrames59 INNER JOIN BlackBox_Exceptions ON BlackBox_StackFrames.ExceptionID=BlackBox_Exceptions.ID58 $statement = $pdo->prepare(sprintf('SELECT DISTINCT(blackbox_exceptions.ID) FROM blackbox_stackframes 59 INNER JOIN blackbox_exceptions ON blackbox_stackframes.ExceptionID=blackbox_exceptions.ID 60 60 WHERE (%s) AND ExceptionDepth=? AND ExceptionType=?', 61 61 substr($stackFrames, 0, strlen($stackFrames) - 4))); … … 78 78 $pdo->beginTransaction(); 79 79 80 $statement = $pdo->prepare('INSERT INTO BlackBox_Reports SET IPAddress=?');80 $statement = $pdo->prepare('INSERT INTO blackbox_reports SET IPAddress=?'); 81 81 $statement->bindParam(1, sprintf('%u', ip2long($_SERVER['REMOTE_ADDR']))); 82 82 try … … 90 90 91 91 $reportId = $pdo->lastInsertId(); 92 $exceptionInsert = $pdo->prepare('INSERT INTO BlackBox_Exceptions92 $exceptionInsert = $pdo->prepare('INSERT INTO blackbox_exceptions 93 93 SET ReportID=?, ExceptionType=?, ExceptionDepth=?'); 94 94 $exceptionInsert->bindParam(1, $reportId); 95 $stackFrameInsert = $pdo->prepare('INSERT INTO BlackBox_StackFrames SET95 $stackFrameInsert = $pdo->prepare('INSERT INTO blackbox_stackframes SET 96 96 ExceptionID=?, StackFrameIndex=?, Function=?, File=?, Line=?'); 97 97 foreach ($stackTrace as $exceptionDepth => $exception)
Note: See TracChangeset
for help on using the changeset viewer.
