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