这是一段解密后的php代码 其中_obfuscate_前缀的都是混淆函数 希望大侠们可以帮我修改代码解决程序运行问题 <?php
/*********************/
/*                   */
/*  Version : 5.1.0  */
/*  Author  : RM     */
/*  Comment : 071223 */
/*                   */
/*********************/include_once( "../include/dbcommon.php" );
include_once( dirname( __FILE__ )."/../include/sessions_class.php" );
include_once( "../include/sql.php" );
include_once( "../include/function.php" );
$urlurl = "http://127.0.0.1";
if ( $urlurl != $zy_site_url )
{
echo "域名出错";
exit( );
}
$urlurl = "http://".$_SERVER['SERVER_NAME'];
if ( $urlurl != $zy_site_url )
{
echo "域名出错啦";
exit( );
}
if ( empty( $_SESSION['admin_username'] ) || empty( $_SESSION['admin_pwd'] ) )
{
_obfuscate_ZnVuX2FsZXJ0( "用户名和密码错误/或是没有登陆!" );
_obfuscate_ZnVuX2dv( "login.php" );
exit( );
}
$sql = "select * from admin where username='".$_SESSION['admin_username']."' ";
if ( !( $rs = _obfuscate_CXIZARoUBQt7HD8( $sql ) ) )
{
exit( _obfuscate_LGZ3P20BE2Z1ZGs( ) );
}
$num = mysql_num_rows( $rs );
$row = mysql_fetch_array( $rs );
if ( $row['pwd'] != $_SESSION['admin_pwd'] )
{
_obfuscate_ZnVuX2FsZXJ0( "用户名和密码错误!" );
_obfuscate_ZnVuX2dv( "login.php" );
exit( );
}
?>

解决方案 »

  1.   


    if ( !( $rs = _obfuscate_CXIZARoUBQt7HD8( $sql ) ) ) //那个函数你有么?换成 mysql_query 试试
    {
                    exit( _obfuscate_LGZ3P20BE2Z1ZGs( ) );
    }if ( $row['pwd'] != $_SESSION['admin_pwd'] )
    {
                    _obfuscate_ZnVuX2FsZXJ0( "用户名和密码错误!" ); //这样的函数你都有么?
                    _obfuscate_ZnVuX2dv( "login.php" );
                    exit( );
    }
      

  2.   


    <?php
    /*********************/
    /*                   */
    /*  Version : 5.1.0  */
    /*  Author  : RM     */
    /*  Comment : 071223 */
    /*                   */
    /*********************/include_once( "../include/dbcommon.php" );
    include_once( dirname( __FILE__ )."/../include/sessions_class.php" );
    include_once( "../include/sql.php" );
    include_once( "../include/function.php" );
    $urlurl = "http://127.0.0.1";
    if ( $urlurl != $zy_site_url )
    {
                    echo "域名出错";
                    exit( );
    }
    $urlurl = "http://".$_SERVER['SERVER_NAME'];
    if ( $urlurl != $zy_site_url )
    {
                    echo "域名出错啦";
                    exit( );
    }if ( empty( $_SESSION['admin_username'] ) || empty( $_SESSION['admin_pwd'] ) )
    {
                    echo( "<script>alert('用户名和密码错误/或是没有登陆')</script>" );
                    echo( "<script>location='login.php';</script>" );
                    exit( );
    }
    $sql = "select * from admin where username='".$_SESSION['admin_username']."' ";
    if ( !( $rs = mysql_query( $sql ) ) )
    {
                    exit( mysql_error( ) );
    }
    $num = mysql_num_rows( $rs );
    $row = mysql_fetch_array( $rs );
    if ( $row['pwd'] != $_SESSION['admin_pwd'] )
    {
                    echo( "<script>alert('用户名和密码错误!')</script>" );
                    echo( "<script>location='login.php')</script>" );
                    exit( );
    }
    ?>