00001
00002 <style type="text/css">
00003 <!--
00004 h2.info {
00005 color:green;
00006 font-size:20px;
00007 }
00008 h2.error {
00009 color:red;
00010 font-size:20px;
00011 }
00012 -->
00013 </style>
00014 <?php
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 include_once("ac_common.php");
00035 include_once("postgres.php");
00036
00037 $a=DbConnect();
00038 if ( $a==false) {
00039 exit ("<h2 class=\"error\">__LINE__ test has failed !!!</h2>");
00040
00041 }
00042 if ( ($Res=ExecSql($a,"select * from ac_users") ) == false ) {
00043 exit ("<h2 class=\"error\">__LINE__ test has failed !!!</h2>");
00044 } else
00045 print "Connect to database success <br>";
00046
00047
00048
00049
00050
00051
00052
00053 foreach (array('magic_quotes_gpc','magic_quotes_runtime') as $a) {
00054
00055 if ( ini_get($a) == false ) print $a.': Ok <br>';
00056 else {
00057 print ("<h2 class=\"error\">$a has a bad value !!!</h2>");
00058 }
00059
00060 }
00061 if ( ereg("\.\.\/include",ini_get('include_path')) == false )
00062 print ("<h2 class=\"error\">include_path incorrect !!!".ini_get('include_path')."</h2>");
00063 else
00064 print 'include_path : ok ('.ini_get('include_path').')<br>';
00065
00066 echo "<h2 class=\"info\"> Congratulation : Test successfull</h2>";
00067
00068 ?>