- remove the long desc of license.
This commit is contained in:
@@ -1,45 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
* The html template file of index method of install module of ZenTaoMS.
|
||||
*
|
||||
* ZenTaoMS is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* ZenTaoMS is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with ZenTaoMS. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* @copyright Copyright 2009-2010 QingDao Nature Easy Soft Network Technology Co,LTD (www.cnezsoft.com)
|
||||
* @author Chunsheng Wang <chunsheng@cnezsoft.com>
|
||||
* @package ZenTaoMS
|
||||
* @version $Id$
|
||||
*/
|
||||
?>
|
||||
<?php include './header.html.php';?>
|
||||
<div class='yui-d0'>
|
||||
<table align='center' class='table-6'>
|
||||
<caption><?php echo $lang->install->welcome;?></caption>
|
||||
<tr><td><?php echo nl2br(sprintf($lang->install->desc, $config->version));?></td></tr>
|
||||
<tr><td>
|
||||
<?php if(!isset($latestRelease)):?>
|
||||
<h3 class='a-center'><?php echo html::a($this->createLink('install', 'step1'), $lang->install->start);?></h3>
|
||||
<?php else:?>
|
||||
<?php vprintf($lang->install->newReleased, $latestRelease);?>
|
||||
<h3 class='a-center'>
|
||||
<?php
|
||||
echo $lang->install->choice;
|
||||
echo html::a($latestRelease->url, $lang->install->seeLatestRelease, '_blank');
|
||||
echo html::a($this->createLink('install', 'step1'), $lang->install->keepInstalling);
|
||||
?>
|
||||
</h3>
|
||||
<?php endif;?>
|
||||
</td></tr>
|
||||
</table>
|
||||
</div>
|
||||
<?php include './footer.html.php';?>
|
||||
<?php
|
||||
/**
|
||||
* The html template file of index method of install module of ZenTaoMS.
|
||||
*
|
||||
* @copyright Copyright 2009-2010 QingDao Nature Easy Soft Network Technology Co,LTD (www.cnezsoft.com)
|
||||
* @author Chunsheng Wang <chunsheng@cnezsoft.com>
|
||||
* @package ZenTaoMS
|
||||
* @version $Id$
|
||||
*/
|
||||
?>
|
||||
<?php include './header.html.php';?>
|
||||
<div class='yui-d0'>
|
||||
<table align='center' class='table-6'>
|
||||
<caption><?php echo $lang->install->welcome;?></caption>
|
||||
<tr><td><?php echo nl2br(sprintf($lang->install->desc, $config->version));?></td></tr>
|
||||
<tr><td>
|
||||
<?php if(!isset($latestRelease)):?>
|
||||
<h3 class='a-center'><?php echo html::a($this->createLink('install', 'step1'), $lang->install->start);?></h3>
|
||||
<?php else:?>
|
||||
<?php vprintf($lang->install->newReleased, $latestRelease);?>
|
||||
<h3 class='a-center'>
|
||||
<?php
|
||||
echo $lang->install->choice;
|
||||
echo html::a($latestRelease->url, $lang->install->seeLatestRelease, '_blank');
|
||||
echo html::a($this->createLink('install', 'step1'), $lang->install->keepInstalling);
|
||||
?>
|
||||
</h3>
|
||||
<?php endif;?>
|
||||
</td></tr>
|
||||
</table>
|
||||
</div>
|
||||
<?php include './footer.html.php';?>
|
||||
|
||||
@@ -1,104 +1,91 @@
|
||||
<?php
|
||||
/**
|
||||
* The html template file of step1 method of install module of ZenTaoMS.
|
||||
*
|
||||
* ZenTaoMS is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* ZenTaoMS is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with ZenTaoMS. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* @copyright Copyright 2009-2010 QingDao Nature Easy Soft Network Technology Co,LTD (www.cnezsoft.com)
|
||||
* @author Chunsheng Wang <chunsheng@cnezsoft.com>
|
||||
* @package ZenTaoMS
|
||||
* @version $Id$
|
||||
*/
|
||||
?>
|
||||
<?php include './header.html.php';?>
|
||||
<div class='yui-d0'>
|
||||
<table align='center' class='table-6 a-center'>
|
||||
<caption><?php echo $lang->install->checking;?></caption>
|
||||
<tr>
|
||||
<th class='w-p20'><?php echo $lang->install->checkItem;?></th>
|
||||
<th class='w-p25'><?php echo $lang->install->current?></th>
|
||||
<th class='w-p15'><?php echo $lang->install->result?></th>
|
||||
<th><?php echo $lang->install->action?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->install->phpVersion;?></th>
|
||||
<td><?php echo $phpVersion;?></td>
|
||||
<td class='<?php echo $phpResult;?>'><?php echo $lang->install->$phpResult;?></td>
|
||||
<td class='a-left f-12px'><?php if($phpResult == 'fail') echo $lang->install->phpFail;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->install->pdo;?></th>
|
||||
<td><?php $pdoResult == 'ok' ? printf($lang->install->loaded) : printf($lang->install->unloaded);?></td>
|
||||
<td class='<?php echo $pdoResult;?>'><?php echo $lang->install->$pdoResult;?></td>
|
||||
<td class='a-left f-12px'><?php if($pdoResult == 'fail') echo $lang->install->pdoFail;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->install->pdoMySQL;?></th>
|
||||
<td><?php $pdoMySQLResult == 'ok' ? printf($lang->install->loaded) : printf($lang->install->unloaded);?></td>
|
||||
<td class='<?php echo $pdoMySQLResult;?>'><?php echo $lang->install->$pdoMySQLResult;?></td>
|
||||
<td class='a-left f-12px'><?php if($pdoMySQLResult == 'fail') echo $lang->install->pdoMySQLFail;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->install->tmpRoot;?></th>
|
||||
<td>
|
||||
<?php
|
||||
$tmpRootInfo['exists'] ? print($lang->install->exists) : print($lang->install->notExists);
|
||||
$tmpRootInfo['writable'] ? print($lang->install->writable) : print($lang->install->notWritable);
|
||||
?>
|
||||
</td>
|
||||
<td class='<?php echo $tmpRootResult;?>'><?php echo $lang->install->$tmpRootResult;?></td>
|
||||
<td class='a-left f-12px'>
|
||||
<?php
|
||||
if(!$tmpRootInfo['exists']) printf($lang->install->mkdir, $tmpRootInfo['path'], $tmpRootInfo['path']);
|
||||
if(!$tmpRootInfo['writable']) printf($lang->install->chmod, $tmpRootInfo['path'], $tmpRootInfo['path']);
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->install->dataRoot;?></th>
|
||||
<td>
|
||||
<?php
|
||||
$dataRootInfo['exists'] ? print($lang->install->exists) : print($lang->install->notExists);
|
||||
$dataRootInfo['writable'] ? print($lang->install->writable) : print($lang->install->notWritable);
|
||||
?>
|
||||
</td>
|
||||
<td class='<?php echo $dataRootResult;?>'><?php echo $lang->install->$dataRootResult;?></td>
|
||||
<td class='a-left f-12px'>
|
||||
<?php
|
||||
if(!$dataRootInfo['exists']) printf($lang->install->mkdir, $dataRootInfo['path'], $dataRootInfo['path']);
|
||||
if(!$dataRootInfo['writable']) printf($lang->install->chmod, $dataRootInfo['path'], $dataRootInfo['path']);
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='4'>
|
||||
<?php
|
||||
if($phpResult == 'ok' and $pdoResult == 'ok' and $pdoMySQLResult == 'ok' and $tmpRootResult == 'ok' and $dataRootResult == 'ok')
|
||||
{
|
||||
echo html::a($this->createLink('install', 'step2'), $lang->install->next);
|
||||
}
|
||||
else
|
||||
{
|
||||
echo html::a($this->createLink('install', 'step1'), $lang->install->reload);
|
||||
if($pdoResult == 'fail' or $pdoMySQLResult == 'fail')
|
||||
{
|
||||
echo '<p class="f-12px a-left">' . '<strong>' . $lang->install->phpINI . '</strong><br />' . nl2br($this->install->getIniInfo()) . '</p>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<?php include './footer.html.php';?>
|
||||
<?php
|
||||
/**
|
||||
* The html template file of step1 method of install module of ZenTaoMS.
|
||||
*
|
||||
* @copyright Copyright 2009-2010 QingDao Nature Easy Soft Network Technology Co,LTD (www.cnezsoft.com)
|
||||
* @author Chunsheng Wang <chunsheng@cnezsoft.com>
|
||||
* @package ZenTaoMS
|
||||
* @version $Id$
|
||||
*/
|
||||
?>
|
||||
<?php include './header.html.php';?>
|
||||
<div class='yui-d0'>
|
||||
<table align='center' class='table-6 a-center'>
|
||||
<caption><?php echo $lang->install->checking;?></caption>
|
||||
<tr>
|
||||
<th class='w-p20'><?php echo $lang->install->checkItem;?></th>
|
||||
<th class='w-p25'><?php echo $lang->install->current?></th>
|
||||
<th class='w-p15'><?php echo $lang->install->result?></th>
|
||||
<th><?php echo $lang->install->action?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->install->phpVersion;?></th>
|
||||
<td><?php echo $phpVersion;?></td>
|
||||
<td class='<?php echo $phpResult;?>'><?php echo $lang->install->$phpResult;?></td>
|
||||
<td class='a-left f-12px'><?php if($phpResult == 'fail') echo $lang->install->phpFail;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->install->pdo;?></th>
|
||||
<td><?php $pdoResult == 'ok' ? printf($lang->install->loaded) : printf($lang->install->unloaded);?></td>
|
||||
<td class='<?php echo $pdoResult;?>'><?php echo $lang->install->$pdoResult;?></td>
|
||||
<td class='a-left f-12px'><?php if($pdoResult == 'fail') echo $lang->install->pdoFail;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->install->pdoMySQL;?></th>
|
||||
<td><?php $pdoMySQLResult == 'ok' ? printf($lang->install->loaded) : printf($lang->install->unloaded);?></td>
|
||||
<td class='<?php echo $pdoMySQLResult;?>'><?php echo $lang->install->$pdoMySQLResult;?></td>
|
||||
<td class='a-left f-12px'><?php if($pdoMySQLResult == 'fail') echo $lang->install->pdoMySQLFail;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->install->tmpRoot;?></th>
|
||||
<td>
|
||||
<?php
|
||||
$tmpRootInfo['exists'] ? print($lang->install->exists) : print($lang->install->notExists);
|
||||
$tmpRootInfo['writable'] ? print($lang->install->writable) : print($lang->install->notWritable);
|
||||
?>
|
||||
</td>
|
||||
<td class='<?php echo $tmpRootResult;?>'><?php echo $lang->install->$tmpRootResult;?></td>
|
||||
<td class='a-left f-12px'>
|
||||
<?php
|
||||
if(!$tmpRootInfo['exists']) printf($lang->install->mkdir, $tmpRootInfo['path'], $tmpRootInfo['path']);
|
||||
if(!$tmpRootInfo['writable']) printf($lang->install->chmod, $tmpRootInfo['path'], $tmpRootInfo['path']);
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->install->dataRoot;?></th>
|
||||
<td>
|
||||
<?php
|
||||
$dataRootInfo['exists'] ? print($lang->install->exists) : print($lang->install->notExists);
|
||||
$dataRootInfo['writable'] ? print($lang->install->writable) : print($lang->install->notWritable);
|
||||
?>
|
||||
</td>
|
||||
<td class='<?php echo $dataRootResult;?>'><?php echo $lang->install->$dataRootResult;?></td>
|
||||
<td class='a-left f-12px'>
|
||||
<?php
|
||||
if(!$dataRootInfo['exists']) printf($lang->install->mkdir, $dataRootInfo['path'], $dataRootInfo['path']);
|
||||
if(!$dataRootInfo['writable']) printf($lang->install->chmod, $dataRootInfo['path'], $dataRootInfo['path']);
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='4'>
|
||||
<?php
|
||||
if($phpResult == 'ok' and $pdoResult == 'ok' and $pdoMySQLResult == 'ok' and $tmpRootResult == 'ok' and $dataRootResult == 'ok')
|
||||
{
|
||||
echo html::a($this->createLink('install', 'step2'), $lang->install->next);
|
||||
}
|
||||
else
|
||||
{
|
||||
echo html::a($this->createLink('install', 'step1'), $lang->install->reload);
|
||||
if($pdoResult == 'fail' or $pdoMySQLResult == 'fail')
|
||||
{
|
||||
echo '<p class="f-12px a-left">' . '<strong>' . $lang->install->phpINI . '</strong><br />' . nl2br($this->install->getIniInfo()) . '</p>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<?php include './footer.html.php';?>
|
||||
|
||||
@@ -1,71 +1,58 @@
|
||||
<?php
|
||||
/**
|
||||
* The html template file of step2 method of install module of ZenTaoMS.
|
||||
*
|
||||
* ZenTaoMS is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* ZenTaoMS is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with ZenTaoMS. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* @copyright Copyright 2009-2010 QingDao Nature Easy Soft Network Technology Co,LTD (www.cnezsoft.com)
|
||||
* @author Chunsheng Wang <chunsheng@cnezsoft.com>
|
||||
* @package ZenTaoMS
|
||||
* @version $Id$
|
||||
*/
|
||||
?>
|
||||
<?php include './header.html.php';?>
|
||||
<div class='yui-d0'>
|
||||
<form method='post' action='<?php echo $this->createLink('install', 'step3');?>'>
|
||||
<table align='center' class='table-6'>
|
||||
<caption><?php echo $lang->install->setConfig;?></caption>
|
||||
<tr>
|
||||
<th class='w-p20'><?php echo $lang->install->key;?></th>
|
||||
<th><?php echo $lang->install->value?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->install->webRoot;?></th>
|
||||
<td><?php echo html::input('webRoot', $webRoot);?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->install->requestType;?></th>
|
||||
<td><?php echo html::radio('requestType', $lang->install->requestTypes, 'GET');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->install->dbHost;?></th>
|
||||
<td><?php echo html::input('dbHost', 'localhost');?><?php echo $lang->install->dbHostNote;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->install->dbPort;?></th>
|
||||
<td><?php echo html::input('dbPort', '3306');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->install->dbUser;?></th>
|
||||
<td><?php echo html::input('dbUser', 'root');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->install->dbPassword;?></th>
|
||||
<td><?php echo html::input('dbPassword');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->install->dbName;?></th>
|
||||
<td><?php echo html::input('dbName', 'zentao');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->install->dbPrefix;?></th>
|
||||
<td><?php echo html::input('dbPrefix', 'zt_') . html::checkBox('clearDB', $lang->install->clearDB);?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' class='a-center'><?php echo html::submitButton();?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
<?php include './footer.html.php';?>
|
||||
<?php
|
||||
/**
|
||||
* The html template file of step2 method of install module of ZenTaoMS.
|
||||
*
|
||||
* @copyright Copyright 2009-2010 QingDao Nature Easy Soft Network Technology Co,LTD (www.cnezsoft.com)
|
||||
* @author Chunsheng Wang <chunsheng@cnezsoft.com>
|
||||
* @package ZenTaoMS
|
||||
* @version $Id$
|
||||
*/
|
||||
?>
|
||||
<?php include './header.html.php';?>
|
||||
<div class='yui-d0'>
|
||||
<form method='post' action='<?php echo $this->createLink('install', 'step3');?>'>
|
||||
<table align='center' class='table-6'>
|
||||
<caption><?php echo $lang->install->setConfig;?></caption>
|
||||
<tr>
|
||||
<th class='w-p20'><?php echo $lang->install->key;?></th>
|
||||
<th><?php echo $lang->install->value?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->install->webRoot;?></th>
|
||||
<td><?php echo html::input('webRoot', $webRoot);?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->install->requestType;?></th>
|
||||
<td><?php echo html::radio('requestType', $lang->install->requestTypes, 'GET');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->install->dbHost;?></th>
|
||||
<td><?php echo html::input('dbHost', 'localhost');?><?php echo $lang->install->dbHostNote;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->install->dbPort;?></th>
|
||||
<td><?php echo html::input('dbPort', '3306');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->install->dbUser;?></th>
|
||||
<td><?php echo html::input('dbUser', 'root');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->install->dbPassword;?></th>
|
||||
<td><?php echo html::input('dbPassword');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->install->dbName;?></th>
|
||||
<td><?php echo html::input('dbName', 'zentao');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->install->dbPrefix;?></th>
|
||||
<td><?php echo html::input('dbPrefix', 'zt_') . html::checkBox('clearDB', $lang->install->clearDB);?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' class='a-center'><?php echo html::submitButton();?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
<?php include './footer.html.php';?>
|
||||
|
||||
@@ -1,85 +1,72 @@
|
||||
<?php
|
||||
/**
|
||||
* The html template file of step3 method of install module of ZenTaoMS.
|
||||
*
|
||||
* ZenTaoMS is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* ZenTaoMS is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with ZenTaoMS. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* @copyright Copyright 2009-2010 QingDao Nature Easy Soft Network Technology Co,LTD (www.cnezsoft.com)
|
||||
* @author Chunsheng Wang <chunsheng@cnezsoft.com>
|
||||
* @package ZenTaoMS
|
||||
* @version $Id$
|
||||
*/
|
||||
?>
|
||||
<?php include './header.html.php';?>
|
||||
<?php
|
||||
if(!isset($error))
|
||||
{
|
||||
$configContent = <<<EOT
|
||||
<?php
|
||||
\$config->installed = true; //标志是否已经安装。
|
||||
\$config->debug = false; //是否打开debug功能。如果系统运行不正常,可将其设为true。
|
||||
\$config->requestType = '$requestType'; //如何获取当前请求的信息,可选值:PATH_INFO|GET。
|
||||
\$config->db->host = '$dbHost'; //mysql主机。
|
||||
\$config->db->port = '$dbPort'; //mysql主机端口号。
|
||||
\$config->db->name = '$dbName'; //数据库名称。
|
||||
\$config->db->user = '$dbUser'; //数据库用户名。
|
||||
\$config->db->password = '$dbPassword'; //密码。
|
||||
\$config->db->prefix = '$dbPrefix'; //表前缀。
|
||||
\$config->webRoot = '{$this->post->webRoot}'; //web网站的根目录。如果后面pms的目录有变化,需要修改此选项。
|
||||
\$config->default->domain = '$domain'; //默认域名。
|
||||
EOT;
|
||||
}
|
||||
?>
|
||||
<div class='yui-d0'>
|
||||
<?php if(isset($error)):?>
|
||||
<table class='table-6' align='center'>
|
||||
<caption><?php echo $lang->install->error;?></caption>
|
||||
<tr><td><?php echo $error;?></td></tr>
|
||||
<tr><td><?php echo html::commonButton($lang->install->pre, "onclick='javascript:history.back(-1)'");?></td></tr>
|
||||
</table>
|
||||
<?php else:?>
|
||||
<table class='table-6' align='center'>
|
||||
<caption><?php echo $lang->install->saveConfig;?></caption>
|
||||
<tr>
|
||||
<td class='a-center'><?php echo html::textArea('config', $configContent, "rows='15' class='area-1 f-12px'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?php
|
||||
$configRoot = $this->app->getConfigRoot();
|
||||
$myConfigFile = $configRoot . 'my.php';
|
||||
if(is_writable($configRoot))
|
||||
{
|
||||
if(@file_put_contents($myConfigFile, $configContent))
|
||||
{
|
||||
printf($lang->install->saved2File, $myConfigFile);
|
||||
}
|
||||
else
|
||||
{
|
||||
printf($lang->install->save2File, $this->app->getConfigRoot() . 'my.php');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
printf($lang->install->save2File, $this->app->getConfigRoot() . 'my.php');
|
||||
}
|
||||
echo "<br />";
|
||||
echo "<div class='a-center'>" . html::a($this->createLink('install', 'step4'), $lang->install->next) . '</div>';
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
<?php include './footer.html.php';?>
|
||||
<?php
|
||||
/**
|
||||
* The html template file of step3 method of install module of ZenTaoMS.
|
||||
*
|
||||
* @copyright Copyright 2009-2010 QingDao Nature Easy Soft Network Technology Co,LTD (www.cnezsoft.com)
|
||||
* @author Chunsheng Wang <chunsheng@cnezsoft.com>
|
||||
* @package ZenTaoMS
|
||||
* @version $Id$
|
||||
*/
|
||||
?>
|
||||
<?php include './header.html.php';?>
|
||||
<?php
|
||||
if(!isset($error))
|
||||
{
|
||||
$configContent = <<<EOT
|
||||
<?php
|
||||
\$config->installed = true; //标志是否已经安装。
|
||||
\$config->debug = false; //是否打开debug功能。如果系统运行不正常,可将其设为true。
|
||||
\$config->requestType = '$requestType'; //如何获取当前请求的信息,可选值:PATH_INFO|GET。
|
||||
\$config->db->host = '$dbHost'; //mysql主机。
|
||||
\$config->db->port = '$dbPort'; //mysql主机端口号。
|
||||
\$config->db->name = '$dbName'; //数据库名称。
|
||||
\$config->db->user = '$dbUser'; //数据库用户名。
|
||||
\$config->db->password = '$dbPassword'; //密码。
|
||||
\$config->db->prefix = '$dbPrefix'; //表前缀。
|
||||
\$config->webRoot = '{$this->post->webRoot}'; //web网站的根目录。如果后面pms的目录有变化,需要修改此选项。
|
||||
\$config->default->domain = '$domain'; //默认域名。
|
||||
EOT;
|
||||
}
|
||||
?>
|
||||
<div class='yui-d0'>
|
||||
<?php if(isset($error)):?>
|
||||
<table class='table-6' align='center'>
|
||||
<caption><?php echo $lang->install->error;?></caption>
|
||||
<tr><td><?php echo $error;?></td></tr>
|
||||
<tr><td><?php echo html::commonButton($lang->install->pre, "onclick='javascript:history.back(-1)'");?></td></tr>
|
||||
</table>
|
||||
<?php else:?>
|
||||
<table class='table-6' align='center'>
|
||||
<caption><?php echo $lang->install->saveConfig;?></caption>
|
||||
<tr>
|
||||
<td class='a-center'><?php echo html::textArea('config', $configContent, "rows='15' class='area-1 f-12px'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?php
|
||||
$configRoot = $this->app->getConfigRoot();
|
||||
$myConfigFile = $configRoot . 'my.php';
|
||||
if(is_writable($configRoot))
|
||||
{
|
||||
if(@file_put_contents($myConfigFile, $configContent))
|
||||
{
|
||||
printf($lang->install->saved2File, $myConfigFile);
|
||||
}
|
||||
else
|
||||
{
|
||||
printf($lang->install->save2File, $this->app->getConfigRoot() . 'my.php');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
printf($lang->install->save2File, $this->app->getConfigRoot() . 'my.php');
|
||||
}
|
||||
echo "<br />";
|
||||
echo "<div class='a-center'>" . html::a($this->createLink('install', 'step4'), $lang->install->next) . '</div>';
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
<?php include './footer.html.php';?>
|
||||
|
||||
@@ -1,65 +1,52 @@
|
||||
<?php
|
||||
/**
|
||||
* The html template file of step4 method of install module of ZenTaoMS.
|
||||
*
|
||||
* ZenTaoMS is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* ZenTaoMS is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with ZenTaoMS. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* @copyright Copyright 2009-2010 QingDao Nature Easy Soft Network Technology Co,LTD (www.cnezsoft.com)
|
||||
* @author Chunsheng Wang <chunsheng@cnezsoft.com>
|
||||
* @package ZenTaoMS
|
||||
* @version $Id$
|
||||
*/
|
||||
?>
|
||||
<?php include './header.html.php';?>
|
||||
<div class='yui-d0'>
|
||||
<?php if(isset($error)):?>
|
||||
<table class='table-6' align='center'>
|
||||
<caption><?php echo $lang->install->error;?></caption>
|
||||
<tr><td><?php echo $error;?></td></tr>
|
||||
<tr><td><?php echo html::commonButton($lang->install->pre, "onclick='javascript:history.back(-1)'");?></td></tr>
|
||||
</table>
|
||||
<?php elseif(isset($success)):?>
|
||||
<table class='table-6' align='center'>
|
||||
<caption><?php echo $lang->install->success;?></caption>
|
||||
<tr><td><?php echo $lang->install->afterSuccess;?></td></tr>
|
||||
<tr><td><?php echo html::commonButton($lang->install->pre, "onclick='javascript:history.back(-1)'");?></td></tr>
|
||||
</table>
|
||||
<?php else:?>
|
||||
<form method='post' target='hiddenwin'>
|
||||
<table class='table-6' align='center'>
|
||||
<caption><?php echo $lang->install->getPriv;?></caption>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->install->company;?></th>
|
||||
<td><?php echo html::input('company');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->install->pms;?></th>
|
||||
<td><?php echo html::input('pms', $pmsDomain) . "<span class='f-12px'>{$lang->install->pmsNote}</span>";?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->install->account;?></th>
|
||||
<td><?php echo html::input('account');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->install->password;?></th>
|
||||
<td><?php echo html::input('password');?></td>
|
||||
</tr>
|
||||
<tr class='a-center'>
|
||||
<td colspan='2'><?php echo html::submitButton();?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
<?php include './footer.html.php';?>
|
||||
<?php
|
||||
/**
|
||||
* The html template file of step4 method of install module of ZenTaoMS.
|
||||
*
|
||||
* @copyright Copyright 2009-2010 QingDao Nature Easy Soft Network Technology Co,LTD (www.cnezsoft.com)
|
||||
* @author Chunsheng Wang <chunsheng@cnezsoft.com>
|
||||
* @package ZenTaoMS
|
||||
* @version $Id$
|
||||
*/
|
||||
?>
|
||||
<?php include './header.html.php';?>
|
||||
<div class='yui-d0'>
|
||||
<?php if(isset($error)):?>
|
||||
<table class='table-6' align='center'>
|
||||
<caption><?php echo $lang->install->error;?></caption>
|
||||
<tr><td><?php echo $error;?></td></tr>
|
||||
<tr><td><?php echo html::commonButton($lang->install->pre, "onclick='javascript:history.back(-1)'");?></td></tr>
|
||||
</table>
|
||||
<?php elseif(isset($success)):?>
|
||||
<table class='table-6' align='center'>
|
||||
<caption><?php echo $lang->install->success;?></caption>
|
||||
<tr><td><?php echo $lang->install->afterSuccess;?></td></tr>
|
||||
<tr><td><?php echo html::commonButton($lang->install->pre, "onclick='javascript:history.back(-1)'");?></td></tr>
|
||||
</table>
|
||||
<?php else:?>
|
||||
<form method='post' target='hiddenwin'>
|
||||
<table class='table-6' align='center'>
|
||||
<caption><?php echo $lang->install->getPriv;?></caption>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->install->company;?></th>
|
||||
<td><?php echo html::input('company');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->install->pms;?></th>
|
||||
<td><?php echo html::input('pms', $pmsDomain) . "<span class='f-12px'>{$lang->install->pmsNote}</span>";?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->install->account;?></th>
|
||||
<td><?php echo html::input('account');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->install->password;?></th>
|
||||
<td><?php echo html::input('password');?></td>
|
||||
</tr>
|
||||
<tr class='a-center'>
|
||||
<td colspan='2'><?php echo html::submitButton();?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
<?php include './footer.html.php';?>
|
||||
|
||||
Reference in New Issue
Block a user