[Openfirst-cvscommit] members sqlinstall.php,1.3,1.4
Brought to you by:
xtimg
From: <xt...@us...> - 2003-06-01 17:42:21
|
Update of /cvsroot/openfirst/members In directory sc8-pr-cvs1:/tmp/cvs-serv14160 Modified Files: sqlinstall.php Log Message: More informative message if glob does not exist. Index: sqlinstall.php =================================================================== RCS file: /cvsroot/openfirst/members/sqlinstall.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** sqlinstall.php 1 Jun 2003 15:15:13 -0000 1.3 --- sqlinstall.php 1 Jun 2003 17:42:18 -0000 1.4 *************** *** 41,44 **** --- 41,45 ---- <form method="post" action="sqlinstall.php"> <?php + if(function_exists(glob)) { foreach (glob("../*/*.sql") as $filename) { $sqlf = str_replace(".", "-", str_replace(".sql", "",substr(strrchr($filename, "/"), 1))); *************** *** 57,61 **** } } ! ?> <br /><input type="submit" value="Create Tables" /> --- 58,65 ---- } } ! } else { ! echo("<p>Sorry, but your version of PHP does not have the <b>glob</b> function required by ! this module. Please submit a bug report.</p>"); ! } ?> <br /><input type="submit" value="Create Tables" /> |