创建虚拟磁盘。用户可以创建磁盘

源代码在线查看: install.php

软件大小: 464 K
上传用户: sbukhpak
关键词: 磁盘 虚拟 用户
下载地址: 免注册下载 普通下载 VIP

相关代码

								##
				#	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);
				
				?>
				
				
				
				
				PHPDisk 
				
				
				
				
				
				  				  
				  				
				    PHPDisk  
				    
								if (!$step || $step == 1) {
				?>
				    (1/7):
					
					
				    
				    
				      
				      				    
								}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;
					}
				?>
				    (2/7):
				     PHPDisk 锛			

相关资源