Ejemplo n.º 1
0
function ostripslashes($string, $force = 0)
{
    if (is_array($string)) {
        foreach ($string as $key => $val) {
            $string[$key] = ostripslashes($val, $force);
        }
    } else {
        $string = stripslashes($string);
    }
    return $string;
}
Ejemplo n.º 2
0
if (PHP_VERSION < '4.1.0') {
    $_GET =& $HTTP_GET_VARS;
    $_POST =& $HTTP_POST_VARS;
}
define('IN_ONEZ', TRUE);
define('ONEZ_ROOT', '');
$installfile = basename(__FILE__);
$sqlfile = './install/onez.sql';
$lockfile = './install/install.lock';
$quit = FALSE;
@(include './install/install.lang.php');
@(include './install/global.func.php');
$magic_quotes_gpc = @get_magic_quotes_gpc();
if ($magic_quotes_gpc) {
    $_POST = ostripslashes($_POST);
    $_GET = ostripslashes($_GET);
}
@(include './config.inc.php');
@(include './include/db_mysql.class.php');
$inslang = defined('INSTALL_LANG') ? INSTALL_LANG : '';
$version = @file_get_contents('version.txt') . ' ' . $lang[$inslang];
if (!defined('INSTALL_LANG') || !function_exists('instmsg') || !is_readable($sqlfile)) {
    exit("安装软件必须上传所有文件");
} elseif (!isset($dbhost)) {
    instmsg('config_nonexistence');
} elseif (!ini_get('short_open_tag')) {
    instmsg('short_open_tag_invalid');
} elseif (file_exists($lockfile)) {
    instmsg('lock_exists');
}
if (function_exists('instheader')) {