mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 00:02:21 +09:00
Convert all instances of _XE_PATH_, __XE_VERSION__, etc. to Rhymix constants
_XE_PATH_ -> RX_BASEDIR __XE_VERSION__ -> RX_VERSION
This commit is contained in:
parent
4fdb51d689
commit
b0f66a36c5
43 changed files with 104 additions and 105 deletions
|
|
@ -238,7 +238,7 @@ class installController extends install
|
|||
}
|
||||
|
||||
// Execute the install script.
|
||||
$scripts = FileHandler::readDir(_XE_PATH_ . 'modules/install/script', '/(\.php)$/');
|
||||
$scripts = FileHandler::readDir(RX_BASEDIR . 'modules/install/script', '/(\.php)$/');
|
||||
if(count($scripts))
|
||||
{
|
||||
sort($scripts);
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ class installView extends install
|
|||
{
|
||||
// Create a temporary file for mod_rewrite check.
|
||||
self::$rewriteCheckString = Rhymix\Framework\Security::getRandom(32);
|
||||
FileHandler::writeFile(_XE_PATH_ . self::$rewriteCheckFilePath, self::$rewriteCheckString);;
|
||||
FileHandler::writeFile(RX_BASEDIR . self::$rewriteCheckFilePath, self::$rewriteCheckString);;
|
||||
|
||||
// Check if the web server is nginx.
|
||||
Context::set('use_nginx', stripos($_SERVER['SERVER_SOFTWARE'], 'nginx') !== false);
|
||||
|
|
@ -93,7 +93,7 @@ class installView extends install
|
|||
}
|
||||
|
||||
// Delete mod_rewrite check file
|
||||
FileHandler::removeFile(_XE_PATH_ . self::$rewriteCheckFilePath);
|
||||
FileHandler::removeFile(RX_BASEDIR . self::$rewriteCheckFilePath);
|
||||
|
||||
// Save mod_rewrite check status.
|
||||
if(Context::get('rewrite') === 'Y')
|
||||
|
|
|
|||
|
|
@ -214,7 +214,7 @@ $output = $oLayoutAdminController->updateLayout($args);
|
|||
if(!$output->toBool()) return $output;
|
||||
|
||||
|
||||
$siteDesignPath = _XE_PATH_.'files/site_design/';
|
||||
$siteDesignPath = RX_BASEDIR.'files/site_design/';
|
||||
FileHandler::makeDir($siteDesignPath);
|
||||
|
||||
|
||||
|
|
@ -268,10 +268,10 @@ $obj->nick_name = htmlspecialchars_decode($logged_info->nick_name);
|
|||
$obj->email_address = $logged_info->email_address;
|
||||
|
||||
$obj->module_srl = $module_srl;
|
||||
Context::set('version', __XE_VERSION__);
|
||||
Context::set('version', RX_VERSION);
|
||||
$obj->title = 'Welcome to Rhymix';
|
||||
|
||||
$obj->content = $oTemplateHandler->compile(_XE_PATH_ . 'modules/install/script/welcome_content', 'welcome_content');
|
||||
$obj->content = $oTemplateHandler->compile(RX_BASEDIR . 'modules/install/script/welcome_content', 'welcome_content');
|
||||
|
||||
$output = $oDocumentController->insertDocument($obj, true);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
|
@ -307,7 +307,7 @@ for($i = 1; $i <=4; $i++)
|
|||
{
|
||||
unset($obj->document_srl);
|
||||
$obj->title = "XEIcon ({$i})";
|
||||
$obj->content = $oTemplateHandler->compile(_XE_PATH_ . 'modules/install/script/xeicon_content', 'xeicon_content_ko_' . $i);
|
||||
$obj->content = $oTemplateHandler->compile(RX_BASEDIR . 'modules/install/script/xeicon_content', 'xeicon_content_ko_' . $i);
|
||||
|
||||
$output = $oDocumentController->insertDocument($obj, true);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<p class="install_help">{$lang->msg_ftp_installed_realpath}: {_XE_PATH_}</p>
|
||||
<p class="install_help">{$lang->msg_ftp_installed_realpath}: {\RX_BASEDIR}</p>
|
||||
<p>
|
||||
<button type="button" class="x_btn x_btn-small" id="task-ftp-list" onclick="getFTPList();return false;">{$lang->ftp_get_list}</button>
|
||||
<button type="button" class="x_btn x_btn-small x_btn-inverse" id="task-ftp-check" onclick="doCheckFTPInfo();return false">{$lang->cmd_check_ftp_connect}</button>
|
||||
|
|
|
|||
|
|
@ -4,5 +4,5 @@
|
|||
<div class="x"|cond="$lang_type == 'ko'" class="x enfont"|cond="$lang_type != 'ko'">
|
||||
<div id="header">
|
||||
<h1><img src="../../../common/img/logo.svg" alt="Rhymix" /></h1>
|
||||
<h2>Version <strong>{__XE_VERSION__}</strong> Installation</h2>
|
||||
<h2>Version <strong>{\RX_VERSION}</strong> Installation</h2>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue