⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 install.php

📁 创建虚拟磁盘。用户可以创建磁盘
💻 PHP
字号:
<?php
##
#	Project: PHPDisk
#	This is NOT a freeware, use is subject to license terms.
#
#	Site: http://www.phpdisk.com
#
#	$Id: install.php 258 2009-03-11 03:53:30Z along $
#
#	Copyright (C) 2008-2009 PHPDisk Team. All Rights Reserved.
#
##

error_reporting(0);

@require_once "./install/zh-cn.lang.php";

if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
	define('LF',"\r\n");
} else {
	define('LF',"\n");
}

define('IN_PHPDISK', true);
define('NOW_YEAR','2009');
ob_start();
require_once "./phpdisk_version.php";

function stripslashes_array(&$array) {
	if (is_array($array)) {
		foreach ($array as $k => $v) {
			$array[$k] = stripslashes_array($v);
		}
	} else if (is_string($array)) {
		$array = stripslashes($array);
	}
	return $array;
}

if (get_magic_quotes_gpc()) {
    $_GET = stripslashes_array($_GET);
    $_POST = stripslashes_array($_POST);
}

set_magic_quotes_runtime(0);

$step = $_GET['step'] ? (int)$_GET['step'] : (int)$_POST['step'];
$php_self = $_SERVER['PHP_SELF'] ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME'];
$config_file = './system/configs.inc.php';

$sqlfile = './install/phpdisk.sql';
if(!file_exists($sqlfile) || !is_readable($sqlfile)) {
	exit($lang['db_file_not_exists']);
}
$fp = fopen($sqlfile, 'rb');
$sql = fread($fp, filesize($sqlfile));
fclose($fp);

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>PHPDisk<?php echo PHPDISK_VERSION;?> <?php echo $lang['install_guide'] ?></title>
<link href="./install/style.css" rel="stylesheet" type="text/css" />
</head>
<body style="margin-top:5px">
<div id="main">
<?php if($step ==3 || $step ==4 || $step ==6){?>
  <form method="post" name="myform" action="<?php echo $php_self;?>" onsubmit="return chksubmit(this);">
<?php }else{?>  
  <form method="post" name="myform" action="<?php echo $php_self;?>">
<?php }?>
    <p class="title">PHPDisk <?php echo PHPDISK_VERSION;?> <?php echo $lang['install_guide'] ?></p>
    <hr noshade="noshade" />
<?php
if (!$step || $step == 1) {
?>
    <p class="title"><?php echo $lang['the'] ?>(<span class="txtblue">1</span>/7)<?php echo $lang['step'] ?>:<?php echo $lang['user_license'] ?></p>
	<p align="center"><textarea rows="50" cols="100" readonly="readonly"><?php echo $lang['license_content'] ?></textarea>
	</p>
    <hr noshade="noshade" />
    <p align="right">
      <input type="hidden" name="step" value="2" />
      <input class="formbutton" type="submit" value="<?php echo $lang['agree'] ?>" />&nbsp;&nbsp;<input class="formbutton" type="button" value="<?php echo $lang['disagree'] ?>" onclick="javascript:window.close();" />
    </p>
<?php 
}else if($step ==2){
	$short_open_tag = @ini_get('short_open_tag');
	$system_dir = './system';
	$filestores_dir = './filestores';
	$publicstores_dir = './publicstores';
	$install_dir = './install';
	$chk_system_dir = is_writable($system_dir) ? 1 : 0;
	$chk_filestores_dir = is_writable($filestores_dir) ? 1 : 0;
	$chk_publicstores_dir = is_writable($publicstores_dir) ? 1 : 0;
	$chk_install_dir = is_writable($install_dir) ? 1 : 0;
	if($short_open_tag && $chk_system_dir && $chk_filestores_dir && $chk_publicstores_dir && $chk_install_dir){
		$install_halt =0;
	}else{
		$install_halt =1;
	}
?>
    <p class="title"><?php echo $lang['the'] ?>(<span class="txtblue">2</span>/7)<?php echo $lang['step'] ?>:<?php echo $lang['install_note'] ?></p>
    <p><?php echo $lang['welcome_to_use'] ?> PHPDisk <?php echo PHPDISK_VERSION;?>锛

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -