forked from science-ation/science-ation
Do some checks for system() and error out where applicable
This commit is contained in:
parent
c43567e76b
commit
40fe6cb88c
@ -128,6 +128,11 @@
|
|||||||
|
|
||||||
echo "</table>";
|
echo "</table>";
|
||||||
|
|
||||||
|
if(!function_exists("system")) {
|
||||||
|
echo "<div class=\"error\">Sending requires php's system() function to be available</div>\n";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
echo "<table border=0 cellspacing=0 cellpadding=30 width=\"100%\">";
|
echo "<table border=0 cellspacing=0 cellpadding=30 width=\"100%\">";
|
||||||
echo "<tr><td align=center>";
|
echo "<tr><td align=center>";
|
||||||
echo "<input type=hidden name=action value=\"reallysend\">";
|
echo "<input type=hidden name=action value=\"reallysend\">";
|
||||||
@ -140,6 +145,7 @@
|
|||||||
echo "</form>";
|
echo "</form>";
|
||||||
echo "</td></tr>";
|
echo "</td></tr>";
|
||||||
echo "</table>";
|
echo "</table>";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if($_GET['action']=="reallysend" && $_GET['reallysend'] && $_GET['to'])
|
else if($_GET['action']=="reallysend" && $_GET['reallysend'] && $_GET['to'])
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,9 @@
|
|||||||
<?
|
<?
|
||||||
|
if(!function_exists("system")) {
|
||||||
|
echo "DB Update requires php's system() function to be available\n";
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
//include the config.inc.php
|
//include the config.inc.php
|
||||||
//so we have the db connection info
|
//so we have the db connection info
|
||||||
require("../data/config.inc.php");
|
require("../data/config.inc.php");
|
||||||
|
@ -30,6 +30,13 @@ echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\" ?>\n";
|
|||||||
<body>
|
<body>
|
||||||
<h1>SFIAB Installation - Step 2</h1>
|
<h1>SFIAB Installation - Step 2</h1>
|
||||||
<?
|
<?
|
||||||
|
|
||||||
|
if(!function_exists("system")) {
|
||||||
|
echo "<div class=\"error\">Installation requires php's system() function to be available</div>\n";
|
||||||
|
echo "</body></html>";
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
if(!file_exists("data/config.inc.php"))
|
if(!file_exists("data/config.inc.php"))
|
||||||
{
|
{
|
||||||
echo "<div class=\"error\">SFIAB Installation Step 1 is not yet complete.</div>";
|
echo "<div class=\"error\">SFIAB Installation Step 1 is not yet complete.</div>";
|
||||||
|
Loading…
Reference in New Issue
Block a user