mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-08 19:42:15 +09:00
issue 2119. supporting php 5.4.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12682 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
005768c71e
commit
669c9a5948
14 changed files with 768 additions and 492 deletions
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
if(!defined('__XE__')) exit();
|
||||
|
||||
if(!defined('__XE__'))
|
||||
exit();
|
||||
|
||||
/**
|
||||
* @file image_name.addon.php
|
||||
|
|
@ -9,16 +11,21 @@ if(!defined('__XE__')) exit();
|
|||
* Find member_srl in the part with <div class="member_MemberSerialNumber"> .... </div>
|
||||
* Check if ther is image name and image mark. Then change it.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Just before displaying, change image name/ image mark
|
||||
*/
|
||||
if($called_position != "before_display_content" || Context::get('act')=='dispPageAdminContentModify') return;
|
||||
if($called_position != "before_display_content" || Context::get('act') == 'dispPageAdminContentModify')
|
||||
{
|
||||
return;
|
||||
}
|
||||
// Include a file having functions to replace member image name/mark
|
||||
require_once('./addons/member_extra_info/member_extra_info.lib.php');
|
||||
// 1. Find a part <div class="member_MemberSerialNumber"> content </div> in the output document, change it to image name/mark by using MemberController::transImageName()
|
||||
$temp_output = preg_replace_callback('!<(div|span|a)([^\>]*)member_([0-9]+)([^\>]*)>(.*?)\<\/(div|span|a)\>!is', 'memberTransImageName', $output);
|
||||
if($temp_output) $output = $temp_output;
|
||||
if($temp_output)
|
||||
{
|
||||
$output = $temp_output;
|
||||
}
|
||||
unset($temp_output);
|
||||
|
||||
/* End of file member_extra_info.addon.php */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue