24 $args =
new stdClass();
32 if($oCacheHandler->isSupport())
34 $cache_key =
'action_forward';
35 $oCacheHandler->delete($cache_key);
46 $args =
new stdClass();
54 if($oCacheHandler->isSupport())
56 $cache_key =
'action_forward';
57 $oCacheHandler->delete($cache_key);
70 $args =
new stdClass();
71 $args->trigger_name = $trigger_name;
74 $args->called_method = $called_method;
75 $args->called_position = $called_position;
83 if($oCacheHandler->isSupport())
85 $cache_key =
'triggers';
86 $oCacheHandler->delete($cache_key);
99 $args =
new stdClass();
100 $args->trigger_name = $trigger_name;
103 $args->called_method = $called_method;
104 $args->called_position = $called_position;
112 if($oCacheHandler->isSupport())
114 $cache_key =
'triggers';
115 $oCacheHandler->delete($cache_key);
128 $args =
new stdClass();
137 if($oCacheHandler->isSupport())
139 $cache_key =
'triggers';
140 $oCacheHandler->delete($cache_key);
153 if($kind !=
'admin') $kind =
'';
154 if(!in_array($type,array(
'model',
'controller',
'view',
'api',
'mobile')))
return false;
155 if(in_array($parent_module, array(
'module',
'addon',
'widget',
'layout')))
return false;
157 $cache_file =
'./files/config/module_extend.php';
160 $args =
new stdClass;
161 $args->parent_module = $parent_module;
162 $args->extend_module = $extend_module;
167 if(
$output->data->count>0)
return false;
179 $cache_file =
'./files/config/module_extend.php';
182 $args =
new stdClass;
183 $args->parent_module = $parent_module;
184 $args->extend_module = $extend_module;
195 $args =
new stdClass();
197 $args->site_srl = $site_srl;
202 if(!$origin_config) $origin_config =
new stdClass;
204 foreach($config as $key => $val)
206 $origin_config->{$key} = $val;
218 $args =
new stdClass();
219 $args->module = $module;
220 $args->config = serialize($config);
221 $args->site_srl = $site_srl;
230 if($oCacheHandler->isSupport())
232 $oCacheHandler->invalidateGroupKey(
'site_and_module');
243 $args =
new stdClass();
244 $args->module = $module;
246 $args->config = serialize($config);
255 if($oCacheHandler->isSupport())
257 $oCacheHandler->invalidateGroupKey(
'site_and_module');
275 $domain = strtolower($domain);
278 $args =
new stdClass;
280 $args->domain = (substr_compare($domain,
'/', -1) === 0) ? substr($domain, 0, -1) : $domain;
281 $args->index_module_srl = $index_module_srl;
284 $columnList = array(
'modules.site_srl');
302 $columnList = array(
'sites.site_srl',
'sites.domain');
305 if(!
$args->domain && $site_info->site_srl ==
$args->site_srl)
307 $args->domain = $site_info->domain;
310 if($site_info->domain !=
$args->domain)
313 if($info->site_srl && $info->site_srl !=
$args->site_srl)
return new BaseObject(-1,
'msg_already_registed_domain');
318 $args->domain = (strlen(
$args->domain) >= 1 && substr_compare(
$args->domain,
'/', -1) === 0) ? substr(
$args->domain, 0, -1) :
$args->domain;
323 if(
$args->site_srl == 0) $vid=
'';
324 else $vid=
$args->domain;
330 if($oCacheHandler->isSupport())
332 $oCacheHandler->invalidateGroupKey(
'site_and_module');
348 if(!preg_match(
"/^[a-z][a-z0-9_]+$/i",
$args->mid))
return new BaseObject(-1,
'msg_limit_mid');
382 if(isset(
$args->isMenuCreate))
384 $isMenuCreate =
$args->isMenuCreate;
388 $isMenuCreate = TRUE;
404 $skin_vars =
new stdClass();
405 $skin_vars->colorset = $skin_info->colorset[0]->name;
410 if(
$args->skin ==
'/USE_DEFAULT/')
412 $args->is_skin_fix =
'N';
416 if(isset(
$args->is_skin_fix))
418 $args->is_skin_fix = (
$args->is_skin_fix !=
'Y') ?
'N' :
'Y';
422 $args->is_skin_fix =
'Y';
426 if(
$args->mskin ==
'/USE_DEFAULT/')
428 $args->is_mskin_fix =
'N';
432 if(isset(
$args->is_mskin_fix))
434 $args->is_mskin_fix = (
$args->is_mskin_fix !=
'Y') ?
'N' :
'Y';
438 $args->is_mskin_fix =
'Y';
444 $args->browser_title = strip_tags(
$args->browser_title);
446 if($isMenuCreate === TRUE)
448 $menuArgs =
new stdClass;
449 $menuArgs->menu_srl =
$args->menu_srl;
453 if(!$menuOutput->data && !
$args->site_srl)
460 $menuArgs->menu_srl = $menuSrl;
462 $menuArgs->parent_srl = 0;
463 $menuArgs->open_window =
'N';
464 $menuArgs->url =
$args->mid;
465 $menuArgs->expand =
'N';
466 $menuArgs->is_shortcut =
'N';
467 $menuArgs->name =
$args->browser_title;
468 $menuArgs->listorder =
$args->menu_item_srl * -1;
470 $menuItemOutput =
executeQuery(
'menu.insertMenuItem', $menuArgs);
471 if(!$menuItemOutput->toBool())
474 return $menuItemOutput;
482 $args->menu_srl = $menuArgs->menu_srl;
496 if($oCacheHandler->isSupport())
498 $oCacheHandler->invalidateGroupKey(
'site_and_module');
510 if(isset(
$args->isMenuCreate))
512 $isMenuCreate =
$args->isMenuCreate;
516 $isMenuCreate = TRUE;
526 $columnList = array(
'module_srl',
'site_srl',
'browser_title',
'mid');
535 $args->browser_title = strip_tags(
$args->browser_title);
541 return new BaseObject(-1,
'msg_module_name_exists');
545 if(
$args->skin ==
'/USE_DEFAULT/')
547 $args->is_skin_fix =
'N';
551 if(isset(
$args->is_skin_fix))
553 $args->is_skin_fix = (
$args->is_skin_fix !=
'Y') ?
'N' :
'Y';
557 $args->is_skin_fix =
'Y';
561 if(
$args->mskin ==
'/USE_DEFAULT/')
563 $args->is_mskin_fix =
'N';
567 if(isset(
$args->is_mskin_fix))
569 $args->is_mskin_fix = (
$args->is_mskin_fix !=
'Y') ?
'N' :
'Y';
573 $args->is_mskin_fix =
'Y';
583 if($isMenuCreate === TRUE)
585 $menuArgs =
new stdClass;
589 if($menuOutput->data && count($menuOutput->data))
592 foreach($menuOutput->data as $itemInfo)
594 $itemInfo->url =
$args->mid;
597 if(!$updateMenuItemOutput->toBool())
600 return $updateMenuItemOutput;
621 if($oCacheHandler->isSupport())
623 $oCacheHandler->invalidateGroupKey(
'site_and_module');
636 $args =
new stdClass();
637 $args->update_id = $update_id;
640 if(!!
$output->error)
return false;
650 $args =
new stdClass;
652 $args->site_srl = $site_srl;
659 if($oCacheHandler->isSupport())
661 $oCacheHandler->invalidateGroupKey(
'site_and_module');
681 $args =
new stdClass();
683 $args->is_shortcut =
'N';
684 if(!$site_srl)
$args->site_srl = $site_module_info->site_srl;
685 else $args->site_srl = $site_srl;
690 $menuOutput = $oMenuAdminModel->getMenuList(
$args);
693 if(is_array($menuOutput->data))
695 foreach($menuOutput->data AS $key=>$value)
697 $args->menu_srl = $value->menu_srl;
707 $args =
new stdClass;
710 $args->is_force =
'N';
741 $columnList = array(
'sites.index_module_srl');
743 if(
$module_srl == $start_module->index_module_srl)
return new BaseObject(-1,
'msg_cannot_delete_startmodule');
746 $trigger_obj =
new stdClass();
755 $args =
new stdClass();
776 if(!$trigger_output->toBool())
779 return $trigger_output;
788 if($oCacheHandler->isSupport())
790 $oCacheHandler->invalidateGroupKey(
'site_and_module');
813 if($oCacheHandler->isSupport())
815 $oCacheHandler->invalidateGroupKey(
'site_and_module');
829 if($oCacheHandler->isSupport())
831 $oCacheHandler->invalidateGroupKey(
'site_and_module');
842 if(!count($menu_srl_list))
return;
844 $args =
new stdClass;
846 $args->menu_srls = implode(
',',$menu_srl_list);
850 if($oCacheHandler->isSupport())
852 $oCacheHandler->invalidateGroupKey(
'site_and_module');
864 $args =
new stdClass;
865 $args->site_srl = $site_srl;
871 if(!is_array($arr_admins) || !count($arr_admins))
return new BaseObject();
872 foreach($arr_admins as $key => $user_id)
874 if(!trim($user_id))
continue;
875 $admins[] = trim($user_id);
880 $member_config = $oMemberModel->getMemberConfig();
881 if($member_config->identifier ==
'email_address')
883 $args->email_address =
'\''.implode(
'\',\
'',$admins).
'\'';
887 $args->user_ids =
'\''.implode(
'\',\
'',$admins).
'\'';
892 foreach(
$output->data as $key => $val)
895 $args =
new stdClass;
896 $args->site_srl = $site_srl;
897 $args->member_srl = $val->member_srl;
910 $member_config = $oMemberModel->getMemberConfig();
912 if($member_config->identifier ==
'email_address')
913 $member_info = $oMemberModel->getMemberInfoByEmailAddress($admin_id);
915 $member_info = $oMemberModel->getMemberInfoByUserID($admin_id);
917 if(!$member_info->member_srl)
return;
918 $args =
new stdClass();
920 $args->member_srl = $member_info->member_srl;
929 $args =
new stdClass();
935 $member_info = $oMemberModel->getMemberInfoByUserID($admin_id);
936 if($member_info->member_srl)
$args->member_srl = $member_info->member_srl;
967 $mode = $mode ===
'P' ?
'P' :
'M';
982 $args =
new stdClass;
984 foreach(
$obj as $key => $val)
990 if (is_object($val))
continue;
991 if (is_array($val)) $val = serialize($val);
993 $args->name = trim($key);
994 $args->value = trim($val);
1023 return $this->_deleteModuleSkinVars(
$module_srl,
'P');
1032 return $this->_deleteModuleSkinVars(
$module_srl,
'M');
1040 $args =
new stdClass();
1042 $mode = $mode ===
'P' ?
'P' :
'M';
1046 $object_key =
'module_skin_vars:'.$module_srl;
1047 $query =
'module.deleteModuleSkinVars';
1051 $object_key =
'module_mobile_skin_vars:'.$module_srl;
1052 $query =
'module.deleteModuleMobileSkinVars';
1057 $cache_key = $oCacheHandler->getGroupKey(
'site_and_module', $object_key);
1058 if($oCacheHandler->isSupport())
1060 $oCacheHandler->delete($cache_key);
1075 foreach(
$obj as $key => $val)
1077 if(is_object($val) || is_array($val))
continue;
1079 $args =
new stdClass();
1081 $args->name = trim($key);
1082 $args->value = trim($val);
1088 if($oCacheHandler->isSupport())
1090 $object_key =
'module_extra_vars:'.$module_srl;
1091 $cache_key = $oCacheHandler->getGroupKey(
'site_and_module', $object_key);
1092 $oCacheHandler->delete($cache_key);
1101 $args =
new stdClass();
1107 if($oCacheHandler->isSupport())
1109 $object_key =
'module_extra_vars:'.$module_srl;
1110 $cache_key = $oCacheHandler->getGroupKey(
'site_and_module', $object_key);
1111 $oCacheHandler->delete($cache_key);
1125 foreach(
$obj as $name => $val)
1127 if(!$val || !count($val))
continue;
1129 foreach($val as $group_srl)
1131 $args =
new stdClass();
1133 $args->name = $name;
1134 $args->group_srl = trim($group_srl);
1135 if(!
$args->name || !
$args->group_srl)
continue;
1146 $args =
new stdClass();
1156 if($isReplaceLangCode)
1158 $output = preg_replace_callback(
'!\$user_lang->([a-z0-9\_]+)!is', array($this,
'_replaceLangCode'),
$output);
1164 static $lang =
false;
1167 if(
$lang ===
false && $oCacheHandler->isSupport())
1170 if(!$site_module_info)
1177 $object_key =
'user_defined_langs:' . $site_module_info->site_srl .
':' .
Context::getLangType();
1178 $cache_key = $oCacheHandler->getGroupKey(
'site_and_module', $object_key);
1179 $lang = $oCacheHandler->get($cache_key);
1181 if(
$lang ===
false) {
1183 $lang = $oModuleAdminController->makeCacheDefinedLangCode($site_module_info->site_srl);
1189 return str_replace(
'$user_lang->',
'',$matches[0]);
1207 if(is_array($attributeNames) && is_array($attributeValues) && count($attributeNames) == count($attributeValues))
1209 $attributes = array();
1210 foreach($attributeNames as $no => $name)
1216 $attributes[] = sprintf(
'%s:%s', $name, $attributeValues[$no]);
1218 $attributes = implode(
';', $attributes);
1221 $vars->comment = $attributes;
1222 $module_filebox_srl =
Context::get(
'module_filebox_srl');
1224 $ext = strtolower(substr(strrchr($vars->addfile[
'name'],
'.'),1));
1226 if($vars->filter) $filter = explode(
',',$vars->filter);
1227 else $filter = array(
'jpg',
'jpeg',
'gif',
'png');
1228 if(!in_array($ext,$filter))
return new BaseObject(-1,
'msg_error_occured');
1233 if($module_filebox_srl > 0)
1235 $vars->module_filebox_srl = $module_filebox_srl;
1236 $output = $this->updateModuleFileBox($vars);
1243 if(!is_uploaded_file($addfile[
'tmp_name']))
return new BaseObject(-1,
'msg_error_occured');
1244 if($vars->addfile[
'error'] != 0)
return new BaseObject(-1,
'msg_error_occured');
1245 $output = $this->insertModuleFileBox($vars);
1248 $this->setTemplatePath($this->module_path.
'tpl');
1253 $this->setRedirectUrl($returnUrl);
1258 if(
$output) $this->add(
'save_filename',
$output->get(
'save_filename'));
1259 else $this->add(
'save_filename',
'');
1268 $args =
new stdClass;
1270 if($vars->addfile[
'tmp_name'] && is_uploaded_file($vars->addfile[
'tmp_name']))
1276 $path =
$oModuleModel->getModuleFileBoxPath($vars->module_filebox_srl);
1279 $save_filename = sprintf(
'%s%s.%s',$path, $vars->module_filebox_srl, $ext);
1280 $tmp = $vars->addfile[
'tmp_name'];
1285 if(!@move_uploaded_file($tmp, $save_filename))
1290 $args->fileextension = strtolower(substr(strrchr($vars->addfile[
'name'],
'.'),1));
1291 $args->filename = $save_filename;
1292 $args->filesize = $vars->addfile[
'size'];
1295 $args->module_filebox_srl = $vars->module_filebox_srl;
1296 $args->comment = $vars->comment;
1300 return executeQuery(
'module.updateModuleFileBox', $vars);
1314 $path =
$oModuleModel->getModuleFileBoxPath($vars->module_filebox_srl);
1316 $save_filename = sprintf(
'%s%s.%s',$path, $vars->module_filebox_srl, $vars->ext);
1317 $tmp = $vars->addfile[
'tmp_name'];
1323 if(!@move_uploaded_file($tmp, $save_filename))
1329 $args =
new stdClass;
1330 $args->module_filebox_srl = $vars->module_filebox_srl;
1331 $args->member_srl = $vars->member_srl;
1332 $args->comment = $vars->comment;
1333 $args->filename = $save_filename;
1334 $args->fileextension = strtolower(substr(strrchr($vars->addfile[
'name'],
'.'),1));
1335 $args->filesize = $vars->addfile[
'size'];
1338 $output->add(
'save_filename', $save_filename);
1351 $module_filebox_srl =
Context::get(
'module_filebox_srl');
1352 if(!$module_filebox_srl)
return new BaseObject(-1,
'msg_invalid_request');
1353 $vars =
new stdClass();
1354 $vars->module_filebox_srl = $module_filebox_srl;
1355 $output = $this->deleteModuleFileBox($vars);
1366 $args =
new stdClass();
1367 $args->module_filebox_srl = $vars->module_filebox_srl;
1374 function lock($lock_name, $timeout, $member_srl = null)
1376 $this->unlockTimeoutPassed();
1377 $args =
new stdClass;
1378 $args->lock_name = $lock_name;
1379 if(!$timeout) $timeout = 60;
1380 $args->deadline = date(
"YmdHis", $_SERVER[
'REQUEST_TIME'] + $timeout);
1381 if($member_srl)
$args->member_srl = $member_srl;
1385 $output->add(
'lock_name', $lock_name);
1398 $args =
new stdClass;
1399 $args->lock_name = $lock_name;
1400 $args->deadline = $deadline;
1407 $args =
new stdClass;
1408 $args->site_srls = $site_srls;
1412 if($oCacheHandler->isSupport())
1414 $oCacheHandler->invalidateGroupKey(
'site_and_module');
updateModuleSkinVars($module_srl, $skin_vars)
Change other information of the module.
procModuleFileBoxAdd()
Add and update a file into the file box.
updateSite($args)
modify virtual site
changeValueInUrl($key, $requestKey, $dbKey, $urlName= 'success_return_url')
deleteModuleTriggers($module)
Delete module trigger.
_replaceLangCode($matches)
unlock($lock_name, $deadline)
setRequestMethod($type= '')
updateModuleConfig($module, $config, $site_srl=0)
if(file_exists(_XE_PATH_. 'config/config.user.inc.php')) if(!defined('__DEBUG__')) if(!defined('__DEBUG_OUTPUT__')) if(!defined('__DEBUG_PROTECT__')) if(!defined('__DEBUG_PROTECT_IP__')) if(!defined('__DEBUG_DB_OUTPUT__')) if(!defined('__LOG_SLOW_QUERY__')) if(!defined('__LOG_SLOW_TRIGGER__')) if(!defined('__LOG_SLOW_ADDON__')) if(!defined('__LOG_SLOW_WIDGET__')) if(!defined('__DEBUG_QUERY__')) if(!defined('__OB_GZHANDLER_ENABLE__')) if(!defined('__ENABLE_PHPUNIT_TEST__')) if(!defined('__PROXY_SERVER__')) if(!defined('__ERROR_LOG__')) if(!defined('__DISABLE_DEFAULT_CSS__')) if(!defined('__AUTO_OPCACHE_INVALIDATE__')) if((__DEBUG_OUTPUT__==2)&&version_compare(PHP_VERSION, '6.0.0')===-1) if(version_compare(PHP_VERSION, '5.3.0') >=0) $GLOBALS['__xe_autoload_file_map']
insertSiteAdmin($site_srl, $arr_admins)
Change the site administrator.
& getInstance($target= 'object', $info=null, $always_use_file=false)
$act
a string value to contain the action name
foreach($sitemap as $id=> &$val) $extra_vars
_insertModuleSkinVars($module_srl, $obj, $mode)
Insert skin vars to a module.
set($key, $val, $set_to_get_vars=0)
updateModuleSite($module_srl, $site_srl, $layout_srl=0)
Change the module's virtual site.
deleteActionForward($module, $type, $act)
Delete action forward.
insertActionForward($module, $type, $act)
Add action forward Action forward finds and forwards if an action is not in the requested module This...
insertSite($domain, $index_module_srl)
create virtual site
procModuleFileBoxDelete()
Delete a file from the file box.
insertModuleGrants($module_srl, $obj)
Grant permission to the module.
delObjectVars($target_obj, $del_obj)
arrangeModuleInfo(&$args, &$extra_vars)
Arrange module information.
replaceDefinedLangCode(&$output, $isReplaceLangCode=true)
Change user-defined language.
updateModule($args)
Modify module information.
insertTrigger($trigger_name, $module, $type, $called_method, $called_position)
Add module trigger module trigger is to call a trigger to a target module.
getAdminModel($module_name)
getInstance($db_type=NULL)
insertModuleFileBox($vars)
Add a file into the file box.
insertAdminId($module_srl, $admin_id)
Specify the admin ID to a module.
deleteModule($module_srl, $site_srl=0)
deleteModuleExtend($parent_module, $extend_module, $type, $kind='')
Delete module extend.
deleteModuleGrants($module_srl)
Remove permission from the module.
insertModuleSkinVars($module_srl, $obj)
insertUpdatedLog($update_id)
업데이트 기록 저장
insertModulePartConfig($module, $module_srl, $config)
Save module configurations of the mid Manage mid configurations depending on module.
deleteModuleFileBox($vars)
deleteModuleMobileSkinVars($module_srl)
insertModuleExtend($parent_module, $extend_module, $type, $kind='')
Add module extend.
_deleteModuleSkinVars($module_srl, $mode)
Remove skin vars of a module.
updateModuleMenu($args)
Update menu_srl of mid which belongs to menu_srl.
executeQueryArray($query_id, $args=NULL, $arg_columns=NULL)
clearDefaultModule()
Set is_default as N in all modules(the default module is disabled)
deleteTrigger($trigger_name, $module, $type, $called_method, $called_position)
Delete module trigger.
getAdminController($module_name)
updateModuleLayout($layout_srl, $menu_srl_list)
Update layout_srl of mid which belongs to menu_srl.
updateModuleInSites($site_srls, $args)
executeQuery($query_id, $args=NULL, $arg_columns=NULL)
insertModuleExtraVars($module_srl, $obj)
Register extra vars to the module.
controller class of the module module
$module
Class name of Xe Module that is identified by mid.
lock($lock_name, $timeout, $member_srl=null)
function of locking (timeout is in seconds)
deleteModuleSkinVars($module_srl)
deleteModuleExtraVars($module_srl)
Remove extra vars from the module.
triggerCall($trigger_name, $called_position, &$obj)
onlyDeleteModule($module_srl)
updateModuleFileBox($vars)
Update a file into the file box.
high class of the module module
deleteAdminId($module_srl, $admin_id= '')
Remove the admin ID from a module.
if(isset($_REQUEST['encode'])) if(isset($_REQUEST['decode'])) $lang
insertModule($args)
Insert module.
insertModuleConfig($module, $config, $site_srl=0)
Enter a specific set of modules In order to manage global configurations of modules such as board...
insertModuleMobileSkinVars($module_srl, $obj)