issue 2662 coding convention fix

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12143 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2012-11-07 05:20:06 +00:00
parent 26e08751b9
commit f9fbd4a307
18 changed files with 1474 additions and 1282 deletions

View file

@ -5,13 +5,15 @@ if(!defined('__XE__')) exit();
* @file adminlogging.addon.php
* @author NHN (developers@xpressengine.com)
* @brief Automatic link add-on
**/
*/
$logged_info = Context::get('logged_info');
$act = Context::get('act');
$kind = strpos(strtolower($act),'admin')!==false?'admin':'';
if($called_position == 'before_module_proc' && $kind == 'admin' && $logged_info->is_admin == 'Y') {
if($called_position == 'before_module_proc' && $kind == 'admin' && $logged_info->is_admin == 'Y')
{
$oAdminloggingController = &getController('adminlogging');
$oAdminloggingController->insertLog($this->module, $this->act);
}
?>
/* End of file adminlogging.php */
/* Location: ./addons/adminlogging */

View file

@ -5,8 +5,10 @@ if(!defined('__XE__')) exit();
* @file autolink.addon.php
* @author NHN (developers@xpressengine.com)
* @brief Automatic link add-on
**/
if($called_position == 'after_module_proc' && Context::getResponseMethod()!="XMLRPC") {
*/
if($called_position == 'after_module_proc' && Context::getResponseMethod()!="XMLRPC")
{
Context::loadFile(array('./addons/autolink/autolink.js', 'body', '', null), true);
}
?>
/* End of file autolink.addon.php */
/* Location: .//addons/autolink/autolink.addon.php */

View file

@ -435,4 +435,5 @@ RSDContent;
break;
}
}
?>
/* End of file blogapi.addon.php */
/* Location: ./addons/blogapi/blogapi.addon.php */

View file

@ -1,36 +1,42 @@
<?php
if(!defined('__XE__')) exit();
if(!defined('__XE__')) exit();
/**
/**
* @file ./addons/blogapi/blogapi.func.php
* @author NHN (developers@xpressengine.com)
* @brief Function collections for the implementation of blogapi
**/
// Error messages
function getXmlRpcFailure($error, $message) {
// Error messages
function getXmlRpcFailure($error, $message)
{
return
sprintf(
"<methodResponse>\n<fault><value><struct>\n<member>\n<name>faultCode</name>\n<value><int>%d</int></value>\n</member>\n<member>\n<name>faultString</name>\n<value><string>%s</string></value>\n</member>\n</struct></value></fault>\n</methodResponse>\n",
$error,
htmlspecialchars($message)
);
}
// Display results
function getXmlRpcResponse($params) {
}
// Display results
function getXmlRpcResponse($params)
{
$buff = '<?xml version="1.0" encoding="utf-8"?>'."\n<methodResponse><params>";
$buff .= _getEncodedVal($params);
$buff .= "</params>\n</methodResponse>\n";
return $buff;
}
// Encoding
function _getEncodedVal($val, $is_sub_set = false) {
}
// Encoding
function _getEncodedVal($val, $is_sub_set = false)
{
if(is_int($val)) $buff = sprintf("<value><i4>%d</i4></value>", $val);
elseif(is_string($val)&&preg_match('/^([0-9]+)T([0-9\:]+)$/', $val)) $buff = sprintf("<value><dateTime.iso8601>%s</dateTime.iso8601></value>\n", $val);
elseif(is_double($val)) $buff = sprintf("<value><double>%f</double></value>", $val);
elseif(is_bool($val)) $buff = sprintf("<value><boolean>%d</boolean></value>", $val?1:0);
elseif(is_object($val)) {
elseif(is_object($val))
{
$values = get_object_vars($val);
$val_count = count($values);
$buff = "<value><struct>";
@ -38,21 +44,27 @@
$buff .= sprintf("<member>\n<name>%s</name>\n%s</member>\n", htmlspecialchars($k), _getEncodedVal($v, true));
}
$buff .= "</struct></value>\n";
} elseif(is_array($val)) {
}
elseif(is_array($val))
{
$val_count = count($val);
$buff = "<value><array>\n<data>";
for($i=0;$i<$val_count;$i++) {
$buff .= _getEncodedVal($val[$i], true);
}
$buff .= "</data>\n</array></value>";
} else {
}
else
{
$buff = sprintf("<value><string>%s</string></value>\n", $val);
}
if(!$is_sub_set) return sprintf("<param>\n%s</param>", $buff);
return $buff;
}
// Display the result
function printContent($content) {
}
// Display the result
function printContent($content)
{
header("Content-Type: text/xml; charset=UTF-8");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
@ -62,5 +74,6 @@
print $content;
Context::close();
exit();
}
?>
}
/* End of file blogapi.func.php */
/* Location: ./addons/blogapi/blogapi.func.php */

View file

@ -1,15 +1,15 @@
<?php
if(!defined("__ZBXE__")) exit();
if(!defined("__ZBXE__")) exit();
/**
/**
* @file captcha.addon.php
* @author NHN (developers@xpressengine.com)
* @brief Captcha for a particular action
* English alphabets and voice verification added
**/
if(!class_exists('AddonCaptcha'))
{
if(!class_exists('AddonCaptcha'))
{
// On the mobile mode, XE Core does not load jquery and xe.js as normal.
Context::loadFile(array('./common/js/jquery.min.js','head', NULL,-100000),true);
Context::loadFile(array('./common/js/xe.min.js','head', NULL,-100000),true);
@ -24,7 +24,8 @@
function before_module_proc()
{
if($this->addon_info->act_type == 'everytime' && $_SESSION['captcha_authed']) {
if($this->addon_info->act_type == 'everytime' && $_SESSION['captcha_authed'])
{
unset($_SESSION['captcha_authed']);
}
}
@ -46,7 +47,8 @@
if(Context::getRequestMethod()!='XMLRPC' && Context::getRequestMethod()!=='JSON')
{
if($type == 'inline') {
if($type == 'inline')
{
if(!$this->compareCaptcha())
{
Context::loadLang('./addons/captcha/lang');
@ -56,14 +58,17 @@
$_SESSION['XE_VALIDATOR_RETURN_URL'] = Context::get('error_return_url');
$ModuleHandler->_setInputValueToSession();
}
} else {
}
else
{
Context::addHtmlHeader('<script> var captchaTargetAct = new Array("'.implode('","',$target_acts).'"); </script>');
Context::loadFile(array('./addons/captcha/captcha.min.js', 'body', '', null), true);
}
}
// compare session when calling actions such as writing a post or a comment on the board/issue tracker module
if(!$_SESSION['captcha_authed'] && in_array(Context::get('act'), $target_acts)) {
if(!$_SESSION['captcha_authed'] && in_array(Context::get('act'), $target_acts))
{
Context::loadLang('./addons/captcha/lang');
$ModuleHandler->error = "captcha_denied";
}
@ -255,7 +260,8 @@
{
if($_SESSION['captcha_authed']) return true;
if(strtoupper($_SESSION['captcha_keyword']) == strtoupper(Context::get('secret_text'))) {
if(strtoupper($_SESSION['captcha_keyword']) == strtoupper(Context::get('secret_text')))
{
$_SESSION['captcha_authed'] = true;
return true;
}
@ -298,13 +304,13 @@
$tags=<<<EOD
<img src="%s" id="captcha_image" alt="CAPTCHA" width="240" height="50" style="width:240px; height:50px; border:1px solid #b0b0b0" />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="0" height="0" id="captcha_audio" align="middle">
<param name="allowScriptAccess" value="always" />
<param name="quality" value="high" />
<param name="movie" value="%s" />
<param name="wmode" value="window" />
<param name="allowFullScreen" value="false">
<param name="bgcolor" value="#fffff" />
<embed src="%s" quality="high" wmode="window" allowFullScreen="false" bgcolor="#ffffff" width="0" height="0" name="captcha_audio" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
<param name="allowScriptAccess" value="always" />
<param name="quality" value="high" />
<param name="movie" value="%s" />
<param name="wmode" value="window" />
<param name="allowFullScreen" value="false">
<param name="bgcolor" value="#fffff" />
<embed src="%s" quality="high" wmode="window" allowFullScreen="false" bgcolor="#ffffff" width="0" height="0" name="captcha_audio" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
<button type="button" class="captchaReload text">%s</button>
<button type="button" class="captchaPlay text">%s</button><br />
@ -322,26 +328,26 @@ EOD;
$GLOBALS['__AddonCaptcha__'] = new AddonCaptcha;
$GLOBALS['__AddonCaptcha__']->setInfo($addon_info);
Context::set('oCaptcha', &$GLOBALS['__AddonCaptcha__']);
}
Context::set('oCaptcha', $GLOBALS['__AddonCaptcha__']);
}
$oAddonCaptcha = &$GLOBALS['__AddonCaptcha__'];
$oAddonCaptcha = &$GLOBALS['__AddonCaptcha__'];
if(method_exists($oAddonCaptcha, $called_position))
{
if(method_exists($oAddonCaptcha, $called_position))
{
if(!call_user_func_array(array(&$oAddonCaptcha, $called_position), array(&$this)))
{
return false;
}
}
}
$addon_act = Context::get('captcha_action');
if($addon_act && method_exists($oAddonCaptcha, $called_position.'_'.$addon_act))
{
$addon_act = Context::get('captcha_action');
if($addon_act && method_exists($oAddonCaptcha, $called_position.'_'.$addon_act))
{
if(!call_user_func_array(array(&$oAddonCaptcha, $called_position.'_'.$addon_act), array(&$this)))
{
return false;
}
}
?>
}
/* End of file captcha.addon.php */
/* Location: ./addons/captcha/captcha.addon.php */

View file

@ -5,10 +5,12 @@ if(!defined('__XE__')) exit();
* @file counter.addon.php
* @author NHN (developers@xpressengine.com)
* @brief Counter add-on
**/
*/
// Execute if called_position is before_display_content
if(Context::isInstalled() && $called_position == 'before_module_init' && Context::get('module')!='admin' && Context::getResponseMethod() == 'HTML') {
if(Context::isInstalled() && $called_position == 'before_module_init' && Context::get('module')!='admin' && Context::getResponseMethod() == 'HTML')
{
$oCounterController = &getController('counter');
$oCounterController->counterExecute();
}
?>
/* End of file counter.addon.php */
/* Location: ./addons/counter/counter.addon.php */

View file

@ -9,7 +9,7 @@ if(!defined('__XE__')) exit();
* - Pop-up the message if new message comes in
* - When calling MemberModel::getMemberMenu, feature to send a message is added
* - When caliing MemberModel::getMemberMenu, feature to add a friend is added
**/
*/
// Stop if non-logged-in user is
$logged_info = Context::get('logged_info');
if(!$logged_info) return;
@ -17,7 +17,8 @@ if(!$logged_info) return;
/**
* Message/Friend munus are added on the pop-up window and member profile. Check if a new message is received
**/
if($called_position == 'before_module_init' && $this->module != 'member') {
if($called_position == 'before_module_init' && $this->module != 'member')
{
// Load a language file from the communication module
Context::loadLang('./modules/communication/lang');
// Add menus on the member login information
@ -28,7 +29,8 @@ if($called_position == 'before_module_init' && $this->module != 'member') {
$flag_path = './files/member_extra_info/new_message_flags/'.getNumberingPath($logged_info->member_srl);
$flag_file = $flag_path.$logged_info->member_srl;
if(file_exists($flag_file)) {
if(file_exists($flag_file))
{
$new_message_count = trim(FileHandler::readFile($flag_file));
FileHandler::removeFile($flag_file);
Context::loadLang('./addons/member_communication/lang');
@ -40,20 +42,25 @@ if($called_position == 'before_module_init' && $this->module != 'member') {
Context::addHtmlFooter($script);
}
} elseif($called_position == 'before_module_proc' && $this->act == 'getMemberMenu') {
}
elseif($called_position == 'before_module_proc' && $this->act == 'getMemberMenu')
{
$oMemberController = &getController('member');
$member_srl = Context::get('target_srl');
$mid = Context::get('cur_mid');
// Creates communication model object
$oCommunicationModel = &getModel('communication');
// Add a feature to display own message box.
if($logged_info->member_srl == $member_srl) {
if($logged_info->member_srl == $member_srl)
{
// Add your own viewing Note Template
$oMemberController->addMemberPopupMenu(getUrl('','mid',$mid,'act','dispCommunicationMessages'), 'cmd_view_message_box', '', 'self');
// Display a list of friends
$oMemberController->addMemberPopupMenu(getUrl('','mid',$mid,'act','dispCommunicationFriend'), 'cmd_view_friend', '', 'self');
// If not, Add menus to send message and to add friends
} else {
}
else
{
// Get member information
$oMemberModel = &getModel('member');
$target_member_info = $oMemberModel->getMemberInfoByMemberSrl($member_srl);
@ -68,4 +75,5 @@ if($called_position == 'before_module_init' && $this->module != 'member') {
$oMemberController->addMemberPopupMenu(getUrl('','module','communication','act','dispCommunicationAddFriend','target_srl',$member_srl), 'cmd_add_friend', '', 'popup');
}
}
?>
/* End of file member_communication.addon.php */
/* Location: ./addons/member_communication/member_communication.addon.php */

View file

@ -8,11 +8,11 @@ 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;
// Include a file having functions to replace member image name/mark
require_once('./addons/member_extra_info/member_extra_info.lib.php');
@ -20,4 +20,6 @@ require_once('./addons/member_extra_info/member_extra_info.lib.php');
$temp_output = preg_replace_callback('!<(div|span|a)([^\>]*)member_([0-9]+)([^\>]*)>(.*?)\<\/(div|span|a)\>!is', 'memberTransImageName', $output);
if($temp_output) $output = $temp_output;
unset($temp_output);
?>
/* End of file member_extra_info.addon.php */
/* Location: ./addons/member_extra_info/member_extra_info.addon.php */

View file

@ -1,8 +1,9 @@
<?php
/**
/**
* @brief If member_srl exists in the div or span, replace to image name or nick image for each member_srl
**/
function memberTransImageName($matches) {
function memberTransImageName($matches)
{
// If member_srl < 0, then return text only in the body
$member_srl = $matches[3];
if($member_srl<0) return $matches[5];
@ -13,7 +14,8 @@
$nick_name = $matches[5];
// If pre-defined data in the global variablesm return it
if(!$GLOBALS['_transImageNameList'][$member_srl]->cached) {
if(!$GLOBALS['_transImageNameList'][$member_srl]->cached)
{
$GLOBALS['_transImageNameList'][$member_srl]->cached = true;
$image_name_file = sprintf('files/member_extra_info/image_name/%s%d.gif', getNumberingPath($member_srl), $member_srl);
$image_mark_file = sprintf('files/member_extra_info/image_mark/%s%d.gif', getNumberingPath($member_srl), $member_srl);
@ -25,7 +27,9 @@
$site_module_info = Context::get('site_module_info');
$group_image = $oMemberModel->getGroupImageMark($member_srl,$site_module_info->site_srl);
$GLOBALS['_transImageNameList'][$member_srl]->group_image = $group_image;
} else {
}
else
{
$group_image = $GLOBALS['_transImageNameList'][$member_srl]->group_image;
$image_name_file = $GLOBALS['_transImageNameList'][$member_srl]->image_name_file;
$image_mark_file = $GLOBALS['_transImageNameList'][$member_srl]->image_mark_file;
@ -45,5 +49,6 @@
$orig_text = preg_replace('/'.preg_quote($matches[5],'/').'<\/'.$matches[6].'>$/', '', $matches[0]);
return $orig_text.$nick_name.'</'.$matches[6].'>';
}
?>
}
/* End of file member_extra_info.lib.php */
/* Location: ./addons/member_extra_info/member_extra_info.lib.php */

View file

@ -1,21 +1,23 @@
<?php
/**
/**
* HDML Library ver 0.1
* @author NHN (developers@xpressengine.com)
**/
class wap extends mobileXE {
*/
class wap extends mobileXE {
/**
* @brief constructor
**/
function wap() {
function wap()
{
parent::mobileXE();
}
/**
* @brief hdml header output
**/
function printHeader() {
function printHeader()
{
header("Content-Type:text/x-hdml; charset=".$this->charset);
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
@ -26,7 +28,8 @@
print $this->hasChilds()?'<choice name=main>':'<display>';
print "\n";
if($this->upperUrl) {
if($this->upperUrl)
{
$url = $this->upperUrl;
printf('<action type=soft1 task=go dest="%s" label="%s">%s', $url->url, $url->text, "\n");
}
@ -35,7 +38,8 @@
/**
* @brief Output title
**/
function printTitle() {
function printTitle()
{
if($this->totalPage > $this->mobilePage) $titlePageStr = sprintf("(%d/%d)",$this->mobilePage, $this->totalPage);
printf('<b>&lt;%s%s&gt;%s', $this->title,$titlePageStr,"\n");
}
@ -44,13 +48,18 @@
* @brief Output information
* hasChilds() if there is a list of content types, otherwise output
**/
function printContent() {
if($this->hasChilds()) {
foreach($this->getChilds() as $key => $val) {
function printContent()
{
if($this->hasChilds())
{
foreach($this->getChilds() as $key => $val)
{
if(!$val['link']) continue;
printf('<ce task=go label="%s" dest="%s">%s%s',Context::getLang('cmd_select'), $val['href'], $val['text'], "\n");
}
} else {
}
else
{
printf('<wrap>%s<br>%s', $this->getContent(),"\n");
}
}
@ -58,32 +67,42 @@
/**
* @brief Button to output
**/
function printBtn() {
function printBtn()
{
// Menu Types
if($this->hasChilds()) {
if($this->nextUrl) {
if($this->hasChilds())
{
if($this->nextUrl)
{
$url = $this->nextUrl;
printf('<ce task=go label="%s" dest="%s">%s%s', $url->text, $url->url, $url->text, "\n");
}
if($this->prevUrl) {
if($this->prevUrl)
{
$url = $this->prevUrl;
printf('<ce task=go label="%s" dest="%s">%s%s', $url->text, $url->url, $url->text, "\n");
}
if($this->homeUrl) {
if($this->homeUrl)
{
$url = $this->homeUrl;
printf('<ce task=go label="%s" dest="%s">%s%s', $url->text, $url->url, $url->text, "\n");
}
// Content Types
} else {
if($this->nextUrl) {
}
else
{
if($this->nextUrl)
{
$url = $this->nextUrl;
printf('<a task=gosub label="%s" dest="%s">%s</a>', $url->text, $url->url, $url->text);
}
if($this->prevUrl) {
if($this->prevUrl)
{
$url = $this->prevUrl;
printf('<a task=gosub label="%s" dest="%s">%s</a>', $url->text, $url->url, $url->text);
}
if($this->homeUrl) {
if($this->homeUrl)
{
$url = $this->homeUrl;
printf('<a task=gosub label="%s" dest="%s">%s</a>', $url->text, $url->url, $url->text);
}
@ -93,11 +112,13 @@
/**
* @brief Footer information output
**/
function printFooter() {
function printFooter()
{
print $this->hasChilds()?'</choice>':'</display>';
print "\n";
print("</hdml>");
}
}
}
?>
/* End of file hdml.class.php */
/* Location: ./addons/mobile/classes/hdml.class.php */

View file

@ -1,27 +1,31 @@
<?php
/**
include './mobile.class.php';
/**
* mhtml Library ver 0.1
* @author NHN (developers@xpressengine.com) / lang_select : misol
**/
class wap extends mobileXE {
*/
class wap extends mobileXE
{
/**
* @brief constructor
**/
function wap() {
function wap()
{
parent::mobileXE();
}
/**
* @brief hdml header output
**/
function printHeader() {
function printHeader()
{
print("<html><head>\n");
if($this->totalPage > $this->mobilePage) $titlePageStr = sprintf("(%d/%d)",$this->mobilePage, $this->totalPage);
printf("<title>%s%s</title></head><body>\n", htmlspecialchars($this->title),htmlspecialchars($titlePageStr));
}
// Output title
function printTitle() {
function printTitle()
{
if($this->totalPage > $this->mobilePage) $titlePageStr = sprintf("(%d/%d)",$this->mobilePage, $this->totalPage);
printf('&lt;%s%s&gt;<br>%s', htmlspecialchars($this->title),htmlspecialchars($titlePageStr),"\n");
}
@ -30,14 +34,19 @@
* @brief Output information
* hasChilds() if there is a list of content types, otherwise output
**/
function printContent() {
if($this->hasChilds()) {
foreach($this->getChilds() as $key => $val) {
function printContent()
{
if($this->hasChilds())
{
foreach($this->getChilds() as $key => $val)
{
if(!$val['link']) continue;
printf('<a href="%s" accesskey="%s">%s</a><br>%s', $val['href'], $this->getNo(), $val['text'], "\n");
if($val['extra']) printf("<br>%s\n",str_replace('<br/>','<br>',$val['extra']));
}
} else {
}
else
{
print(str_replace('<br/>','<br>',$this->getContent())."\n");
}
print "<hr><br>";
@ -46,35 +55,44 @@
/**
* @brief Button to output
**/
function printBtn() {
if($this->nextUrl) {
function printBtn()
{
if($this->nextUrl)
{
$url = $this->nextUrl;
printf('<a href="%s">%s</a><br>%s', $url->url, $url->text, "\n");
}
if($this->prevUrl) {
if($this->prevUrl)
{
$url = $this->prevUrl;
printf('<a href="%s">%s</a><br>%s', $url->url, $url->text, "\n");
}
// Select Language
if(!parent::isLangChange()){
if(!parent::isLangChange())
{
$url = getUrl('','lcm','1','sel_lang',Context::getLangType(),'return_uri',Context::get('current_url'));
printf('<a href="%s">%s</a><br>%s', $url, 'Language : '.Context::getLang('select_lang'), "\n");
}
else {
else
{
printf('<a href="%s">%s</a><br>%s', Context::get('return_uri'), Context::getLang('lang_return'), "\n");
}
if($this->upperUrl) {
if($this->upperUrl)
{
$url = $this->upperUrl;
printf('<btn href="%s" name="%s">%s', $url->url, $url->text, "\n");
}
if($this->homeUrl) {
if($this->homeUrl)
{
$url = $this->homeUrl;
printf('<a btn="%s" href="%s">%s</a><br>%s', $url->text, $url->url, $url->text, "\n");
}
}
// Footer information output
function printFooter() {
function printFooter()
{
print("</body></html>\n");
}
}
?>
}
/* End of file mhtml.class.php */
/* Location: ./addons/mobile/classes/mhtml.class.php */

View file

@ -1,11 +1,11 @@
<?php
/**
/**
* Mobile XE Library Class ver 0.1
* @author NHN (developers@xpressengine.com) / lang_select : misol
* @brief XE library for WAP tag output
**/
class mobileXE {
*/
class mobileXE
{
// Base url
var $homeUrl = NULL;
var $upperUrl = NULL;
@ -40,11 +40,13 @@
var $lang = null;
/**
* @brief getInstance
**/
function &getInstance() {
*/
function &getInstance()
{
static $instance = null;
if(!$instance) {
if(!$instance)
{
$browserType = mobileXE::getBrowserType();
if(!$browserType) return;
@ -53,7 +55,8 @@
require_once($class_file);
// Download mobile language settings (cookies, not willing to come up when you click create cache file ...- is initialized ..)
$this->lang = FileHandler::readFile('./files/cache/addons/mobile/setLangType/personal_settings/'.md5(trim($_SERVER['HTTP_USER_AGENT']).trim($_SERVER['HTTP_PHONE_NUMBER']).trim($_SERVER['HTTP_HTTP_PHONE_NUMBER'])).'.php');
if($this->lang) {
if($this->lang)
{
$lang_supported = Context::get('lang_supported');
$this->lang = str_replace(array('<?php /**','**/ ?>'),array('',''),$this->lang);
if(isset($lang_supported[$this->lang])) Context::setLangType($this->lang);
@ -66,23 +69,24 @@
if(!$mobilePage) $mobilePage = 1;
$instance->setMobilePage($mobilePage);
}
return $instance;
}
/**
* @brief constructor
**/
function mobileXE() {
*/
function mobileXE()
{
// Check navigation mode
if(Context::get('nm')) {
if(Context::get('nm'))
{
$this->navigationMode = 1;
$this->cmid = (int)Context::get('cmid');
}
if(Context::get('lcm')) {
if(Context::get('lcm'))
{
$this->languageMode = 1;
$this->lang = Context::get('sel_lang');
}
@ -91,16 +95,18 @@
/**
* @brief Check navigation mode
* navigationMode settings and modules of information must be menu_srl return to navigation mode = true
**/
function isNavigationMode() {
*/
function isNavigationMode()
{
return ($this->navigationMode && $this->module_info->menu_srl)?true:false;
}
/**
* @brief Check langchange mode
* true return should be set languageMode
**/
function isLangChange() {
*/
function isLangChange()
{
if($this->languageMode) return true;
else return false;
}
@ -108,11 +114,13 @@
/**
* @brief Language settings
* Cookies Since you set your phone to store language-specific file, file creation
**/
function setLangType() {
*/
function setLangType()
{
$lang_supported = Context::get('lang_supported');
// Make sure that the language variables and parameters are valid
if($this->lang && isset($lang_supported[$this->lang])) {
if($this->lang && isset($lang_supported[$this->lang]))
{
$langbuff = FileHandler::readFile('./files/cache/addons/mobile/setLangType/personal_settings/'.md5(trim($_SERVER['HTTP_USER_AGENT']).trim($_SERVER['HTTP_PHONE_NUMBER']).trim($_SERVER['HTTP_HTTP_PHONE_NUMBER'])).'.php');
if($langbuff) FileHandler::removeFile('./files/cache/addons/mobile/setLangType/personal_settings/'.md5(trim($_SERVER['HTTP_USER_AGENT']).trim($_SERVER['HTTP_PHONE_NUMBER']).trim($_SERVER['HTTP_HTTP_PHONE_NUMBER'])).'.php');
$langbuff = '<?php /**'.$this->lang.'**/ ?>';
@ -122,16 +130,18 @@
/**
* @brief Information currently requested module settings
**/
function setModuleInfo(&$module_info) {
*/
function setModuleInfo(&$module_info)
{
if($this->module_info) return;
$this->module_info = $module_info;
}
/**
* @brief Set the module instance is currently running
**/
function setModuleInstance(&$oModule) {
*/
function setModuleInstance(&$oModule)
{
if($this->oModule) return;
// Save instance
$this->oModule = $oModule;
@ -152,13 +162,17 @@
$this->index_mid = $k[0];
// The depth of the current menu, the top button to specify if one or more
$cur_menu_item = $listed_items[$node_list[$this->module_info->mid]];
if($cur_menu_item['parent_srl']) {
if($cur_menu_item['parent_srl'])
{
$parent_srl = $cur_menu_item['parent_srl'];
if($parent_srl && $listed_items[$parent_srl]) {
if($parent_srl && $listed_items[$parent_srl])
{
$parent_item = $listed_items[$parent_srl];
if($parent_item) $this->setUpperUrl(getUrl('','mid',$parent_item['mid']), Context::getLang('cmd_go_upper'));
}
} elseif (!$this->isNavigationMode()) {
}
elseif (!$this->isNavigationMode())
{
$this->setUpperUrl(getUrl('','mid',$this->index_mid,'nm','1','cmid',0), Context::getLang('cmd_view_sitemap'));
}
}
@ -166,15 +180,17 @@
/**
* @brief Access the browser's header to determine the return type of the browser
* Mobile browser, if not null return
**/
function getBrowserType() {
*/
function getBrowserType()
{
if(Context::get('smartphone')) return null;
// Determine the type of browser
$browserAccept = $_SERVER['HTTP_ACCEPT'];
$userAgent = $_SERVER['HTTP_USER_AGENT'];
$wap_sid = $_SERVER['HTTP_X_UP_SUBNO'];
if(preg_match("/SKT11/i", $userAgent) || preg_match("/skt/i", $browserAccept)) {
if(preg_match("/SKT11/i", $userAgent) || preg_match("/skt/i", $browserAccept))
{
Context::set('mobile_skt',1);
return "wml";
}
@ -185,8 +201,9 @@
/**
* @brief Specify charset
**/
function setCharSet($charset = 'UTF-8') {
*/
function setCharSet($charset = 'UTF-8')
{
if(!$charset) $charset = 'UTF-8';
// SKT supports the euc-kr
if(Context::get('mobile_skt')==1) $charset = 'euc-kr';
@ -196,24 +213,29 @@
/**
* @brief Limited capacity of mobile devices, specifying a different virtual page
**/
function setMobilePage($page=1) {
*/
function setMobilePage($page=1)
{
if(!$page) $page = 1;
$this->mobilePage = $page;
}
/**
* @brief Mokrokhyeong child menu for specifying the data set
**/
function setChilds($childs) {
*/
function setChilds($childs)
{
// If more than nine the number of menu paging processing itself
$menu_count = count($childs);
if($menu_count>9) {
if($menu_count>9)
{
$startNum = ($this->mobilePage-1)*9;
$idx = 0;
$new_childs = array();
foreach($childs as $k => $v) {
if($idx >= $startNum && $idx < $startNum+9) {
foreach($childs as $k => $v)
{
if($idx >= $startNum && $idx < $startNum+9)
{
$new_childs[$k] = $v;
}
$idx ++;
@ -222,13 +244,15 @@
$this->totalPage = (int)(($menu_count-1)/9)+1;
// next/prevUrl specify
if($this->mobilePage>1) {
if($this->mobilePage>1)
{
$url = getUrl('mid',$_GET['mid'],'mpage',$this->mobilePage-1);
$text = sprintf('%s (%d/%d)', Context::getLang('cmd_prev'), $this->mobilePage-1, $this->totalPage);
$this->setPrevUrl($url, $text);
}
if($this->mobilePage<$this->totalPage) {
if($this->mobilePage<$this->totalPage)
{
$url = getUrl('mid',$_GET['mid'],'mpage',$this->mobilePage+1);
$text = sprintf('%s (%d/%d)', Context::getLang('cmd_next'), $this->mobilePage+1, $this->totalPage);
$this->setNextUrl($url, $text);
@ -239,22 +263,25 @@
/**
* @brief Check the menu to be output
**/
function hasChilds() {
*/
function hasChilds()
{
return count($this->childs)?true:0;
}
/**
* @brief Returns the child menu
**/
function getChilds() {
*/
function getChilds()
{
return $this->childs;
}
/**
* @brief Specify title
**/
function setTitle($title) {
*/
function setTitle($title)
{
$oModuleController = &getController('module');
$this->title = $title;
$oModuleController->replaceDefinedLangCode($this->title);
@ -262,16 +289,18 @@
/**
* @brief return title
**/
function getTitle() {
*/
function getTitle()
{
return $this->title;
}
/**
* @brief Content Cleanup
* In HTML content, the ability to extract text and links
**/
function setContent($content) {
*/
function setContent($content)
{
$oModuleController = &getController('module');
$allow_tag_array = array('<a>','<br>','<p>','<b>','<i>','<u>','<em>','<small>','<strong>','<big>','<table>','<tr>','<td>');
// Links/wrap, remove all tags except gangjoman
@ -284,23 +313,27 @@
$content = preg_replace(array("/<a/i","/<\/a/i","/<b/i","/<\/b/i","/<br/i"),array('<a','</a','<b','</b','<br'),$content);
$content = str_replace(array("<br>","<br />"), array("<br/>","<br/>"), $content);
while(strpos($content, '<br/><br/>')) {
while(strpos($content, '<br/><br/>'))
{
$content = str_replace('<br/><br/>','<br/>',$content);
}
// If the required size of a deck of mobile content to write down all the dividing pages
$contents = array();
while($content) {
while($content)
{
$tmp = $this->cutStr($content, $this->deckSize, '');
$contents[] = $tmp;
$content = substr($content, strlen($tmp));
//$content = str_replace(array('&','<','>','"','&amp;nbsp;'), array('&amp;','&lt;','&gt;','&quot;',' '), $content);
foreach($allow_tag_array as $tag) {
foreach($allow_tag_array as $tag)
{
if($tag == '<br>') continue;
$tag_open_pos = strpos($content, str_replace('>','',$tag));
$tag_close_pos = strpos($content, str_replace('<','</',$tag));
if($tag_open_pos!==false && $tag_close_pos || $tag_close_pos < $tag_open_pos) {
if($tag_open_pos!==false && $tag_close_pos || $tag_close_pos < $tag_open_pos)
{
$contents[count($contents)-1] .= substr($content, 0, $tag_close_pos + strlen($tag) + 1);
$content = substr($content, $tag_close_pos + strlen($tag) + 1);
}
@ -308,7 +341,8 @@
$tag_open_pos = strpos($content, '&');
$tag_close_pos = strpos($content, ';');
if($tag_open_pos!==false && $tag_close_pos || $tag_close_pos < $tag_open_pos) {
if($tag_open_pos!==false && $tag_close_pos || $tag_close_pos < $tag_open_pos)
{
$contents[count($contents)-1] .= substr($content, 0, $tag_close_pos + 1);
$content = substr($content, $tag_close_pos + 1);
}
@ -316,13 +350,15 @@
$this->totalPage = count($contents);
// next/prevUrl specify
if($this->mobilePage>1) {
if($this->mobilePage>1)
{
$url = getUrl('mid',$_GET['mid'],'mpage',$this->mobilePage-1);
$text = sprintf('%s (%d/%d)', Context::getLang('cmd_prev'), $this->mobilePage-1, $this->totalPage);
$this->setPrevUrl($url, $text);
}
if($this->mobilePage<$this->totalPage) {
if($this->mobilePage<$this->totalPage)
{
$url = getUrl('mid',$_GET['mid'],'mpage',$this->mobilePage+1);
$text = sprintf('%s (%d/%d)', Context::getLang('cmd_next'), $this->mobilePage+1, $this->totalPage);
$this->setNextUrl($url, $text);
@ -335,22 +371,25 @@
/**
* @brief cutting the number of byte functions
**/
function cutStr($string, $cut_size) {
*/
function cutStr($string, $cut_size)
{
return preg_match('/.{'.$cut_size.'}/su', $string, $arr) ? $arr[0] : $string;
}
/**
* @brief Return content
**/
function getContent() {
*/
function getContent()
{
return $this->content;
}
/**
* @brief Specifies the home url
**/
function setHomeUrl($url, $text) {
*/
function setHomeUrl($url, $text)
{
if(!$url) $url = '#';
$this->homeUrl->url = $url;
$this->homeUrl->text = $text;
@ -358,8 +397,9 @@
/**
* @brief Specify upper url
**/
function setUpperUrl($url, $text) {
*/
function setUpperUrl($url, $text)
{
if(!$url) $url = '#';
$this->upperUrl->url = $url;
$this->upperUrl->text = $text;
@ -367,8 +407,9 @@
/**
* @brief Specify prev url
**/
function setPrevUrl($url, $text) {
*/
function setPrevUrl($url, $text)
{
if(!$url) $url = '#';
$this->prevUrl->url = $url;
$this->prevUrl->text = $text;
@ -376,8 +417,9 @@
/**
* @brief Specify next url
**/
function setNextUrl($url, $text) {
*/
function setNextUrl($url, $text)
{
if(!$url) $url = '#';
$this->nextUrl->url = $url;
$this->nextUrl->text = $text;
@ -385,8 +427,9 @@
/**
* @brief Next, Previous, Top button assignments other than
**/
function setEtcBtn($url, $text) {
*/
function setEtcBtn($url, $text)
{
if(!$url) $url = '#';
$etc['url'] = $url;
$etc['text'] = htmlspecialchars($text);
@ -395,8 +438,9 @@
/**
* @brief display
**/
function display() {
*/
function display()
{
// Home button assignments
$this->setHomeUrl(getUrl(), Context::getLang('cmd_go_home'));
// Specify the title
@ -424,16 +468,18 @@
/**
* @brief Move page
**/
function movepage($url) {
*/
function movepage($url)
{
header("location:$url");
exit();
}
/**
* @brief And returns a list of serial numbers in
**/
function getNo() {
*/
function getNo()
{
$this->no++;
$str = $this->no;
return $str;
@ -441,14 +487,19 @@
/**
* @brief XE is easy to use Menu module is relieved during the function, value
**/
function getListedItems($menu, &$listed_items, &$node_list) {
*/
function getListedItems($menu, &$listed_items, &$node_list)
{
if(!count($menu)) return;
foreach($menu as $node_srl => $item) {
if(preg_match('/^([a-zA-Z0-9\_\-]+)$/', $item['url'])) {
foreach($menu as $node_srl => $item)
{
if(preg_match('/^([a-zA-Z0-9\_\-]+)$/', $item['url']))
{
$mid = $item['mid'] = $item['url'];
$node_list[$mid] = $node_srl;
} else {
}
else
{
$mid = $item['mid'] = null;
}
@ -459,35 +510,44 @@
/**
* @brief XE navigation output
**/
function displayNavigationContent() {
*/
function displayNavigationContent()
{
$childs = array();
if($this->cmid) {
if($this->cmid)
{
$cur_item = $this->listed_items[$this->cmid];
$upper_srl = $cur_item['parent_srl'];;
$list = $cur_item['list'];;
$this->setUpperUrl(getUrl('cmid',$upper_srl), Context::getLang('cmd_go_upper'));
if(preg_match('/^([a-zA-Z0-9\_\-]+)$/', $cur_item['url'])) {
if(preg_match('/^([a-zA-Z0-9\_\-]+)$/', $cur_item['url']))
{
$obj = null;
$obj['href'] = getUrl('','mid',$cur_item['url']);
$obj['link'] = $obj['text'] = '['.$cur_item['text'].']';
$childs[] = $obj;
}
} else {
}
else
{
$list = $this->menu;
$upper_srl = 0;
}
if(count($list)) {
foreach($list as $key => $val) {
if(count($list))
{
foreach($list as $key => $val)
{
if(!$val['text']) continue;
$obj = null;
if(!count($val['list'])) {
if(!count($val['list']))
{
$obj['href'] = getUrl('','mid',$val['url']);
} else {
}
else
{
$obj['href'] = getUrl('cmid',$val['node_srl']);
}
$obj['link'] = $obj['text'] = $val['text'];
@ -501,12 +561,14 @@
/**
* @brief Language Settings menu, the output
**/
function displayLangSelect() {
*/
function displayLangSelect()
{
$childs = array();
$this->lang = FileHandler::readFile('./files/cache/addons/mobile/setLangType/personal_settings/'.md5(trim($_SERVER['HTTP_USER_AGENT']).trim($_SERVER['HTTP_PHONE_NUMBER']).trim($_SERVER['HTTP_HTTP_PHONE_NUMBER'])).'.php');
if($this->lang) {
if($this->lang)
{
$this->lang = str_replace(array('<?php /**','**/ ?>'),array('',''),$this->lang);
Context::setLangType($this->lang);
}
@ -517,8 +579,10 @@
$obj['href'] = getUrl('sel_lang',$lang_type);
$childs[] = $obj;
if(is_array($lang_supported)) {
foreach($lang_supported as $key => $val) {
if(is_array($lang_supported))
{
foreach($lang_supported as $key => $val)
{
$obj = null;
$obj['link'] = $obj['text'] = $val;
$obj['href'] = getUrl('sel_lang',$key);
@ -533,8 +597,9 @@
/**
* @brief Module to create a class object of the WAP WAP ready
**/
function displayModuleContent() {
*/
function displayModuleContent()
{
// Create WAP class objects of the selected module
$oModule = &getWap($this->module_info->module);
if(!$oModule || !method_exists($oModule, 'procWAP') ) return;
@ -549,8 +614,9 @@
/**
* @brief WAP content is available as a separate output if the final results
**/
function displayContent() {
*/
function displayContent()
{
Context::set('layout','none');
// Compile a template
$oTemplate = new TemplateHandler();
@ -561,5 +627,6 @@
// Output
$this->display();
}
}
?>
}
/* End of file mobile.class.php */
/* Location: ./addons/mobile/classes/mobile.class.php */

View file

@ -1,21 +1,23 @@
<?php
/**
/**
* WML Library ver 0.1
* @author NHN (developers@xpressengine.com) / lang_select : misol
**/
class wap extends mobileXE {
*/
class wap extends mobileXE
{
/**
* @brief constructor
**/
function wap() {
*/
function wap()
{
parent::mobileXE();
}
/**
* @brief wml header output
**/
function printHeader() {
*/
function printHeader()
{
header("Content-Type: text/vnd.wap.wml");
header("charset: ".$this->charset);
if($this->totalPage > $this->mobilePage) $titlePageStr = sprintf("(%d/%d)",$this->mobilePage, $this->totalPage);
@ -26,8 +28,9 @@
/**
* @brief Output title
**/
function printTitle() {
*/
function printTitle()
{
if($this->totalPage > $this->mobilePage) $titlePageStr = sprintf("(%d/%d)",$this->mobilePage, $this->totalPage);
printf('&lt;%s%s&gt;<br/>%s', htmlspecialchars($this->title),htmlspecialchars($titlePageStr),"\n");
}
@ -35,15 +38,20 @@
/**
* @brief Output information
* hasChilds() if there is a list of content types, otherwise output
**/
function printContent() {
if($this->hasChilds()) {
foreach($this->getChilds() as $key => $val) {
*/
function printContent()
{
if($this->hasChilds())
{
foreach($this->getChilds() as $key => $val)
{
if(!$val['link']) continue;
printf('<do type="%s" label="%s"><go href="%s" /></do>%s', $this->getNo(), htmlspecialchars($val['text']), $val['href'], "\n");
if($val['extra']) printf("%s\n",$val['extra']);
}
} else {
}
else
{
printf('%s<br/>%s', str_replace("<br>","<br/>",$this->getContent()),"\n");
}
print('<br/>');
@ -51,54 +59,69 @@
/**
* @brief Button to output
**/
function printBtn() {
if($this->nextUrl) {
*/
function printBtn()
{
if($this->nextUrl)
{
$url = $this->nextUrl;
printf('<do type="vnd.next" label="%s"><go href="%s"/></do>%s', $url->text, $url->url, "\n");
}
if($this->prevUrl) {
if($this->prevUrl)
{
$url = $this->prevUrl;
printf('<do type="vnd.prev" label="%s"><go href="%s"/></do>%s', $url->text, $url->url, "\n");
}
// Others are not applicable in charge of the button output (array passed) type??
if($this->etcBtn) {
if(is_array($this->etcBtn)) {
foreach($this->etcBtn as $key=>$val) {
if($this->etcBtn)
{
if(is_array($this->etcBtn))
{
foreach($this->etcBtn as $key=>$val)
{
printf('<do type="vnd.btn%s" label="%s"><go href="%s"/></do>%s', $key, $val['text'], $val['url'], "\n");
}
}
}
// Select Language
if(!parent::isLangChange()){
if(!parent::isLangChange())
{
$url = getUrl('','lcm','1','sel_lang',Context::getLangType(),'return_uri',Context::get('current_url'));
printf('<do type="vnd.lang" label="%s"><go href="%s"/></do>%s', 'Language : '.Context::getLang('select_lang'), $url, "\n");
}
else {
else
{
printf('<do type="vnd.lang" label="%s"><go href="%s"/></do>%s', Context::getLang('lang_return'), Context::get('return_uri'), "\n");
}
if($this->homeUrl) {
if($this->homeUrl)
{
$url = $this->homeUrl;
printf('<do type="access" label="%s"><go href="%s"/></do>%s', $url->text, $url->url, "\n");
}
if($this->upperUrl) {
if($this->upperUrl)
{
$url = $this->upperUrl;
printf('<do type="vnd.up" label="%s"><go href="%s"/></do>%s', $url->text, $url->url, "\n");
}
}
// Footer information output
function printFooter() {
function printFooter()
{
print("</p>\n</card>\n</wml>");
}
// And returns a list of serial numbers in
function getNo() {
if(Context::get('mobile_skt')==1) {
function getNo()
{
if(Context::get('mobile_skt')==1)
{
return "vnd.skmn".parent::getNo();
}
else {
else
{
return parent::getNo();
}
return $str;
}
}
?>
}
/* End of file wml.class.php */
/* Location: ./addons/mobile/classes/wml.class.php */

View file

@ -31,10 +31,12 @@ $oMobile->setCharSet($addon_info->charset);
$oMobile->setModuleInfo($this->module_info);
// Register the current module object
$oMobile->setModuleInstance($this);
// Extract content and display/exit if navigate mode is or if WAP class exists
if($called_position == 'before_module_proc') {
if($oMobile->isLangChange()) {
// Extract content and display/exit if navigate mode is or if WAP class exists
if($called_position == 'before_module_proc')
{
if($oMobile->isLangChange())
{
$oMobile->setLangType();
$oMobile->displayLangSelect();
}
@ -42,9 +44,13 @@ if($called_position == 'before_module_proc') {
if($oMobile->isNavigationMode()) $oMobile->displayNavigationContent();
// If you have a WAP class content output via WAP class
else $oMobile->displayModuleContent();
// If neither navigation mode nor WAP class is, display the module's result
} else if($called_position == 'after_module_proc') {
// If neither navigation mode nor WAP class is, display the module's result
}
else if($called_position == 'after_module_proc')
{
// Display
$oMobile->displayContent();
}
?>
/* End of file mobile.addon.php */
/* Location: ./addons/mobile/mobile.addon.php */

View file

@ -21,7 +21,9 @@ $header_script = sprintf(
$addon_info->server,
$addon_info->delegate,
$addon_info->xrds
);
);
Context::addHtmlHeader($header_script);
?>
/* End of file openid_delegation_id.addon.php */
/* Location: ./addons/openid_delegation_id/openid_delegation_id.addon.php */

View file

@ -16,4 +16,6 @@ require_once('./addons/point_level_icon/point_level_icon.lib.php');
$temp_output = preg_replace_callback('!<(div|span|a)([^\>]*)member_([0-9\-]+)([^\>]*)>(.*?)\<\/(div|span|a)\>!is', 'pointLevelIconTrans', $output);
if($temp_output) $output = $temp_output;
unset($temp_output);
?>
/* End of file point_level_icon.addon.php */
/* Location: ./addons/point_level_icon/point_level_icon.addon.php */

View file

@ -1,8 +1,9 @@
<?php
/**
* @brief Function to change point icon.
**/
function pointLevelIconTrans($matches) {
*/
function pointLevelIconTrans($matches)
{
$member_srl = $matches[3];
if($member_srl<1) return $matches[0];
@ -12,9 +13,11 @@ function pointLevelIconTrans($matches) {
$oMemberModel = &getModel('member');
if($oMemberModel->getGroupImageMark($member_srl)) return $orig_text.$matches[5].'</'.$matches[6].'>';
if(!isset($GLOBALS['_pointLevelIcon'][$member_srl])) {
if(!isset($GLOBALS['_pointLevelIcon'][$member_srl]))
{
// Get point configuration
if(!$GLOBALS['_pointConfig']) {
if(!$GLOBALS['_pointConfig'])
{
$oModuleModel = &getModel('module');
$GLOBALS['_pointConfig'] = $oModuleModel->getModuleConfig('point');
}
@ -31,7 +34,8 @@ function pointLevelIconTrans($matches) {
// Get a path where level icon is
$level_icon = sprintf('%smodules/point/icons/%s/%d.gif', Context::getRequestUri(), $config->level_icon, $level);
// Get per to go to the next level if not a top level
if($level < $config->max_level) {
if($level < $config->max_level)
{
$next_point = $config->level_step[$level+1];
$present_point = $config->level_step[$level];
if($next_point > 0) {
@ -49,4 +53,6 @@ function pointLevelIconTrans($matches) {
return $orig_text.$text.$matches[5].'</'.$matches[6].'>';
}
?>
/* End of file point_level_icon.lib.php */
/* Location: ./addons/point_level_icon/point_level_icon.lib.php */

View file

@ -5,14 +5,20 @@ if(!defined('__XE__')) exit();
* @file resize_image.addon.php
* @author NHN (developers@xpressengine.com)
* @brief Add-on to resize images in the body
**/
*/
if($called_position == 'after_module_proc' && Context::getResponseMethod()=="HTML") {
if(Mobile::isFromMobilePhone()) {
if($called_position == 'after_module_proc' && Context::getResponseMethod()=="HTML")
{
if(Mobile::isFromMobilePhone())
{
Context::loadFile('./addons/resize_image/css/resize_image.mobile.css', true);
} else {
}
else
{
Context::loadJavascriptPlugin('ui');
Context::loadFile(array('./addons/resize_image/js/resize_image.min.js', 'body', '', null), true);
}
}
?>
/* End of file resize_image.addon.php */
/* Location: ./addons/resize_image/resize_image.addon.php */