mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 20:44:28 +09:00
reverse merge from 1.6.0 (r10156, r10469, r10370, r10369, r10365, r10111, r10110, r10108, r10064, r10063, r10060, r10054, r10052, r10051, r10050, r10049, r10044, r10042, r10041, r10030, r10029, r10024, r10014, r10013)
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10715 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
3afad81016
commit
57a0cc59b1
24 changed files with 258 additions and 77 deletions
|
|
@ -60,7 +60,7 @@
|
|||
</th>
|
||||
<th scope="col">{$lang->regdate}</th>
|
||||
<th scope="col">{$lang->readed_date}</th>
|
||||
<th scope="col"><input name="check_all" type="checkbox" onclick="XE.checkboxToggleAll('message_srl_list[]', { wrap:'fo_message_list' }); return false;" /></th>
|
||||
<th scope="col"><input name="check_all" type="checkbox" onclick="XE.checkboxToggleAll('message_srl_list[]', { wrap:'fo_message_list' });" /></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
|
|
|||
|
|
@ -104,10 +104,11 @@
|
|||
function getDocument($document_srl=0, $is_admin = false, $load_extra_vars=true, $columnList = array()) {
|
||||
if(!$document_srl) return new documentItem();
|
||||
|
||||
if(!isset($GLOBALS['XE_DOCUMENT_LIST'][$document_srl])) {
|
||||
if(!isset($GLOBALS['XE_DOCUMENT_LIST'][$document_srl]) || $GLOBALS['XE_DOCUMENT_LIST'][$document_srl]->columnListKey != serialize($columnList)) {
|
||||
$oDocument = new documentItem($document_srl, $load_extra_vars, $columnList);
|
||||
$GLOBALS['XE_DOCUMENT_LIST'][$document_srl] = $oDocument;
|
||||
if($load_extra_vars) $this->setToAllDocumentExtraVars();
|
||||
$GLOBALS['XE_DOCUMENT_LIST'][$document_srl]->columnListKey = serialize($columnList);
|
||||
}
|
||||
if($is_admin) $GLOBALS['XE_DOCUMENT_LIST'][$document_srl]->setGrant();
|
||||
|
||||
|
|
@ -993,7 +994,10 @@
|
|||
$args->title = $title;
|
||||
$output = executeQuery('document.getDocumentSrlByTitle', $args);
|
||||
if(!$output->data) return null;
|
||||
else return $output->data->document_srl;
|
||||
else {
|
||||
if(is_array($output->data)) return $output->data[0]->document_srl;
|
||||
return $output->data->document_srl;
|
||||
}
|
||||
}
|
||||
|
||||
function getAlias($document_srl){
|
||||
|
|
|
|||
|
|
@ -1399,6 +1399,12 @@
|
|||
$output = executeQuery('member.addMemberToGroup',$args);
|
||||
$output2 = ModuleHandler::triggerCall('member.addMemberToGroup', 'after', $args);
|
||||
|
||||
$oCacheHandler = &CacheHandler::getInstance('object');
|
||||
if($oCacheHandler->isSupport()){
|
||||
$cache_key = 'object_member_groups:'.$member_srl.'_'.$site_srl;
|
||||
$oCacheHandler->delete($cache_key);
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
@ -1429,6 +1435,13 @@
|
|||
$output = executeQuery('member.addMemberToGroup', $obj);
|
||||
if(!$output->toBool()) return $output;
|
||||
}
|
||||
|
||||
$oCacheHandler = &CacheHandler::getInstance('object');
|
||||
if($oCacheHandler->isSupport()){
|
||||
$cache_key = 'object_member_groups:'.$member_srl.'_'.$site_srl;
|
||||
$oCacheHandler->delete($cache_key);
|
||||
}
|
||||
|
||||
return new Object();
|
||||
}
|
||||
|
||||
|
|
@ -1842,7 +1855,7 @@
|
|||
unset($args->denied);
|
||||
}
|
||||
|
||||
// check mamber identifier form
|
||||
// check member identifier form
|
||||
$config = $oMemberModel->getMemberConfig();
|
||||
|
||||
$output = executeQuery('member.getMemberInfoByMemberSrl', $args);
|
||||
|
|
@ -1855,7 +1868,7 @@
|
|||
$args->email_address = $orgMemberInfo->email_address;
|
||||
}else{
|
||||
$member_srl = $oMemberModel->getMemberSrlByUserID($args->user_id);
|
||||
if($member_srl&&$args->member_srl!=$member_srl) return new Object(-1,'msg_exists_email_address');
|
||||
if($member_srl&&$args->member_srl!=$member_srl) return new Object(-1,'msg_exists_user_id');
|
||||
|
||||
$args->user_id = $orgMemberInfo->user_id;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -83,7 +83,8 @@
|
|||
$oMemberController->addMemberPopupMenu($url,'cmd_view_member_info',$icon_path,'self');
|
||||
}
|
||||
// When click other's nickname
|
||||
if($member_srl != $logged_info->member_srl) {
|
||||
if($member_srl != $logged_info->member_srl && $logged_info->member_srl)
|
||||
{
|
||||
// Send an email
|
||||
if($member_info->email_address) {
|
||||
$url = 'mailto:'.htmlspecialchars($member_info->email_address);
|
||||
|
|
|
|||
|
|
@ -25,6 +25,8 @@
|
|||
// 2009. 02. 11 menu added to the table site_srl
|
||||
if(!$oDB->isColumnExists('menu', 'site_srl')) return true;
|
||||
|
||||
// 2012. 02. 01 title index check
|
||||
if(!$oDB->isIndexExists("menu", "idx_title")) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -38,6 +40,11 @@
|
|||
$oDB->addColumn('menu','site_srl','number',11,0,true);
|
||||
}
|
||||
|
||||
// 2012. 02. 01 title index check
|
||||
if(!$oDB->isIndexExists("menu","idx_title")) {
|
||||
$oDB->addIndex('menu', 'idx_title', array('title'));
|
||||
}
|
||||
|
||||
return new Object(0, 'success_updated');
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<table name="menu">
|
||||
<column name="menu_srl" type="number" size="12" notnull="notnull" primary_key="primary_key" />
|
||||
<column name="site_srl" type="number" size="11" notnull="notnull" default="0" index="menu_site_srl" />
|
||||
<column name="title" type="varchar" size="250" />
|
||||
<column name="title" type="varchar" size="250" index="idx_title"/>
|
||||
<column name="listorder" type="number" size="11" default="0" index="idx_listorder" />
|
||||
<column name="regdate" type="date" index="idx_regdate" />
|
||||
</table>
|
||||
|
|
|
|||
|
|
@ -630,8 +630,10 @@
|
|||
$info->menu->{$action->attrs->menu_name}->index = $name;
|
||||
$buff .= sprintf('$info->menu->%s->index=\'%s\';', $action->attrs->menu_name, $name);
|
||||
}
|
||||
array_push($info->menu->{$action->attrs->menu_name}->acts, $name);
|
||||
$currentKey = array_search($name, $info->menu->{$action->attrs->menu_name}->acts);
|
||||
if(is_array($info->menu->{$action->attrs->menu_name}->acts)) {
|
||||
array_push($info->menu->{$action->attrs->menu_name}->acts, $name);
|
||||
$currentKey = array_search($name, $info->menu->{$action->attrs->menu_name}->acts);
|
||||
}
|
||||
|
||||
$buff .= sprintf('$info->menu->%s->acts[%d]=\'%s\';', $action->attrs->menu_name, $currentKey, $name);
|
||||
$i++;
|
||||
|
|
|
|||
|
|
@ -43,12 +43,10 @@
|
|||
<td class="nowr">
|
||||
<!--@foreach($val->author as $author)-->
|
||||
<!--@if($author->homepage)-->
|
||||
<a href="{$author->homepage}" onclick="window.open(this.href);return false;" target="_blank">
|
||||
<!--@end-->
|
||||
{$author->name}
|
||||
<!--@if($author->homepage)-->
|
||||
</a>
|
||||
<!--@end-->
|
||||
<a href="{$author->homepage}" onclick="window.open(this.href);return false;" target="_blank">{$author->name}</a>
|
||||
<!--@else-->
|
||||
{$author->name}
|
||||
<!--@endif-->
|
||||
<!--@endforeach-->
|
||||
</td>
|
||||
<td class="nowr">{$val->path}</td>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue