Skip to content

Commit

Permalink
Added error handling for servers where safe_mode is on.
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@218 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Apr 13, 2003
1 parent e4c27b9 commit 9396557
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions admin/resultsdump.php
Expand Up @@ -44,6 +44,14 @@
exit;
}

if (ini_get('safe_mode'))
{
echo "ERROR: Your server has safe_mode set to ON, and subsequently PHPSurveyor cannot dump your survey results.<br /><br />\n";
echo "You should either set your safe_mode to OFF (which, naturally, has security implications) or consider using";
echo " an alternative script, like phpMyAdmin to dump the results from survey_$sid.";
exit;
}

$filename="survey_{$sid}_dump.sql";
$mysqldump="$mysqlbin/mysqldump";
if (substr($OS, 0, 3) == "WIN") {$mysqldump .= ".exe";}
Expand Down

0 comments on commit 9396557

Please sign in to comment.