Not working PHP, security hole
Please admins of parisc-linux to fix their problem <?
$_db_host=3D"localhost"; #$_db_host=3D"puffin.external.hp.com"; $_db_user=3D"parisc"; $_db_password=3D"parisc"; $_db_database=3D"hw"; $_db_connection=3D"_db_unconnected";
$_db_result=3D"";
$_db_row=3D"";
Function connectDatabase(){
global $_db_host;
global $_db_user;
global $_db_password;
global $_db_connection;
if($_db_connection=3D=3D"_db_unconnected"){
$_db_connection=3Dmysql_connect
($_db_host,$_db_user,$_db_password);
}
}
Function queryDatabase($query){
global $_db_database;
global $_db_result;
$_db_result =3D mysql_db_query($_db_database,$query); return $_db_result;
}
Function nextRow($result =3D "_db_unset"){
global $_db_result;
global $_db_row;
if($result=3D=3D"_db_unset"){
$_db_row =3D mysql_fetch_object($_db_result);
}
elseif(is_integer($result)){
$_db_row =3D mysql_fetch_object($result);
}
else {
return "";
}
return $_db_row;
}
Function numRows($result =3D "_db_unset"){
global $_db_result;
if($result=3D=3D"_db_unset"){
return mysql_num_rows($_db_result);
}
elseif(is_integer($result)){
return mysql_num_rows($result);
}
return "";
}
Function disconnectDatabase(){
global $_db_result;
global $_db_connection;
mysql_free_result($_db_result);
mysql_close($_db_connection);
}
Function insertId(){
return mysql_insert_id();
}
Function escapeString($instring){
return AddSlashes($instring);
}
?>
use apachetoolbox to compile apache php mysql
www.apachetoolbox.com
-------------------------------------------------------------------
-->> Add WEB ACCESS to your POP email accounts with -->> FREE Perl CGI scripts! Download today! http://www.adjeweb.com
-------------------------------------------------------------------
"Stephan Trajkoff" writes...
Quoted 1 line
Please admins of parisc-linux to fix their problem
We're upgrading it today. It will be fixed shortly.
Signature · 2 lines
Matt Taggart Linux Development Lab [email protected] HP Linux Systems Operation
In reference to a message from Stephan Trajkoff, dated Jul 11:
Quoted 1 line
Please admins of parisc-linux to fix their problem
thanks for posting the passwords to the mailing list :-/
the admins are fixing things now.
randolph
Signature · 3 lines
Randolph Chung Debian GNU/Linux Developer, hppa/ia64 ports http://www.tausq.org/