mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
merge from 1.5.3 (~r10951). required minify admin.min.js
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3.1@10952 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
commit
d97822999e
34 changed files with 233 additions and 127 deletions
2
classes/cache/CacheApc.class.php
vendored
2
classes/cache/CacheApc.class.php
vendored
|
|
@ -116,7 +116,7 @@ class CacheApc extends CacheBase {
|
|||
* @return void
|
||||
*/
|
||||
function delete($key) {
|
||||
$this->_delete($_key);
|
||||
$this->_delete($key);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -847,19 +847,42 @@ class Context {
|
|||
* @return mixed filtered value. Type are string or array
|
||||
*/
|
||||
function _filterRequestVar($key, $val, $do_stripslashes = 1) {
|
||||
if( ($key == 'page' || $key == 'cpage' || substr($key,-3)=='srl')) return !preg_match('/^[0-9,]+$/',$val)?(int)$val:$val;
|
||||
if($key == 'mid' || $key == 'vid' || $key == 'search_keyword') return htmlspecialchars($val);
|
||||
if(is_array($val) && count($val) ) {
|
||||
foreach($val as $k => $v) {
|
||||
if($do_stripslashes && version_compare(PHP_VERSION, '5.9.0', '<') && get_magic_quotes_gpc()) $v = stripslashes($v);
|
||||
$v = trim($v);
|
||||
$val[$k] = $v;
|
||||
}
|
||||
} else {
|
||||
if($do_stripslashes && version_compare(PHP_VERSION, '5.9.0', '<') && get_magic_quotes_gpc()) $val = stripslashes($val);
|
||||
$val = trim($val);
|
||||
$isArray = TRUE;
|
||||
if(!is_array($val))
|
||||
{
|
||||
$isArray = FALSE;
|
||||
$val = array($val);
|
||||
}
|
||||
|
||||
foreach($val as $k => $v)
|
||||
{
|
||||
if($key === 'page' || $key === 'cpage' || substr($key, -3) === 'srl')
|
||||
{
|
||||
$val[$k] = !preg_match('/^[0-9,]+$/', $v) ? (int)$v : $v;
|
||||
}
|
||||
elseif($key === 'mid' || $key === 'vid' || $key === 'search_keyword')
|
||||
{
|
||||
$val[$k] = htmlspecialchars($v);
|
||||
}
|
||||
else
|
||||
{
|
||||
if($do_stripslashes && version_compare(PHP_VERSION, '5.9.0', '<') && get_magic_quotes_gpc())
|
||||
{
|
||||
$v = stripslashes($v);
|
||||
}
|
||||
|
||||
$val[$k] = trim($v);
|
||||
}
|
||||
}
|
||||
|
||||
if($isArray)
|
||||
{
|
||||
return $val;
|
||||
}
|
||||
else
|
||||
{
|
||||
return $val[0];
|
||||
}
|
||||
return $val;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -582,7 +582,7 @@ class DBMysql extends DB {
|
|||
$uses_groupby = $queryObject->getGroupByString() != '';
|
||||
if($uses_distinct || $uses_groupby) {
|
||||
$count_query = sprintf('select %s %s %s %s'
|
||||
, $temp_select
|
||||
, $temp_select == '*' ? '1' : $temp_select
|
||||
, 'FROM ' . $queryObject->getFromString($with_values)
|
||||
, ($temp_where === '' ? '' : ' WHERE '. $temp_where)
|
||||
, ($uses_groupby ? ' GROUP BY ' . $queryObject->getGroupByString() : '')
|
||||
|
|
|
|||
|
|
@ -175,7 +175,7 @@ class HTMLDisplayHandler {
|
|||
switch($type){
|
||||
case 'text':
|
||||
case 'hidden':
|
||||
$str = preg_replace('@\svalue="[^"]*?"@', ' ', $str).' value="'.htmlspecialchars($INPUT_ERROR[$match[3]]).'"';
|
||||
$str = preg_replace('@\svalue="[^"]*?"@', ' ', $str).' value="'.@htmlspecialchars($INPUT_ERROR[$match[3]]).'"';
|
||||
break;
|
||||
case 'password':
|
||||
$str = preg_replace('@\svalue="[^"]*?"@', ' ', $str);
|
||||
|
|
@ -183,7 +183,7 @@ class HTMLDisplayHandler {
|
|||
case 'radio':
|
||||
case 'checkbox':
|
||||
$str = preg_replace('@\schecked(="[^"]*?")?@', ' ', $str);
|
||||
if(preg_match('@\s(?i:value)="'.$INPUT_ERROR[$match[3]].'"@', $str)) {
|
||||
if(@preg_match('@\s(?i:value)="'.$INPUT_ERROR[$match[3]].'"@', $str)) {
|
||||
$str .= ' checked="checked"';
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -212,7 +212,17 @@
|
|||
if(!$this->act) {
|
||||
$this->error = 'msg_module_is_not_exists';
|
||||
$this->httpStatusCode = '404';
|
||||
return;
|
||||
|
||||
$type = Mobile::isFromMobilePhone() ? 'mobile' : 'view';
|
||||
$oMessageObject = &ModuleHandler::getModuleInstance('message',$type);
|
||||
$oMessageObject->setError(-1);
|
||||
$oMessageObject->setMessage($this->error);
|
||||
$oMessageObject->dispMessage();
|
||||
if($this->httpStatusCode)
|
||||
{
|
||||
$oMessageObject->setHttpStatusCode($this->httpStatusCode);
|
||||
}
|
||||
return $oMessageObject;
|
||||
}
|
||||
|
||||
// get type, kind
|
||||
|
|
@ -271,9 +281,16 @@
|
|||
}
|
||||
|
||||
if(!is_object($oModule)) {
|
||||
$this->error = 'msg_module_is_not_exists';
|
||||
$this->httpStatusCode = '404';
|
||||
return;
|
||||
$type = Mobile::isFromMobilePhone() ? 'mobile' : 'view';
|
||||
$oMessageObject = &ModuleHandler::getModuleInstance('message',$type);
|
||||
$oMessageObject->setError(-1);
|
||||
$oMessageObject->setMessage($this->error);
|
||||
$oMessageObject->dispMessage();
|
||||
if($this->httpStatusCode)
|
||||
{
|
||||
$oMessageObject->setHttpStatusCode($this->httpStatusCode);
|
||||
}
|
||||
return $oMessageObject;
|
||||
}
|
||||
|
||||
// If there is no such action in the module object
|
||||
|
|
@ -283,7 +300,15 @@
|
|||
if(!Context::isInstalled())
|
||||
{
|
||||
$this->error = 'msg_invalid_request';
|
||||
return;
|
||||
$oMessageObject = &ModuleHandler::getModuleInstance('message',$type);
|
||||
$oMessageObject->setError(-1);
|
||||
$oMessageObject->setMessage($this->error);
|
||||
$oMessageObject->dispMessage();
|
||||
if($this->httpStatusCode)
|
||||
{
|
||||
$oMessageObject->setHttpStatusCode($this->httpStatusCode);
|
||||
}
|
||||
return $oMessageObject;
|
||||
}
|
||||
|
||||
$forward = null;
|
||||
|
|
@ -369,7 +394,9 @@
|
|||
else
|
||||
{
|
||||
$this->error = 'msg_invalid_request';
|
||||
return;
|
||||
$oModule->setError(-1);
|
||||
$oModule->setMessage($this->error);
|
||||
return $oModule;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -61,12 +61,10 @@
|
|||
{
|
||||
$this->add('redirect_url', $url);
|
||||
}
|
||||
else
|
||||
|
||||
if($output !== NULL && is_object($output))
|
||||
{
|
||||
if($output !== NULL && is_object($output))
|
||||
{
|
||||
return $output;
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -153,7 +151,7 @@
|
|||
$oModuleModel = &getModel('module');
|
||||
// permission settings. access, manager(== is_admin) are fixed and privilege name in XE
|
||||
$module_srl = Context::get('module_srl');
|
||||
if(!$module_info->mid && preg_match('/^([0-9]+)$/',$module_srl)) {
|
||||
if(!$module_info->mid && !is_array($module_srl) && preg_match('/^([0-9]+)$/',$module_srl)) {
|
||||
$request_module = $oModuleModel->getModuleInfoByModuleSrl($module_srl);
|
||||
if($request_module->module_srl == $module_srl) {
|
||||
$grant = $oModuleModel->getGrant($request_module, $logged_info);
|
||||
|
|
@ -175,13 +173,15 @@
|
|||
// Check permissions
|
||||
switch($permission_target) {
|
||||
case 'root' :
|
||||
$this->stop('msg_not_permitted_act');
|
||||
break;
|
||||
case 'manager' :
|
||||
if(!$grant->manager) $this->stop('msg_not_permitted_act');
|
||||
break;
|
||||
case 'manager' :
|
||||
$this->stop('msg_not_permitted_act');
|
||||
return;
|
||||
case 'member' :
|
||||
if(!$is_logged) $this->stop('msg_not_permitted_act');
|
||||
if(!$is_logged)
|
||||
{
|
||||
$this->stop('msg_not_permitted_act');
|
||||
return;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
@ -335,7 +335,8 @@
|
|||
if(isset($this->xml_info->action->{$this->act}) && method_exists($this, $this->act)) {
|
||||
// Check permissions
|
||||
if($this->module_srl && !$this->grant->access){
|
||||
return $this->stop("msg_not_permitted_act");
|
||||
$this->stop("msg_not_permitted_act");
|
||||
return FALSE;
|
||||
}
|
||||
// integrate skin information of the module(change to sync skin info with the target module only by seperating its table)
|
||||
$oModuleModel = &getModel('module');
|
||||
|
|
|
|||
|
|
@ -209,7 +209,7 @@ class TemplateHandler {
|
|||
$buff = '<?php if(!defined("__XE__"))exit;?>'.$buff;
|
||||
|
||||
// remove php script reopening
|
||||
$buff = preg_replace(array('/(\n|\r\n)+/','/(;)?( )*\?\>([\n\t ]+)?\<\?php([\n\t ]+)?/'),array("\n",";\n"),$buff);
|
||||
$buff = preg_replace(array('/(\n|\r\n)+/','/(;)?( )*\?\>\<\?php([\n\t ]+)?/'),array("\n",";\n"),$buff);
|
||||
|
||||
return $buff;
|
||||
}
|
||||
|
|
@ -276,7 +276,7 @@ class TemplateHandler {
|
|||
if(!preg_match('/no-error-return-url="true"/i', $matches[1]))
|
||||
{
|
||||
preg_match('/<input[^>]*name="error_return_url"[^>]*>/is', $matches[2], $m3);
|
||||
if(!$m3[0]) $matches[2] = '<input type="hidden" name="error_return_url" value="<?php echo getRequestUriByServerEnviroment() ?>" />'.$matches[2];
|
||||
if(!$m3[0]) $matches[2] = '<input type="hidden" name="error_return_url" value="<?php echo htmlspecialchars(getRequestUriByServerEnviroment()) ?>" />'.$matches[2];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -545,7 +545,7 @@ class TemplateHandler {
|
|||
}
|
||||
|
||||
$result = "<?php {$result} ?>";
|
||||
if(__DEBUG__) if($metafile) $result = "<!--#Meta:{$metafile}-->".$result;
|
||||
if($metafile) $result = "<!--#Meta:{$metafile}-->".$result;
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
* Display XE's full version
|
||||
* Even The file should be revised when releasing altough no change is made
|
||||
*/
|
||||
define('__XE_VERSION__', '1.5.2.7');
|
||||
define('__XE_VERSION__', '1.5.3');
|
||||
|
||||
/**
|
||||
* @deprecated __ZBXE_VERSION__ will be removed. Use __XE_VERSION__ instead.
|
||||
|
|
|
|||
|
|
@ -1435,7 +1435,7 @@ jQuery(function($){
|
|||
$(this).append($sTog);
|
||||
$sTog.click(function(){
|
||||
var $t = $(this);
|
||||
var $sTogObj = $t.parent().nextUntil('.h2, .h3');
|
||||
var $sTogObj = $t.parent().nextUntil('.h2, .h3').not('.langEdit, .tgContent, .modal');
|
||||
if($t.parent().next().is(':hidden')){
|
||||
$t.find('i').attr('class','icon-chevron-up');
|
||||
$sTogObj.slideDown(200);
|
||||
|
|
|
|||
|
|
@ -188,7 +188,8 @@
|
|||
$output = $this->updateLayout($args);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
||||
return $this->setRedirectUrl(Context::get('error_return_url'), $output);
|
||||
$this->setRedirectUrl(Context::get('error_return_url'));
|
||||
return $output;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -84,6 +84,13 @@
|
|||
// Return xml file informaton after listing up the layout and extra_vars
|
||||
$layout_info = $this->getLayoutInfo($layout, $output->data, $output->data->layout_type);
|
||||
|
||||
// If deleted layout files, delete layout instance
|
||||
// if (!$layout_info) {
|
||||
// $oLayoutController = &getAdminController('layout');
|
||||
// $oLayoutController->deleteLayout($layout_srl);
|
||||
// return;
|
||||
// }
|
||||
|
||||
//insert in cache
|
||||
if($oCacheHandler->isSupport()) $oCacheHandler->put($cache_key,$layout_info);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -232,6 +232,15 @@
|
|||
$this->_createLoginRuleset($args->identifier);
|
||||
$this->_createFindAccountByQuestion($args->identifier);
|
||||
}
|
||||
|
||||
// check agreement value exist
|
||||
if($args->agreement)
|
||||
{
|
||||
$agreement_file = _XE_PATH_.'files/member_extra_info/agreement.txt';
|
||||
$output = FileHandler::writeFile($agreement_file, $args->agreement);
|
||||
|
||||
unset($args->agreement);
|
||||
}
|
||||
$output = $oModuleController->updateModuleConfig('member', $args);
|
||||
|
||||
// default setting end
|
||||
|
|
|
|||
|
|
@ -31,6 +31,8 @@
|
|||
Context::addSSLAction('dispMemberModifyEmailAddress');
|
||||
Context::addSSLAction('dispMemberGetTempPassword');
|
||||
Context::addSSLAction('dispMemberResendAuthMail');
|
||||
Context::addSSLAction('dispMemberLoginForm');
|
||||
Context::addSSLAction('dispMemberFindAccount');
|
||||
Context::addSSLAction('procMemberLogin');
|
||||
Context::addSSLAction('procMemberModifyPassword');
|
||||
Context::addSSLAction('procMemberInsert');
|
||||
|
|
@ -74,43 +76,46 @@
|
|||
|
||||
global $lang;
|
||||
$oMemberModel = &getModel('member');
|
||||
$identifier = 'email_address';
|
||||
$items = array('user_id', 'password', 'user_name', 'nick_name', 'email_address', 'find_account_question', 'homepage', 'blog', 'birthday', 'signature', 'profile_image', 'image_name', 'image_mark');
|
||||
$mustRequireds = array('email_address', 'nick_name','password', 'find_account_question');
|
||||
$list_order = array();
|
||||
foreach($items as $key){
|
||||
unset($signupItem);
|
||||
$signupItem->isDefaultForm = true;
|
||||
$signupItem->name = $key;
|
||||
$signupItem->title = $key;
|
||||
$signupItem->mustRequired = in_array($key, $mustRequireds);
|
||||
$signupItem->imageType = (strpos($key, 'image') !== false);
|
||||
$signupItem->required = $signupItem->mustRequired;
|
||||
$signupItem->isUse = $signupItem->mustRequired;
|
||||
$signupItem->isIdentifier = ($key == $identifier);
|
||||
if ($signupItem->imageType){
|
||||
$signupItem->max_width = $config->{$key.'_max_width'};
|
||||
$signupItem->max_height = $config->{$key.'_max_height'};
|
||||
// Create a member controller object
|
||||
$oMemberController = &getController('member');
|
||||
$oMemberAdminController = &getAdminController('member');
|
||||
|
||||
if(!$args->signupForm || !is_array($args->signupForm))
|
||||
{
|
||||
$identifier = 'email_address';
|
||||
$items = array('user_id', 'password', 'user_name', 'nick_name', 'email_address', 'find_account_question', 'homepage', 'blog', 'birthday', 'signature', 'profile_image', 'image_name', 'image_mark');
|
||||
$mustRequireds = array('email_address', 'nick_name','password', 'find_account_question');
|
||||
$list_order = array();
|
||||
foreach($items as $key){
|
||||
unset($signupItem);
|
||||
$signupItem->isDefaultForm = true;
|
||||
$signupItem->name = $key;
|
||||
$signupItem->title = $key;
|
||||
$signupItem->mustRequired = in_array($key, $mustRequireds);
|
||||
$signupItem->imageType = (strpos($key, 'image') !== false);
|
||||
$signupItem->required = $signupItem->mustRequired;
|
||||
$signupItem->isUse = $signupItem->mustRequired;
|
||||
$signupItem->isIdentifier = ($key == $identifier);
|
||||
if ($signupItem->imageType){
|
||||
$signupItem->max_width = $config->{$key.'_max_width'};
|
||||
$signupItem->max_height = $config->{$key.'_max_height'};
|
||||
}
|
||||
if ($signupItem->isIdentifier)
|
||||
array_unshift($list_order, $signupItem);
|
||||
else
|
||||
$list_order[] = $signupItem;
|
||||
}
|
||||
if ($signupItem->isIdentifier)
|
||||
array_unshift($list_order, $signupItem);
|
||||
else
|
||||
$list_order[] = $signupItem;
|
||||
$args->signupForm = $list_order;
|
||||
$args->identifier = $identifier;
|
||||
|
||||
$oModuleController->insertModuleConfig('member',$args);
|
||||
|
||||
// Create Ruleset File
|
||||
FileHandler::makeDir('./files/ruleset');
|
||||
$oMemberAdminController->_createSignupRuleset($args->signupForm);
|
||||
$oMemberAdminController->_createLoginRuleset($args->identifier);
|
||||
$oMemberAdminController->_createFindAccountByQuestion($args->identifier);
|
||||
}
|
||||
$args->signupForm = $list_order;
|
||||
$args->identifier = $identifier;
|
||||
|
||||
$oModuleController->insertModuleConfig('member',$args);
|
||||
|
||||
// Create a member controller object
|
||||
$oMemberController = &getController('member');
|
||||
$oMemberAdminController = &getAdminController('member');
|
||||
|
||||
// Create Ruleset File
|
||||
FileHandler::makeDir('./files/ruleset');
|
||||
$oMemberAdminController->_createSignupRuleset($args->signupForm);
|
||||
$oMemberAdminController->_createLoginRuleset($args->identifier);
|
||||
$oMemberAdminController->_createFindAccountByQuestion($args->identifier);
|
||||
|
||||
$groups = $oMemberModel->getGroups();
|
||||
if(!count($groups)) {
|
||||
|
|
@ -200,11 +205,14 @@
|
|||
if(!$oDB->isColumnExists("member", "list_order")) return true;
|
||||
if(!$oDB->isIndexExists("member","idx_list_order")) return true;
|
||||
|
||||
$oMemberModel = &getModel('member');
|
||||
$config = $oMemberModel->getMemberConfig();
|
||||
$oModuleModel = &getModel('module');
|
||||
$config = $oModuleModel->getModuleConfig('member');
|
||||
// check signup form ordering info
|
||||
if (!$config->signupForm) return true;
|
||||
|
||||
// check agreement field exist
|
||||
if ($config->agreement) return true;
|
||||
|
||||
if (!is_readable('./files/ruleset/insertMember.xml')) return true;
|
||||
if (!is_readable('./files/ruleset/login.xml')) return true;
|
||||
if (!is_readable('./files/ruleset/find_member_account_by_question.xml')) return true;
|
||||
|
|
@ -277,13 +285,24 @@
|
|||
$oDB->addIndex("member","idx_list_order", array("list_order"));
|
||||
}
|
||||
|
||||
$oMemberModel = &getModel('member');
|
||||
$config = $oMemberModel->getMemberConfig();
|
||||
$oModuleModel = &getModel('module');
|
||||
$config = $oModuleModel->getModuleConfig('member');
|
||||
$oModuleController = &getController('module');
|
||||
|
||||
// check agreement value exist
|
||||
if($config->agreement)
|
||||
{
|
||||
$agreement_file = _XE_PATH_.'files/member_extra_info/agreement.txt';
|
||||
$output = FileHandler::writeFile($agreement_file, $config->agreement);
|
||||
|
||||
$config->agreement = NULL;
|
||||
$output = $oModuleController->updateModuleConfig('member', $config);
|
||||
}
|
||||
|
||||
// check signup form ordering info
|
||||
if (!$config->signupForm || !is_array($config->signupForm)){
|
||||
global $lang;
|
||||
$oModuleController = &getController('module');
|
||||
$oMemberModel = &getModel('member');
|
||||
// Get join form list which is additionally set
|
||||
$extendItems = $oMemberModel->getJoinFormList();
|
||||
|
||||
|
|
@ -332,9 +351,9 @@
|
|||
}
|
||||
$config->signupForm = $list_order;
|
||||
$config->identifier = $identifier;
|
||||
unset($config->agreement);
|
||||
$output = $oModuleController->updateModuleConfig('member', $config);
|
||||
}
|
||||
|
||||
|
||||
FileHandler::makeDir('./files/ruleset');
|
||||
$oMemberAdminController = &getAdminController('member');
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ class memberMobile extends member
|
|||
Context::set('identifier', $config->identifier);
|
||||
|
||||
// Set a template file
|
||||
Context::set('referer_url', $_SERVER['HTTP_REFERER']);
|
||||
Context::set('referer_url', htmlspecialchars($_SERVER['HTTP_REFERER']));
|
||||
$this->setTemplateFile('login_form');
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -262,7 +262,7 @@
|
|||
Context::set('identifier', $config->identifier);
|
||||
|
||||
// Set a template file
|
||||
Context::set('referer_url', $_SERVER['HTTP_REFERER']);
|
||||
Context::set('referer_url', htmlspecialchars($_SERVER['HTTP_REFERER']));
|
||||
Context::set('act', 'procMemberLogin');
|
||||
$this->setTemplateFile('login_form');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -45,8 +45,8 @@
|
|||
<li>
|
||||
<p class="q">{$lang->allow_mailing}</p>
|
||||
<p class="a">
|
||||
<input type="radio" name="allow_mailing" id="mailingYes" value="Y" checked="checked"|cond="$member_info->allow_mailing == 'Y'"> <label for="mailingYes">{$lang->cmd_yes}</label>
|
||||
<input type="radio" name="allow_mailing" id="mailingNo" value="N" checked="checked"|cond="$member_info->allow_mailing != 'Y'" > <label for="mailingNo">{$lang->cmd_no}</label>
|
||||
<input type="radio" name="allow_mailing" id="mailingYes" value="Y" checked="checked"|cond="$member_info->allow_mailing == 'Y'" /> <label for="mailingYes">{$lang->cmd_yes}</label>
|
||||
<input type="radio" name="allow_mailing" id="mailingNo" value="N" checked="checked"|cond="$member_info->allow_mailing != 'Y'" /> <label for="mailingNo">{$lang->cmd_no}</label>
|
||||
</p>
|
||||
</li>
|
||||
<li>
|
||||
|
|
|
|||
|
|
@ -35,23 +35,24 @@
|
|||
<input type="password" name="password" id="password" value=""/>
|
||||
</li>
|
||||
<li>
|
||||
<label for="password2">{$lang->password2} <em style="color:red">*</em></label>
|
||||
<label for="password2">{$lang->password3} <em style="color:red">*</em></label>
|
||||
<input type="password" name="password2" id="password2" value=""/>
|
||||
</li>
|
||||
<li loop="$formTags=>$formTag">
|
||||
<label>{$formTag->title}</label>
|
||||
<block cond="$formTag->name != 'signature'">{$formTag->inputTag}</block>
|
||||
<block cond="$formTag->name =='signature'">{$editor}</block>
|
||||
</li>
|
||||
<block loop="$formTags=>$formTag" cond="$formTag->name != 'signature'">
|
||||
<li>
|
||||
<label>{$formTag->title}</label>
|
||||
{$formTag->inputTag}
|
||||
</li>
|
||||
</block>
|
||||
<li>
|
||||
<label>{$lang->allow_mailing}</label>
|
||||
<input type="radio" name="allow_mailing" id="mailingYes" value="Y" checked="checked"|cond="$member_info->allow_mailing == 'Y'"> <label for="mailingYes">{$lang->cmd_yes}</label>
|
||||
<input type="radio" name="allow_mailing" id="mailingNo" value="N" checked="checked"|cond="$member_info->allow_mailing != 'Y'" > <label for="mailingNo">{$lang->cmd_no}</label>
|
||||
<input type="radio" name="allow_mailing" id="mailingYes" value="Y" checked="checked"|cond="$member_info->allow_mailing == 'Y'" /> <label for="mailingYes">{$lang->cmd_yes}</label>
|
||||
<input type="radio" name="allow_mailing" id="mailingNo" value="N" checked="checked"|cond="$member_info->allow_mailing != 'Y'" /> <label for="mailingNo">{$lang->cmd_no}</label>
|
||||
</li>
|
||||
<li>
|
||||
<label>{$lang->allow_message}</label>
|
||||
<block loop="$lang->allow_message_type=>$key,$val">
|
||||
<input type="radio" name="allow_message" value="{$key}" checked="checked"|cond="$member_info->allow_message == $key" id="allow_{$key}" /> <label for="allow_{$key}">{$val}</label>
|
||||
<input type="radio" name="allow_message" value="{$key}" checked="checked"|cond="$member_info->allow_message == $key || (!$member_info && $key == 'Y')" id="allow_{$key}" /> <label for="allow_{$key}">{$val}</label>
|
||||
</block>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
{@ Context::addJsFile("./common/js/xml_js_filter.js", true, '', -100000) }
|
||||
<!--%import("./filter/openid_login.xml")-->
|
||||
<div class="mLogin" id="gLogin">
|
||||
<form action="./" method="post" ruleset="@login" id="gForm" class="ff">
|
||||
<form action="{getUrl('','act','procMemberLogin')}" method="post" ruleset="@login" id="gForm" class="ff">
|
||||
<input type="hidden" name="module" value="member" />
|
||||
<input type="hidden" name="success_return_url" value="{getRequestUriByServerEnviroment()}" />
|
||||
<fieldset>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<load target="../../../../common/js/jquery.js" />
|
||||
<load target="../../../../common/js/jquery.min.js" usecdn="true" index="-1000000" />
|
||||
<load target="./filter/openid_login.xml" />
|
||||
<load target="./message.css" />
|
||||
<load target="./message.js" />
|
||||
|
|
@ -8,7 +8,7 @@
|
|||
<div id="loginAccess" class="gLogin">
|
||||
<h1>{$system_message}</h1>
|
||||
<div class="mLogin" id="gLogin" cond="!$is_logged && $module == 'admin'">
|
||||
<form ruleset="@login" action="./" method="post" id="gForm">
|
||||
<form ruleset="@login" action="{getUrl('','act','procMemberLogin')}" method="post" id="gForm">
|
||||
<input type="hidden" name="module" value="member" />
|
||||
<input type="hidden" name="act" value="procMemberLogin" />
|
||||
<input type="hidden" name="success_return_url" value="{getRequestUriByServerEnviroment()}" />
|
||||
|
|
|
|||
|
|
@ -70,13 +70,15 @@
|
|||
function getDefaultMid() {
|
||||
$default_url = preg_replace('/\/$/','',Context::getDefaultUrl());
|
||||
$request_url = preg_replace('/\/$/','',Context::getRequestUri());
|
||||
$default_url_parse = parse_url($default_url);
|
||||
$request_url_parse = parse_url($request_url);
|
||||
$vid = Context::get('vid');
|
||||
$mid = Context::get('mid');
|
||||
|
||||
// Set up
|
||||
// test.xe.com
|
||||
$domain = '';
|
||||
if($default_url && $default_url != $request_url) {
|
||||
if($default_url && $default_url_parse['host'] != $request_url_parse['host']) {
|
||||
$url_info = parse_url($request_url);
|
||||
$hostname = $url_info['host'];
|
||||
$path = preg_replace('/\/$/','',$url_info['path']);
|
||||
|
|
|
|||
|
|
@ -26,6 +26,10 @@
|
|||
$current_module_srl = Context::get('module_srl');
|
||||
$site_module_info = Context::get('site_module_info');
|
||||
|
||||
if(is_array($current_module_srl))
|
||||
{
|
||||
unset($current_module_srl);
|
||||
}
|
||||
if(!$current_module_srl) {
|
||||
$current_module_info = Context::get('current_module_info');
|
||||
$current_module_srl = $current_module_info->module_srl;
|
||||
|
|
|
|||
|
|
@ -87,14 +87,20 @@ function doFillWidgetVars() {
|
|||
|
||||
// 위젯 스타일 유지를 위한 hidden input 추가하고 값을 저장
|
||||
var attrs = selected_node.attributes;
|
||||
for (i=0; i< attrs.length ; i++){
|
||||
var name = attrs[i].name;
|
||||
var value = jQuery(selected_node).attr(name);
|
||||
if(value=='Array') continue;
|
||||
if(jQuery("[name="+name+"]",fo_widget).size()>0 || !value || name == 'style') continue;
|
||||
|
||||
var dummy = jQuery('<input type="hidden" name="'+name+'" >').val(value).appendTo("#fo_widget").get(0);
|
||||
}
|
||||
// IE7에서 발생하는 jQuery 용 attribute를 걸러내기 위해 추가
|
||||
var attrFilters = ['style', 'sizset', 'draggable', 'class'];
|
||||
|
||||
for (i=0; i< attrs.length ; i++){
|
||||
var name = attrs[i].name;
|
||||
var value = jQuery(selected_node).attr(name);
|
||||
if(value=='Array') continue;
|
||||
if(jQuery("[name="+name+"]",fo_widget).size()>0 || !value) continue;
|
||||
if(name.indexOf('sizcache') == 0) continue;
|
||||
if(jQuery.inArray(name, attrFilters) > -1) continue;
|
||||
|
||||
var dummy = jQuery('<input type="hidden" name="'+name+'" />').val(value).appendTo("#fo_widget").get(0);
|
||||
}
|
||||
|
||||
// 위젯의 속성 설정
|
||||
var obj_list = new Array();
|
||||
|
|
|
|||
|
|
@ -53,9 +53,9 @@ function doStartPageModify(zoneID, module_srl) {
|
|||
doFitBorderSize();
|
||||
|
||||
// 드래그와 리사이즈와 관련된 이벤트 리스너 생성
|
||||
xAddEventListener(document,"click",doCheckWidget);
|
||||
xAddEventListener(document,"mousedown",doCheckWidgetDrag);
|
||||
xAddEventListener(document,'mouseover',widgetSetup);
|
||||
xAddEventListener(document.getElementById('zonePageContent'), "click",doCheckWidget);
|
||||
xAddEventListener(document.getElementById('zonePageContent'), "mousedown",doCheckWidgetDrag);
|
||||
xAddEventListener(document.getElementById('zonePageContent'), 'mouseover',widgetSetup);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -67,8 +67,12 @@
|
|||
<option loop="$var->options => $key, $val" value="{$key}">{$val}</option>
|
||||
</select>
|
||||
<block cond="$var->type == 'select-multi-order'">
|
||||
<!--@if($var->init_options && is_array($var->init_options))-->
|
||||
{@$inits = array_keys($var->init_options)}
|
||||
<input type="hidden" name="{$id}" value="{implode(',', $inits)}" />
|
||||
<!--@else-->
|
||||
<input type="hidden" name="{$id}" value="" />
|
||||
<!--@end-->
|
||||
<select class="multiorder_show" size="8" multiple="multiple" style="width:290px;vertical-align:top">
|
||||
<option loop="$var->options => $key, $val" cond="!$var->init_options[$key]" value="{$key}" default="true"|cond="$var->default_options[$key]">{$val}</option>
|
||||
</select>
|
||||
|
|
|
|||
|
|
@ -16,6 +16,8 @@
|
|||
<directory>../classes</directory>
|
||||
<directory>../config</directory>
|
||||
<directory>../modules</directory>
|
||||
<ignore>config/config.user.inc.php</ignore>
|
||||
<ignore>config/package.inc.php</ignore>
|
||||
<ignore>classes/security/htmlpurifier/*</ignore>
|
||||
<ignore>modules/member/php-openid-1.2.3/*</ignore>
|
||||
</files>
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
<!--%import("./filter/openid_login.xml")-->
|
||||
<!--%import("./message.js")-->
|
||||
<div class="mLogin" id="gLogin">
|
||||
<form action="./" method="post" ruleset="@login" id="gForm">
|
||||
<form action="{getUrl('','act','procMemberLogin')}" method="post" ruleset="@login" id="gForm">
|
||||
<input type="hidden" name="act" value="procMemberLogin" />
|
||||
<fieldset>
|
||||
<ul class="idpw">
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
<!--%import("./filter/openid_login.xml")-->
|
||||
<!--%import("./message.js")-->
|
||||
<div class="mLogin" id="gLogin">
|
||||
<form action="./" method="post" ruleset="@login" id="gForm">
|
||||
<form action="{getUrl('','act','procMemberLogin')}" method="post" ruleset="@login" id="gForm">
|
||||
<input type="hidden" name="act" value="procMemberLogin" />
|
||||
<fieldset>
|
||||
<ul class="idpw">
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
||||
<p>{$XE_VALIDATOR_MESSAGE}</p>
|
||||
</div>
|
||||
<form ruleset="@login" action="./" method="post" id="fo_member_login">
|
||||
<form ruleset="@login" action="{getUrl('','act','procMemberLogin')}" method="post" id="fo_member_login">
|
||||
<input type="hidden" name="success_return_url" value="{getUrl('act', '')}" />
|
||||
<fieldset class="login">
|
||||
<dl>
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
<!--%import("./filter/openid_login.xml")-->
|
||||
<!--%import("./message.js")-->
|
||||
<div class="mLogin" id="gLogin">
|
||||
<form action="./" method="post" ruleset="@login" id="gForm">
|
||||
<form action="{getUrl('','act','procMemberLogin')}" method="post" ruleset="@login" id="gForm">
|
||||
<input type="hidden" name="act" value="procMemberLogin" />
|
||||
<fieldset>
|
||||
<div class="signPanel">
|
||||
|
|
|
|||
|
|
@ -16,12 +16,12 @@
|
|||
xAddEventListener(window, "load", function(){ doFocusUserId("fo_login_widget"); });
|
||||
</script>
|
||||
|
||||
<form action="./" method="post" ruleset="@login" id="fo_login_widget">
|
||||
<form action="{getUrl('','act','procMemberLogin')}" method="post" ruleset="@login" id="fo_login_widget">
|
||||
<fieldset id="login" class="login_{$colorset}">
|
||||
<legend>{$lang->cmd_login}</legend>
|
||||
<h2>Login</h2>
|
||||
<input type="hidden" name="act" value="procMemberLogin" />
|
||||
<input type="hidden" name="success_return_url" value="{getRequestUriByServerEnviroment()}" />
|
||||
<input type="hidden" name="success_return_url" value="{htmlspecialchars(getRequestUriByServerEnviroment())}" />
|
||||
<div class="idpwWrap">
|
||||
<div class="idpw">
|
||||
<input name="user_id" type="text" title="<!--@if($member_config->identifier != 'email_address')-->{$lang->user_id}<!--@else-->{$lang->email_address}<!--@end-->" />
|
||||
|
|
|
|||
|
|
@ -17,11 +17,11 @@
|
|||
</script>
|
||||
|
||||
|
||||
<form action="./" method="post" ruleset="@login" id="fo_login_widget" class="fo_login_widget">
|
||||
<form action="{getUrl('','act','procMemberLogin')}" method="post" ruleset="@login" id="fo_login_widget" class="fo_login_widget">
|
||||
<fieldset id="login" class="login_{$colorset}">
|
||||
<legend>{$lang->cmd_login}</legend>
|
||||
<input type="hidden" name="act" value="procMemberLogin" />
|
||||
<input type="hidden" name="success_return_url" value="{getRequestUriByServerEnviroment()}" />
|
||||
<input type="hidden" name="success_return_url" value="{htmlspecialchars(getRequestUriByServerEnviroment())}" />
|
||||
<h2>Login</h2>
|
||||
<div class="idpwWrap">
|
||||
<div class="idpw">
|
||||
|
|
|
|||
|
|
@ -14,10 +14,10 @@
|
|||
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
||||
<p>{$XE_VALIDATOR_MESSAGE}</p>
|
||||
</div>
|
||||
<form id="fo_login_widget" action="./" method="post" ruleset="@login" class="login_{$colorset}">
|
||||
<form id="fo_login_widget" action="{getUrl('','act','procMemberLogin')}" method="post" ruleset="@login" class="login_{$colorset}">
|
||||
<fieldset>
|
||||
<input type="hidden" name="act" value="procMemberLogin" />
|
||||
<input type="hidden" name="success_return_url" value="{getRequestUriByServerEnviroment()}" />
|
||||
<input type="hidden" name="success_return_url" value="{htmlspecialchars(getRequestUriByServerEnviroment())}" />
|
||||
<div class="idpwWrap">
|
||||
<div class="idpw">
|
||||
<input name="user_id" type="text" title="<!--@if($member_config->identifier != 'email_address')-->{$lang->user_id}<!--@else-->{$lang->email_address}<!--@end-->" />
|
||||
|
|
|
|||
|
|
@ -10,11 +10,11 @@ var keep_signed_msg = "{$lang->about_keep_signed}";
|
|||
|
||||
</script>
|
||||
|
||||
<form action="./" method="post" ruleset="@login" id="fo_login_widget">
|
||||
<form action="{getUrl('','act','procMemberLogin')}" method="post" ruleset="@login" id="fo_login_widget">
|
||||
<fieldset id="login">
|
||||
<legend>{$lang->cmd_login}</legend>
|
||||
<input type="hidden" name="act" value="procMemberLogin" />
|
||||
<input type="hidden" name="success_return_url" value="{getRequestUriByServerEnviroment()}" />
|
||||
<input type="hidden" name="success_return_url" value="{htmlspecialchars(getRequestUriByServerEnviroment())}" />
|
||||
<div id="sign_box">
|
||||
<div class="txt sign_state1"><span class="label">Sign in</span></div>
|
||||
<div class="signin_window" style="display:none;">
|
||||
|
|
|
|||
|
|
@ -16,26 +16,26 @@
|
|||
<!--@if(!$__module_info && $widget_info->show_browser_title=='Y' && $item->getBrowserTitle())-->
|
||||
{$item->getBrowserTitle()} ›
|
||||
<!--@end-->
|
||||
|
||||
|
||||
<!--@if($widget_info->show_category=='Y' && $item->getCategory())-->
|
||||
{$item->getCategory()} ›
|
||||
<!--@end-->
|
||||
|
||||
|
||||
<strong>{$item->getTitle($widget_info->subject_cut_size)}</strong>
|
||||
|
||||
|
||||
<!--@if($widget_info->show_comment_count=='Y' && $item->getCommentCount())-->
|
||||
<em title="Replies">[{$item->getCommentCount()}]</em>
|
||||
<!--@end-->
|
||||
|
||||
|
||||
<!--@if($widget_info->show_trackback_count=='Y' && $item->getTrackbackCount())-->
|
||||
<em title="Trackbacks">[{$item->getTrackbackCount()}]</em>
|
||||
<!--@end-->
|
||||
</span>
|
||||
|
||||
|
||||
<!--@else if($widget_info->option_view_arr[$j]=='nickname')-->
|
||||
<span class="auth">
|
||||
<strong>{$item->getNickName()}</strong>
|
||||
<span class="time">{$item->getRegdate("Y-m-d")} {$item->getRegdate("H:i")}</span>
|
||||
<span class="time">{$item->getRegdate("Y-m-d H:i")}</span>
|
||||
</span>
|
||||
<!--@end-->
|
||||
<!--@end-->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue