mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 11:11:39 +09:00
#64 서버 내 경로를 절대경로로 변경
This commit is contained in:
parent
bf0dd35f0a
commit
932862be1f
42 changed files with 807 additions and 133 deletions
|
|
@ -28,7 +28,7 @@ if($_REQUEST['act'] != 'api')
|
|||
}
|
||||
|
||||
// Read func file
|
||||
require_once('./addons/blogapi/blogapi.func.php');
|
||||
require_once(_XE_PATH_ . 'addons/blogapi/blogapi.func.php');
|
||||
|
||||
// xmlprc parsing
|
||||
// Parse the requested xmlrpc
|
||||
|
|
@ -83,8 +83,8 @@ if($called_position == 'before_module_proc')
|
|||
$category_list = $oDocumentModel->getCategoryList($this->module_srl);
|
||||
|
||||
// Specifies a temporary file storage
|
||||
$tmp_uploaded_path = sprintf('./files/cache/blogapi/%s/%s/', $this->mid, $user_id);
|
||||
$uploaded_target_path = sprintf('/files/cache/blogapi/%s/%s/', $this->mid, $user_id);
|
||||
$tmp_uploaded_path = sprintf(_XE_PATH_ . 'files/cache/blogapi/%s/%s/', $this->mid, $user_id);
|
||||
$uploaded_target_path = sprintf(_XE_PATH_ . 'files/cache/blogapi/%s/%s/', $this->mid, $user_id);
|
||||
|
||||
switch($method_name)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ if(!class_exists('AddonCaptcha'))
|
|||
{
|
||||
if(!$this->compareCaptcha())
|
||||
{
|
||||
Context::loadLang('./addons/captcha/lang');
|
||||
Context::loadLang(_XE_PATH_ . 'addons/captcha/lang');
|
||||
$_SESSION['XE_VALIDATOR_ERROR'] = -1;
|
||||
$_SESSION['XE_VALIDATOR_MESSAGE'] = Context::getLang('captcha_denied');
|
||||
$_SESSION['XE_VALIDATOR_MESSAGE_TYPE'] = 'error';
|
||||
|
|
@ -85,7 +85,7 @@ if(!class_exists('AddonCaptcha'))
|
|||
// compare session when calling actions such as writing a post or a comment on the board/issue tracker module
|
||||
if(!$_SESSION['captcha_authed'] && in_array(Context::get('act'), $this->target_acts))
|
||||
{
|
||||
Context::loadLang('./addons/captcha/lang');
|
||||
Context::loadLang(_XE_PATH_ . 'addons/captcha/lang');
|
||||
$ModuleHandler->error = "captcha_denied";
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ if(!class_exists('AddonMemberCaptcha'))
|
|||
{
|
||||
if(!$this->compareCaptcha())
|
||||
{
|
||||
Context::loadLang('./addons/captcha_member/lang');
|
||||
Context::loadLang(_XE_PATH_ . 'addons/captcha_member/lang');
|
||||
$_SESSION['XE_VALIDATOR_ERROR'] = -1;
|
||||
$_SESSION['XE_VALIDATOR_MESSAGE'] = Context::getLang('captcha_denied');
|
||||
$_SESSION['XE_VALIDATOR_MESSAGE_TYPE'] = 'error';
|
||||
|
|
@ -96,7 +96,7 @@ if(!class_exists('AddonMemberCaptcha'))
|
|||
// compare session when calling actions such as writing a post or a comment on the board/issue tracker module
|
||||
if(!$_SESSION['member_captcha_authed'] && in_array(Context::get('act'), $this->target_acts))
|
||||
{
|
||||
Context::loadLang('./addons/captcha_member/lang');
|
||||
Context::loadLang(_XE_PATH_ . 'addons/captcha_member/lang');
|
||||
$ModuleHandler->error = "captcha_denied";
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -26,20 +26,20 @@ if(!$logged_info)
|
|||
if($called_position == 'before_module_init' && $this->module != 'member')
|
||||
{
|
||||
// Load a language file from the communication module
|
||||
Context::loadLang('./modules/communication/lang');
|
||||
Context::loadLang(_XE_PATH_ . 'modules/communication/lang');
|
||||
// Add menus on the member login information
|
||||
$oMemberController = getController('member');
|
||||
$oMemberController->addMemberMenu('dispCommunicationFriend', 'cmd_view_friend');
|
||||
$oMemberController->addMemberMenu('dispCommunicationMessages', 'cmd_view_message_box');
|
||||
// Pop-up to display messages if a flag on new message is set
|
||||
$flag_path = './files/member_extra_info/new_message_flags/' . getNumberingPath($logged_info->member_srl);
|
||||
$flag_path = _XE_PATH_ . 'files/member_extra_info/new_message_flags/' . getNumberingPath($logged_info->member_srl);
|
||||
$flag_file = $flag_path . $logged_info->member_srl;
|
||||
|
||||
if(file_exists($flag_file) && $addon_info->use_alarm != 'N')
|
||||
{
|
||||
$new_message_count = trim(FileHandler::readFile($flag_file));
|
||||
FileHandler::removeFile($flag_file);
|
||||
Context::loadLang('./addons/member_communication/lang');
|
||||
Context::loadLang(_XE_PATH_ . 'addons/member_communication/lang');
|
||||
Context::loadFile(array('./addons/member_communication/tpl/member_communication.js'), true);
|
||||
|
||||
$text = preg_replace('@\r?\n@', '\\n', addslashes(Context::getLang('alert_new_message_arrived')));
|
||||
|
|
|
|||
|
|
@ -28,7 +28,8 @@ function memberTransImageName($matches)
|
|||
$_tmp->cached = true;
|
||||
$image_name_file = sprintf('files/member_extra_info/image_name/%s%d.gif', getNumberingPath($member_srl), $member_srl);
|
||||
$image_mark_file = sprintf('files/member_extra_info/image_mark/%s%d.gif', getNumberingPath($member_srl), $member_srl);
|
||||
if(file_exists($image_name_file))
|
||||
|
||||
if(file_exists(_XE_PATH_ . $image_name_file))
|
||||
{
|
||||
$_tmp->image_name_file = $image_name_file;
|
||||
}
|
||||
|
|
@ -36,7 +37,8 @@ function memberTransImageName($matches)
|
|||
{
|
||||
$image_name_file = '';
|
||||
}
|
||||
if(file_exists($image_mark_file))
|
||||
|
||||
if(file_exists(_XE_PATH_ . $image_mark_file))
|
||||
{
|
||||
$_tmp->image_mark_file = $image_mark_file;
|
||||
}
|
||||
|
|
@ -55,6 +57,7 @@ function memberTransImageName($matches)
|
|||
$image_name_file = $_tmp->image_name_file;
|
||||
$image_mark_file = $_tmp->image_mark_file;
|
||||
}
|
||||
|
||||
// If image name and mark doesn't exist, set the original information
|
||||
if(!$image_name_file && !$image_mark_file && !$group_image)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ if($called_position != "before_display_content" || Context::getResponseMethod()
|
|||
return;
|
||||
}
|
||||
|
||||
require_once('./addons/point_level_icon/point_level_icon.lib.php');
|
||||
require_once(_XE_PATH_ . 'addons/point_level_icon/point_level_icon.lib.php');
|
||||
|
||||
$temp_output = preg_replace_callback('!<(div|span|a)([^\>]*)member_([0-9\-]+)([^\>]*)>(.*?)\<\/(div|span|a)\>!is', 'pointLevelIconTrans', $output);
|
||||
if($temp_output)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue