Changeset 2694
- Timestamp:
- 5/25/2012 3:31:00 AM (12 months ago)
- File:
-
- 1 edited
-
trunk/website/scripts/blackbox/upload.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/website/scripts/blackbox/upload.php
r2692 r2694 12 12 } 13 13 14 function GetStackFrameInformation($ line)14 function GetStackFrameInformation($stackFrame) 15 15 { 16 16 //at Eraser.Program.OnGUIInitInstance(Object sender) in D:\Development\Projects\Eraser 6.2\Eraser\Program.cs:line 191 17 17 $matches = array(); 18 18 $function = $file = $line = null; 19 if (preg_match('/^([^ ]+) (.*) ([^ ]+) (.*):([^ ]+) ([0-9]+)/', $ line, $matches))19 if (preg_match('/^([^ ]+) (.*) ([^ ]+) (.*):([^ ]+) ([0-9]+)/', $stackFrame, $matches)) 20 20 { 21 21 $function = $matches[2]; … … 23 23 $line = intval($matches[6]); 24 24 } 25 else if (preg_match('/^([^ ]+) (.*)/', $ line, $matches))25 else if (preg_match('/^([^ ]+) (.*)/', $stackFrame, $matches)) 26 26 { 27 27 $function = $matches[2]; … … 210 210 211 211 //Add the dump to the report. 212 $statement = $pdo->prepare('INSERT INTO blackbox_dumps SET ReportID=?'); 212 $pdo = new Database(); 213 $statement = $pdo->prepare('INSERT INTO blackbox_dumps SET ReportID=?, IPAddress=?'); 214 $ipAddress = inet_pton($_SERVER['REMOTE_ADDR']); 213 215 $statement->bindParam(1, $reportId); 214 $statement->bindParam(2, inet_pton($_SERVER['REMOTE_ADDR']));216 $statement->bindParam(2, $ipAddress); 215 217 try 216 218 {
Note: See TracChangeset
for help on using the changeset viewer.
