mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
issue 2119. supporting php 5.4. modules and widgets.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12706 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
ff75082eee
commit
8a7c28babc
90 changed files with 572 additions and 83 deletions
|
|
@ -1788,6 +1788,7 @@ class Context
|
|||
is_a($this, 'Context') ? $self = $this : $self = Context::getInstance();
|
||||
|
||||
$args_list = func_get_args();
|
||||
$output = new stdClass();
|
||||
foreach($args_list as $v)
|
||||
{
|
||||
$output->{$v} = $self->get($v);
|
||||
|
|
|
|||
|
|
@ -876,7 +876,7 @@ function delObjectVars($target_obj, $del_obj)
|
|||
return $target_obj;
|
||||
}
|
||||
|
||||
$return_obj = NULL;
|
||||
$return_obj = new stdClass();
|
||||
|
||||
$target_count = count($target);
|
||||
for($i = 0; $i < $target_count; $i++)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
require_once(_XE_PATH_.'modules/addon/addon.controller.php');
|
||||
|
||||
require_once(_XE_PATH_ . 'modules/addon/addon.controller.php');
|
||||
|
||||
/**
|
||||
* Admin controller class of addon modules
|
||||
|
|
@ -15,6 +16,7 @@ class addonAdminController extends addonController
|
|||
*/
|
||||
function init()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -30,19 +32,43 @@ class addonAdminController extends addonController
|
|||
|
||||
$site_module_info = Context::get('site_module_info');
|
||||
|
||||
if($site_module_info->site_srl) $site_srl = $site_module_info->site_srl;
|
||||
else $site_srl = 0;
|
||||
if($site_module_info->site_srl)
|
||||
{
|
||||
$site_srl = $site_module_info->site_srl;
|
||||
}
|
||||
else
|
||||
{
|
||||
$site_srl = 0;
|
||||
}
|
||||
|
||||
if(!$pcOnList) $pcOnList = array();
|
||||
if(!$mobileOnList) $mobileOnList = array();
|
||||
if(!$fixed) $fixed = array();
|
||||
if(!$pcOnList)
|
||||
{
|
||||
$pcOnList = array();
|
||||
}
|
||||
if(!$mobileOnList)
|
||||
{
|
||||
$mobileOnList = array();
|
||||
}
|
||||
if(!$fixed)
|
||||
{
|
||||
$fixed = array();
|
||||
}
|
||||
|
||||
if(!is_array($pcOnList)) $pcOnList = array($pcOnList);
|
||||
if(!is_array($mobileOnList)) $pcOnList = array($mobileOnList);
|
||||
if(!is_array($fixed)) $pcOnList = array($fixed);
|
||||
if(!is_array($pcOnList))
|
||||
{
|
||||
$pcOnList = array($pcOnList);
|
||||
}
|
||||
if(!is_array($mobileOnList))
|
||||
{
|
||||
$pcOnList = array($mobileOnList);
|
||||
}
|
||||
if(!is_array($fixed))
|
||||
{
|
||||
$pcOnList = array($fixed);
|
||||
}
|
||||
|
||||
// get current addon info
|
||||
$oModel = &getAdminModel('addon');
|
||||
$oModel = getAdminModel('addon');
|
||||
$currentAddonList = $oModel->getAddonList($site_srl, 'site');
|
||||
|
||||
// get need update addon list
|
||||
|
|
@ -71,28 +97,43 @@ class addonAdminController extends addonController
|
|||
// update
|
||||
foreach($updateList as $targetAddon)
|
||||
{
|
||||
unset($args);
|
||||
$args = new stdClass();
|
||||
|
||||
if(in_array($targetAddon, $pcOnList))
|
||||
{
|
||||
$args->is_used = 'Y';
|
||||
}
|
||||
else
|
||||
{
|
||||
$args->is_used = 'N';
|
||||
}
|
||||
|
||||
if(in_array($targetAddon, $mobileOnList))
|
||||
{
|
||||
$args->is_used_m = 'Y';
|
||||
}
|
||||
else
|
||||
{
|
||||
$args->is_used_m = 'N';
|
||||
}
|
||||
|
||||
if(in_array($targetAddon, $fixed))
|
||||
{
|
||||
$args->fixed = 'Y';
|
||||
}
|
||||
else
|
||||
{
|
||||
$args->fixed = 'N';
|
||||
}
|
||||
|
||||
$args->addon = $targetAddon;
|
||||
$args->site_srl = $site_srl;
|
||||
|
||||
$output = executeQuery('addon.updateSiteAddon', $args);
|
||||
if (!$output->toBool()) return $output;
|
||||
if(!$output->toBool())
|
||||
{
|
||||
return $output;
|
||||
}
|
||||
}
|
||||
|
||||
if(count($updateList))
|
||||
|
|
@ -119,19 +160,28 @@ class addonAdminController extends addonController
|
|||
*/
|
||||
function procAddonAdminToggleActivate()
|
||||
{
|
||||
$oAddonModel = &getAdminModel('addon');
|
||||
$oAddonModel = getAdminModel('addon');
|
||||
|
||||
$site_module_info = Context::get('site_module_info');
|
||||
// batahom addon values
|
||||
$addon = Context::get('addon');
|
||||
$type = Context::get('type');
|
||||
if(!$type) $type = "pc";
|
||||
if(!$type)
|
||||
{
|
||||
$type = "pc";
|
||||
}
|
||||
if($addon)
|
||||
{
|
||||
// If enabled Disables
|
||||
if($oAddonModel->isActivatedAddon($addon, $site_module_info->site_srl, $type)) $this->doDeactivate($addon, $site_module_info->site_srl, $type);
|
||||
if($oAddonModel->isActivatedAddon($addon, $site_module_info->site_srl, $type))
|
||||
{
|
||||
$this->doDeactivate($addon, $site_module_info->site_srl, $type);
|
||||
}
|
||||
// If it is disabled Activate
|
||||
else $this->doActivate($addon, $site_module_info->site_srl, $type);
|
||||
else
|
||||
{
|
||||
$this->doActivate($addon, $site_module_info->site_srl, $type);
|
||||
}
|
||||
}
|
||||
|
||||
$this->makeCacheFile($site_module_info->site_srl, $type);
|
||||
|
|
@ -156,7 +206,10 @@ class addonAdminController extends addonController
|
|||
$site_module_info = Context::get('site_module_info');
|
||||
|
||||
$output = $this->doSetup($addon_name, $args, $site_module_info->site_srl, 'site');
|
||||
if (!$output->toBool()) return $output;
|
||||
if(!$output->toBool())
|
||||
{
|
||||
return $output;
|
||||
}
|
||||
|
||||
$this->makeCacheFile($site_module_info->site_srl, "pc", 'site');
|
||||
$this->makeCacheFile($site_module_info->site_srl, "mobile", 'site');
|
||||
|
|
@ -177,7 +230,10 @@ class addonAdminController extends addonController
|
|||
{
|
||||
$args->addon = $addon;
|
||||
$args->is_used = $isUsed;
|
||||
if($gtype == 'global') return executeQuery('addon.insertAddon', $args);
|
||||
if($gtype == 'global')
|
||||
{
|
||||
return executeQuery('addon.insertAddon', $args);
|
||||
}
|
||||
$args->site_srl = $site_srl;
|
||||
return executeQuery('addon.insertSiteAddon', $args);
|
||||
}
|
||||
|
|
@ -193,10 +249,20 @@ class addonAdminController extends addonController
|
|||
*/
|
||||
function doActivate($addon, $site_srl = 0, $type = "pc", $gtype = 'site')
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->addon = $addon;
|
||||
if($type == "pc") $args->is_used = 'Y';
|
||||
else $args->is_used_m = "Y";
|
||||
if($gtype == 'global') return executeQuery('addon.updateAddon', $args);
|
||||
if($type == "pc")
|
||||
{
|
||||
$args->is_used = 'Y';
|
||||
}
|
||||
else
|
||||
{
|
||||
$args->is_used_m = "Y";
|
||||
}
|
||||
if($gtype == 'global')
|
||||
{
|
||||
return executeQuery('addon.updateAddon', $args);
|
||||
}
|
||||
$args->site_srl = $site_srl;
|
||||
return executeQuery('addon.updateSiteAddon', $args);
|
||||
}
|
||||
|
|
@ -211,13 +277,24 @@ class addonAdminController extends addonController
|
|||
*/
|
||||
function doDeactivate($addon, $site_srl = 0, $type = "pc", $gtype = 'site')
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->addon = $addon;
|
||||
if($type == "pc") $args->is_used = 'N';
|
||||
else $args->is_used_m = 'N';
|
||||
if($gtype == 'global') return executeQuery('addon.updateAddon', $args);
|
||||
if($type == "pc")
|
||||
{
|
||||
$args->is_used = 'N';
|
||||
}
|
||||
else
|
||||
{
|
||||
$args->is_used_m = 'N';
|
||||
}
|
||||
if($gtype == 'global')
|
||||
{
|
||||
return executeQuery('addon.updateAddon', $args);
|
||||
}
|
||||
$args->site_srl = $site_srl;
|
||||
return executeQuery('addon.updateSiteAddon', $args);
|
||||
}
|
||||
|
||||
}
|
||||
/* End of file addon.admin.controller.php */
|
||||
/* Location: ./modules/addon/addon.admin.controller.php */
|
||||
|
|
|
|||
|
|
@ -135,6 +135,7 @@ class addonAdminModel extends addon
|
|||
if(!$xml_obj) return;
|
||||
|
||||
// DB is set to bring history
|
||||
$db_args = new stdClass();
|
||||
$db_args->addon = $addon;
|
||||
if($gtype == 'global') $output = executeQuery('addon.getAddonInfo',$db_args);
|
||||
else
|
||||
|
|
@ -144,6 +145,7 @@ class addonAdminModel extends addon
|
|||
}
|
||||
$extra_vals = unserialize($output->data->extra_vars);
|
||||
|
||||
$addon_info = new stdClass();
|
||||
if($extra_vals->mid_list)
|
||||
{
|
||||
$addon_info->mid_list = $extra_vals->mid_list;
|
||||
|
|
@ -178,7 +180,7 @@ class addonAdminModel extends addon
|
|||
|
||||
foreach($author_list as $author)
|
||||
{
|
||||
unset($author_obj);
|
||||
$author_obj = new stdClass();
|
||||
$author_obj->name = $author->name->body;
|
||||
$author_obj->email_address = $author->attrs->email_address;
|
||||
$author_obj->homepage = $author->attrs->link;
|
||||
|
|
@ -199,7 +201,7 @@ class addonAdminModel extends addon
|
|||
|
||||
foreach($extra_vars as $key => $val)
|
||||
{
|
||||
unset($obj);
|
||||
$obj = new stdClass();
|
||||
if(!$val->attrs->type) { $val->attrs->type = 'text'; }
|
||||
|
||||
$obj->group = $group->title->body;
|
||||
|
|
@ -222,6 +224,7 @@ class addonAdminModel extends addon
|
|||
|
||||
for($i = 0, $c = count($val->options); $i < $c; $i++)
|
||||
{
|
||||
$obj->options[$i] = new stdClass();
|
||||
$obj->options[$i]->title = $val->options[$i]->title->body;
|
||||
$obj->options[$i]->value = $val->options[$i]->attrs->value;
|
||||
}
|
||||
|
|
@ -247,7 +250,7 @@ class addonAdminModel extends addon
|
|||
|
||||
foreach($obj->author_list as $author)
|
||||
{
|
||||
unset($author_obj);
|
||||
$author_obj = new stdClass();
|
||||
$author_obj->name = $author->name->body;
|
||||
$author_obj->email_address = $author->attrs->email_address;
|
||||
$author_obj->homepage = $author->attrs->link;
|
||||
|
|
@ -268,7 +271,7 @@ class addonAdminModel extends addon
|
|||
|
||||
foreach($obj->log as $log)
|
||||
{
|
||||
unset($log_obj);
|
||||
$log_obj = new stdClass();
|
||||
$log_obj->text = $log->body;
|
||||
$log_obj->link = $log->attrs->link;
|
||||
$obj->logs[] = $log_obj;
|
||||
|
|
@ -346,6 +349,7 @@ class addonAdminModel extends addon
|
|||
*/
|
||||
function getInsertedAddons($site_srl = 0, $gtype = 'site')
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->list_order = 'addon';
|
||||
if($gtype == 'global') $output = executeQuery('addon.getAddons', $args);
|
||||
else
|
||||
|
|
|
|||
|
|
@ -169,6 +169,7 @@ class adminAdminController extends admin
|
|||
|
||||
foreach($vars->module_skin as $moduleName => $skinName)
|
||||
{
|
||||
$designInfo->module->{$moduleName} = new stdClass();
|
||||
$designInfo->module->{$moduleName}->{$skinTarget} = $skinName;
|
||||
}
|
||||
|
||||
|
|
@ -373,6 +374,7 @@ class adminAdminController extends admin
|
|||
*/
|
||||
function _insertFavorite($siteSrl, $module, $type = 'module')
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->adminFavoriteSrl = getNextSequence();
|
||||
$args->site_srl = $siteSrl;
|
||||
$args->module = $module;
|
||||
|
|
@ -387,6 +389,7 @@ class adminAdminController extends admin
|
|||
*/
|
||||
function _deleteFavorite($favoriteSrl)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->admin_favorite_srl = $favoriteSrl;
|
||||
$output = executeQuery('admin.deleteFavorite', $args);
|
||||
return $output;
|
||||
|
|
|
|||
|
|
@ -399,6 +399,7 @@ class adminAdminModel extends admin
|
|||
$xml_obj = $_xml_obj->theme;
|
||||
|
||||
// 스킨이름
|
||||
$theme_info = new stdClass();
|
||||
$theme_info->name = $theme_name;
|
||||
$theme_info->title = $xml_obj->title->body;
|
||||
$thumbnail = './themes/'.$theme_name.'/thumbnail.png';
|
||||
|
|
@ -414,7 +415,7 @@ class adminAdminModel extends admin
|
|||
|
||||
foreach($publisher_list as $publisher)
|
||||
{
|
||||
unset($publisher_obj);
|
||||
$publisher_obj = new stdClass();
|
||||
$publisher_obj->name = $publisher->name->body;
|
||||
$publisher_obj->email_address = $publisher->attrs->email_address;
|
||||
$publisher_obj->homepage = $publisher->attrs->link;
|
||||
|
|
@ -424,6 +425,7 @@ class adminAdminModel extends admin
|
|||
$layout = $xml_obj->layout;
|
||||
$layout_path = $layout->directory->attrs->path;
|
||||
$layout_parse = explode('/',$layout_path);
|
||||
$layout_info = new stdClass();
|
||||
switch($layout_parse[1])
|
||||
{
|
||||
case 'themes' :
|
||||
|
|
@ -462,6 +464,7 @@ class adminAdminModel extends admin
|
|||
if ($is_new_layout)
|
||||
{
|
||||
$site_module_info = Context::get('site_module_info');
|
||||
$args = new stdClass();
|
||||
$args->site_srl = (int)$site_module_info->site_srl;
|
||||
$args->layout_srl = getNextSequence();
|
||||
$args->layout = $layout_info->name;
|
||||
|
|
@ -483,7 +486,7 @@ class adminAdminModel extends admin
|
|||
$skins = array();
|
||||
foreach($skin_list as $val)
|
||||
{
|
||||
unset($skin_info);
|
||||
$skin_info = new stdClass();
|
||||
unset($skin_parse);
|
||||
$skin_parse = explode('/',$val->directory->attrs->path);
|
||||
switch($skin_parse[1])
|
||||
|
|
@ -605,6 +608,7 @@ class adminAdminModel extends admin
|
|||
*/
|
||||
function getFavoriteList($siteSrl = 0, $isGetModuleInfo = false)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->site_srl = $siteSrl;
|
||||
$output = executeQueryArray('admin.getFavoriteList', $args);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
|
@ -634,6 +638,7 @@ class adminAdminModel extends admin
|
|||
*/
|
||||
function isExistsFavorite($siteSrl, $module)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->site_srl = $siteSrl;
|
||||
$args->module = $module;
|
||||
$output = executeQuery('admin.getFavorite', $args);
|
||||
|
|
|
|||
|
|
@ -174,6 +174,7 @@ class adminAdminView extends admin
|
|||
|
||||
// Admin logo, title setup
|
||||
$objConfig = $oModuleModel->getModuleConfig('admin');
|
||||
$gnbTitleInfo = new stdClass();
|
||||
$gnbTitleInfo->adminTitle = $objConfig->adminTitle ? $objConfig->adminTitle:'XE Admin';
|
||||
$gnbTitleInfo->adminLogo = $objConfig->adminLogo ? $objConfig->adminLogo:'modules/admin/tpl/img/xe.h1.png';
|
||||
|
||||
|
|
@ -208,7 +209,7 @@ class adminAdminView extends admin
|
|||
|
||||
foreach($item as $key => $val)
|
||||
{
|
||||
$obj = null;
|
||||
$obj = new stdClass();
|
||||
$obj->title = $val->body;
|
||||
$obj->date = $val->attrs->date;
|
||||
$obj->url = $val->attrs->url;
|
||||
|
|
@ -238,17 +239,21 @@ class adminAdminView extends admin
|
|||
function dispAdminIndex()
|
||||
{
|
||||
// Get statistics
|
||||
$args = new stdClass();
|
||||
$args->date = date("Ymd000000", time()-60*60*24);
|
||||
$today = date("Ymd");
|
||||
|
||||
// Member Status
|
||||
$oMemberAdminModel = &getAdminModel('member');
|
||||
$status = new stdClass();
|
||||
$status->member = new stdClass();
|
||||
$status->member->todayCount = $oMemberAdminModel->getMemberCountByDate($today);
|
||||
$status->member->totalCount = $oMemberAdminModel->getMemberCountByDate();
|
||||
|
||||
// Document Status
|
||||
$oDocumentAdminModel = &getAdminModel('document');
|
||||
$statusList = array('PUBLIC', 'SECRET');
|
||||
$status->document = new stdClass();
|
||||
$status->document->todayCount = $oDocumentAdminModel->getDocumentCountByDate($today, array(), $statusList);
|
||||
$status->document->totalCount = $oDocumentAdminModel->getDocumentCountByDate('', array(), $statusList);
|
||||
|
||||
|
|
@ -267,6 +272,7 @@ class adminAdminView extends admin
|
|||
// Latest Comment
|
||||
$oCommentModel = &getModel('comment');
|
||||
$columnList = array('comment_srl', 'module_srl', 'document_srl', 'content', 'nick_name', 'member_srl');
|
||||
$args = new stdClass();
|
||||
$args->list_count = 5;
|
||||
$output = $oCommentModel->getNewestCommentList($args, $columnList);
|
||||
if(is_array($output))
|
||||
|
|
|
|||
|
|
@ -99,6 +99,7 @@ class admin extends ModuleObject
|
|||
|
||||
$this->_oldAdminmenuDelete();
|
||||
|
||||
$returnObj = new stdClass();
|
||||
$returnObj->menu_srl = $output->menu_srl;
|
||||
$returnObj->php_file = FileHandler::getRealPath($output->php_file);
|
||||
|
||||
|
|
@ -113,6 +114,7 @@ class admin extends ModuleObject
|
|||
public function createXeAdminMenu()
|
||||
{
|
||||
//insert menu
|
||||
$args = new stdClass();
|
||||
$args->title = $this->adminMenuName;
|
||||
$args->menu_srl = getNextSequence();
|
||||
$args->listorder = $args->menu_srl * -1;
|
||||
|
|
@ -126,6 +128,7 @@ class admin extends ModuleObject
|
|||
foreach($gnbList AS $key=>$value)
|
||||
{
|
||||
//insert menu item
|
||||
$args = new stdClass();
|
||||
$args->menu_srl = $menuSrl;
|
||||
$args->menu_item_srl = getNextSequence();
|
||||
$args->name = '{$lang->menu_gnb[\''.$value.'\']}';
|
||||
|
|
@ -248,6 +251,7 @@ class admin extends ModuleObject
|
|||
|
||||
// gnb sub item create
|
||||
// common argument setting
|
||||
$args = new stdClass();
|
||||
$args->menu_srl = $menuSrl;
|
||||
$args->open_window = 'N';
|
||||
$args->expand = 'N';
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ class autoinstallAdminController extends autoinstall
|
|||
$version = $xmlDoc->{$type}->version->body;
|
||||
}
|
||||
|
||||
$args = null;
|
||||
$args = new stdClass();
|
||||
$args->package_srl = $package->package_srl;
|
||||
$args->version = $package->version;
|
||||
$args->current_version = $version;
|
||||
|
|
@ -269,7 +269,7 @@ class autoinstallAdminController extends autoinstall
|
|||
$list_order = 0;
|
||||
foreach($xmlDoc->response->categorylist->item as $item)
|
||||
{
|
||||
$args = null;
|
||||
$args = new stdClass();
|
||||
$args->category_srl = $item->category_srl->body;
|
||||
$args->parent_srl = $item->parent_srl->body;
|
||||
$args->title = $item->title->body;
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ class autoinstallAdminView extends autoinstall
|
|||
*/
|
||||
function rearrange(&$item, &$targets)
|
||||
{
|
||||
$ret = null;
|
||||
$ret = new stdClass();
|
||||
foreach($targets as $target)
|
||||
{
|
||||
$ret->{$target} = $item->{$target}->body;
|
||||
|
|
@ -308,6 +308,7 @@ class autoinstallAdminView extends autoinstall
|
|||
if($xmlDoc)
|
||||
{
|
||||
$xmlPackage =& $xmlDoc->response->package;
|
||||
$package = new stdClass();
|
||||
$package->package_srl = $xmlPackage->package_srl->body;
|
||||
$package->title = $xmlPackage->title->body;
|
||||
$package->package_description = $xmlPackage->package_description->body;
|
||||
|
|
@ -319,7 +320,7 @@ class autoinstallAdminView extends autoinstall
|
|||
$package->depends = array();
|
||||
foreach($xmlPackage->depends->item as $item)
|
||||
{
|
||||
$dep_item = null;
|
||||
$dep_item = new stdClass();
|
||||
$dep_item->package_srl = $item->package_srl->body;
|
||||
$dep_item->title = $item->title->body;
|
||||
$dep_item->version = $item->version->body;
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@ class autoinstallModel extends autoinstall
|
|||
*/
|
||||
function getInstalledPackage($package_srl)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->package_srl = $package_srl;
|
||||
$output = executeQueryArray("autoinstall.getInstalledPackage", $args);
|
||||
if(!$output->data) return null;
|
||||
|
|
@ -53,6 +54,7 @@ class autoinstallModel extends autoinstall
|
|||
*/
|
||||
function getPackage($package_srl)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->package_srl = $package_srl;
|
||||
$output = executeQueryArray("autoinstall.getPackage", $args);
|
||||
if(!$output->data) return null;
|
||||
|
|
@ -104,6 +106,7 @@ class autoinstallModel extends autoinstall
|
|||
*/
|
||||
function getPackageCount($category_srl)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->category_srl = $category_srl;
|
||||
$output = executeQuery("autoinstall.getPackageCount", $args);
|
||||
if(!$output->data) return 0;
|
||||
|
|
@ -168,6 +171,7 @@ class autoinstallModel extends autoinstall
|
|||
*/
|
||||
function getInstalledPackages($package_list)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->package_list = $package_list;
|
||||
$output = executeQueryArray("autoinstall.getInstalledPackages", $args);
|
||||
$result = array();
|
||||
|
|
@ -187,6 +191,7 @@ class autoinstallModel extends autoinstall
|
|||
*/
|
||||
function getInstalledPackageList($page)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->page = $page;
|
||||
$args->list_count = 10;
|
||||
$args->page_count = 5;
|
||||
|
|
@ -287,6 +292,7 @@ class autoinstallModel extends autoinstall
|
|||
|
||||
if(!$GLOBLAS['XE_AUTOINSTALL_PACKAGE_SRL_BY_PATH'][$path])
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->path = $path;
|
||||
$output = executeQuery('autoinstall.getPackageSrlByPath', $args);
|
||||
|
||||
|
|
|
|||
|
|
@ -321,6 +321,7 @@ class commentAdminController extends comment
|
|||
*/
|
||||
function deleteModuleComments($module_srl)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->module_srl = $module_srl;
|
||||
$output = executeQuery('comment.deleteModuleComments', $args);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
|
@ -346,6 +347,7 @@ class commentAdminController extends comment
|
|||
{
|
||||
if(is_array($originObject)) $originObject = (object)$originObject;
|
||||
|
||||
$obj = new stdClass();
|
||||
$obj->document_srl = $originObject->document_srl;
|
||||
$obj->comment_srl = $originObject->comment_srl;
|
||||
$obj->parent_srl = $originObject->parent_srl;
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ class commentAdminView extends comment
|
|||
function dispCommentAdminList()
|
||||
{
|
||||
// option to get a list
|
||||
$args = new stdClass();
|
||||
$args->page = Context::get('page'); // /< Page
|
||||
$args->list_count = 30; // / the number of postings to appear on a single page
|
||||
$args->page_count = 5; // / the number of pages to appear on the page navigation
|
||||
|
|
@ -74,6 +75,7 @@ class commentAdminView extends comment
|
|||
function dispCommentAdminDeclared()
|
||||
{
|
||||
// option to get a blacklist
|
||||
$args = new stdClass();
|
||||
$args->page = Context::get('page'); // /< Page
|
||||
$args->list_count = 30; // /< the number of comment postings to appear on a single page
|
||||
$args->page_count = 10; // /< the number of pages to appear on the page navigation
|
||||
|
|
|
|||
|
|
@ -238,6 +238,7 @@ class commentController extends comment
|
|||
$oDB = &DB::getInstance();
|
||||
$oDB->begin();
|
||||
// Enter a list of comments first
|
||||
$list_args = new stdClass();
|
||||
$list_args->comment_srl = $obj->comment_srl;
|
||||
$list_args->document_srl = $obj->document_srl;
|
||||
$list_args->module_srl = $obj->module_srl;
|
||||
|
|
@ -252,6 +253,7 @@ class commentController extends comment
|
|||
else
|
||||
{
|
||||
// get information of the parent comment posting
|
||||
$parent_args = new stdClass();
|
||||
$parent_args->comment_srl = $obj->parent_srl;
|
||||
$parent_output = executeQuery('comment.getCommentListItem', $parent_args);
|
||||
// return if no parent comment exists
|
||||
|
|
@ -640,6 +642,7 @@ class commentController extends comment
|
|||
$oDB = &DB::getInstance();
|
||||
$oDB->begin();
|
||||
// Delete
|
||||
$args =new stdClass();
|
||||
$args->comment_srl = $comment_srl;
|
||||
$output = executeQuery('comment.deleteComment', $args);
|
||||
if(!$output->toBool())
|
||||
|
|
@ -727,6 +730,7 @@ class commentController extends comment
|
|||
}
|
||||
if(!$oDocument->isExists() || !$oDocument->isGranted()) return new Object(-1, 'msg_not_permitted');
|
||||
// get a list of comments and then execute a trigger(way to reduce the processing cost for delete all)
|
||||
$args = new stdClass();
|
||||
$args->document_srl = $document_srl;
|
||||
$comments = executeQueryArray('comment.getAllComments',$args);
|
||||
if($comments->data)
|
||||
|
|
@ -903,6 +907,7 @@ class commentController extends comment
|
|||
// Fail if session information already has a reported document
|
||||
if($_SESSION['declared_comment'][$comment_srl]) return new Object(-1, 'failed_declared');
|
||||
// check if already reported
|
||||
$args = new stdClass();
|
||||
$args->comment_srl = $comment_srl;
|
||||
$output = executeQuery('comment.getDeclaredComment', $args);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
|
@ -970,6 +975,7 @@ class commentController extends comment
|
|||
$comment_popup_menu_list = Context::get('comment_popup_menu_list');
|
||||
if(!is_array($comment_popup_menu_list)) $comment_popup_menu_list = array();
|
||||
|
||||
$obj = new stdClass();
|
||||
$obj->url = $url;
|
||||
$obj->str = $str;
|
||||
$obj->icon = $icon;
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ class commentItem extends Object
|
|||
{
|
||||
if(!$this->comment_srl) return;
|
||||
|
||||
$args =new stdClass();
|
||||
$args->comment_srl = $this->comment_srl;
|
||||
$output = executeQuery('comment.getComment', $args, $this->columnList);
|
||||
|
||||
|
|
|
|||
|
|
@ -123,6 +123,7 @@ class commentModel extends comment
|
|||
*/
|
||||
function getChildComments($comment_srl)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->comment_srl = $comment_srl;
|
||||
$output = executeQueryArray('comment.getChildComments', $args);
|
||||
return $output->data;
|
||||
|
|
@ -153,6 +154,7 @@ class commentModel extends comment
|
|||
{
|
||||
if(is_array($comment_srl_list)) $comment_srls = implode(',',$comment_srl_list);
|
||||
// fetch from a database
|
||||
$args = new stdClass();
|
||||
$args->comment_srls = $comment_srls;
|
||||
$output = executeQuery('comment.getComments', $args, $columnList);
|
||||
if(!$output->toBool()) return;
|
||||
|
|
@ -181,6 +183,7 @@ class commentModel extends comment
|
|||
*/
|
||||
function getCommentCount($document_srl)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->document_srl = $document_srl;
|
||||
|
||||
// get the number of comments on the document module
|
||||
|
|
@ -229,6 +232,7 @@ class commentModel extends comment
|
|||
*/
|
||||
function getCommentAllCount($module_srl,$published=null)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->module_srl = $module_srl;
|
||||
|
||||
if(is_null($published))
|
||||
|
|
@ -288,6 +292,7 @@ class commentModel extends comment
|
|||
*/
|
||||
function getNewestCommentList($obj, $columnList = array())
|
||||
{
|
||||
$args = new stdClass();
|
||||
if($obj->mid)
|
||||
{
|
||||
$oModuleModel = &getModel('module');
|
||||
|
|
@ -390,6 +395,7 @@ class commentModel extends comment
|
|||
// get a very last page if no page exists
|
||||
if(!$page) $page = (int)( ($oDocument->getCommentCount()-1) / $comment_count) + 1;
|
||||
// get a list of comments
|
||||
$args = new stdClass();
|
||||
$args->document_srl = $document_srl;
|
||||
$args->list_count = $comment_count;
|
||||
$args->page = $page;
|
||||
|
|
@ -532,6 +538,7 @@ class commentModel extends comment
|
|||
{
|
||||
$query_id = 'comment.getTotalCommentList';
|
||||
// Variables
|
||||
$args = new stdClass();
|
||||
$args->sort_index = 'list_order';
|
||||
$args->page = $obj->page?$obj->page:1;
|
||||
$args->list_count = $obj->list_count?$obj->list_count:20;
|
||||
|
|
@ -701,6 +708,10 @@ class commentModel extends comment
|
|||
{
|
||||
$oModuleModel = &getModel('module');
|
||||
$comment_config = $oModuleModel->getModulePartConfig('comment', $module_srl);
|
||||
if(!$comment_config)
|
||||
{
|
||||
$comment_config = new stdClass();
|
||||
}
|
||||
if(!isset($comment_config->comment_count)) $comment_config->comment_count = 50;
|
||||
return $comment_config;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -122,6 +122,7 @@ class communicationController extends communication
|
|||
$content = removeHackTag($content);
|
||||
$title = htmlspecialchars($title);
|
||||
// messages to save in the sendor's message box
|
||||
$sender_args = new stdClass();
|
||||
$sender_args->sender_srl = $sender_srl;
|
||||
$sender_args->receiver_srl = $receiver_srl;
|
||||
$sender_args->message_type = 'S';
|
||||
|
|
@ -133,6 +134,7 @@ class communicationController extends communication
|
|||
$sender_args->message_srl = getNextSequence();
|
||||
$sender_args->list_order = getNextSequence()*-1;
|
||||
// messages to save in the receiver's message box
|
||||
$receiver_args = new stdClass();
|
||||
$receiver_args->message_srl = $sender_args->related_srl;
|
||||
$receiver_args->related_srl = 0;
|
||||
$receiver_args->list_order = $sender_args->related_srl*-1;
|
||||
|
|
|
|||
|
|
@ -23,6 +23,11 @@ class communicationModel extends communication
|
|||
$oModuleModel = &getModel('module');
|
||||
$communication_config = $oModuleModel->getModuleConfig('communication');
|
||||
|
||||
if(!$communication_config)
|
||||
{
|
||||
$communication_config = new stdClass();
|
||||
}
|
||||
|
||||
if(!$communication_config->skin) $communication_config->skin = 'default';
|
||||
if(!$communication_config->colorset) $communication_config->colorset = 'white';
|
||||
if(!$communication_config->editor_skin) $communication_config->editor_skin = 'default';
|
||||
|
|
@ -98,6 +103,7 @@ class communicationModel extends communication
|
|||
function getMessages($message_type = "R", $columnList = array())
|
||||
{
|
||||
$logged_info = Context::get('logged_info');
|
||||
$args = new stdClass();
|
||||
|
||||
switch($message_type)
|
||||
{
|
||||
|
|
@ -135,6 +141,7 @@ class communicationModel extends communication
|
|||
{
|
||||
$logged_info = Context::get('logged_info');
|
||||
|
||||
$args =new stdClass();
|
||||
$args->friend_group_srl = $friend_group_srl;
|
||||
$args->member_srl = $logged_info->member_srl;
|
||||
// Other variables
|
||||
|
|
@ -184,6 +191,7 @@ class communicationModel extends communication
|
|||
function getFriendGroups()
|
||||
{
|
||||
$logged_info = Context::get('logged_info');
|
||||
$args =new stdClass();
|
||||
$args->member_srl = $logged_info->member_srl;
|
||||
|
||||
$output = executeQueryArray('communication.getFriendGroups', $args);
|
||||
|
|
|
|||
|
|
@ -93,6 +93,7 @@ class counterModel extends counter
|
|||
if(is_array($selected_date))
|
||||
{
|
||||
$date_count = count($selected_date);
|
||||
$args = new stdClass();
|
||||
$args->regdate = implode(',',$selected_date);
|
||||
// If a single date log is selected
|
||||
}
|
||||
|
|
@ -154,7 +155,7 @@ class counterModel extends counter
|
|||
if(!$start_year) $start_year = date("Y");
|
||||
for($i=$start_year;$i<=date("Y");$i++)
|
||||
{
|
||||
unset($args);
|
||||
$args = new stdClass();
|
||||
$args->start_date = sprintf('%04d0000', $i);
|
||||
$args->end_date = sprintf('%04d1231', $i);
|
||||
if($site_srl)
|
||||
|
|
@ -197,7 +198,7 @@ class counterModel extends counter
|
|||
asort($thisWeek);
|
||||
foreach($thisWeek as $day)
|
||||
{
|
||||
unset($args);
|
||||
$args = new stdClass();
|
||||
$args->start_date = $day;
|
||||
$args->end_date = $day;
|
||||
if($site_srl)
|
||||
|
|
@ -227,7 +228,7 @@ class counterModel extends counter
|
|||
$year = substr($selected_date, 0, 4);
|
||||
for($i=1;$i<=12;$i++)
|
||||
{
|
||||
unset($args);
|
||||
$args = new stdClass();
|
||||
$args->start_date = sprintf('%04d%02d00', $year, $i);
|
||||
$args->end_date = sprintf('%04d%02d31', $year, $i);
|
||||
if($site_srl)
|
||||
|
|
@ -256,7 +257,7 @@ class counterModel extends counter
|
|||
case 'hour' :
|
||||
for($i=0;$i<24;$i++)
|
||||
{
|
||||
unset($args);
|
||||
$args = new stdClass();
|
||||
$args->start_date = sprintf('%08d%02d0000', $selected_date, $i);
|
||||
$args->end_date = sprintf('%08d%02d5959', $selected_date, $i);
|
||||
if($site_srl)
|
||||
|
|
@ -281,7 +282,7 @@ class counterModel extends counter
|
|||
$end_day = date('t', mktime(0,0,0,$month,1,$year));
|
||||
for($i=1;$i<=$end_day;$i++)
|
||||
{
|
||||
unset($args);
|
||||
$args = new stdClass();
|
||||
$args->start_date = sprintf('%04d%02d%02d', $year, $month, $i);
|
||||
$args->end_date = sprintf('%04d%02d%02d', $year, $month, $i);
|
||||
if($site_srl)
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@ class documentAdminController extends document
|
|||
$oDB = &DB::getInstance();
|
||||
$oDB->begin();
|
||||
|
||||
$triggerObj = new stdClass();
|
||||
$triggerObj->document_srls = implode(',',$document_srl_list);
|
||||
$triggerObj->module_srl = $module_srl;
|
||||
$triggerObj->category_srl = $category_srl;
|
||||
|
|
@ -138,6 +139,7 @@ class documentAdminController extends document
|
|||
}
|
||||
}
|
||||
|
||||
$args = new stdClass();
|
||||
$args->document_srls = implode(',',$document_srl_list);
|
||||
$args->module_srl = $module_srl;
|
||||
// move the comment
|
||||
|
|
@ -212,6 +214,7 @@ class documentAdminController extends document
|
|||
$oDB = &DB::getInstance();
|
||||
$oDB->begin();
|
||||
|
||||
$triggerObj = new stdClass();
|
||||
$triggerObj->document_srls = implode(',',$document_srl_list);
|
||||
$triggerObj->module_srl = $module_srl;
|
||||
$triggerObj->category_srl = $category_srl;
|
||||
|
|
@ -418,6 +421,7 @@ class documentAdminController extends document
|
|||
*/
|
||||
function deleteModuleDocument($module_srl)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->module_srl = $module_srl;
|
||||
$oDocumentModel = &getModel('document');
|
||||
$args->module_srl = $module_srl;
|
||||
|
|
@ -537,6 +541,7 @@ class documentAdminController extends document
|
|||
// set the max value if idx is not specified
|
||||
if(!$var_idx)
|
||||
{
|
||||
$obj = new stdClass();
|
||||
$obj->module_srl = $module_srl;
|
||||
$output = executeQuery('document.getDocumentMaxExtraKeyIdx', $obj);
|
||||
$var_idx = $output->data->var_idx+1;
|
||||
|
|
@ -604,6 +609,7 @@ class documentAdminController extends document
|
|||
else $new_idx = $var_idx+1;
|
||||
if($new_idx<1) return new Object(-1,'msg_invalid_request');
|
||||
|
||||
$args = new stdClass();
|
||||
$args->module_srl = $module_srl;
|
||||
$args->var_idx = $new_idx;
|
||||
$output = executeQuery('document.getDocumentExtraKeys', $args);
|
||||
|
|
@ -614,6 +620,7 @@ class documentAdminController extends document
|
|||
// update immediately if there is no idx to change
|
||||
if(!$extra_keys[$new_idx])
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->module_srl = $module_srl;
|
||||
$args->var_idx = $var_idx;
|
||||
$args->new_idx = $new_idx;
|
||||
|
|
@ -625,6 +632,7 @@ class documentAdminController extends document
|
|||
}
|
||||
else
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->module_srl = $module_srl;
|
||||
$args->var_idx = $new_idx;
|
||||
$args->new_idx = -10000;
|
||||
|
|
|
|||
|
|
@ -97,6 +97,7 @@ class documentAdminModel extends document
|
|||
*/
|
||||
function getDocumentCountByDate($date = '', $moduleSrlList = array(), $statusList = array())
|
||||
{
|
||||
$args = new stdClass();
|
||||
if($date) $args->regDate = date('Ymd', strtotime($date));
|
||||
if(count($moduleSrlList)>0) $args->moduleSrlList = $moduleSrlList;
|
||||
if(count($statusList)>0) $args->statusList = $statusList;
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@ class documentAdminView extends document
|
|||
function dispDocumentAdminList()
|
||||
{
|
||||
// option to get a list
|
||||
$args = new stdClass();
|
||||
$args->page = Context::get('page'); // /< Page
|
||||
$args->list_count = 30; // /< the number of posts to display on a single page
|
||||
$args->page_count = 5; // /< the number of pages that appear in the page navigation
|
||||
|
|
@ -100,6 +101,7 @@ class documentAdminView extends document
|
|||
function dispDocumentAdminDeclared()
|
||||
{
|
||||
// option for a list
|
||||
$args =new stdClass();
|
||||
$args->page = Context::get('page'); // /< Page
|
||||
$args->list_count = 30; // /< the number of posts to display on a single page
|
||||
$args->page_count = 10; // /< the number of pages that appear in the page navigation
|
||||
|
|
|
|||
|
|
@ -104,6 +104,7 @@ class documentController extends document
|
|||
*/
|
||||
function deleteDocumentAliasByModule($module_srl)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->module_srl = $module_srl;
|
||||
executeQuery("document.deleteAlias", $args);
|
||||
}
|
||||
|
|
@ -115,6 +116,7 @@ class documentController extends document
|
|||
*/
|
||||
function deleteDocumentAliasByDocument($document_srl)
|
||||
{
|
||||
$args =new stdClass();
|
||||
$args->document_srl = $document_srl;
|
||||
executeQuery("document.deleteAlias", $args);
|
||||
}
|
||||
|
|
@ -128,6 +130,7 @@ class documentController extends document
|
|||
*/
|
||||
function deleteDocumentHistory($history_srl, $document_srl, $module_srl)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->history_srl = $history_srl;
|
||||
$args->module_srl = $module_srl;
|
||||
$args->document_srl = $document_srl;
|
||||
|
|
@ -199,7 +202,7 @@ class documentController extends document
|
|||
if($obj->allow_trackback!='Y') $obj->allow_trackback = 'N';
|
||||
if($obj->homepage && !preg_match('/^[a-z]+:\/\//i',$obj->homepage)) $obj->homepage = 'http://'.$obj->homepage;
|
||||
if($obj->notify_message != 'Y') $obj->notify_message = 'N';
|
||||
if(!$isRestore) $obj->ipaddress = $_SERVER['REMOTE_ADDR']; //board?<3F>서 form key값으ë¡?ipaddressë¥??¬ìš©?˜ë©´ ?„한 ipê°€ ?±ë¡<C3AB>?? ?„í„°?€???<3F>ê??†ìŠ´
|
||||
if(!$isRestore) $obj->ipaddress = $_SERVER['REMOTE_ADDR']; //board?<3F>서 form key값으<EAB092>?ipaddress<73>??<3F>용?<3F>면 ?<3F>한 ip가 ?<3F>록?? ?<3F>터?<3F>???<3F><>??<3F>슴
|
||||
|
||||
// Serialize the $extra_vars, check the extra_vars type, because duplicate serialized avoid
|
||||
if(!is_string($obj->extra_vars)) $obj->extra_vars = serialize($obj->extra_vars);
|
||||
|
|
@ -353,6 +356,10 @@ class documentController extends document
|
|||
if(!$obj->module_srl) $obj->module_srl = $source_obj->get('module_srl');
|
||||
$module_srl = $obj->module_srl;
|
||||
$document_config = $oModuleModel->getModulePartConfig('document', $module_srl);
|
||||
if(!$document_config)
|
||||
{
|
||||
$document_config = new stdClass();
|
||||
}
|
||||
if(!isset($document_config->use_history)) $document_config->use_history = 'N';
|
||||
$bUseHistory = $document_config->use_history == 'Y' || $document_config->use_history == 'Trace';
|
||||
|
||||
|
|
@ -537,6 +544,7 @@ class documentController extends document
|
|||
function deleteDocument($document_srl, $is_admin = false, $isEmptyTrash = false, $oDocument = null)
|
||||
{
|
||||
// Call a trigger (before)
|
||||
$trigger_obj =new stdClass();
|
||||
$trigger_obj->document_srl = $document_srl;
|
||||
$output = ModuleHandler::triggerCall('document.deleteDocument', 'before', $trigger_obj);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
|
@ -559,6 +567,7 @@ class documentController extends document
|
|||
if(!$oDocument->isGranted()) return new Object(-1, 'msg_not_permitted');
|
||||
|
||||
//if empty trash, document already deleted, therefore document not delete
|
||||
$args = new stdClass();
|
||||
$args->document_srl = $document_srl;
|
||||
if(!$isEmptyTrash)
|
||||
{
|
||||
|
|
@ -656,6 +665,7 @@ class documentController extends document
|
|||
*/
|
||||
function moveDocumentToTrash($obj)
|
||||
{
|
||||
$trash_args = new stdClass();
|
||||
// Get trash_srl if a given trash_srl doesn't exist
|
||||
if(!$obj->trash_srl) $trash_args->trash_srl = getNextSequence();
|
||||
else $trash_args->trash_srl = $obj->trash_srl;
|
||||
|
|
@ -680,6 +690,7 @@ class documentController extends document
|
|||
$trash_args->nick_name = $logged_info->nick_name;
|
||||
}
|
||||
// Date setting for updating documents
|
||||
$doucment_args = new stdClass();
|
||||
$document_args->module_srl = 0;
|
||||
$document_args->document_srl = $obj->document_srl;
|
||||
|
||||
|
|
@ -731,6 +742,7 @@ class documentController extends document
|
|||
// Set the attachment to be invalid state
|
||||
if($oDocument->hasUploadedFiles())
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->upload_target_srl = $oDocument->document_srl;
|
||||
$args->isvalid = 'N';
|
||||
executeQuery('file.updateFileValid', $args);
|
||||
|
|
@ -824,6 +836,7 @@ class documentController extends document
|
|||
{
|
||||
if(!$module_srl || !$var_idx || !$var_name || !$var_type || !$eid) return new Object(-1,'msg_invalid_request');
|
||||
|
||||
$obj = new stdClass();
|
||||
$obj->module_srl = $module_srl;
|
||||
$obj->var_idx = $var_idx;
|
||||
$obj->var_name = $var_name;
|
||||
|
|
@ -852,6 +865,7 @@ class documentController extends document
|
|||
function deleteDocumentExtraKeys($module_srl, $var_idx = null)
|
||||
{
|
||||
if(!$module_srl) return new Object(-1,'msg_invalid_request');
|
||||
$obj = new stdClass();
|
||||
$obj->module_srl = $module_srl;
|
||||
if(!is_null($var_idx)) $obj->var_idx = $var_idx;
|
||||
|
||||
|
|
@ -933,6 +947,7 @@ class documentController extends document
|
|||
*/
|
||||
function deleteDocumentExtraVars($module_srl, $document_srl = null, $var_idx = null, $lang_code = null, $eid = null)
|
||||
{
|
||||
$obj =new stdClass();
|
||||
$obj->module_srl = $module_srl;
|
||||
if(!is_null($document_srl)) $obj->document_srl = $document_srl;
|
||||
if(!is_null($var_idx)) $obj->var_idx = $var_idx;
|
||||
|
|
@ -1072,6 +1087,7 @@ class documentController extends document
|
|||
}
|
||||
|
||||
// Check if previously reported
|
||||
$args = new stdClass();
|
||||
$args->document_srl = $document_srl;
|
||||
$output = executeQuery('document.getDeclaredDocument', $args);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
|
@ -1166,6 +1182,7 @@ class documentController extends document
|
|||
*/
|
||||
function updateCommentCount($document_srl, $comment_count, $last_updater, $comment_inserted = false)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->document_srl = $document_srl;
|
||||
$args->comment_count = $comment_count;
|
||||
|
||||
|
|
@ -1289,6 +1306,7 @@ class documentController extends document
|
|||
*/
|
||||
function deleteCategory($category_srl)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->category_srl = $category_srl;
|
||||
$oDocumentModel = &getModel('document');
|
||||
$category_info = $oDocumentModel->getCategory($category_srl);
|
||||
|
|
@ -1302,8 +1320,7 @@ class documentController extends document
|
|||
|
||||
$this->makeCategoryFile($category_info->module_srl);
|
||||
// Update category_srl of the documents in the same category to 0
|
||||
unset($args);
|
||||
|
||||
$args = new stdClass();
|
||||
$args->target_category_srl = 0;
|
||||
$args->source_category_srl = $category_srl;
|
||||
$output = executeQuery('document.updateDocumentCategory', $args);
|
||||
|
|
@ -1318,6 +1335,7 @@ class documentController extends document
|
|||
*/
|
||||
function deleteModuleCategory($module_srl)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->module_srl = $module_srl;
|
||||
$output = executeQuery('document.deleteModuleCategory', $args);
|
||||
return $output;
|
||||
|
|
@ -1666,6 +1684,7 @@ class documentController extends document
|
|||
$xml_file = sprintf("./files/cache/document_category/%s.xml.php", $module_srl);
|
||||
$php_file = sprintf("./files/cache/document_category/%s.php", $module_srl);
|
||||
// Get a category list
|
||||
$args = new stdClass();
|
||||
$args->module_srl = $module_srl;
|
||||
$args->sort_index = 'list_order';
|
||||
$output = executeQuery('document.getCategoryList', $args);
|
||||
|
|
@ -1900,6 +1919,7 @@ class documentController extends document
|
|||
$document_popup_menu_list = Context::get('document_popup_menu_list');
|
||||
if(!is_array($document_popup_menu_list)) $document_popup_menu_list = array();
|
||||
|
||||
$obj = new stdClass();
|
||||
$obj->url = $url;
|
||||
$obj->str = $str;
|
||||
$obj->icon = $icon;
|
||||
|
|
@ -2074,6 +2094,7 @@ class documentController extends document
|
|||
}
|
||||
else if($type == 'trash')
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->description = $message_content;
|
||||
|
||||
$oDB = &DB::getInstance();
|
||||
|
|
|
|||
|
|
@ -84,6 +84,7 @@ class documentItem extends Object
|
|||
}
|
||||
if(!$output)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->document_srl = $this->document_srl;
|
||||
$output = executeQuery('document.getDocument', $args, $this->columnList);
|
||||
//insert in cache
|
||||
|
|
@ -171,6 +172,10 @@ class documentItem extends Object
|
|||
// If the trackback module is configured to be disabled, do not allow. Otherwise, check the setting of each module.
|
||||
$oModuleModel = &getModel('module');
|
||||
$trackback_config = $oModuleModel->getModuleConfig('trackback');
|
||||
if(!$trackback_config)
|
||||
{
|
||||
$trackback_config = new stdClass();
|
||||
}
|
||||
if(!isset($trackback_config->enable_trackback)) $trackback_config->enable_trackback = 'Y';
|
||||
if($trackback_config->enable_trackback != 'Y') $allow_trackback_status = false;
|
||||
else
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@ class documentModel extends document
|
|||
return new Object(-1, 'msg_invalid_request');
|
||||
}
|
||||
|
||||
$args = new stdClass();
|
||||
$args->document_srl = $documentSrls;
|
||||
$output = executeQueryArray('document.getDocumentExtraVars', $args);
|
||||
return $output;
|
||||
|
|
@ -163,6 +164,7 @@ class documentModel extends document
|
|||
{
|
||||
$list_count = 1;
|
||||
}
|
||||
$args = new stdClass();
|
||||
$args->document_srls = $document_srls;
|
||||
$args->list_count = $list_count;
|
||||
$args->order_type = 'asc';
|
||||
|
|
@ -333,6 +335,7 @@ class documentModel extends document
|
|||
*/
|
||||
function getNoticeList($obj, $columnList = array())
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->module_srl = $obj->module_srl;
|
||||
$args->category_srl= $obj->category_srl;
|
||||
$output = executeQueryArray('document.getNoticeList', $args, $columnList);
|
||||
|
|
@ -373,6 +376,7 @@ class documentModel extends document
|
|||
if(is_null($GLOBALS['XE_EXTRA_KEYS'][$module_srl]))
|
||||
{
|
||||
$oExtraVar = &ExtraVar::getInstance($module_srl);
|
||||
$obj = new stdClass();
|
||||
$obj->module_srl = $module_srl;
|
||||
$obj->sort_index = 'var_idx';
|
||||
$obj->order = 'asc';
|
||||
|
|
@ -543,6 +547,7 @@ class documentModel extends document
|
|||
function getDocumentCount($module_srl, $search_obj = NULL)
|
||||
{
|
||||
// Additional search options
|
||||
$args =new stdClass();
|
||||
$args->module_srl = $module_srl;
|
||||
$args->s_title = $search_obj->s_title;
|
||||
$args->s_content = $search_obj->s_content;
|
||||
|
|
@ -646,6 +651,7 @@ class documentModel extends document
|
|||
*/
|
||||
function getCategory($category_srl, $columnList = array())
|
||||
{
|
||||
$args =new stdClass();
|
||||
$args->category_srl = $category_srl;
|
||||
$output = executeQuery('document.getCategory', $args, $columnList);
|
||||
|
||||
|
|
@ -673,6 +679,7 @@ class documentModel extends document
|
|||
*/
|
||||
function getCategoryChlidCount($category_srl)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->category_srl = $category_srl;
|
||||
$output = executeQuery('document.getChildCategoryCount',$args);
|
||||
if($output->data->count > 0) return true;
|
||||
|
|
@ -1210,6 +1217,7 @@ class documentModel extends document
|
|||
// get module_srl extra_vars list
|
||||
if ($load_extra_vars)
|
||||
{
|
||||
$extra_args = new stdClass();
|
||||
$extra_args->module_srl = $obj->module_srl;
|
||||
$extra_output = executeQueryArray('document.getGroupsExtraVars', $extra_args);
|
||||
if (!$extra_output->data || !$extra_output->toBool())
|
||||
|
|
@ -1230,6 +1238,7 @@ class documentModel extends document
|
|||
else
|
||||
$sortIndex = 'list_order';
|
||||
}
|
||||
$returnObj = new stdClass();
|
||||
$returnObj->sort_index = $sortIndex;
|
||||
$returnObj->isExtraVars = $isExtraVars;
|
||||
|
||||
|
|
@ -1249,6 +1258,7 @@ class documentModel extends document
|
|||
function _setSearchOption($searchOpt, &$args, &$query_id, &$use_division)
|
||||
{
|
||||
// Variable check
|
||||
$args = new stdClass();
|
||||
$args->category_srl = $searchOpt->category_srl?$searchOpt->category_srl:null;
|
||||
$args->order_type = $searchOpt->order_type;
|
||||
$args->page = $searchOpt->page?$searchOpt->page:1;
|
||||
|
|
@ -1416,6 +1426,7 @@ class documentModel extends document
|
|||
// If you do not value the best division top
|
||||
if(!$division)
|
||||
{
|
||||
$division_args = new stdClass();
|
||||
$division_args->module_srl = $args->module_srl;
|
||||
$division_args->exclude_module_srl = $args->exclude_module_srl;
|
||||
$division_args->list_count = 1;
|
||||
|
|
@ -1438,6 +1449,7 @@ class documentModel extends document
|
|||
// Division after division from the 5000 value of the specified Wanted
|
||||
if(!$last_division)
|
||||
{
|
||||
$last_division_args = new stdClass();
|
||||
$last_division_args->module_srl = $args->module_srl;
|
||||
$last_division_args->exclude_module_srl = $args->exclude_module_srl;
|
||||
$last_division_args->list_count = 1;
|
||||
|
|
|
|||
|
|
@ -132,6 +132,10 @@ class documentView extends document
|
|||
{
|
||||
$document_config = $oModuleModel->getModulePartConfig('document', $current_module_srl);
|
||||
}
|
||||
if(!$document_config)
|
||||
{
|
||||
$document_config = new stdClass();
|
||||
}
|
||||
if(!isset($document_config->use_history)) $document_config->use_history = 'N';
|
||||
Context::set('document_config', $document_config);
|
||||
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@ class editorAdminController extends editor
|
|||
*/
|
||||
function editorCheckUse($componentList, $site_srl = 0)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->site_srl = $site_srl;
|
||||
|
||||
foreach($componentList as $componentName => $value)
|
||||
|
|
@ -79,6 +80,7 @@ class editorAdminController extends editor
|
|||
*/
|
||||
function editorListOrder($component_names, $site_srl = 0)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->site_srl = $site_srl;
|
||||
$list_order_num = '30';
|
||||
if(is_array($component_names))
|
||||
|
|
|
|||
|
|
@ -28,6 +28,11 @@ class editorAdminView extends editor
|
|||
$oModuleModel = &getModel('module');
|
||||
$editor_config = $oModuleModel->getModuleConfig('editor');
|
||||
|
||||
if(!$editor_config)
|
||||
{
|
||||
$editor_config = new stdClass();
|
||||
}
|
||||
|
||||
//editor_config init
|
||||
if(!$editor_config->editor_height) $editor_config->editor_height = 300;
|
||||
if(!$editor_config->comment_editor_height) $editor_config->comment_editor_height = 100;
|
||||
|
|
@ -42,10 +47,12 @@ class editorAdminView extends editor
|
|||
$skin_info = $oModuleModel->loadSkinInfo($this->module_path,$editor_config->editor_skin);
|
||||
|
||||
$contents = FileHandler::readDir(_XE_PATH_.'modules/editor/styles');
|
||||
$content_style_list = array();
|
||||
for($i=0,$c=count($contents);$i<$c;$i++)
|
||||
{
|
||||
$style = $contents[$i];
|
||||
$info = $oModuleModel->loadSkinInfo($this->module_path,$style,'styles');
|
||||
$content_style_list[$style] = new stdClass();
|
||||
$content_style_list[$style]->title = $info->title;
|
||||
}
|
||||
|
||||
|
|
@ -71,6 +78,7 @@ class editorAdminView extends editor
|
|||
//editor preview
|
||||
$config = $oEditorModel->getEditorConfig();
|
||||
|
||||
$option = new stdClass();
|
||||
$option->allow_fileupload = false;
|
||||
$option->content_style = $config->content_style;
|
||||
$option->content_font = $config->content_font;
|
||||
|
|
@ -88,6 +96,7 @@ class editorAdminView extends editor
|
|||
|
||||
Context::set('preview_editor', $editor);
|
||||
|
||||
$option_com = new stdClass();
|
||||
$option_com->allow_fileupload = false;
|
||||
$option_com->content_style = $config->content_style;
|
||||
$option_com->content_font = $config->content_font;
|
||||
|
|
@ -142,6 +151,7 @@ class editorAdminView extends editor
|
|||
// Get a mid list
|
||||
$oModuleModel = &getModel('module');
|
||||
|
||||
$args =new stdClass();
|
||||
$args->site_srl = $site_srl;
|
||||
$columnList = array('module_srl', 'mid', 'module_category_srl', 'browser_title');
|
||||
$mid_list = $oModuleModel->getMidList($args, $columnList);
|
||||
|
|
|
|||
|
|
@ -286,6 +286,7 @@ class editorController extends editor
|
|||
*/
|
||||
function deleteSavedDoc($mode = false)
|
||||
{
|
||||
$args = new stdClass();
|
||||
if(Context::get('is_logged'))
|
||||
{
|
||||
$logged_info = Context::get('logged_info');
|
||||
|
|
@ -362,6 +363,7 @@ class editorController extends editor
|
|||
}
|
||||
// Get xml information for looping DB list
|
||||
if(!is_array($db_list)) $db_list = array($db_list);
|
||||
$component_list = new stdClass();
|
||||
foreach($db_list as $component)
|
||||
{
|
||||
if(in_array($component->component_name, array('colorpicker_text','colorpicker_bg'))) continue;
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ class editorModel extends editor
|
|||
$oModuleModel = &getModel('module');
|
||||
$editor_default_config = $oModuleModel->getModuleConfig('editor');
|
||||
|
||||
if(!is_object($editor_config)) $editor_config = null;
|
||||
if(!is_object($editor_config)) $editor_config = new stdClass();
|
||||
|
||||
if(!is_array($editor_config->enable_html_grant)) $editor_config->enable_html_grant = array();
|
||||
if(!is_array($editor_config->enable_comment_html_grant)) $editor_config->enable_comment_html_grant = array();
|
||||
|
|
@ -368,6 +368,9 @@ class editorModel extends editor
|
|||
{
|
||||
// Get editor settings of the module
|
||||
$editor_config = $this->getEditorConfig($module_srl);
|
||||
|
||||
$config = new stdClass();
|
||||
|
||||
// Configurations listed according to a type
|
||||
if($type == 'document')
|
||||
{
|
||||
|
|
@ -408,6 +411,7 @@ class editorModel extends editor
|
|||
$group_list = array();
|
||||
}
|
||||
// Pre-set option variables of editor
|
||||
$option = new stdClass();
|
||||
$option->skin = $config->editor_skin;
|
||||
$option->content_style = $config->content_style;
|
||||
$option->content_font = $config->content_font;
|
||||
|
|
@ -488,6 +492,7 @@ class editorModel extends editor
|
|||
*/
|
||||
function getSavedDoc($upload_target_srl)
|
||||
{
|
||||
$auto_save_args = new stdClass();
|
||||
// Find a document by using member_srl for logged-in user and ipaddress for non-logged user
|
||||
if(Context::get('is_logged'))
|
||||
{
|
||||
|
|
@ -658,6 +663,7 @@ class editorModel extends editor
|
|||
*/
|
||||
function getComponent($component_name, $site_srl = 0)
|
||||
{
|
||||
$args =new stdClass();
|
||||
$args->component_name = $component_name;
|
||||
|
||||
if($site_srl)
|
||||
|
|
@ -732,6 +738,7 @@ class editorModel extends editor
|
|||
// Component information listed
|
||||
if($xml_doc->component->version && $xml_doc->component->attrs->version == '0.2')
|
||||
{
|
||||
$component_info = new stdClass();
|
||||
$component_info->component_name = $component;
|
||||
$component_info->title = $xml_doc->component->title->body;
|
||||
$component_info->description = str_replace('\n', "\n", $xml_doc->component->description->body);
|
||||
|
|
@ -742,6 +749,7 @@ class editorModel extends editor
|
|||
$component_info->license_link = $xml_doc->component->license->attrs->link;
|
||||
|
||||
$buff = '<?php if(!defined("__ZBXE__")) exit(); ';
|
||||
$buff .= '$xml_info = new stdClass();';
|
||||
$buff .= sprintf('$xml_info->component_name = "%s";', $component_info->component_name);
|
||||
$buff .= sprintf('$xml_info->title = "%s";', $component_info->title);
|
||||
$buff .= sprintf('$xml_info->description = "%s";', $component_info->description);
|
||||
|
|
@ -756,6 +764,7 @@ class editorModel extends editor
|
|||
|
||||
for($i=0; $i < count($author_list); $i++)
|
||||
{
|
||||
$buff .= '$xml_info->author[' . $i .']= new stdClass();';
|
||||
$buff .= sprintf('$xml_info->author['.$i.']->name = "%s";', $author_list[$i]->name->body);
|
||||
$buff .= sprintf('$xml_info->author['.$i.']->email_address = "%s";', $author_list[$i]->attrs->email_address);
|
||||
$buff .= sprintf('$xml_info->author['.$i.']->homepage = "%s";', $author_list[$i]->attrs->link);
|
||||
|
|
@ -772,6 +781,7 @@ class editorModel extends editor
|
|||
unset($obj);
|
||||
sscanf($history_list[$i]->attrs->date, '%d-%d-%d', $date_obj->y, $date_obj->m, $date_obj->d);
|
||||
$date = sprintf('%04d%02d%02d', $date_obj->y, $date_obj->m, $date_obj->d);
|
||||
$buff .= '$xml_info->history[' . $i . '] = new stdClass();';
|
||||
$buff .= sprintf('$xml_info->history['.$i.']->description = "%s";', $history_list[$i]->description->body);
|
||||
$buff .= sprintf('$xml_info->history['.$i.']->version = "%s";', $history_list[$i]->attrs->version);
|
||||
$buff .= sprintf('$xml_info->history['.$i.']->date = "%s";', $date);
|
||||
|
|
@ -782,6 +792,7 @@ class editorModel extends editor
|
|||
|
||||
for($j=0; $j < count($obj->author_list); $j++)
|
||||
{
|
||||
$buff .= '$xml_info->history[' . $i . ']->author[' . $j . '] = new stdClass();';
|
||||
$buff .= sprintf('$xml_info->history['.$i.']->author['.$j.']->name = "%s";', $obj->author_list[$j]->name->body);
|
||||
$buff .= sprintf('$xml_info->history['.$i.']->author['.$j.']->email_address = "%s";', $obj->author_list[$j]->attrs->email_address);
|
||||
$buff .= sprintf('$xml_info->history['.$i.']->author['.$j.']->homepage = "%s";', $obj->author_list[$j]->attrs->link);
|
||||
|
|
@ -794,6 +805,7 @@ class editorModel extends editor
|
|||
|
||||
for($j=0; $j < count($obj->log_list); $j++)
|
||||
{
|
||||
$buff .= '$xml_info->history[' . $i . ']->log[' . $j . '] = new stdClass();';
|
||||
$buff .= sprintf('$xml_info->history['.$i.']->logs['.$j.']->text = "%s";', $obj->log_list[$j]->body);
|
||||
$buff .= sprintf('$xml_info->history['.$i.']->logs['.$j.']->link = "%s";', $obj->log_list[$j]->attrs->link);
|
||||
}
|
||||
|
|
@ -805,6 +817,7 @@ class editorModel extends editor
|
|||
{
|
||||
sscanf($xml_doc->component->author->attrs->date, '%d. %d. %d', $date_obj->y, $date_obj->m, $date_obj->d);
|
||||
$date = sprintf('%04d%02d%02d', $date_obj->y, $date_obj->m, $date_obj->d);
|
||||
$xml_info = new stdClass();
|
||||
$xml_info->component_name = $component;
|
||||
$xml_info->title = $xml_doc->component->title->body;
|
||||
$xml_info->description = str_replace('\n', "\n", $xml_doc->component->author->description->body);
|
||||
|
|
@ -815,6 +828,7 @@ class editorModel extends editor
|
|||
$xml_info->author->homepage = $xml_doc->component->author->attrs->link;
|
||||
|
||||
$buff = '<?php if(!defined("__ZBXE__")) exit(); ';
|
||||
$buff .= '$xml_info = new stdClass();';
|
||||
$buff .= sprintf('$xml_info->component_name = "%s";', $xml_info->component_name);
|
||||
$buff .= sprintf('$xml_info->title = "%s";', $xml_info->title);
|
||||
$buff .= sprintf('$xml_info->description = "%s";', $xml_info->description);
|
||||
|
|
@ -838,6 +852,7 @@ class editorModel extends editor
|
|||
$xml_info->extra_vars->{$key}->title = $title;
|
||||
$xml_info->extra_vars->{$key}->description = $description;
|
||||
|
||||
$buff .= sprintf('$xml_info->extra_vars->%s = new stdClass();', $key);
|
||||
$buff .= sprintf('$xml_info->extra_vars->%s->%s = "%s";', $key, 'title', $title);
|
||||
$buff .= sprintf('$xml_info->extra_vars->%s->%s = "%s";', $key, 'description', $description);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -99,10 +99,12 @@ class editorView extends editor
|
|||
Context::set('editor_comment_colorset_list', $skin_info->colorset);
|
||||
|
||||
$contents = FileHandler::readDir(_XE_PATH_.'modules/editor/styles');
|
||||
$content_style_list = array();
|
||||
for($i=0,$c=count($contents);$i<$c;$i++)
|
||||
{
|
||||
$style = $contents[$i];
|
||||
$info = $oModuleModel->loadSkinInfo($this->module_path,$style,'styles');
|
||||
$content_style_list[$style] = new stdClass();
|
||||
$content_style_list[$style]->title = $info->title;
|
||||
}
|
||||
Context::set('content_style_list', $content_style_list);
|
||||
|
|
@ -152,6 +154,7 @@ class editorView extends editor
|
|||
|
||||
if($mode != 'main')
|
||||
{
|
||||
$option_com = new stdClass();
|
||||
$option_com->allow_fileupload = false;
|
||||
$option_com->content_style = $config->content_style;
|
||||
$option_com->content_font = $config->content_font;
|
||||
|
|
@ -170,6 +173,7 @@ class editorView extends editor
|
|||
}
|
||||
else
|
||||
{
|
||||
$option = new stdClass();
|
||||
$option->allow_fileupload = false;
|
||||
$option->content_style = $config->content_style;
|
||||
$option->content_font = $config->content_font;
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ class fileAdminController extends file
|
|||
function deleteModuleFiles($module_srl)
|
||||
{
|
||||
// Get a full list of attachments
|
||||
$args = new stdClass();
|
||||
$args->module_srl = $module_srl;
|
||||
$columnList = array('file_srl', 'uploaded_filename');
|
||||
$output = executeQueryArray('file.getModuleFiles',$args, $columnList);
|
||||
|
|
|
|||
|
|
@ -63,6 +63,7 @@ class fileAdminModel extends file
|
|||
*/
|
||||
function getFileList($obj, $columnList = array())
|
||||
{
|
||||
$args = new stdClass();
|
||||
$this->_makeSearchParam($obj, $args);
|
||||
|
||||
// Set valid/invalid state
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ class fileAdminView extends file
|
|||
function dispFileAdminList()
|
||||
{
|
||||
// Options to get a list
|
||||
$args = new stdClass();
|
||||
$args->page = Context::get('page'); // /< Page
|
||||
$args->list_count = 30; // /< Number of documents that appear on a single page
|
||||
$args->page_count = 10; // /< Number of pages that appear in the page navigation
|
||||
|
|
@ -53,7 +54,7 @@ class fileAdminView extends file
|
|||
{
|
||||
$file_srl = $file->file_srl;
|
||||
$target_srl = $file->upload_target_srl;
|
||||
$file_update_args = null;
|
||||
$file_update_args = new stdClass();
|
||||
$file_update_args->file_srl = $file_srl;
|
||||
// Find and update if upload_target_type doesn't exist
|
||||
if(!$file->upload_target_type)
|
||||
|
|
|
|||
|
|
@ -256,6 +256,7 @@ class fileController extends file
|
|||
|
||||
// 다운로드 후 (가상)
|
||||
// Increase download_count
|
||||
$args = new stdClass();
|
||||
$args->file_srl = $file_srl;
|
||||
executeQuery('file.updateFileDownloadCount', $args);
|
||||
// Call a trigger (after)
|
||||
|
|
@ -536,6 +537,10 @@ class fileController extends file
|
|||
*/
|
||||
function setUploadInfo($editor_sequence, $upload_target_srl=0)
|
||||
{
|
||||
if(!isset($_SESSION['upload_info'][$editor_sequence]))
|
||||
{
|
||||
$_SESSION['upload_info'][$editor_sequence] = new stdClass();
|
||||
}
|
||||
$_SESSION['upload_info'][$editor_sequence]->enabled = true;
|
||||
$_SESSION['upload_info'][$editor_sequence]->upload_target_srl = $upload_target_srl;
|
||||
}
|
||||
|
|
@ -549,6 +554,7 @@ class fileController extends file
|
|||
*/
|
||||
function setFilesValid($upload_target_srl)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->upload_target_srl = $upload_target_srl;
|
||||
return executeQuery('file.updateFileValid', $args);
|
||||
}
|
||||
|
|
@ -792,6 +798,7 @@ class fileController extends file
|
|||
// Success returned if no attachement exists
|
||||
if(!is_array($file_list)||!count($file_list)) return new Object();
|
||||
// Remove from the DB
|
||||
$args = new stdClass();
|
||||
$args->upload_target_srl = $upload_target_srl;
|
||||
$output = executeQuery('file.deleteFiles', $args);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
|
|
|||
|
|
@ -81,6 +81,7 @@ class fileModel extends file
|
|||
*/
|
||||
function getFilesCount($upload_target_srl)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->upload_target_srl = $upload_target_srl;
|
||||
$output = executeQuery('file.getFilesCount', $args);
|
||||
return (int)$output->data->count;
|
||||
|
|
@ -114,6 +115,8 @@ class fileModel extends file
|
|||
if($module_srl) $file_config = $oModuleModel->getModulePartConfig('file',$module_srl);
|
||||
if(!$file_config) $file_config = $file_module_config;
|
||||
|
||||
$config = new stdClass();
|
||||
|
||||
if($file_config)
|
||||
{
|
||||
$config->allowed_filesize = $file_config->allowed_filesize;
|
||||
|
|
@ -151,6 +154,7 @@ class fileModel extends file
|
|||
*/
|
||||
function getFile($file_srl, $columnList = array())
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->file_srl = $file_srl;
|
||||
$output = executeQueryArray('file.getFile', $args, $columnList);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
|
@ -190,6 +194,7 @@ class fileModel extends file
|
|||
*/
|
||||
function getFiles($upload_target_srl, $columnList = array(), $sortIndex = 'file_srl', $ckValid = false)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->upload_target_srl = $upload_target_srl;
|
||||
$args->sort_index = $sortIndex;
|
||||
if($ckValid) $args->isvalid = 'Y';
|
||||
|
|
@ -220,6 +225,7 @@ class fileModel extends file
|
|||
function getUploadConfig()
|
||||
{
|
||||
$logged_info = Context::get('logged_info');
|
||||
$file_config = new stdClass();
|
||||
if($logged_info->is_admin == 'Y')
|
||||
{
|
||||
$file_config->allowed_filesize = preg_replace("/[a-z]/is","",ini_get('upload_max_filesize'));
|
||||
|
|
|
|||
|
|
@ -125,6 +125,7 @@ class installAdminController extends install
|
|||
return new Object(-1, 'msg_invalid_request');
|
||||
}
|
||||
|
||||
$site_args = new stdClass();
|
||||
$site_args->site_srl = 0;
|
||||
$site_args->index_module_srl = Context::get('index_module_srl');
|
||||
$oModuleController = &getController('module');
|
||||
|
|
@ -220,6 +221,7 @@ class installAdminController extends install
|
|||
$oInstallController = &getController('install');
|
||||
$oInstallController->makeConfigFile();
|
||||
|
||||
$site_args = new stdClass();
|
||||
$site_args->site_srl = 0;
|
||||
$site_args->index_module_srl = Context::get('index_module_srl');//
|
||||
$site_args->default_language = Context::get('change_lang_type');//
|
||||
|
|
@ -231,6 +233,7 @@ class installAdminController extends install
|
|||
$this->saveLangSelected($selected_lang);
|
||||
|
||||
//모듈 설정 저장(썸네일, 풋터스크립트)
|
||||
$config = new stdClass();
|
||||
$config->thumbnail_type = Context::get('thumbnail_type');
|
||||
$config->htmlFooter = Context::get('htmlFooter');
|
||||
$config->siteTitle = Context::get('site_title');
|
||||
|
|
@ -271,6 +274,7 @@ class installAdminController extends install
|
|||
/* 썸내일 보여주기 방식 변경.*/
|
||||
function setModulesConfig($config)
|
||||
{
|
||||
$args = new stdClass();
|
||||
|
||||
if(!$config->thumbnail_type || $config->thumbnail_type != 'ratio' ) $args->thumbnail_type = 'crop';
|
||||
else $args->thumbnail_type = 'ratio';
|
||||
|
|
|
|||
|
|
@ -42,6 +42,7 @@ class integration_searchAdminView extends integration_search
|
|||
// Get a list of module categories
|
||||
$module_categories = $oModuleModel->getModuleCategories();
|
||||
// Generated mid Wanted list
|
||||
$obj = new stdClass();
|
||||
$obj->site_srl = 0;
|
||||
|
||||
// Shown below as obsolete comments - modify by cherryfilter
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@ class integration_searchModel extends module
|
|||
{
|
||||
if(is_array($module_srls_list)) $module_srls_list = implode(',',$module_srls_list);
|
||||
|
||||
$args = new stdClass();
|
||||
if($target == 'exclude')
|
||||
{
|
||||
$module_srls_list .= ',0'; // exclude 'trash'
|
||||
|
|
@ -71,6 +72,8 @@ class integration_searchModel extends module
|
|||
*/
|
||||
function getComments($target, $module_srls_list, $search_keyword, $page=1, $list_count = 20)
|
||||
{
|
||||
$args = new stdClass();
|
||||
|
||||
if(is_array($module_srls_list))
|
||||
{
|
||||
if (count($module_srls_list) > 0) $module_srls = implode(',',$module_srls_list);
|
||||
|
|
@ -113,6 +116,8 @@ class integration_searchModel extends module
|
|||
*/
|
||||
function getTrackbacks($target, $module_srls_list, $search_target = "title", $search_keyword, $page=1, $list_count = 20)
|
||||
{
|
||||
$args = new stdClass();
|
||||
|
||||
if(is_array($module_srls_list)) $module_srls = implode(',',$module_srls_list);
|
||||
else $module_srls = $module_srls_list;
|
||||
if($target == 'exclude') $args->exclude_module_srl = $module_srls;
|
||||
|
|
@ -145,6 +150,8 @@ class integration_searchModel extends module
|
|||
*/
|
||||
function _getFiles($target, $module_srls_list, $search_keyword, $page, $list_count, $direct_download = 'Y')
|
||||
{
|
||||
$args = new stdClass();
|
||||
|
||||
if(is_array($module_srls_list)) $module_srls = implode(',',$module_srls_list);
|
||||
else $module_srls = $module_srls_list;
|
||||
if($target == 'exclude') $args->exclude_module_srl = $module_srls;
|
||||
|
|
|
|||
|
|
@ -143,7 +143,7 @@ class layoutAdminController extends layout
|
|||
|
||||
if($apply_layout=='Y' || $apply_mobile_view=='Y')
|
||||
{
|
||||
$menu_args = null;
|
||||
$menu_args = new stdClass();
|
||||
$menu_args->menu_srl = $menu_srl;
|
||||
$menu_args->site_srl = $layout_info->site_srl;
|
||||
$output = executeQueryArray('layout.getLayoutModules', $menu_args);
|
||||
|
|
@ -157,6 +157,7 @@ class layoutAdminController extends layout
|
|||
|
||||
if(count($modules))
|
||||
{
|
||||
$update_args = new stdClass();
|
||||
$update_args->module_srls = implode(',',$modules);
|
||||
if($apply_layout == "Y")
|
||||
{
|
||||
|
|
@ -214,6 +215,7 @@ class layoutAdminController extends layout
|
|||
// Save header script into "config" of layout module
|
||||
$oModuleModel = &getModel('module');
|
||||
$oModuleController = &getController('module');
|
||||
$layout_config = new stdClass();
|
||||
$layout_config->header_script = Context::get('header_script');
|
||||
$oModuleController->insertModulePartConfig('layout',$args->layout_srl,$layout_config);
|
||||
// Save a title of the menu
|
||||
|
|
@ -318,6 +320,7 @@ class layoutAdminController extends layout
|
|||
$layout_file = $oLayoutModel->getUserLayoutHtml($layout_srl);
|
||||
if(file_exists($layout_file)) FileHandler::removeFile($layout_file);
|
||||
// Delete Layout
|
||||
$args = new stdClass();
|
||||
$args->layout_srl = $layout_srl;
|
||||
$output = executeQuery("layout.deleteLayout", $args);
|
||||
//remove from cache
|
||||
|
|
@ -730,10 +733,12 @@ class layoutAdminController extends layout
|
|||
}
|
||||
|
||||
$output = $oLayoutModel->getLayoutRawData($sourceArgs->layout_srl, array('extra_vars'));
|
||||
$args = new stdClass();
|
||||
$args->extra_vars = $output->extra_vars;
|
||||
$extra_vars = unserialize($args->extra_vars);
|
||||
|
||||
$oModuleController = &getController('module');
|
||||
$layout_config = new stdClass();
|
||||
$layout_config->header_script = $extra_vars->header_script;
|
||||
|
||||
// Get information to create a layout
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ class layout extends ModuleObject
|
|||
|
||||
if(!$oDB->isColumnExists('layouts', 'layout_type')) return true;
|
||||
|
||||
$args = new stdClass();
|
||||
$args->layout = '.';
|
||||
$output = executeQueryArray('layout.getLayoutDotList', $args);
|
||||
if($output->data && count($output->data) > 0)
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ class layoutModel extends layout
|
|||
$site_module_info = Context::get('site_module_info');
|
||||
$site_srl = (int)$site_module_info->site_srl;
|
||||
}
|
||||
$args = new stdClass();
|
||||
$args->site_srl = $site_srl;
|
||||
$args->layout_type = $layout_type;
|
||||
$output = executeQueryArray('layout.getLayoutList', $args, $columnList);
|
||||
|
|
@ -115,6 +116,7 @@ class layoutModel extends layout
|
|||
$siteModuleInfo = Context::get('site_module_info');
|
||||
$siteSrl = (int)$siteModuleInfo->site_srl;
|
||||
}
|
||||
$args = new stdClass();
|
||||
$args->site_srl = $siteSrl;
|
||||
$args->layout_type = $layoutType;
|
||||
$args->layout = $layout;
|
||||
|
|
@ -205,6 +207,7 @@ class layoutModel extends layout
|
|||
if(!$layout_info)
|
||||
{
|
||||
// Get information from the DB
|
||||
$args = new stdClass();
|
||||
$args->layout_srl = $layout_srl;
|
||||
$output = executeQuery('layout.getLayout', $args);
|
||||
if(!$output->data) return;
|
||||
|
|
@ -226,6 +229,7 @@ class layoutModel extends layout
|
|||
|
||||
function getLayoutRawData($layout_srl, $columnList = array())
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->layout_srl = $layout_srl;
|
||||
$output = executeQuery('layout.getLayout', $args, $columnList);
|
||||
if(!$output->toBool())
|
||||
|
|
|
|||
|
|
@ -82,11 +82,12 @@ class layoutView extends layout
|
|||
|
||||
$oModule = ModuleHandler::getModuleInstance($module, $type);
|
||||
$oModule->setAct($xml_info->default_index_act);
|
||||
$module_info = new stdClass();
|
||||
$module_info->module = $module;
|
||||
$module_info->module_type = $type;
|
||||
$module_info->page_type = $page_type;
|
||||
$module_info->document_srl= $document_srl;
|
||||
$oModule->setModuleInfo($this->module_info, $xml_info);
|
||||
$oModule->setModuleInfo($module_info, $xml_info);
|
||||
$oModule->proc();
|
||||
}
|
||||
else
|
||||
|
|
|
|||
|
|
@ -195,6 +195,7 @@ class memberAdminController extends member
|
|||
|
||||
if($args->redirect_url)
|
||||
{
|
||||
$tmpArgs = new stdClass();
|
||||
$tmpArgs->menu_item_srl = (int)$args->redirect_url;
|
||||
$output = executeQuery('module.getModuleInfoByMenuItemSrl', $tmpArgs);
|
||||
|
||||
|
|
@ -219,7 +220,7 @@ class memberAdminController extends member
|
|||
$extendItems = $oMemberModel->getJoinFormList();
|
||||
foreach($list_order as $key)
|
||||
{
|
||||
unset($signupItem);
|
||||
$signupItem = new stdClass();
|
||||
$signupItem->isIdentifier = ($key == $all_args->identifier);
|
||||
$signupItem->isDefaultForm = in_array($key, $items);
|
||||
|
||||
|
|
@ -617,6 +618,7 @@ class memberAdminController extends member
|
|||
*/
|
||||
function procMemberAdminInsertJoinForm()
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->member_join_form_srl = Context::get('member_join_form_srl');
|
||||
|
||||
$args->column_type = Context::get('column_type');
|
||||
|
|
@ -664,6 +666,7 @@ class memberAdminController extends member
|
|||
if(!$output->toBool()) return $output;
|
||||
|
||||
// memberConfig update
|
||||
$signupItem = new stdClass();
|
||||
$signupItem->name = $args->column_name;
|
||||
$signupItem->title = $args->column_title;
|
||||
$signupItem->type = $args->column_type;
|
||||
|
|
@ -773,7 +776,7 @@ class memberAdminController extends member
|
|||
$oMemberController = &getController('member');
|
||||
foreach($members as $key=>$member_srl)
|
||||
{
|
||||
unset($args);
|
||||
$args = new stdClass();
|
||||
$args->member_srl = $member_srl;
|
||||
switch($var->type)
|
||||
{
|
||||
|
|
@ -1150,7 +1153,7 @@ class memberAdminController extends member
|
|||
$group_srls = $vars->group_srls;
|
||||
foreach($group_srls as $order=>$group_srl)
|
||||
{
|
||||
unset($update_args);
|
||||
$update_args = new stdClass();
|
||||
$update_args->title = $vars->group_titles[$order];
|
||||
$update_args->is_default = ($vars->defaultGroup == $group_srl)?'Y':'N';
|
||||
$update_args->description = $vars->descriptions[$order];
|
||||
|
|
@ -1198,6 +1201,7 @@ class memberAdminController extends member
|
|||
*/
|
||||
function insertDeniedID($user_id, $description = '')
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->user_id = $user_id;
|
||||
$args->description = $description;
|
||||
$args->list_order = -1*getNextSequence();
|
||||
|
|
@ -1207,6 +1211,7 @@ class memberAdminController extends member
|
|||
|
||||
function insertDeniedNickName($nick_name, $description = '')
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->nick_name = $nick_name;
|
||||
$args->description = $description;
|
||||
|
||||
|
|
@ -1242,6 +1247,7 @@ class memberAdminController extends member
|
|||
*/
|
||||
function deleteJoinForm($member_join_form_srl)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->member_join_form_srl = $member_join_form_srl;
|
||||
$output = executeQuery('member.deleteJoinForm', $args);
|
||||
return $output;
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@ class memberAdminModel extends member
|
|||
function getMemberList()
|
||||
{
|
||||
// Search option
|
||||
$args = new stdClass();
|
||||
$args->is_admin = Context::get('is_admin')=='Y'?'Y':'';
|
||||
$args->is_denied = Context::get('is_denied')=='Y'?'Y':'';
|
||||
$args->selected_group_srl = Context::get('selected_group_srl');
|
||||
|
|
@ -216,6 +217,7 @@ class memberAdminModel extends member
|
|||
*/
|
||||
public function getMemberCountByDate($date = '')
|
||||
{
|
||||
$args = new stdClass();
|
||||
if($date) $args->regDate = date('Ymd', strtotime($date));
|
||||
|
||||
$output = executeQuery('member.getMemberCountByDate', $args);
|
||||
|
|
@ -250,6 +252,7 @@ class memberAdminModel extends member
|
|||
{
|
||||
$member_join_form_srl = Context::get('member_join_form_srl');
|
||||
|
||||
$args = new stdClass();
|
||||
$args->member_join_form_srl = $member_join_form_srl;
|
||||
$output = executeQuery('member.getJoinForm', $args);
|
||||
|
||||
|
|
|
|||
|
|
@ -153,6 +153,7 @@ class memberAdminView extends member
|
|||
Context::set('editor_skin_list', $oEditorModel->getEditorSkinList());
|
||||
|
||||
// get an editor
|
||||
$option = new stdClass();
|
||||
$option->primary_key_name = 'temp_srl';
|
||||
$option->content_key_name = 'agreement';
|
||||
$option->allow_fileupload = false;
|
||||
|
|
@ -332,13 +333,17 @@ class memberAdminView extends member
|
|||
$oMemberModel = &getModel('member');
|
||||
|
||||
$memberInfo = Context::get('member_info');
|
||||
$memberInfo->signature = $oMemberModel->getSignature($this->memberInfo->member_srl);
|
||||
if(isset($memberInfo))
|
||||
{
|
||||
$memberInfo->signature = $oMemberModel->getSignature($this->memberInfo->member_srl);
|
||||
}
|
||||
Context::set('member_info', $memberInfo);
|
||||
|
||||
// get an editor for the signature
|
||||
if($memberInfo->member_srl)
|
||||
{
|
||||
$oEditorModel = &getModel('editor');
|
||||
$option = new stdClass();
|
||||
$option->primary_key_name = 'member_srl';
|
||||
$option->content_key_name = 'signature';
|
||||
$option->allow_fileupload = false;
|
||||
|
|
@ -360,6 +365,7 @@ class memberAdminView extends member
|
|||
$member_config = $this->memberConfig;
|
||||
|
||||
global $lang;
|
||||
$identifierForm = new stdClass();
|
||||
$identifierForm->title = $lang->{$member_config->identifier};
|
||||
$identifierForm->name = $member_config->identifier;
|
||||
$identifierForm->value = $memberInfo->{$member_config->identifier};
|
||||
|
|
@ -398,7 +404,7 @@ class memberAdminView extends member
|
|||
{
|
||||
if(!$formInfo->isUse)continue;
|
||||
if($formInfo->name == $member_config->identifier || $formInfo->name == 'password') continue;
|
||||
unset($formTag);
|
||||
$formTag = new stdClass();
|
||||
$inputTag = '';
|
||||
$formTag->title = ($formInfo->isDefaultForm) ? $lang->{$formInfo->name} : $formInfo->title;
|
||||
if($isAdmin)
|
||||
|
|
|
|||
|
|
@ -388,6 +388,7 @@ class member extends ModuleObject {
|
|||
$oDB = &DB::getInstance();
|
||||
if(!$oDB->isTableExists('member_login_count') || $config->enable_login_fail_report == 'N') return new Object($error, $message);
|
||||
|
||||
$args = new stdClass();
|
||||
$args->ipaddress = $_SERVER['REMOTE_ADDR'];
|
||||
|
||||
$output = executeQuery('member.getLoginCountByIp', $args);
|
||||
|
|
|
|||
|
|
@ -127,6 +127,7 @@ class memberController extends member
|
|||
$oDocumentModel = &getModel('document');
|
||||
$oDocument = $oDocumentModel->getDocument($document_srl);
|
||||
// Variables
|
||||
$args = new stdClass();
|
||||
$args->document_srl = $document_srl;
|
||||
$args->member_srl = $logged_info->member_srl;
|
||||
$args->user_id = $oDocument->get('user_id');
|
||||
|
|
@ -879,6 +880,7 @@ class memberController extends member
|
|||
if($output->toBool() && $output->data->count != '0') return new Object(-1, 'msg_user_not_confirmed');
|
||||
}
|
||||
// Insert data into the authentication DB
|
||||
$args = new stdClass();
|
||||
$args->user_id = $member_info->user_id;
|
||||
$args->member_srl = $member_info->member_srl;
|
||||
$args->new_password = rand(111111,999999);
|
||||
|
|
@ -1405,6 +1407,7 @@ class memberController extends member
|
|||
*/
|
||||
function addMemberToGroup($member_srl,$group_srl,$site_srl=0)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->member_srl = $member_srl;
|
||||
$args->group_srl = $group_srl;
|
||||
if($site_srl) $args->site_srl = $site_srl;
|
||||
|
|
@ -1565,6 +1568,7 @@ class memberController extends member
|
|||
$user_id = strtolower($user_id);
|
||||
if(!$user_id) return new Object(-1, 'null_user_id');
|
||||
// Call a trigger before log-in (before)
|
||||
$trigger_obj = new stdClass();
|
||||
$trigger_obj->user_id = $user_id;
|
||||
$trigger_obj->password = $password;
|
||||
$trigger_output = ModuleHandler::triggerCall('member.doLogin', 'before', $trigger_obj);
|
||||
|
|
@ -1574,6 +1578,7 @@ class memberController extends member
|
|||
|
||||
// check IP access count.
|
||||
$config = $oMemberModel->getMemberConfig();
|
||||
$args = new stdClass();
|
||||
$args->ipaddress = $_SERVER['REMOTE_ADDR'];
|
||||
$output = executeQuery('member.getLoginCountByIp', $args);
|
||||
$count = (int)$output->data->count;
|
||||
|
|
@ -2105,6 +2110,7 @@ class memberController extends member
|
|||
function deleteMember($member_srl)
|
||||
{
|
||||
// Call a trigger (before)
|
||||
$tirgger_obj = new stdClass();
|
||||
$trigger_obj->member_srl = $member_srl;
|
||||
$output = ModuleHandler::triggerCall('member.deleteMember', 'before', $trigger_obj);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
|
@ -2123,6 +2129,7 @@ class memberController extends member
|
|||
$oDB = &DB::getInstance();
|
||||
$oDB->begin();
|
||||
|
||||
$args = new stdClass();
|
||||
$args->member_srl = $member_srl;
|
||||
// Delete the entries in member_auth_mail
|
||||
$output = executeQuery('member.deleteAuthMail', $args);
|
||||
|
|
@ -2195,6 +2202,7 @@ class memberController extends member
|
|||
|
||||
if($memberSrl || $_COOKIE['xeak'])
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->member_srl = $memberSrl;
|
||||
$args->autologin_key = $_COOKIE['xeak'];
|
||||
$output = executeQuery('member.deleteAutologin', $args);
|
||||
|
|
|
|||
|
|
@ -262,6 +262,7 @@ class memberModel extends member
|
|||
{
|
||||
if(!$email_address) return;
|
||||
|
||||
$args = new stdClass();
|
||||
$args->email_address = $email_address;
|
||||
$output = executeQuery('member.getMemberInfoByEmailAddress', $args);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
|
@ -290,6 +291,7 @@ class memberModel extends member
|
|||
|
||||
if(!$GLOBALS['__member_info__'][$member_srl])
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->member_srl = $member_srl;
|
||||
$output = executeQuery('member.getMemberInfoByMemberSrl', $args, $columnList);
|
||||
if(!$output->data) return;
|
||||
|
|
@ -370,6 +372,7 @@ class memberModel extends member
|
|||
*/
|
||||
function getMemberSrlByUserID($user_id)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->user_id = $user_id;
|
||||
$output = executeQuery('member.getMemberSrl', $args);
|
||||
return $output->data->member_srl;
|
||||
|
|
@ -380,6 +383,7 @@ class memberModel extends member
|
|||
*/
|
||||
function getMemberSrlByEmailAddress($email_address)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->email_address = $email_address;
|
||||
$output = executeQuery('member.getMemberSrl', $args);
|
||||
return $output->data->member_srl;
|
||||
|
|
@ -390,6 +394,7 @@ class memberModel extends member
|
|||
*/
|
||||
function getMemberSrlByNickName($nick_name)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->nick_name = $nick_name;
|
||||
$output = executeQuery('member.getMemberSrl', $args);
|
||||
return $output->data->member_srl;
|
||||
|
|
@ -431,6 +436,7 @@ class memberModel extends member
|
|||
{
|
||||
if(!$output)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->member_srl = $member_srl;
|
||||
$args->site_srl = $site_srl;
|
||||
$output = executeQuery('member.getMemberGroups', $args);
|
||||
|
|
@ -475,6 +481,7 @@ class memberModel extends member
|
|||
*/
|
||||
function getDefaultGroup($site_srl = 0, $columnList = array())
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->site_srl = $site_srl;
|
||||
$output = executeQuery('member.getDefaultGroup', $args, $columnList);
|
||||
return $output->data;
|
||||
|
|
@ -512,6 +519,7 @@ class memberModel extends member
|
|||
{
|
||||
$site_srl = 0;
|
||||
}
|
||||
$args = new stdClass();
|
||||
$args->site_srl = $site_srl;
|
||||
$args->sort_index = 'list_order';
|
||||
$args->order_type = 'asc';
|
||||
|
|
@ -557,6 +565,7 @@ class memberModel extends member
|
|||
if(!$this->join_form_list)
|
||||
{
|
||||
// Argument setting to sort list_order column
|
||||
$args = new stdClass();
|
||||
$args->sort_index = "list_order";
|
||||
$output = executeQuery('member.getJoinFormList', $args);
|
||||
// NULL if output data deosn't exist
|
||||
|
|
@ -624,6 +633,7 @@ class memberModel extends member
|
|||
*/
|
||||
function getUsedJoinFormList()
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->sort_index = "list_order";
|
||||
$output = executeQueryArray('member.getJoinFormList', $args);
|
||||
|
||||
|
|
@ -756,6 +766,7 @@ class memberModel extends member
|
|||
*/
|
||||
function isDeniedID($user_id)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->user_id = $user_id;
|
||||
$output = executeQuery('member.chkDeniedID', $args);
|
||||
if($output->data->count) return true;
|
||||
|
|
@ -767,6 +778,7 @@ class memberModel extends member
|
|||
*/
|
||||
function isDeniedNickName($nickName)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->nick_name = $nickName;
|
||||
$output = executeQuery('member.chkDeniedNickName', $args);
|
||||
if($output->data->count) return true;
|
||||
|
|
@ -876,6 +888,7 @@ class memberModel extends member
|
|||
{
|
||||
if($group_info->image_mark)
|
||||
{
|
||||
$info = new stdClass();
|
||||
$info->title = $group_info->title;
|
||||
$info->description = $group_info->description;
|
||||
$info->src = $group_info->image_mark;
|
||||
|
|
|
|||
|
|
@ -205,6 +205,7 @@ class memberView extends member
|
|||
Context::set('formTags', $formTags);
|
||||
|
||||
global $lang;
|
||||
$identifierForm = new stdClass();
|
||||
$identifierForm->title = $lang->{$member_config->identifier};
|
||||
$identifierForm->name = $member_config->identifier;
|
||||
$identifierForm->value = $member_info->{$member_config->identifier};
|
||||
|
|
@ -282,6 +283,7 @@ class memberView extends member
|
|||
if($member_info->member_srl)
|
||||
{
|
||||
$oEditorModel = &getModel('editor');
|
||||
$option = new stdClass();
|
||||
$option->primary_key_name = 'member_srl';
|
||||
$option->content_key_name = 'signature';
|
||||
$option->allow_fileupload = false;
|
||||
|
|
@ -304,6 +306,7 @@ class memberView extends member
|
|||
Context::set('formTags', $formTags);
|
||||
|
||||
global $lang;
|
||||
$identifierForm = new stdClass();
|
||||
$identifierForm->title = $lang->{$member_config->identifier};
|
||||
$identifierForm->name = $member_config->identifier;
|
||||
$identifierForm->value = $member_info->{$member_config->identifier};
|
||||
|
|
@ -349,6 +352,7 @@ class memberView extends member
|
|||
if(!$oMemberModel->isLogged()) return $this->stop('msg_not_logged');
|
||||
|
||||
$logged_info = Context::get('logged_info');
|
||||
$args = new stdClass();
|
||||
$args->member_srl = $logged_info->member_srl;
|
||||
$args->page = (int)Context::get('page');
|
||||
|
||||
|
|
@ -372,6 +376,7 @@ class memberView extends member
|
|||
if(!$oMemberModel->isLogged()) return $this->stop('msg_not_logged');
|
||||
// Get the saved document(module_srl is set to member_srl instead)
|
||||
$logged_info = Context::get('logged_info');
|
||||
$args = new stdClass();
|
||||
$args->member_srl = $logged_info->member_srl;
|
||||
$args->page = (int)Context::get('page');
|
||||
$args->statusList = array('TEMP');
|
||||
|
|
|
|||
|
|
@ -63,6 +63,7 @@ class menuAdminController extends menu
|
|||
{
|
||||
// List variables
|
||||
$site_module_info = Context::get('site_module_info');
|
||||
$args = new stdClass();
|
||||
$args->site_srl = (int)$site_module_info->site_srl;
|
||||
$args->title = Context::get('title');
|
||||
|
||||
|
|
@ -86,6 +87,7 @@ class menuAdminController extends menu
|
|||
function procMenuAdminUpdate()
|
||||
{
|
||||
// List variables
|
||||
$args = new stdClass();
|
||||
$args->title = Context::get('title');
|
||||
$args->menu_srl = Context::get('menu_srl');
|
||||
|
||||
|
|
@ -166,6 +168,7 @@ class menuAdminController extends menu
|
|||
$oDB = DB::getInstance();
|
||||
$oDB->begin();
|
||||
|
||||
$args = new stdClass();
|
||||
$args->menu_srl = $menu_srl;
|
||||
|
||||
// Delete modules
|
||||
|
|
@ -346,6 +349,7 @@ class menuAdminController extends menu
|
|||
// empty target shortcut
|
||||
else
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->menu_srl = $request->menu_srl;
|
||||
$args->name = $request->menu_name;
|
||||
$args->parent_srl = $request->parent_srl;
|
||||
|
|
@ -369,6 +373,7 @@ class menuAdminController extends menu
|
|||
$oDB->begin();
|
||||
|
||||
// set menu variable
|
||||
$args = new stdClass();
|
||||
$args->menu_srl = $request->menu_srl;
|
||||
$args->parent_srl = $request->parent_srl;
|
||||
$args->open_window = $request->menu_open_window;
|
||||
|
|
@ -428,6 +433,7 @@ class menuAdminController extends menu
|
|||
*/
|
||||
private function _insertModule(&$request, &$args)
|
||||
{
|
||||
$cmArgs = new stdClass();
|
||||
switch ($request->module_type)
|
||||
{
|
||||
case 'WIDGET' :
|
||||
|
|
@ -637,6 +643,7 @@ class menuAdminController extends menu
|
|||
function procMenuAdminDeleteItem()
|
||||
{
|
||||
// argument variables
|
||||
$args = new stdClass();
|
||||
$args->menu_srl = Context::get('menu_srl');
|
||||
$args->menu_item_srl = Context::get('menu_item_srl');
|
||||
$args->is_force = Context::get('is_force');
|
||||
|
|
@ -753,6 +760,7 @@ class menuAdminController extends menu
|
|||
private function _deleteMenuItem(&$oDB, &$menuInfo, $node)
|
||||
{
|
||||
// Remove from the DB
|
||||
$args = new stdClass();
|
||||
$args->menu_srl = $menuSrl;
|
||||
$args->menu_item_srl = $node['node_srl'];
|
||||
$output = executeQuery("menu.deleteMenuItem", $args);
|
||||
|
|
@ -996,6 +1004,7 @@ class menuAdminController extends menu
|
|||
$menuItemInfo = $oMenuAdminModel->getMenuItemInfo($originMenu['node_srl']);
|
||||
|
||||
// default argument setting
|
||||
$args = new stdClass();
|
||||
$args->menu_srl = $menuSrl;
|
||||
if($parentSrl == 0) $args->parent_srl = $menuSrl;
|
||||
else $args->parent_srl = $parentSrl;
|
||||
|
|
@ -1021,6 +1030,7 @@ class menuAdminController extends menu
|
|||
$args->layout_srl = $moduleInfo->layout_srl;
|
||||
|
||||
$oModuleAdminController = &getAdminController('module');
|
||||
$copyArg = new stdClass();
|
||||
$copyArg->module_srl = $moduleInfo->module_srl;
|
||||
$copyArg->mid_1 = $args->module_id;
|
||||
$copyArg->browser_title_1 = $moduleInfo->browser_title;
|
||||
|
|
@ -1095,6 +1105,7 @@ class menuAdminController extends menu
|
|||
function procMenuAdminArrangeItem()
|
||||
{
|
||||
$this->menuSrl = Context::get('menu_srl');
|
||||
$args = new stdClass();
|
||||
$args->title = Context::get('title');
|
||||
$parentKeyList = Context::get('parent_key');
|
||||
$this->itemKeyList = Context::get('item_key');
|
||||
|
|
@ -1122,7 +1133,7 @@ class menuAdminController extends menu
|
|||
{
|
||||
if(!$this->checked[$srl])
|
||||
{
|
||||
unset($target);
|
||||
$target = new stdClass();
|
||||
$this->checked[$srl] = 1;
|
||||
$target->node = $srl;
|
||||
$target->child= array();
|
||||
|
|
@ -1165,6 +1176,7 @@ class menuAdminController extends menu
|
|||
$child_srl = $this->itemKeyList[$child_index];
|
||||
$this->checked[$child_srl] = 1;
|
||||
|
||||
$child_node = new stdClass();
|
||||
$child_node->node = $child_srl;
|
||||
$child_node->parent_node = $parent_srl;
|
||||
$child_node->child = array();
|
||||
|
|
@ -1215,6 +1227,7 @@ class menuAdminController extends menu
|
|||
// Move the menu location(change the order menu appears)
|
||||
if($mode == 'move')
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->parent_srl = $parent_srl;
|
||||
$args->menu_srl = $menu_srl;
|
||||
|
||||
|
|
@ -1498,7 +1511,9 @@ class menuAdminController extends menu
|
|||
$xml_info = $oModuleModel->getModuleActionXML($moduleInfo->module);
|
||||
|
||||
$grantList = $xml_info->grant;
|
||||
$grantList->access = new stdClass();
|
||||
$grantList->access->default = 'guest';
|
||||
$grantList->manager = new stdClass();
|
||||
$grantList->manager->default = 'manager';
|
||||
|
||||
foreach($grantList AS $grantName=>$grantInfo)
|
||||
|
|
@ -1542,6 +1557,7 @@ class menuAdminController extends menu
|
|||
// Return if there is no information when creating the xml file
|
||||
if(!$menu_srl) return;
|
||||
// Get menu informaton
|
||||
$args = new stdClass();
|
||||
$args->menu_srl = $menu_srl;
|
||||
$output = executeQuery('menu.getMenu', $args);
|
||||
if(!$output->toBool() || !$output->data) return $output;
|
||||
|
|
@ -1591,7 +1607,7 @@ class menuAdminController extends menu
|
|||
'$site_srl = '.$site_srl.';'.
|
||||
'$site_admin = false;'.
|
||||
'if($site_srl) { '.
|
||||
'$oModuleModel = &getModel(\'module\');'.
|
||||
'$oModuleModel = getModel(\'module\');'.
|
||||
'$site_module_info = $oModuleModel->getSiteInfo($site_srl); '.
|
||||
'if($site_module_info) Context::set(\'site_module_info\',$site_module_info);'.
|
||||
'else $site_module_info = Context::get(\'site_module_info\');'.
|
||||
|
|
@ -1609,10 +1625,9 @@ class menuAdminController extends menu
|
|||
// Create the xml cache file (a separate session is needed for xml cache)
|
||||
$xml_buff = sprintf(
|
||||
'<?php '.
|
||||
'define(\'__ZBXE__\', true); '.
|
||||
'define(\'__XE__\', true); '.
|
||||
'require_once(\''.FileHandler::getRealPath('./config/config.inc.php').'\'); '.
|
||||
'$oContext = &Context::getInstance(); '.
|
||||
'$oContext = Context::getInstance(); '.
|
||||
'$oContext->init(); '.
|
||||
'header("Content-Type: text/xml; charset=UTF-8"); '.
|
||||
'header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); '.
|
||||
|
|
@ -1631,8 +1646,8 @@ class menuAdminController extends menu
|
|||
$php_output = $this->getPhpCacheCode($tree[0], $tree, $site_srl, $domain);
|
||||
$php_buff = sprintf(
|
||||
'<?php '.
|
||||
'if(!defined("__ZBXE__")) exit(); '.
|
||||
'if(!defined("__XE__")) exit(); '.
|
||||
'$menu = new stdClass();' .
|
||||
'%s; '.
|
||||
'%s; '.
|
||||
'$menu->list = array(%s); '.
|
||||
|
|
|
|||
|
|
@ -57,6 +57,7 @@ class menuAdminModel extends menu
|
|||
$site_srl = (int)$site_module_info->site_srl;
|
||||
}
|
||||
// Get information from the DB
|
||||
$args = new stdClass();
|
||||
$args->site_srl = $site_srl ;
|
||||
$args->menu_srl = $menu_srl;
|
||||
$output = executeQueryArray('menu.getMenus', $args);
|
||||
|
|
@ -74,6 +75,7 @@ class menuAdminModel extends menu
|
|||
function getMenu($menu_srl)
|
||||
{
|
||||
// Get information from the DB
|
||||
$args = new stdClass();
|
||||
$args->menu_srl = $menu_srl;
|
||||
$output = executeQuery('menu.getMenu', $args);
|
||||
if(!$output->data) return;
|
||||
|
|
@ -93,6 +95,7 @@ class menuAdminModel extends menu
|
|||
function getMenuByTitle($title)
|
||||
{
|
||||
// Get information from the DB
|
||||
$args = new stdClass();
|
||||
$args->title = $title;
|
||||
$output = executeQuery('menu.getMenuByTitle', $args);
|
||||
if(!$output->data) return;
|
||||
|
|
@ -117,6 +120,7 @@ class menuAdminModel extends menu
|
|||
function getMenuItemInfo($menu_item_srl)
|
||||
{
|
||||
// Get the menu information if menu_item_srl exists
|
||||
$args = new stdClass();
|
||||
$args->menu_item_srl = $menu_item_srl;
|
||||
$output = executeQuery('menu.getMenuItem', $args);
|
||||
$node = $output->data;
|
||||
|
|
@ -191,7 +195,7 @@ class menuAdminModel extends menu
|
|||
$groupList = array();
|
||||
foreach($output AS $key=>$value)
|
||||
{
|
||||
|
||||
$groupList[$value->group_srl] = new stdClass();
|
||||
$groupList[$value->group_srl]->group_srl = $value->group_srl;
|
||||
if(substr($value->title,0,12)=='$user_lang->')
|
||||
{
|
||||
|
|
@ -222,6 +226,7 @@ class menuAdminModel extends menu
|
|||
*/
|
||||
function getMenuItems($menu_srl, $parent_srl = null, $columnList = array())
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->menu_srl = $menu_srl;
|
||||
$args->parent_srl = $parent_srl;
|
||||
|
||||
|
|
@ -484,6 +489,7 @@ class menuAdminModel extends menu
|
|||
$oMenuAdminController->makeXmlFile($value->menu_srl);
|
||||
}
|
||||
|
||||
$menuItems = new stdClass();
|
||||
$menuItems->menuSrl = $value->menu_srl;
|
||||
$menuItems->title = $value->title;
|
||||
$menuItems->menuItems = $menu;
|
||||
|
|
|
|||
|
|
@ -174,6 +174,7 @@ class menuAdminView extends menu
|
|||
}
|
||||
|
||||
//array_push($menuList, $value->xml_file);
|
||||
$menuItems = new stdClass();
|
||||
$menuItems->menuSrl = $value->menu_srl;
|
||||
$menuItems->title = $value->title;
|
||||
$menuItems->menuItems = $menu;
|
||||
|
|
@ -214,6 +215,7 @@ class menuAdminView extends menu
|
|||
$groupList = array();
|
||||
foreach($output AS $key=>$value)
|
||||
{
|
||||
$groupList[$value->group_srl] = new stdClass();
|
||||
$groupList[$value->group_srl]->group_srl = $value->group_srl;
|
||||
$groupList[$value->group_srl]->title = $value->title;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,6 +22,11 @@ class messageView extends message
|
|||
$oModuleModel = &getModel('module');
|
||||
$this->module_config = $config = $oModuleModel->getModuleConfig('message', $this->module_info->site_srl);
|
||||
|
||||
if(!$config)
|
||||
{
|
||||
$config = new stdClass();
|
||||
}
|
||||
|
||||
if(!$config->skin)
|
||||
{
|
||||
$config->skin = 'default';
|
||||
|
|
|
|||
|
|
@ -115,6 +115,7 @@ class moduleAdminController extends module
|
|||
$columnList = array('module', 'module_category_srl', 'layout_srl', 'use_mobile', 'mlayout_srl', 'menu_srl', 'site_srl', 'skin', 'mskin', 'description', 'mcontent', 'open_rss', 'header_text', 'footer_text', 'regdate');
|
||||
$module_info = $oModuleModel->getModuleInfoByModuleSrl($module_srl, $columnList);
|
||||
// Get permission information
|
||||
$module_args = new stdClass();
|
||||
$module_args->module_srl = $module_srl;
|
||||
$output = executeQueryArray('module.getModuleGrants', $module_args);
|
||||
$grant = array();
|
||||
|
|
@ -124,10 +125,12 @@ class moduleAdminController extends module
|
|||
}
|
||||
|
||||
// get Extra Vars
|
||||
$extra_args = new stdClass();
|
||||
$extra_args->module_srl = $module_srl;
|
||||
$extra_output = executeQueryArray('module.getModuleExtraVars', $extra_args);
|
||||
if($extra_output->toBool() && is_array($extra_output->data))
|
||||
{
|
||||
$extra_vars = new stdClass();
|
||||
foreach($extra_output->data as $info)
|
||||
{
|
||||
$extra_vars->{$info->name} = $info->value;
|
||||
|
|
@ -156,6 +159,7 @@ class moduleAdminController extends module
|
|||
$oDB = &DB::getInstance();
|
||||
$oDB->begin();
|
||||
// Copy a module
|
||||
$triggerObj = new stdClass();
|
||||
$triggerObj->originModuleSrl = $module_srl;
|
||||
$triggerObj->moduleSrlList = array();
|
||||
|
||||
|
|
@ -275,7 +279,9 @@ class moduleAdminController extends module
|
|||
|
||||
$grant_list = $xml_info->grant;
|
||||
|
||||
$grant_list->access = new stdClass();
|
||||
$grant_list->access->default = 'guest';
|
||||
$grant_list->manager = new stdClass();
|
||||
$grant_list->manager->default = 'manager';
|
||||
|
||||
foreach($grant_list as $grant_name => $grant_info)
|
||||
|
|
@ -305,6 +311,7 @@ class moduleAdminController extends module
|
|||
}
|
||||
|
||||
// Stored in the DB
|
||||
$args = new stdClass();
|
||||
$args->module_srl = $module_srl;
|
||||
$output = executeQuery('module.deleteModuleGrants', $args);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
|
@ -315,7 +322,7 @@ class moduleAdminController extends module
|
|||
{
|
||||
foreach($group_srls as $key => $val)
|
||||
{
|
||||
$args = null;
|
||||
$args = new stdClass();
|
||||
$args->module_srl = $module_srl;
|
||||
$args->name = $grant_name;
|
||||
$args->group_srl = $val;
|
||||
|
|
@ -532,7 +539,9 @@ class moduleAdminController extends module
|
|||
$xml_info = $oModuleModel->getModuleActionXml($module_info->module);
|
||||
$grant_list = $xml_info->grant;
|
||||
|
||||
$grant_list->access = new stdClass();
|
||||
$grant_list->access->default = 'guest';
|
||||
$grant_list->manager = new stdClass();
|
||||
$grant_list->manager->default = 'manager';
|
||||
|
||||
foreach($grant_list as $grant_name => $grant_info)
|
||||
|
|
@ -567,7 +576,7 @@ class moduleAdminController extends module
|
|||
// Stored in the DB
|
||||
foreach($modules as $module_srl)
|
||||
{
|
||||
$args = null;
|
||||
$args = new stdClass();
|
||||
$args->module_srl = $module_srl;
|
||||
$output = executeQuery('module.deleteModuleGrants', $args);
|
||||
if(!$output->toBool()) continue;
|
||||
|
|
@ -576,7 +585,7 @@ class moduleAdminController extends module
|
|||
{
|
||||
foreach($group_srls as $key => $val)
|
||||
{
|
||||
$args = null;
|
||||
$args = new stdClass();
|
||||
$args->module_srl = $module_srl;
|
||||
$args->name = $grant_name;
|
||||
$args->group_srl = $val;
|
||||
|
|
@ -614,6 +623,7 @@ class moduleAdminController extends module
|
|||
$site_module_info = Context::get('site_module_info');
|
||||
$target = Context::get('target');
|
||||
$module = Context::get('module');
|
||||
$args = new stdClass();
|
||||
$args->site_srl = (int)$site_module_info->site_srl;
|
||||
$args->name = str_replace(' ','_',Context::get('lang_code'));
|
||||
$args->lang_name = str_replace(' ','_',Context::get('lang_name'));
|
||||
|
|
@ -664,6 +674,7 @@ class moduleAdminController extends module
|
|||
{
|
||||
// Get language code
|
||||
$site_module_info = Context::get('site_module_info');
|
||||
$args = new stdClass();
|
||||
$args->site_srl = (int)$site_module_info->site_srl;
|
||||
$args->name = str_replace(' ','_',Context::get('name'));
|
||||
$args->lang_name = str_replace(' ','_',Context::get('lang_name'));
|
||||
|
|
@ -794,6 +805,8 @@ class moduleAdminController extends module
|
|||
*/
|
||||
function makeCacheDefinedLangCode($site_srl = 0)
|
||||
{
|
||||
$args = new stdClass();
|
||||
|
||||
// Get the language file of the current site
|
||||
if(!$site_srl)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -56,7 +56,13 @@ class moduleAdminModel extends module
|
|||
|
||||
function getSelectedManageHTML($grantList, $tabChoice = array())
|
||||
{
|
||||
$grant_list =new stdClass();
|
||||
// Grant virtual permission for access and manager
|
||||
if(!$grantList)
|
||||
{
|
||||
$grantList =new stdClass();
|
||||
}
|
||||
$grantList->access = new stdClass();
|
||||
$grantList->access->title = Context::getLang('grant_access');
|
||||
$grantList->access->default = 'guest';
|
||||
if(count($grantList))
|
||||
|
|
@ -68,6 +74,7 @@ class moduleAdminModel extends module
|
|||
$grant_list->{$key} = $val;
|
||||
}
|
||||
}
|
||||
$grant_list->manager = new stdClass();
|
||||
$grant_list->manager->title = Context::getLang('grant_manager');
|
||||
$grant_list->manager->default = 'manager';
|
||||
Context::set('grant_list', $grant_list);
|
||||
|
|
@ -116,6 +123,8 @@ class moduleAdminModel extends module
|
|||
$columnList = array('module_srl', 'site_srl');
|
||||
$module_info = $oModuleModel->getModuleInfoByModuleSrl($module_srl, $columnList);
|
||||
// Grant virtual permission for access and manager
|
||||
$grant_list = new stdClass();
|
||||
$grant_list->access = new stdClass();
|
||||
$grant_list->access->title = Context::getLang('grant_access');
|
||||
$grant_list->access->default = 'guest';
|
||||
if(count($source_grant_list))
|
||||
|
|
@ -127,11 +136,13 @@ class moduleAdminModel extends module
|
|||
$grant_list->{$key} = $val;
|
||||
}
|
||||
}
|
||||
$grant_list->manager = new stdClass();
|
||||
$grant_list->manager->title = Context::getLang('grant_manager');
|
||||
$grant_list->manager->default = 'manager';
|
||||
Context::set('grant_list', $grant_list);
|
||||
// Get a permission group granted to the current module
|
||||
$default_grant = array();
|
||||
$args = new stdClass();
|
||||
$args->module_srl = $module_srl;
|
||||
$output = executeQueryArray('module.getModuleGrants', $args);
|
||||
if($output->data)
|
||||
|
|
@ -189,6 +200,8 @@ class moduleAdminModel extends module
|
|||
$xmlInfo = $oModuleModel->getModuleActionXml($targetModule);
|
||||
|
||||
// Grant virtual permission for access and manager
|
||||
$grantList = new stdClass();
|
||||
$grantList->access = new stdClass();
|
||||
$grantList->access->title = Context::getLang('grant_access');
|
||||
$grantList->access->default = 'guest';
|
||||
if(count($xmlInfo->grant))
|
||||
|
|
@ -200,11 +213,13 @@ class moduleAdminModel extends module
|
|||
$grantList->{$key} = $val;
|
||||
}
|
||||
}
|
||||
$grantList->manager = new stdClass();
|
||||
$grantList->manager->title = Context::getLang('grant_manager');
|
||||
$grantList->manager->default = 'manager';
|
||||
|
||||
// Get a permission group granted to the current module
|
||||
$defaultGrant = new stdClass();
|
||||
$args = new stdClass();
|
||||
$args->module_srl = $moduleSrl;
|
||||
$output = executeQueryArray('module.getModuleGrants', $args);
|
||||
if($output->data)
|
||||
|
|
@ -360,6 +375,7 @@ class moduleAdminModel extends module
|
|||
|
||||
if(substr($name,0,12)=='$user_lang->')
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->site_srl = (int)$site_srl;
|
||||
$args->name = substr($name,12);
|
||||
$output = executeQueryArray('module.getLang', $args);
|
||||
|
|
@ -489,6 +505,7 @@ class moduleAdminModel extends module
|
|||
function getModuleAdminLangListHtml()
|
||||
{
|
||||
$site_module_info = Context::get('site_module_info');
|
||||
$args = new stdClass();
|
||||
$args->site_srl = (int)$site_module_info->site_srl;
|
||||
$args->langCode = Context::get('lang_code');
|
||||
$args->page = Context::get('page');
|
||||
|
|
|
|||
|
|
@ -263,6 +263,7 @@ class moduleAdminView extends module
|
|||
{
|
||||
// Get the language file of the current site
|
||||
$site_module_info = Context::get('site_module_info');
|
||||
$args = new stdClass();
|
||||
$args->site_srl = (int)$site_module_info->site_srl;
|
||||
$args->langCode = Context::get('lang_type');
|
||||
$args->page = Context::get('page'); // /< Page
|
||||
|
|
|
|||
|
|
@ -62,6 +62,7 @@ class module extends ModuleObject
|
|||
if($oDB->isColumnExists("documents","extra_vars".$i)) return true;
|
||||
}
|
||||
// Insert site information to the table, sites
|
||||
$args = new stdClass();
|
||||
$args->site_srl = 0;
|
||||
$output = $oDB->executeQuery('module.getSite', $args);
|
||||
if(!$output->data) return true;
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ class moduleController extends module
|
|||
*/
|
||||
function insertActionForward($module, $type, $act)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->module = $module;
|
||||
$args->type = $type;
|
||||
$args->act = $act;
|
||||
|
|
@ -33,6 +34,7 @@ class moduleController extends module
|
|||
*/
|
||||
function deleteActionForward($module, $type, $act)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->module = $module;
|
||||
$args->type = $type;
|
||||
$args->act = $act;
|
||||
|
|
@ -48,6 +50,7 @@ class moduleController extends module
|
|||
*/
|
||||
function insertTrigger($trigger_name, $module, $type, $called_method, $called_position)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->trigger_name = $trigger_name;
|
||||
$args->module = $module;
|
||||
$args->type = $type;
|
||||
|
|
@ -76,6 +79,7 @@ class moduleController extends module
|
|||
*/
|
||||
function deleteTrigger($trigger_name, $module, $type, $called_method, $called_position)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->trigger_name = $trigger_name;
|
||||
$args->module = $module;
|
||||
$args->type = $type;
|
||||
|
|
@ -144,6 +148,7 @@ class moduleController extends module
|
|||
|
||||
function updateModuleConfig($module, $config, $site_srl = 0)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->module = $module;
|
||||
$args->site_srl = $site_srl;
|
||||
|
||||
|
|
@ -164,6 +169,7 @@ class moduleController extends module
|
|||
*/
|
||||
function insertModuleConfig($module, $config, $site_srl = 0)
|
||||
{
|
||||
$args =new stdClass();
|
||||
$args->module = $module;
|
||||
$args->config = serialize($config);
|
||||
$args->site_srl = $site_srl;
|
||||
|
|
@ -189,6 +195,7 @@ class moduleController extends module
|
|||
*/
|
||||
function insertModulePartConfig($module, $module_srl, $config)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->module = $module;
|
||||
$args->module_srl = $module_srl;
|
||||
$args->config = serialize($config);
|
||||
|
|
@ -338,6 +345,7 @@ class moduleController extends module
|
|||
// Get colorset from the skin information
|
||||
$module_path = ModuleHandler::getModulePath($args->module);
|
||||
$skin_info = $oModuleModel->loadSkinInfo($module_path, $args->skin);
|
||||
$skin_vars = new stdClass();
|
||||
$skin_vars->colorset = $skin_info->colorset[0]->name;
|
||||
// Arrange variables and then execute a query
|
||||
if(!$args->module_srl) $args->module_srl = getNextSequence();
|
||||
|
|
@ -506,6 +514,7 @@ class moduleController extends module
|
|||
|
||||
$oModuleModel = &getModel('module');
|
||||
$output = $oModuleModel->getModuleInfoByModuleSrl($module_srl);
|
||||
$args = new stdClass();
|
||||
$args->url = $output->mid;
|
||||
$args->is_shortcut = 'N';
|
||||
$args->site_srl = $site_module_info->site_srl;
|
||||
|
|
@ -555,6 +564,7 @@ class moduleController extends module
|
|||
if($module_srl == $start_module->index_module_srl) return new Object(-1, 'msg_cannot_delete_startmodule');
|
||||
|
||||
// Call a trigger (before)
|
||||
$trigger_obj = new stdClass();
|
||||
$trigger_obj->module_srl = $module_srl;
|
||||
$output = ModuleHandler::triggerCall('module.deleteModule', 'before', $trigger_obj);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
|
@ -563,6 +573,7 @@ class moduleController extends module
|
|||
$oDB = &DB::getInstance();
|
||||
$oDB->begin();
|
||||
|
||||
$args = new stdClass();
|
||||
$args->module_srl = $module_srl;
|
||||
// Delete module information from the DB
|
||||
$output = executeQuery('module.deleteModule', $args);
|
||||
|
|
@ -703,6 +714,7 @@ class moduleController extends module
|
|||
$member_info = $oMemberModel->getMemberInfoByUserID($admin_id);
|
||||
|
||||
if(!$member_info->member_srl) return;
|
||||
$args = new stdClass();
|
||||
$args->module_srl = $module_srl;
|
||||
$args->member_srl = $member_info->member_srl;
|
||||
return executeQuery('module.insertAdminId', $args);
|
||||
|
|
@ -713,6 +725,7 @@ class moduleController extends module
|
|||
*/
|
||||
function deleteAdminId($module_srl, $admin_id = '')
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->module_srl = $module_srl;
|
||||
|
||||
if($admin_id)
|
||||
|
|
@ -820,6 +833,7 @@ class moduleController extends module
|
|||
*/
|
||||
function _deleteModuleSkinVars($module_srl, $mode)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->module_srl = $module_srl;
|
||||
$mode = $mode === 'P' ? 'P' : 'M';
|
||||
|
||||
|
|
@ -854,7 +868,7 @@ class moduleController extends module
|
|||
|
||||
foreach($obj as $key => $val)
|
||||
{
|
||||
$args = null;
|
||||
$args = new stdClass();
|
||||
$args->module_srl = $module_srl;
|
||||
$args->name = trim($key);
|
||||
$args->value = trim($val);
|
||||
|
|
@ -868,6 +882,7 @@ class moduleController extends module
|
|||
*/
|
||||
function deleteModuleExtraVars($module_srl)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->module_srl = $module_srl;
|
||||
return executeQuery('module.deleteModuleExtraVars', $args);
|
||||
//remove from cache
|
||||
|
|
@ -893,7 +908,7 @@ class moduleController extends module
|
|||
|
||||
foreach($val as $group_srl)
|
||||
{
|
||||
$args = null;
|
||||
$args = new stdClass();
|
||||
$args->module_srl = $module_srl;
|
||||
$args->name = $name;
|
||||
$args->group_srl = trim($group_srl);
|
||||
|
|
@ -908,6 +923,7 @@ class moduleController extends module
|
|||
*/
|
||||
function deleteModuleGrants($module_srl)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->module_srl = $module_srl;
|
||||
return executeQuery('module.deleteModuleGrants', $args);
|
||||
}
|
||||
|
|
@ -1111,6 +1127,7 @@ class moduleController extends module
|
|||
|
||||
$module_filebox_srl = Context::get('module_filebox_srl');
|
||||
if(!$module_filebox_srl) return new Object(-1, 'msg_invalid_request');
|
||||
$vars = new stdClass();
|
||||
$vars->module_filebox_srl = $module_filebox_srl;
|
||||
$output = $this->deleteModuleFileBox($vars);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
|
@ -1123,6 +1140,7 @@ class moduleController extends module
|
|||
$output = $oModuleModel->getModuleFileBox($vars->module_filebox_srl);
|
||||
FileHandler::removeFile($output->data->filename);
|
||||
|
||||
$args = new stdClass();
|
||||
$args->module_filebox_srl = $vars->module_filebox_srl;
|
||||
return executeQuery('module.deleteModuleFileBox', $args);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ class moduleModel extends module
|
|||
$dirs[] = 'api';
|
||||
if(in_array($id, $dirs)) return true;
|
||||
// mid test
|
||||
$args = new stdClass();
|
||||
$args->mid = $id;
|
||||
$args->site_srl = $site_srl;
|
||||
$output = executeQuery('module.isExistsModuleName', $args);
|
||||
|
|
@ -33,6 +34,7 @@ class moduleModel extends module
|
|||
// vid test (check mid != vid if site_srl=0, which means it is not a virtual site)
|
||||
if(!$site_srl)
|
||||
{
|
||||
$site_args = new stdClass();
|
||||
$site_args->domain = $id;
|
||||
$output = executeQuery('module.isExistsSiteDomain', $site_args);
|
||||
if($output->data->count) return true;
|
||||
|
|
@ -46,6 +48,7 @@ class moduleModel extends module
|
|||
*/
|
||||
function getSiteInfo($site_srl, $columnList = array())
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->site_srl = $site_srl;
|
||||
$output = executeQuery('module.getSiteInfo', $args, $columnList);
|
||||
return $output->data;
|
||||
|
|
@ -53,6 +56,7 @@ class moduleModel extends module
|
|||
|
||||
function getSiteInfoByDomain($domain, $columnList = array())
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->domain= $domain;
|
||||
$output = executeQuery('module.getSiteInfoByDomain', $args, $columnList);
|
||||
return $output->data;
|
||||
|
|
@ -64,6 +68,7 @@ class moduleModel extends module
|
|||
*/
|
||||
function getModuleInfoByDocumentSrl($document_srl)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->document_srl = $document_srl;
|
||||
$output = executeQuery('module.getModuleInfoByDocument', $args);
|
||||
$this->applyDefaultSkin($output->data);
|
||||
|
|
@ -109,6 +114,7 @@ class moduleModel extends module
|
|||
if($oCacheHandler->isSupport()) $output = $oCacheHandler->get('domain_' . $domain);
|
||||
if(!$output)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->domain = $domain;
|
||||
$output = executeQuery('module.getSiteInfoByDomain', $args);
|
||||
if($oCacheHandler->isSupport() && $output->data) $oCacheHandler->put('domain_' . $domain, $output);
|
||||
|
|
@ -126,6 +132,7 @@ class moduleModel extends module
|
|||
if($oCacheHandler->isSupport()) $output = $oCacheHandler->get('default_site');
|
||||
if(!$output)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->site_srl = 0;
|
||||
$output = executeQuery('module.getSiteInfo', $args);
|
||||
// Update the related informaion if there is no default site info
|
||||
|
|
@ -176,6 +183,7 @@ class moduleModel extends module
|
|||
return;
|
||||
}
|
||||
|
||||
$args = new stdClass();
|
||||
$args->mid = $mid;
|
||||
$args->site_srl = (int)$site_srl;
|
||||
$oCacheHandler = &CacheHandler::getInstance('object');
|
||||
|
|
@ -225,6 +233,7 @@ class moduleModel extends module
|
|||
return;
|
||||
}
|
||||
|
||||
$args = new stdClass();
|
||||
$args->menu_item_srl = $menuItemSrl;
|
||||
$output = executeQuery('module.getModuleInfoByMenuItemSrl', $args);
|
||||
if(!$output->toBool())
|
||||
|
|
@ -314,6 +323,7 @@ class moduleModel extends module
|
|||
function getModuleInfoByModuleSrl($module_srl, $columnList = array())
|
||||
{
|
||||
// Get data
|
||||
$args = new stdClass();
|
||||
$args->module_srl = $module_srl;
|
||||
$oCacheHandler = &CacheHandler::getInstance('object');
|
||||
if($oCacheHandler->isSupport())
|
||||
|
|
@ -330,6 +340,7 @@ class moduleModel extends module
|
|||
}
|
||||
if(count($columnList))
|
||||
{
|
||||
$module_info = new stdClass();
|
||||
foreach($output->data as $key => $item)
|
||||
{
|
||||
if(in_array($key, $columnList))
|
||||
|
|
@ -384,6 +395,7 @@ class moduleModel extends module
|
|||
function getModulesInfo($module_srls, $columnList = array())
|
||||
{
|
||||
if(is_array($module_srls)) $module_srls = implode(',',$module_srls);
|
||||
$args = new stdClass();
|
||||
$args->module_srls = $module_srls;
|
||||
$output = executeQueryArray('module.getModulesInfo', $args, $columnList);
|
||||
if(!$output->toBool()) return;
|
||||
|
|
@ -490,6 +502,7 @@ class moduleModel extends module
|
|||
*/
|
||||
function getActionForward($act, $module = "")
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->act = $act;
|
||||
$args->module = ($module)?$module:null;
|
||||
if(strlen ($args->module) > 0) $output = executeQuery ('module.getActionForwardWithModule', $args);
|
||||
|
|
@ -511,6 +524,7 @@ class moduleModel extends module
|
|||
}
|
||||
if(!$output)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->trigger_name = $trigger_name;
|
||||
$args->called_position = $called_position;
|
||||
$output = executeQueryArray('module.getTriggers',$args);
|
||||
|
|
@ -524,6 +538,7 @@ class moduleModel extends module
|
|||
*/
|
||||
function getTrigger($trigger_name, $module, $type, $called_method, $called_position)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->trigger_name = $trigger_name;
|
||||
$args->module = $module;
|
||||
$args->type = $type;
|
||||
|
|
@ -613,6 +628,7 @@ class moduleModel extends module
|
|||
if($xml_obj->version && $xml_obj->attrs->version == '0.2')
|
||||
{
|
||||
// module format 0.2
|
||||
$module_info = new stdClass();
|
||||
$module_info->title = $xml_obj->title->body;
|
||||
$module_info->description = $xml_obj->description->body;
|
||||
$module_info->version = $xml_obj->version->body;
|
||||
|
|
@ -629,7 +645,7 @@ class moduleModel extends module
|
|||
|
||||
foreach($author_list as $author)
|
||||
{
|
||||
unset($author_obj);
|
||||
$author_obj = new stdClass();
|
||||
$author_obj->name = $author->name->body;
|
||||
$author_obj->email_address = $author->attrs->email_address;
|
||||
$author_obj->homepage = $author->attrs->link;
|
||||
|
|
@ -728,6 +744,7 @@ class moduleModel extends module
|
|||
// Update if no cache file exists or it is older than xml file
|
||||
if(!file_exists($cache_file) || filemtime($cache_file)<filemtime($xml_file))
|
||||
{
|
||||
$info = new stdClass();
|
||||
$buff = ""; // /< Set buff variable to use in the cache file
|
||||
|
||||
$xml_obj = XmlParser::loadXmlFile($xml_file); // /< Read xml file and convert it to xml object
|
||||
|
|
@ -746,12 +763,14 @@ class moduleModel extends module
|
|||
if(is_array($grants)) $grant_list = $grants;
|
||||
else $grant_list[] = $grants;
|
||||
|
||||
$info->grant = new stdClass();
|
||||
foreach($grant_list as $grant)
|
||||
{
|
||||
$name = $grant->attrs->name;
|
||||
$default = $grant->attrs->default?$grant->attrs->default:'guest';
|
||||
$title = $grant->title->body;
|
||||
|
||||
$info->grant->{$name} = new stdClass();
|
||||
$info->grant->{$name}->title = $title;
|
||||
$info->grant->{$name}->default = $default;
|
||||
|
||||
|
|
@ -765,6 +784,7 @@ class moduleModel extends module
|
|||
if(is_array($permissions)) $permission_list = $permissions;
|
||||
else $permission_list[] = $permissions;
|
||||
|
||||
$info->permission = new stdClass();
|
||||
foreach($permission_list as $permission)
|
||||
{
|
||||
$action = $permission->attrs->action;
|
||||
|
|
@ -781,12 +801,14 @@ class moduleModel extends module
|
|||
if(is_array($menus)) $menu_list = $menus;
|
||||
else $menu_list[] = $menus;
|
||||
|
||||
$info->menu = new stdClass();
|
||||
foreach($menu_list as $menu)
|
||||
{
|
||||
$menu_name = $menu->attrs->name;
|
||||
$menu_title = is_array($menu->title) ? $menu->title[0]->body : $menu->title->body;
|
||||
$menu_type = $menu->attrs->type;
|
||||
|
||||
$info->menu->{$menu_name} = new stdClass();
|
||||
$info->menu->{$menu_name}->title = $menu_title;
|
||||
$info->menu->{$menu_name}->acts = array();
|
||||
$info->menu->{$menu_name}->type = $menu_type;
|
||||
|
|
@ -802,6 +824,7 @@ class moduleModel extends module
|
|||
if(is_array($actions)) $action_list = $actions;
|
||||
else $action_list[] = $actions;
|
||||
|
||||
$info->action = new stdClass();
|
||||
foreach($action_list as $action)
|
||||
{
|
||||
$name = $action->attrs->name;
|
||||
|
|
@ -817,10 +840,7 @@ class moduleModel extends module
|
|||
$simple_setup_index = $action->attrs->simple_setup_index;
|
||||
$menu_index = $action->attrs->menu_index;
|
||||
|
||||
$output->action->{$name}->type = $type;
|
||||
$output->action->{$name}->grant = $grant;
|
||||
$output->action->{$name}->standalone= $standalone;
|
||||
|
||||
$info->action->{$name} = new stdClass();
|
||||
$info->action->{$name}->type = $type;
|
||||
$info->action->{$name}->grant = $grant;
|
||||
$info->action->{$name}->standalone = $standalone=='true'?true:false;
|
||||
|
|
@ -919,7 +939,11 @@ class moduleModel extends module
|
|||
{
|
||||
unset($skin_info);
|
||||
$skin_info = $this->loadSkinInfo($path, $skin_name, $dir);
|
||||
if(!$skin_info) $skin_info->title = $skin_name;
|
||||
if(!$skin_info)
|
||||
{
|
||||
$skin_info = new stdClass();
|
||||
$skin_info->title = $skin_name;
|
||||
}
|
||||
|
||||
$skin_list[$skin_name] = $skin_info;
|
||||
}
|
||||
|
|
@ -997,6 +1021,7 @@ class moduleModel extends module
|
|||
if(!$_xml_obj->skin) return;
|
||||
$xml_obj = $_xml_obj->skin;
|
||||
// Skin Name
|
||||
$skin_info = new stdClass();
|
||||
$skin_info->title = $xml_obj->title->body;
|
||||
// Author information
|
||||
if($xml_obj->version && $xml_obj->attrs->version == '0.2')
|
||||
|
|
@ -1015,7 +1040,7 @@ class moduleModel extends module
|
|||
|
||||
foreach($author_list as $author)
|
||||
{
|
||||
unset($author_obj);
|
||||
$author_obj = new stdClass();
|
||||
$author_obj->name = $author->name->body;
|
||||
$author_obj->email_address = $author->attrs->email_address;
|
||||
$author_obj->homepage = $author->attrs->link;
|
||||
|
|
@ -1039,7 +1064,7 @@ class moduleModel extends module
|
|||
|
||||
foreach($extra_vars as $key => $val)
|
||||
{
|
||||
unset($obj);
|
||||
$obj = new stdClass();
|
||||
if(!$val->attrs->type) { $val->attrs->type = 'text'; }
|
||||
|
||||
$obj->group = $group->title->body;
|
||||
|
|
@ -1058,12 +1083,14 @@ class moduleModel extends module
|
|||
|
||||
for($i = 0; $i < $option_count; $i++)
|
||||
{
|
||||
$obj->options[$i] = new stdClass();
|
||||
$obj->options[$i]->title = $val->options[$i]->title->body;
|
||||
$obj->options[$i]->value = $val->options[$i]->attrs->value;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$obj->options[0] = new stdClass();
|
||||
$obj->options[0]->title = $val->options->title->body;
|
||||
$obj->options[0]->value = $val->options->attrs->value;
|
||||
}
|
||||
|
|
@ -1133,6 +1160,7 @@ class moduleModel extends module
|
|||
$skin_info->license_link = $xml_obj->license->attrs->link;
|
||||
$skin_info->description = $xml_obj->maker->description->body;
|
||||
|
||||
$skin_info->author[0] = new stdClass();
|
||||
$skin_info->author[0]->name = $xml_obj->maker->name->body;
|
||||
$skin_info->author[0]->email_address = $xml_obj->maker->attrs->email_address;
|
||||
$skin_info->author[0]->homepage = $xml_obj->maker->attrs->link;
|
||||
|
|
@ -1214,7 +1242,7 @@ class moduleModel extends module
|
|||
}
|
||||
else $screenshot = "";
|
||||
|
||||
unset($obj);
|
||||
$obj = new stdClass();
|
||||
$obj->name = $name;
|
||||
$obj->title = $title;
|
||||
$obj->screenshot = $screenshot;
|
||||
|
|
@ -1275,6 +1303,7 @@ class moduleModel extends module
|
|||
{
|
||||
if(!$GLOBALS['__ModuleConfig__'][$site_srl][$module])
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->module = $module;
|
||||
$args->site_srl = $site_srl;
|
||||
$output = executeQuery('module.getModuleConfig', $args);
|
||||
|
|
@ -1310,6 +1339,7 @@ class moduleModel extends module
|
|||
{
|
||||
if(!$GLOBALS['__ModulePartConfig__'][$module][$module_srl])
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->module = $module;
|
||||
$args->module_srl = $module_srl;
|
||||
$output = executeQuery('module.getModulePartConfig', $args);
|
||||
|
|
@ -1332,6 +1362,7 @@ class moduleModel extends module
|
|||
*/
|
||||
function getModulePartConfigs($module, $site_srl = 0)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->module = $module;
|
||||
if($site_srl) $args->site_srl = $site_srl;
|
||||
$output = executeQueryArray('module.getModulePartConfigs', $args);
|
||||
|
|
@ -1349,6 +1380,7 @@ class moduleModel extends module
|
|||
*/
|
||||
function getModuleCategories($moduleCategorySrl = array())
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->moduleCategorySrl = $moduleCategorySrl;
|
||||
// Get data from the DB
|
||||
$output = executeQuery('module.getModuleCategories', $args);
|
||||
|
|
@ -1526,6 +1558,7 @@ class moduleModel extends module
|
|||
$module_srls[] = $data->module_srl;
|
||||
}
|
||||
|
||||
$args = new stdClass();
|
||||
$args->module_srls = implode(',',$module_srls);
|
||||
$output = executeQueryArray('module.getModuleSites', $args);
|
||||
if(!$output->data) return array();
|
||||
|
|
@ -1555,6 +1588,7 @@ class moduleModel extends module
|
|||
if(!$member_info->member_srl) return false;
|
||||
if($member_info->is_admin == 'Y') return true;
|
||||
|
||||
$args = new stdClass();
|
||||
if(!isset($site_srl))
|
||||
{
|
||||
$site_module_info = Context::get('site_module_info');
|
||||
|
|
@ -1587,6 +1621,7 @@ class moduleModel extends module
|
|||
*/
|
||||
function getAdminId($module_srl)
|
||||
{
|
||||
$obj = new stdClass();
|
||||
$obj->module_srl = $module_srl;
|
||||
$output = executeQueryArray('module.getAdminID', $obj);
|
||||
if(!$output->toBool() || !$output->data) return;
|
||||
|
|
@ -1610,6 +1645,7 @@ class moduleModel extends module
|
|||
}
|
||||
if(!$vars)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->module_srl = $module_srl;
|
||||
$output = executeQueryArray('module.getModuleExtraVars',$args);
|
||||
if(!$output->toBool() || !$output->data)
|
||||
|
|
@ -1621,6 +1657,10 @@ class moduleModel extends module
|
|||
foreach($output->data as $key => $val)
|
||||
{
|
||||
if(in_array($val->name, array('mid','module')) || $val->value == 'Array') continue;
|
||||
if(!isset($vars[$val->module_srl]))
|
||||
{
|
||||
$vars[$val->module_srl] = new stdClass();
|
||||
}
|
||||
$vars[$val->module_srl]->{$val->name} = $val->value;
|
||||
}
|
||||
if($oCacheHandler->isSupport()) $oCacheHandler->put($cache_key,$vars);
|
||||
|
|
@ -1637,6 +1677,7 @@ class moduleModel extends module
|
|||
*/
|
||||
function getModuleSkinVars($module_srl)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->module_srl = $module_srl;
|
||||
$output = executeQueryArray('module.getModuleSkinVars',$args);
|
||||
if(!$output->toBool() || !$output->data) return;
|
||||
|
|
@ -1689,6 +1730,7 @@ class moduleModel extends module
|
|||
|
||||
if($updateCache && $skinName)
|
||||
{
|
||||
$designInfo->module->{$module_name} = new stdClass();
|
||||
$designInfo->module->{$module_name}->{$target} = $skinName;
|
||||
|
||||
$oAdminController = getAdminController('admin');
|
||||
|
|
@ -1725,6 +1767,7 @@ class moduleModel extends module
|
|||
}
|
||||
if(!$output)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->module_srl = $module_info->module_srl;
|
||||
$output = executeQueryArray($query,$args);
|
||||
//insert in cache
|
||||
|
|
@ -1746,6 +1789,7 @@ class moduleModel extends module
|
|||
*/
|
||||
function getModuleMobileSkinVars($module_srl)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->module_srl = $module_srl;
|
||||
$output = executeQueryArray('module.getModuleMobileSkinVars',$args);
|
||||
if(!$output->toBool() || !$output->data) return;
|
||||
|
|
@ -1790,6 +1834,8 @@ class moduleModel extends module
|
|||
*/
|
||||
function getGrant($module_info, $member_info, $xml_info = '')
|
||||
{
|
||||
$grant = new stdClass();
|
||||
|
||||
if(!$xml_info)
|
||||
{
|
||||
$module = $module_info->module;
|
||||
|
|
@ -1822,6 +1868,7 @@ class moduleModel extends module
|
|||
// If a just logged-in member is, check if the member is a module administrator
|
||||
if(!$grant->manager && $member_info->member_srl)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->module_srl = $module_srl;
|
||||
$args->member_srl = $member_info->member_srl;
|
||||
$output = executeQuery('module.getModuleAdmin',$args);
|
||||
|
|
@ -1830,7 +1877,7 @@ class moduleModel extends module
|
|||
// If not an administrator, get information from the DB and grant manager privilege.
|
||||
if(!$grant->manager)
|
||||
{
|
||||
$args = null;
|
||||
$args = new stdClass();
|
||||
// If planet, get permission settings from the planet home
|
||||
if($module_info->module == 'planet')
|
||||
{
|
||||
|
|
@ -1938,6 +1985,7 @@ class moduleModel extends module
|
|||
|
||||
function getModuleFileBox($module_filebox_srl)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->module_filebox_srl = $module_filebox_srl;
|
||||
return executeQuery('module.getModuleFileBox', $args);
|
||||
}
|
||||
|
|
@ -1946,6 +1994,7 @@ class moduleModel extends module
|
|||
{
|
||||
$oModuleModel = &getModel('module');
|
||||
|
||||
$args = new stdClass();
|
||||
$args->page = Context::get('page');
|
||||
$args->list_count = 5;
|
||||
$args->page_count = 5;
|
||||
|
|
@ -2093,6 +2142,7 @@ class moduleModel extends module
|
|||
*/
|
||||
function getModuleListByInstance($site_srl = 0, $columnList = array())
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->site_srl = $site_srl;
|
||||
$output = executeQueryArray('module.getModuleListByInstance', $args, $columnList);
|
||||
return $output;
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ class moduleView extends module
|
|||
// Variable setting for site keyword
|
||||
$site_keyword = Context::get('site_keyword');
|
||||
// If there is no site keyword, use as information of the current virtual site
|
||||
$args = null;
|
||||
$args = new stdClass();
|
||||
$logged_info = Context::get('logged_info');
|
||||
if($logged_info->is_admin == 'Y')
|
||||
{
|
||||
|
|
@ -98,7 +98,7 @@ class moduleView extends module
|
|||
if(!$module) continue;
|
||||
|
||||
$category = $val->category;
|
||||
$obj = null;
|
||||
$obj = new stdClass();
|
||||
$obj->module_srl = $val->module_srl;
|
||||
$obj->browser_title = $val->browser_title;
|
||||
$mid_list[$module]->list[$category][$val->mid] = $obj;
|
||||
|
|
|
|||
|
|
@ -149,6 +149,7 @@ class pageAdminController extends page
|
|||
|
||||
$oDocumentModel = &getModel('document');
|
||||
$oDocumentController = &getController('document');
|
||||
$obj = new stdClass();
|
||||
$obj->module_srl = $module_srl;
|
||||
$obj->list_count = 99999999;
|
||||
$output = $oDocumentModel->getDocumentList($obj);
|
||||
|
|
|
|||
|
|
@ -51,6 +51,7 @@ class pageAdminView extends page
|
|||
*/
|
||||
function dispPageAdminContent()
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->sort_index = "module_srl";
|
||||
$args->page = Context::get('page');
|
||||
$args->list_count = 40;
|
||||
|
|
|
|||
|
|
@ -308,7 +308,7 @@ class pointAdminController extends point
|
|||
{
|
||||
list($member_srl, $point) = explode(',',$str);
|
||||
|
||||
$args = null;
|
||||
$args = new stdClass();
|
||||
$args->member_srl = $member_srl;
|
||||
$args->point = $point;
|
||||
$output = executeQuery('point.insertPoint',$args);
|
||||
|
|
@ -349,7 +349,7 @@ class pointAdminController extends point
|
|||
{
|
||||
$srl = trim($module_srl[$i]);
|
||||
if(!$srl) continue;
|
||||
unset($args);
|
||||
$args = new stdClass();
|
||||
$args->module = 'point';
|
||||
$args->module_srl = $srl;
|
||||
executeQuery('module.deleteModulePartConfig', $args);
|
||||
|
|
|
|||
|
|
@ -90,6 +90,7 @@ class pointAdminView extends point
|
|||
{
|
||||
$oPointModel = &getModel('point');
|
||||
|
||||
$args = new stdClass();
|
||||
$args->list_count = 20;
|
||||
$args->page = Context::get('page');
|
||||
|
||||
|
|
|
|||
|
|
@ -488,6 +488,7 @@ class pointController extends point
|
|||
$prev_point = $oPointModel->getPoint($member_srl, true);
|
||||
$prev_level = $oPointModel->getLevel($prev_point, $config->level_step);
|
||||
// Change points
|
||||
$args =new stdClass();
|
||||
$args->member_srl = $member_srl;
|
||||
$args->point = $prev_point;
|
||||
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@ class pointModel extends point
|
|||
return true;
|
||||
}
|
||||
|
||||
$args =new stdClass();
|
||||
$args->member_srl = $member_srl;
|
||||
$output = executeQuery('point.getPoint', $args);
|
||||
if($output->data->member_srl == $member_srl)
|
||||
|
|
@ -64,6 +65,7 @@ class pointModel extends point
|
|||
return $this->pointList[$member_srl] = trim(FileHandler::readFile($cache_filename));
|
||||
|
||||
// Get from the DB
|
||||
$args =new stdClass();
|
||||
$args->member_srl = $member_srl;
|
||||
$output = executeQuery('point.getPoint', $args);
|
||||
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@ class pollAdminView extends poll
|
|||
}
|
||||
}
|
||||
// Options to get a list of pages
|
||||
$args = new stdClass();
|
||||
$args->page = Context::get('page');
|
||||
$args->list_count = 50; // The number of posts to show on one page
|
||||
$args->page_count = 10; // The number of pages to display in the page navigation
|
||||
|
|
|
|||
|
|
@ -283,6 +283,7 @@ class pollController extends poll
|
|||
$document_srl = $obj->document_srl;
|
||||
if(!$document_srl) return new Object();
|
||||
// Get the poll
|
||||
$args = new stdClass();
|
||||
$args->upload_target_srl = $document_srl;
|
||||
$output = executeQuery('poll.getPollByTargetSrl', $args);
|
||||
if(!$output->data) return new Object();
|
||||
|
|
@ -315,6 +316,7 @@ class pollController extends poll
|
|||
$comment_srl = $obj->comment_srl;
|
||||
if(!$comment_srl) return new Object();
|
||||
// Get the poll
|
||||
$args = new stdClass();
|
||||
$args->upload_target_srl = $comment_srl;
|
||||
$output = executeQuery('poll.getPollByTargetSrl', $args);
|
||||
if(!$output->data) return new Object();
|
||||
|
|
|
|||
|
|
@ -27,6 +27,10 @@ class rssAdminView extends rss
|
|||
$oModuleModel = &getModel('module');
|
||||
$rss_config = $oModuleModel->getModulePartConfigs('rss');
|
||||
$total_config = $oModuleModel->getModuleConfig('rss');
|
||||
if(!$totla_config)
|
||||
{
|
||||
$total_config =new stdClass();
|
||||
}
|
||||
$oRssModel = &getModel('rss');
|
||||
|
||||
if($rss_config)
|
||||
|
|
|
|||
|
|
@ -46,7 +46,11 @@ class rssModel extends rss
|
|||
// Get the configurations of the rss module
|
||||
$oModuleModel = &getModel('module');
|
||||
$module_rss_config = $oModuleModel->getModulePartConfig('rss', $module_srl);
|
||||
if(!$module_rss_config) $module_rss_config->open_rss = 'N';
|
||||
if(!$module_rss_config)
|
||||
{
|
||||
$module_rss_config = new stdClass();
|
||||
$module_rss_config->open_rss = 'N';
|
||||
}
|
||||
$module_rss_config->module_srl = $module_srl;
|
||||
return $module_rss_config;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@ class sessionController extends session
|
|||
$cache_vars = $oCacheHandler->get($cache_key);
|
||||
}
|
||||
|
||||
$args = new stdClass();
|
||||
$args->session_key = $session_key;
|
||||
if($cache_vars) $session_info = $cache_vars;
|
||||
else
|
||||
|
|
@ -121,6 +122,7 @@ class sessionController extends session
|
|||
$oCacheHandler->delete($cache_key);
|
||||
}
|
||||
//remove session from db
|
||||
$args = new stdClass();
|
||||
$args->session_key = $session_key;
|
||||
executeQuery('session.deleteSession', $args);
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ class sessionModel extends session
|
|||
}
|
||||
if(!$output->data)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->session_key = $session_key;
|
||||
$columnList = array('session_key', 'cur_mid', 'val');
|
||||
$output = executeQuery('session.getSession', $args, $columnList);
|
||||
|
|
|
|||
|
|
@ -147,13 +147,13 @@ class spamfilterController extends spamfilter
|
|||
*/
|
||||
function insertIP($ipaddress_list, $description = null)
|
||||
{
|
||||
print_r($ipaddress_list);
|
||||
$regExr = "/^((\d{1,3}(?:.(\d{1,3}|\*)){3})\s*(\/\/(.*)\s*)?)*\s*$/";
|
||||
if(!preg_match($regExr,$ipaddress_list)) return new Object(-1, 'msg_invalid');
|
||||
$ipaddress_list = str_replace("\r","",$ipaddress_list);
|
||||
$ipaddress_list = explode("\n",$ipaddress_list);
|
||||
foreach($ipaddress_list as $ipaddressValue)
|
||||
{
|
||||
$args = new stdClass();
|
||||
preg_match("/(\d{1,3}(?:.(\d{1,3}|\*)){3})\s*(\/\/(.*)\s*)?/",$ipaddressValue,$matches);
|
||||
if($ipaddress=trim($matches[1]))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ class spamfilterModel extends spamfilter
|
|||
*/
|
||||
function getDeniedIPList()
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->sort_index = "regdate";
|
||||
$args->page = Context::get('page')?Context::get('page'):1;
|
||||
$output = executeQuery('spamfilter.getDeniedIPList', $args);
|
||||
|
|
@ -61,6 +62,7 @@ class spamfilterModel extends spamfilter
|
|||
*/
|
||||
function getDeniedWordList()
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->sort_index = "hit";
|
||||
$output = executeQuery('spamfilter.getDeniedWordList', $args);
|
||||
if(!$output->data) return;
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ class tagAdminController extends tag
|
|||
*/
|
||||
function deleteModuleTags($module_srl)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->module_srl = $module_srl;
|
||||
return executeQuery('tag.deleteModuleTags', $args);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -49,6 +49,7 @@ class tagController extends tag
|
|||
$output = $this->triggerDeleteTag($obj);
|
||||
if(!$output->toBool()) return $output;
|
||||
// Re-enter the tag
|
||||
$args = new stdClass();
|
||||
$args->module_srl = $module_srl;
|
||||
$args->document_srl = $document_srl;
|
||||
|
||||
|
|
@ -75,6 +76,7 @@ class tagController extends tag
|
|||
$document_srl = $obj->document_srl;
|
||||
if(!$document_srl) return new Object();
|
||||
|
||||
$args = new stdClass();
|
||||
$args->document_srl = $document_srl;
|
||||
return executeQuery('tag.deleteTag', $args);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -125,6 +125,7 @@ class trackbackAdminController extends trackback
|
|||
*/
|
||||
function setTrackbackModuleConfig($module_srl, $enable_trackback)
|
||||
{
|
||||
$config = new stdClass();
|
||||
$config->enable_trackback = $enable_trackback;
|
||||
|
||||
$oModuleController = &getController('module');
|
||||
|
|
@ -140,6 +141,7 @@ class trackbackAdminController extends trackback
|
|||
function deleteModuleTrackbacks($module_srl)
|
||||
{
|
||||
// Delete
|
||||
$args = new stdClass();
|
||||
$args->module_srl = $module_srl;
|
||||
$output = executeQuery('trackback.deleteModuleTrackbacks', $args);
|
||||
|
||||
|
|
|
|||
|
|
@ -28,6 +28,8 @@ class trackbackAdminModel extends trackback
|
|||
$search_target = $obj->search_target?$obj->search_target:trim(Context::get('search_target'));
|
||||
$search_keyword = $obj->search_keyword?$obj->search_keyword:trim(Context::get('search_keyword'));
|
||||
|
||||
$args = new stdClass();
|
||||
|
||||
if($search_target && $search_keyword)
|
||||
{
|
||||
switch($search_target)
|
||||
|
|
@ -57,6 +59,7 @@ class trackbackAdminModel extends trackback
|
|||
}
|
||||
}
|
||||
// Variables
|
||||
$args = new stdClass();
|
||||
$args->sort_index = $obj->sort_index;
|
||||
$args->page = $obj->page?$obj->page:1;
|
||||
$args->list_count = $obj->list_count?$obj->list_count:20;
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ class trackbackAdminView extends trackback
|
|||
Context::set('config',$config);
|
||||
|
||||
// Options to get a list
|
||||
$args = new stdClass();
|
||||
$args->page = Context::get('page'); // / "Page
|
||||
$args->list_count = 30; // / "One page of posts to show the
|
||||
$args->page_count = 10; // / "Number of pages that appear in the page navigation
|
||||
|
|
|
|||
|
|
@ -277,6 +277,7 @@ class trackbackController extends trackback
|
|||
function deleteTrackbacks($document_srl)
|
||||
{
|
||||
// Delete
|
||||
$args = new stdClass();
|
||||
$args->document_srl = $document_srl;
|
||||
$output = executeQuery('trackback.deleteTrackbacks', $args);
|
||||
|
||||
|
|
|
|||
|
|
@ -134,6 +134,7 @@ class trackbackModel extends trackback
|
|||
if(!$module_trackback_config)
|
||||
{
|
||||
$trackback_config = $oModuleModel->getModuleConfig('trackback');
|
||||
$module_trackback_config = new stdClass();
|
||||
$module_trackback_config->enable_trackback = $trackback_config->enable_trackback!='N'?'Y':'N';
|
||||
}
|
||||
$module_trackback_config->module_srl = $module_srl;
|
||||
|
|
|
|||
|
|
@ -193,6 +193,7 @@ class trashAdminController extends trash
|
|||
if(count($trashSrlList) > 0)
|
||||
{
|
||||
$oTrashModel = &getModel('trash');
|
||||
$args = new stdClass();
|
||||
$args->trashSrl = $trashSrlList;
|
||||
$output = $oTrashModel->getTrashList($args);
|
||||
$trashList = $output->data;
|
||||
|
|
@ -215,6 +216,7 @@ class trashAdminController extends trash
|
|||
function _emptyTrash($trashSrls)
|
||||
{
|
||||
if(!is_array($trashSrls)) return false;
|
||||
$args = new stdClass();
|
||||
$args->trashSrls = $trashSrls;
|
||||
$output = executeQuery('trash.deleteTrash', $args);
|
||||
if(!$output->toBool()) return false;
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ class trashAdminView extends trash
|
|||
*/
|
||||
function dispTrashAdminList()
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->page = Context::get('page'); // /< Page
|
||||
$args->list_count = 30; // /< the number of posts to display on a single page
|
||||
$args->page_count = 5; // /< the number of pages that appear in the page navigation
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ class trashModel extends trash
|
|||
$oTrashVO = new TrashVO();
|
||||
if(!$trashSrl) return $oTrashVO;
|
||||
|
||||
$args = new stdClass();
|
||||
$args->trashSrl = $trashSrl;
|
||||
$output = executeQuery('trash.getTrash', $args, $columnList);
|
||||
|
||||
|
|
|
|||
|
|
@ -132,6 +132,7 @@ class widgetController extends widget
|
|||
$oDocumentModel = &getModel('document');
|
||||
$oDocumentController = &getController('document');
|
||||
|
||||
$obj = new stdClass();
|
||||
$obj->module_srl = $module_srl;
|
||||
$obj->content = $content;
|
||||
$obj->document_srl = $document_srl;
|
||||
|
|
@ -692,6 +693,11 @@ class widgetController extends widget
|
|||
$oWidgetModel = &getModel('widget');
|
||||
$widget_info = $oWidgetModel->getWidgetInfo($widget);
|
||||
|
||||
if(!$vars)
|
||||
{
|
||||
$vars = new stdClass();
|
||||
}
|
||||
|
||||
$widget = $vars->selected_widget;
|
||||
$vars->widgetstyle = $request_vars->widgetstyle;
|
||||
|
||||
|
|
|
|||
|
|
@ -67,6 +67,11 @@ class widgetModel extends widget
|
|||
// Wanted information on the Widget
|
||||
$widget_info = $this->getWidgetInfo($widget);
|
||||
|
||||
if(!$widget_info)
|
||||
{
|
||||
$widget_info = new stdClass();
|
||||
}
|
||||
|
||||
// get easyinstall remove url
|
||||
$packageSrl = $oAutoinstallModel->getPackageSrlByPath($widget_info->path);
|
||||
$widget_info->remove_url = $oAutoinstallModel->getRemoveUrlByPackageSrl($packageSrl);
|
||||
|
|
|
|||
|
|
@ -73,6 +73,7 @@ class widgetView extends widget
|
|||
$module_categories = $oModuleModel->getModuleCategories();
|
||||
// Get a mid list
|
||||
$site_module_info = Context::get('site_module_info');
|
||||
$args = new stdClass();
|
||||
$args->site_srl = $site_module_info->site_srl;
|
||||
$columnList = array('module_srl', 'module_category_srl', 'browser_title', 'mid');
|
||||
$mid_list = $oModuleModel->getMidList($args, $columnList);
|
||||
|
|
@ -90,6 +91,7 @@ class widgetView extends widget
|
|||
}
|
||||
else
|
||||
{
|
||||
$module_categories[0] = new stdClass();
|
||||
$module_categories[0]->list = $mid_list;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ class content extends WidgetHandler
|
|||
// Apply to all modules in the site if a target module is not specified
|
||||
if(!$args->module_srls)
|
||||
{
|
||||
unset($obj);
|
||||
$obj = new stdClass();
|
||||
$obj->site_srl = (int)$site_module_info->site_srl;
|
||||
$output = executeQueryArray('widgets.content.getMids', $obj);
|
||||
if($output->data)
|
||||
|
|
@ -223,6 +223,7 @@ class content extends WidgetHandler
|
|||
// Get model object from the document module
|
||||
$oDocumentModel = &getModel('document');
|
||||
// Get categories
|
||||
$obj = new stdClass();
|
||||
$obj->module_srl = $args->module_srl;
|
||||
$output = executeQueryArray('widgets.content.getCategories',$obj);
|
||||
if($output->toBool() && $output->data)
|
||||
|
|
@ -701,6 +702,7 @@ class content extends WidgetHandler
|
|||
{
|
||||
$oTemplate = &TemplateHandler::getInstance();
|
||||
// Set variables for widget
|
||||
$widget_info = new stdClass();
|
||||
$widget_info->modules_info = $args->modules_info;
|
||||
$widget_info->option_view_arr = $args->option_view_arr;
|
||||
$widget_info->list_count = $args->list_count;
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ class mcontent extends WidgetHandler
|
|||
// Apply to all modules in the site if a target module is not specified
|
||||
if(!$args->module_srls)
|
||||
{
|
||||
unset($obj);
|
||||
$obj = new stdClass();
|
||||
$obj->site_srl = (int)$site_module_info->site_srl;
|
||||
$output = executeQueryArray('widgets.content.getMids', $obj);
|
||||
if($output->data)
|
||||
|
|
@ -208,6 +208,7 @@ class mcontent extends WidgetHandler
|
|||
// Get model object of the document module and make the result as an object
|
||||
$oDocumentModel = &getModel('document');
|
||||
// Get categories
|
||||
$obj = new stdClass();
|
||||
$obj->module_srl = $args->module_srl;
|
||||
$output = executeQueryArray('widgets.content.getCategories',$obj);
|
||||
if($output->toBool() && $output->data)
|
||||
|
|
@ -622,6 +623,7 @@ class mcontent extends WidgetHandler
|
|||
{
|
||||
$oTemplate = &TemplateHandler::getInstance();
|
||||
// Set variables for widget
|
||||
$widget_info = new stdClass();
|
||||
$widget_info->modules_info = $args->modules_info;
|
||||
$widget_info->option_view_arr = $args->option_view_arr;
|
||||
$widget_info->list_count = $args->list_count;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue