Skip to content

Commit

Permalink
License and update of php report sample
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeTatsky committed Feb 11, 2017
1 parent 13bfd13 commit 1c51bcd
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 5 deletions.
27 changes: 27 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Copyright (c) 2016-2017 FancyGrid
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* Neither the name of the author nor the names of contributors may be used to
endorse or promote products derived from this software without specific prior
written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
9 changes: 4 additions & 5 deletions client/error.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
$to = 'trackerror@fancygrid.com';
$from = 'support@fancygrid.com';
$subject = 'Error on fancygrid.com';
$to = 'trackerror@domain.com';
$from = 'support@domain.com';
$subject = 'Error on domain.com';

$url = $_POST['url'];
$errorText = $_POST['errorText'];
Expand All @@ -16,8 +16,7 @@
$mobile = $_POST['mobile'];
$errorStack2 = preg_replace("!\r?\n!", "", $_POST['errorStack']);

$message = "url - ".$url." \r\n errorText - ".$errorText."\r\n lineNumber - ".$lineNumber."\r\n columnNumber - ".$columnNumber."\r\n userAgent - ".$userAgent .",\r\n";
$message .= "os - ".$os." \r\n browser - ".$browser."\r\n mobile - ".$mobile.",\r\n";
$message = "url - ".$url." \r\n errorText - ".$errorText."\r\n lineNumber - ".$lineNumber."\r\n columnNumber - ".$columnNumber."\r\n userAgent - ".$userAgent;
$message .= "\r\n Error Name: " . $errorName . " \r\n Error Message - " . $errorMessage . " \r\n Error errorStack - " . $errorStack2;
$headers = 'From: ' . $from . "\r\n" .
'Reply-To: '.$from."\r\n" .
Expand Down

0 comments on commit 1c51bcd

Please sign in to comment.