1
Hello, XOOPS friends!
I really need your help to resolve this problem.
I changted hosting company and download all pages and copy My SQL files. I did ftp all files to the new server and restore SQL file and changed all info on mainfile.php
but now I got erroe message like as below;
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/slcmc/public_html/la-love/modules/protector/class/protector.php on line 45
Here is the code in protector.php so would you please help me and let me know what's going wrong!!
{
$this->_conn = $conn ;
// Preferences (for performance, I dare to use an irregular method)
$result = mysql_query( "SELECT conf_name,conf_value FROM ".XOOPS_DB_PREFIX."_config WHERE conf_title like '_MI_PROTECTOR%'" , $conn ) ;
if( mysql_num_rows( $result ) < 5 ) return false ;
$this->_conf = array() ;
while( list( $key , $val ) = mysql_fetch_row( $result ) ) {
$this->_conf[ $key ] = $val ;
}
if( ! empty( $this->_conf['global_disabled'] ) ) return true ;
// die if PHP_SELF XSS found (disabled in 2.53)
// if( preg_match( '/[<>\'";\n ]/' , @$_SERVER['PHP_SELF'] ) ) {
// $this->message .= "Invalid PHP_SELF '{$_SERVER['PHP_SELF']}' found.\n" ;
// $this->output_log( 'PHP_SELF XSS' ) ;
// die( 'invalid PHP_SELF' ) ;
// }
Thank you very much!!