mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-19 19:29:56 +09:00
update truck and tag 1.4.2.3
git-svn-id: http://xe-core.googlecode.com/svn/trunk@7503 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
6900f96319
commit
762ebbf445
127 changed files with 303 additions and 283 deletions
|
|
@ -40,7 +40,6 @@ class installModel extends install {
|
|||
|
||||
function getInstallFTPList()
|
||||
{
|
||||
require_once(_XE_PATH_.'libs/ftp.class.php');
|
||||
$ftp_info = Context::getRequestVars();
|
||||
if(!$ftp_info->ftp_user || !$ftp_info->ftp_password)
|
||||
{
|
||||
|
|
@ -57,16 +56,40 @@ class installModel extends install {
|
|||
return $this->getSFTPList();
|
||||
}
|
||||
|
||||
$oFtp = new ftp();
|
||||
if($oFtp->ftp_connect($ftp_info->ftp_host, $ftp_info->ftp_port)){
|
||||
if($oFtp->ftp_login($ftp_info->ftp_user, $ftp_info->ftp_password)) {
|
||||
$_list = $oFtp->ftp_rawlist($this->pwd);
|
||||
$oFtp->ftp_quit();
|
||||
}
|
||||
else
|
||||
if(function_exists(ftp_connect))
|
||||
{
|
||||
$connection = ftp_connect($ftp_info->ftp_host, $ftp_info->ftp_port);
|
||||
if(!$connection) return new Object(-1, 'msg_ftp_not_connected');
|
||||
$login_result = @ftp_login($connection, $ftp_info->ftp_user, $ftp_info->ftp_password);
|
||||
if(!$login_result)
|
||||
{
|
||||
ftp_close($connection);
|
||||
return new Object(-1,'msg_ftp_invalid_auth_info');
|
||||
}
|
||||
|
||||
if($ftp_info->ftp_pasv != "N")
|
||||
{
|
||||
ftp_pasv($connection, true);
|
||||
}
|
||||
|
||||
$_list = ftp_rawlist($connection, $this->pwd);
|
||||
ftp_close($connection);
|
||||
}
|
||||
else
|
||||
{
|
||||
require_once(_XE_PATH_.'libs/ftp.class.php');
|
||||
$oFtp = new ftp();
|
||||
if($oFtp->ftp_connect($ftp_info->ftp_host, $ftp_info->ftp_port)){
|
||||
if($oFtp->ftp_login($ftp_info->ftp_user, $ftp_info->ftp_password)) {
|
||||
$_list = $oFtp->ftp_rawlist($this->pwd);
|
||||
$oFtp->ftp_quit();
|
||||
}
|
||||
else
|
||||
{
|
||||
$oFtp->ftp_quit();
|
||||
return new Object(-1,'msg_ftp_invalid_auth_info');
|
||||
}
|
||||
}
|
||||
}
|
||||
$list = array();
|
||||
|
||||
|
|
|
|||
|
|
@ -3,16 +3,16 @@
|
|||
<node target="db_type" required="true" />
|
||||
<node target="db_hostname" required="true" minlength="1" maxlength="250" />
|
||||
<node target="db_port" minlength="1" maxlength="250" />
|
||||
<node target="db_userid" required="true" minlength="1" maxlength="250"/>
|
||||
<node target="db_userid" 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_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="2" maxlength="20" filter="userid" />
|
||||
<node target="password1" required="true" minlength="1" maxlength="20" />
|
||||
<node target="password2" required="true" equalto="password1" minlength="1" maxlegnth="20" />
|
||||
<node target="user_name" required="true" minlength="2" 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>
|
||||
<parameter>
|
||||
<param name="db_type" target="db_type" />
|
||||
|
|
|
|||
|
|
@ -3,16 +3,16 @@
|
|||
<node target="db_type" required="true" />
|
||||
<node target="db_hostname" required="true" minlength="1" maxlength="250" />
|
||||
<node target="db_port" minlength="1" maxlength="250" />
|
||||
<node target="db_userid" required="true" minlength="1" maxlength="250"/>
|
||||
<node target="db_userid" 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_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="2" maxlength="20" filter="userid" />
|
||||
<node target="password1" required="true" minlength="1" maxlength="20" />
|
||||
<node target="password2" required="true" equalto="password1" minlength="1" maxlegnth="20" />
|
||||
<node target="user_name" required="true" minlength="2" 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>
|
||||
<parameter>
|
||||
<param name="db_type" target="db_type" />
|
||||
|
|
|
|||
|
|
@ -4,13 +4,13 @@
|
|||
<node target="db_hostname" required="true" minlength="1" maxlength="250" />
|
||||
<node target="db_port" 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="2" maxlength="20" filter="userid" />
|
||||
<node target="password1" required="true" minlength="1" maxlength="20" />
|
||||
<node target="password2" required="true" equalto="password1" minlength="1" maxlegnth="20" />
|
||||
<node target="user_name" required="true" minlength="2" 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>
|
||||
<parameter>
|
||||
<param name="db_type" target="db_type" />
|
||||
|
|
|
|||
|
|
@ -3,16 +3,16 @@
|
|||
<node target="db_type" required="true" />
|
||||
<node target="db_hostname" required="true" minlength="1" maxlength="250" />
|
||||
<node target="db_port" minlength="1" maxlength="250" />
|
||||
<node target="db_userid" required="true" minlength="1" maxlength="250"/>
|
||||
<node target="db_userid" 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_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="2" maxlength="20" filter="userid" />
|
||||
<node target="password1" required="true" minlength="1" maxlength="20" />
|
||||
<node target="password2" required="true" equalto="password1" minlength="1" maxlegnth="20" />
|
||||
<node target="user_name" required="true" minlength="2" 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>
|
||||
<parameter>
|
||||
<param name="db_type" target="db_type" />
|
||||
|
|
|
|||
|
|
@ -3,15 +3,15 @@
|
|||
<node target="db_type" required="true" />
|
||||
<node target="db_hostname" required="true" minlength="1" maxlength="250" />
|
||||
<node target="db_port" minlength="1" maxlength="250" />
|
||||
<node target="db_userid" required="true" minlength="1" maxlength="250"/>
|
||||
<node target="db_userid" 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="2" maxlength="20" filter="userid" />
|
||||
<node target="password1" required="true" minlength="1" maxlength="20" />
|
||||
<node target="password2" required="true" equalto="password1" minlength="1" maxlegnth="20" />
|
||||
<node target="user_name" required="true" minlength="2" 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>
|
||||
<parameter>
|
||||
<param name="db_type" target="db_type" />
|
||||
|
|
|
|||
|
|
@ -2,13 +2,13 @@
|
|||
<form>
|
||||
<node target="db_type" required="true" />
|
||||
<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="2" maxlength="20" filter="userid" />
|
||||
<node target="password1" required="true" minlength="1" maxlength="20" />
|
||||
<node target="password2" required="true" equalto="password1" minlength="1" maxlegnth="20" />
|
||||
<node target="user_name" required="true" minlength="2" 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>
|
||||
<parameter>
|
||||
<param name="db_type" target="db_type" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue