/** * 创建目录 * @param string $path 目录 * @return */ public function create_dir($path) { if (is_dir($path)) { return false; } fileInit::create_dir(dirname($path)); @mkdir($path); @chmod($path, 0777); return true; }
require "core/functions.php"; require "core/classes/fileInit.class.php"; #Define the root for further usage define('HROOT', dirname(__FILE__) . '/'); #Set up the content-type header('Content-type: text/html; charset=utf-8'); #Set up the script locale to prevent buggs with character functions setlocale(LC_CTYPE, 'C'); #Enable the error reporting error_reporting(E_ALL); #Disable the php load limit @set_time_limit(0); #Get the install step $step = GetGet('step'); #Load up some files fileInit::load('install/install.js', 'js'); #Set the page title if ($step && $step != 1) { SetPageTitle('HyperBB Installation ' . $step . '/7'); } else { SetPageTitle('Welcome to HyperBB'); } switch ($step) { case 1: require "install/templates/home.php"; break; case 2: require "install/templates/terms.php"; break; case 3: require "install/templates/database.php";