mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-27 23:29:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1845 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
c4378634e2
commit
3aa0e229b2
7 changed files with 25 additions and 15 deletions
|
|
@ -47,7 +47,6 @@
|
||||||
* @brief 설치 가능 여부를 return
|
* @brief 설치 가능 여부를 return
|
||||||
**/
|
**/
|
||||||
function isSupported() {
|
function isSupported() {
|
||||||
//if(!function_exists('mysql_connect') || mysql_get_client_info() < "4.1.00") return false;
|
|
||||||
if(!function_exists('mysql_connect')) return false;
|
if(!function_exists('mysql_connect')) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
@ -79,6 +78,12 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 버전 확인후 4.1 이하면 오류 표시
|
||||||
|
if(mysql_get_server_info($this->fd)<"4.1") {
|
||||||
|
$this->setError(-1, "zeroboard xe can not install under mysql 4.1. Current mysql version is ".mysql_get_server_info());
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// db 선택
|
// db 선택
|
||||||
@mysql_select_db($this->database, $this->fd);
|
@mysql_select_db($this->database, $this->fd);
|
||||||
if(mysql_error()) {
|
if(mysql_error()) {
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,6 @@
|
||||||
* @brief 설치 가능 여부를 return
|
* @brief 설치 가능 여부를 return
|
||||||
**/
|
**/
|
||||||
function isSupported() {
|
function isSupported() {
|
||||||
//if(!function_exists('mysql_connect') || mysql_get_client_info() < "4.1.00") return false;
|
|
||||||
if(!function_exists('mysql_connect')) return false;
|
if(!function_exists('mysql_connect')) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
@ -79,6 +78,12 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 버전 확인후 4.1 이하면 오류 표시
|
||||||
|
if(mysql_get_server_info($this->fd)<"4.1") {
|
||||||
|
$this->setError(-1, "zeroboard xe can not install under mysql 4.1. Current mysql version is ".mysql_get_server_info());
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// db 선택
|
// db 선택
|
||||||
@mysql_select_db($this->database, $this->fd);
|
@mysql_select_db($this->database, $this->fd);
|
||||||
if(mysql_error()) {
|
if(mysql_error()) {
|
||||||
|
|
|
||||||
|
|
@ -16,10 +16,10 @@ IE7 & IE6 & Below
|
||||||
.fl { float:left;}
|
.fl { float:left;}
|
||||||
|
|
||||||
/* default.css - Type Selector Definition */
|
/* default.css - Type Selector Definition */
|
||||||
* { margin:0; padding:0; font-family:"돋움", Dotum, "굴림", Gulim, AppleGothic, Sans-serif;}
|
* { margin:0; padding:0; }
|
||||||
html, body { height:100%;}
|
html, body { }
|
||||||
html { width:100%; position:relative;}
|
html { width:100%; position:relative;}
|
||||||
body { font-size:.75em; margin:2em;}
|
body { font-size:.75em; margin:0;}
|
||||||
img { border:none;}
|
img { border:none;}
|
||||||
label { cursor:pointer;}
|
label { cursor:pointer;}
|
||||||
/*select { height:1.6em;}*/
|
/*select { height:1.6em;}*/
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@
|
||||||
$oDB = &DB::getInstance();
|
$oDB = &DB::getInstance();
|
||||||
|
|
||||||
// DB접속이 가능한지 체크
|
// DB접속이 가능한지 체크
|
||||||
if(!$oDB->isConnected()) return new Object(-1, 'msg_dbconnect_failed');
|
if(!$oDB->isConnected()) return $oDB->getError();
|
||||||
|
|
||||||
$oDB->begin();
|
$oDB->begin();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,11 +7,11 @@
|
||||||
<node target="db_password" required="true" minlength="1" maxlength="250" />
|
<node target="db_password" required="true" minlength="1" maxlength="250" />
|
||||||
<node target="db_database" required="true" minlength="1" maxlength="250" />
|
<node target="db_database" required="true" minlength="1" maxlength="250" />
|
||||||
<node target="db_table_prefix" required="true" minlength="2" maxlength="20" filter="alpha"/>
|
<node target="db_table_prefix" required="true" minlength="2" maxlength="20" filter="alpha"/>
|
||||||
<node target="user_id" required="true" minlength="3" maxlength="20" filter="alpha,userid" />
|
<node target="user_id" required="true" minlength="2" maxlength="20" filter="alpha,userid" />
|
||||||
<node target="password1" required="true" minlength="1" maxlength="20" />
|
<node target="password1" required="true" minlength="1" maxlength="20" />
|
||||||
<node target="password2" required="true" equalto="password1" minlength="1" maxlegnth="20" />
|
<node target="password2" required="true" equalto="password1" minlength="1" maxlegnth="20" />
|
||||||
<node target="user_name" required="true" minlength="3" maxlength="20" />
|
<node target="user_name" required="true" minlength="2" maxlength="20" />
|
||||||
<node target="nick_name" required="true" minlength="3" maxlength="20" />
|
<node target="nick_name" required="true" minlength="2" maxlength="20" />
|
||||||
<node target="email_address" required="true" minlength="1" maxlength="200" filter="email"/>
|
<node target="email_address" required="true" minlength="1" maxlength="200" filter="email"/>
|
||||||
</form>
|
</form>
|
||||||
<parameter>
|
<parameter>
|
||||||
|
|
|
||||||
|
|
@ -6,11 +6,11 @@
|
||||||
<node target="db_password" required="true" minlength="1" maxlength="250" />
|
<node target="db_password" required="true" minlength="1" maxlength="250" />
|
||||||
<node target="db_database" required="true" minlength="1" maxlength="250" />
|
<node target="db_database" required="true" minlength="1" maxlength="250" />
|
||||||
<node target="db_table_prefix" required="true" minlength="2" maxlength="20" filter="alpha"/>
|
<node target="db_table_prefix" required="true" minlength="2" maxlength="20" filter="alpha"/>
|
||||||
<node target="user_id" required="true" minlength="3" maxlength="20" filter="alpha,userid" />
|
<node target="user_id" required="true" minlength="2" maxlength="20" filter="alpha,userid" />
|
||||||
<node target="password1" required="true" minlength="1" maxlength="20" />
|
<node target="password1" required="true" minlength="1" maxlength="20" />
|
||||||
<node target="password2" required="true" equalto="password1" minlength="1" maxlegnth="20" />
|
<node target="password2" required="true" equalto="password1" minlength="1" maxlegnth="20" />
|
||||||
<node target="user_name" required="true" minlength="3" maxlength="20" />
|
<node target="user_name" required="true" minlength="2" maxlength="20" />
|
||||||
<node target="nick_name" required="true" minlength="3" maxlength="20" />
|
<node target="nick_name" required="true" minlength="2" maxlength="20" />
|
||||||
<node target="email_address" required="true" minlength="1" maxlength="200" filter="email"/>
|
<node target="email_address" required="true" minlength="1" maxlength="200" filter="email"/>
|
||||||
</form>
|
</form>
|
||||||
<parameter>
|
<parameter>
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,11 @@
|
||||||
<node target="db_type" required="true" />
|
<node target="db_type" required="true" />
|
||||||
<node target="db_database_file" required="true" minlength="1" maxlength="250" />
|
<node target="db_database_file" required="true" minlength="1" maxlength="250" />
|
||||||
<node target="db_table_prefix" required="true" minlength="2" maxlength="20" filter="alpha"/>
|
<node target="db_table_prefix" required="true" minlength="2" maxlength="20" filter="alpha"/>
|
||||||
<node target="user_id" required="true" minlength="3" maxlength="20" filter="alpha,userid" />
|
<node target="user_id" required="true" minlength="2" maxlength="20" filter="alpha,userid" />
|
||||||
<node target="password1" required="true" minlength="1" maxlength="20" />
|
<node target="password1" required="true" minlength="1" maxlength="20" />
|
||||||
<node target="password2" required="true" equalto="password1" minlength="1" maxlegnth="20" />
|
<node target="password2" required="true" equalto="password1" minlength="1" maxlegnth="20" />
|
||||||
<node target="user_name" required="true" minlength="3" maxlength="20" />
|
<node target="user_name" required="true" minlength="2" maxlength="20" />
|
||||||
<node target="nick_name" required="true" minlength="3" maxlength="20" />
|
<node target="nick_name" required="true" minlength="2" maxlength="20" />
|
||||||
<node target="email_address" required="true" minlength="1" maxlength="200" filter="email"/>
|
<node target="email_address" required="true" minlength="1" maxlength="200" filter="email"/>
|
||||||
</form>
|
</form>
|
||||||
<parameter>
|
<parameter>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue