s1/app/installcommon.php

Functions

check_env()

check_env() : array

系统环境检测

Returns

array —

系统环境数据

check_dirfile()

check_dirfile() : array

目录,文件读写检测

Returns

array —

检测数据

check_func()

check_func() : array

函数检测

Returns

array —

检测数据

create_tables()

create_tables(  $db_object,   $prefix = '') 

创建数据表

Parameters

$db_object
$prefix

build_auth_key()

build_auth_key() 

生成系统AUTH_KEY

register_administrator()

register_administrator(  $db_object,   $prefix,   $admin,   $auth) 

Parameters

$db_object
$prefix
$admin
$auth

user_md5()

user_md5(string  $str,   $key = '') : string

系统非常规MD5加密方法

Parameters

string $str

要加密的字符串

$key

Returns

string

write_config()

write_config(array  $config,   $auth) 

写入配置文件

Parameters

array $config

配置信息

$auth