* adjust for ok file note.

This commit is contained in:
wangyidong
2015-05-20 13:58:10 +08:00
parent 061815355a
commit f1243b5621
6 changed files with 18 additions and 20 deletions

View File

@@ -137,7 +137,7 @@ class editor extends control
$statusFile = $this->loadModel('upgrade')->checkSafeFile();
if($statusFile)
{
die(js::alert(sprintf($this->lang->editor->noticeOkFile, $statusFile, $statusFile, $statusFile)));
die(js::alert(sprintf($this->lang->editor->noticeOkFile, $statusFile)));
}
if($filePath and $_POST)
{

View File

@@ -30,7 +30,7 @@ $lang->editor->deleteConfirm = 'Are you sure?';
$lang->editor->extendConfirm = 'Would you reuse the code.';
$lang->editor->repeatFile = 'File name repeat';
$lang->editor->repeatPage = 'This page has extisted. Is override?';
$lang->editor->noticeOkFile = 'The ok file does not exist or has expired\nFor safe, please re create the ok file\nYou can perform the following commands on the server: \nFor windows:echo ok > %s\nFor linux:touch %s;';
$lang->editor->noticeOkFile = 'For security reason, system need to confirm you\'re administrator of zentao system.\n Please login into the zentao host and create the %s file.\n Note:\n 1. Keep the ok.txt content empty.\n 2. If the file exists already, remove and recreate it again.';
$lang->editor->notWritable = "Can not writable, maybe no power. please try chmod 777 -R ";
$lang->editor->notDelete = "Can not delete, please check power!";

View File

@@ -30,7 +30,7 @@ $lang->editor->deleteConfirm = '是否要删除?';
$lang->editor->extendConfirm = '是否要重用原来代码?';
$lang->editor->repeatFile = '文件名重复';
$lang->editor->repeatPage = '已经有此页面。是否覆盖?';
$lang->editor->noticeOkFile = 'ok文件不存在或文件已过期\n为了系统的安全请重新创建ok文件\n您可在服务器执行下面相应的命令\nwindows: 打开命令行,执行 echo ok > %s\nlinux: touch %s;\n或者删掉 %s 这个文件 重新创建一个ok.txt文件不需要内容。';
$lang->editor->noticeOkFile = '为了安全起见,系统需要确认您的管理员身份。\n 请登录禅道所在的服务器,创建%s文件。\n 注意:\n 1. 文件内容为空。\n 2. 如果之前文件存在,删除之后重新创建。';
$lang->editor->notWritable = "无法写入,可能没有权限。请尝试执行 chmod 777 -R ";
$lang->editor->notDelete = '无法删除,请检查权限!';

View File

@@ -124,7 +124,7 @@ class extension extends control
$statusFile = $this->loadModel('upgrade')->checkSafeFile();
if($statusFile)
{
$this->view->error = sprintf($this->lang->extension->noticeOkFile, $statusFile, $statusFile, $statusFile);
$this->view->error = sprintf($this->lang->extension->noticeOkFile, $statusFile);
die($this->display());
}
/* Get the package file name. */

View File

@@ -81,14 +81,13 @@ $lang->extension->viewInstalled = 'View installed extensions.';
$lang->extension->viewAvailable = 'View available extensions';
$lang->extension->viewDeactivated = 'View deactivated extensions';
$lang->extension->backDBFile = 'Plug-related data has been backed up to %s file!';
$lang->extension->noticeOkFile = '<h4>The ok file does not exist or has expired</h4>
<h4>For safe, please re create the ok file</h4>
<p>You can perform the following commands on the server: </p>
<ul>
<li>For linux:<strong>touch %s;</strong> </li>
<li>For windows:<strong>echo ok > %s</strong></li>
</ul> ';
$lang->extension->noticeOkFile = "<h5>For security reason, system need to confirm you're administrator of zentao system.</h5>
<h5>Please login into the zentao host and create the %s file.</h5>
<p>Note:</p>
<ol>
<li>Keep the ok.txt content empty.</li>
<li>If the file exists already, remove and recreate it again.</li>
<ul>";
$lang->extension->upgradeExt = 'Upgrade';
$lang->extension->installExt = 'Install';

View File

@@ -81,14 +81,13 @@ $lang->extension->viewInstalled = '查看已安装插件';
$lang->extension->viewAvailable = '查看可安装插件';
$lang->extension->viewDeactivated = '查看已禁用插件';
$lang->extension->backDBFile = '插件相关数据已经备份到 %s 文件中!';
$lang->extension->noticeOkFile = '<h4>ok文件不存在或文件已过期</h4>
<h4>为了系统的安全请重新创建ok文件</h4>
<p>您可在服务器执行下面相应的命令</p>
<ul>
<li>windows: 打开命令行,执行<strong>echo ok &gt; %s</strong></li>
<li>linux: <strong>touch %s;</strong></li>
<li>或者删掉 <strong>"%s"</strong> 这个文件 重新创建一个ok.txt文件不需要内容。</li>
</ul> ';
$lang->extension->noticeOkFile = '<h5>为了安全起见,系统需要确认您的管理员身份</h5>
<h5>请登录禅道所在的服务器,创建%s文件</h5>
<p>注意</p>
<ol>
<li>文件内容为空。</li>
<li>如果之前文件存在,删除之后重新创建。</li>
</ul>';
$lang->extension->upgradeExt = '升级';
$lang->extension->installExt = '安装';