Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
117731a
fix rewrite, function_call, uc_server blank
branchzero Dec 7, 2015
cfe392a
Update viewthread_node.htm
Mushan3420 Dec 7, 2015
50a9c74
Update function_profile.php
Mushan3420 Dec 7, 2015
d42cfc6
fix UC communication problem
branchzero Dec 7, 2015
e534348
Update install_data.sql
Mushan3420 Dec 7, 2015
d085356
Update forum_viewthread.php
Mushan3420 Dec 7, 2015
cffad1d
Update helper_seo.php
Mushan3420 Dec 7, 2015
bb6b7e7
Delete player.swf
Mushan3420 Dec 7, 2015
7b5bd6c
add the normal swf player
Mushan3420 Dec 7, 2015
5c96fcb
Merge Official Patch 20151208
branchzero Dec 8, 2015
5883b5f
Merge branch 'dev' of https://github.com/branchzero/discuz-x32-php7 i…
branchzero Dec 8, 2015
159a986
fix Plugin
branchzero Dec 8, 2015
2f00cd1
Update readme.md
Mushan3420 Dec 8, 2015
c83ba62
Update readme.md
Mushan3420 Dec 8, 2015
4cd6f63
Fix Alipay
Mushan3420 Dec 9, 2015
8e58a89
Fix again swf players
Mushan3420 Dec 9, 2015
1011b78
Revert "Fix again swf players"
Mushan3420 Dec 9, 2015
8566320
Revert "Revert "Fix again swf players""
Mushan3420 Dec 9, 2015
b7cfbe8
code formatting
Mushan3420 Dec 9, 2015
427e50b
fix original discuz's district linked ajax out bug
branchzero Dec 12, 2015
76a3d74
fix (1054) Unknown column 'conuintoken' in 'field list'
Mushan3420 Jan 13, 2016
cf6c929
Fix Wrong Refer
branchzero Jun 9, 2016
91da107
Fix Wrong Refer
branchzero Jun 9, 2016
bf27382
Fix Typo
branchzero Jun 9, 2016
8bb5008
Fix Wrong Refer
Mushan3420 Jun 9, 2016
b4c7584
Merge remote-tracking branch 'origin/dev' into dev
Mushan3420 Jun 9, 2016
46075b1
Update uploadavatar.php
Mushan3420 Jun 9, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/trade/api_alipay.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function credit_payurl($price, &$orderid) {
$args = array(
'subject' => $_G['setting']['bbname'].' - '.$_G['member']['username'].' - '.lang('forum/misc', 'credit_payment'),
'body' => lang('forum/misc', 'credit_forum_payment').' '.$_G['setting']['extcredits'][$_G['setting']['creditstrans']]['title'].' '.intval($price * $_G['setting']['ec_ratio']).' '.$_G['setting']['extcredits'][$_G['setting']['creditstrans']]['unit'],
'service' => 'trade_create_by_buyer',
'service' => 'create_partner_trade_by_buyer',
'partner' => DISCUZ_PARTNER,
'notify_url' => $_G['siteurl'].'api/trade/notify_credit.php',
'return_url' => $_G['siteurl'].'api/trade/notify_credit.php',
Expand Down
4 changes: 2 additions & 2 deletions api/uc.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@

if(in_array($get['action'], array('test', 'deleteuser', 'renameuser', 'gettag', 'synlogin', 'synlogout', 'updatepw', 'updatebadwords', 'updatehosts', 'updateapps', 'updateclient', 'updatecredit', 'getcredit', 'getcreditsettings', 'updatecreditsettings', 'addfeed'))) {
$uc_note = new uc_note();
echo $uc_note->$get['action']($get, $post);
echo call_user_func(array($uc_note, $get['action']), $get, $post);
exit();
} else {
exit(API_RETURN_FAILED);
Expand All @@ -83,7 +83,7 @@ function _serialize($arr, $htmlon = 0) {
return xml_serialize($arr, $htmlon);
}

function uc_note() {
function __construct() {

}

Expand Down
2 changes: 2 additions & 0 deletions install/data/install.sql
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ CREATE TABLE pre_common_connect_guest (
conopenid char(32) NOT NULL DEFAULT '',
conuin char(40) NOT NULL DEFAULT '',
conuinsecret char(16) NOT NULL DEFAULT '',
conuintoken char(32) NOT NULL DEFAULT '',
conqqnick char(100) NOT NULL DEFAULT '',
PRIMARY KEY (conopenid)
) TYPE=MyISAM;
Expand Down Expand Up @@ -692,6 +693,7 @@ CREATE TABLE pre_common_member_connect (
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
conuin char(40) NOT NULL DEFAULT '',
conuinsecret char(16) NOT NULL DEFAULT '',
conuintoken char(32) NOT NULL DEFAULT '',
conopenid char(32) NOT NULL DEFAULT '',
conisfeed tinyint(1) unsigned NOT NULL DEFAULT '0',
conispublishfeed tinyint(1) unsigned NOT NULL DEFAULT '0',
Expand Down
2 changes: 1 addition & 1 deletion install/data/install_data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ INSERT INTO pre_common_word_type SET `id`='1', `typename`='政治';
INSERT INTO pre_common_word_type SET `id`='2', `typename`='广告';

INSERT INTO pre_forum_bbcode VALUES ('1','0','fly','bb_fly.gif','<marquee width=\"90%\" scrollamount=\"3\">{1}</marquee>','[fly]This is sample text[/fly]','使内容横向滚动,这个效果类似 HTML 的 marquee 标签,注意:这个效果只在 Internet Explorer 浏览器下有效。','1','请输入滚动显示的文字:','1','19','1 2 3 12 13 14 15 16 17 18 19');
INSERT INTO pre_forum_bbcode VALUES ('2','2','qq','bb_qq.gif','<a href=\"http://wpa.qq.com/msgrd?V=3&Uin={1}&amp;Site=[Discuz!]&amp;from=discuz&amp;Menu=yes\" target=\"_blank\"><img src=\"static/image/common/qq_big.gif\" border=\"0\"></a>','[qq]688888[/qq]','显示 QQ 在线状态,点这个图标可以和他(她)聊天','1','请输入 QQ 号码:<a href=\"\" class=\"xi2\" onclick=\"this.href=\'http://wp.qq.com/set.html?from=discuz&uin=\'+$(\'e_cst1_qq_param_1\').value\" target=\"_blank\" style=\"float:right;\">设置QQ在线状态&nbsp;&nbsp;</a>','1','21','1 2 3 10 11 12 13 14 15 16 17 18 19');
INSERT INTO pre_forum_bbcode VALUES ('2','2','qq','bb_qq.gif','<a href=\"http://wpa.qq.com/msgrd?v=3&uin={1}&amp;site=[Discuz!]&amp;from=discuz&amp;menu=yes\" target=\"_blank\"><img src=\"static/image/common/qq_big.gif\" border=\"0\"></a>','[qq]688888[/qq]','显示 QQ 在线状态,点这个图标可以和他(她)聊天','1','请输入 QQ 号码:<a href=\"\" class=\"xi2\" onclick=\"this.href=\'http://wp.qq.com/set.html?from=discuz&uin=\'+$(\'e_cst1_qq_param_1\').value\" target=\"_blank\" style=\"float:right;\">设置QQ在线状态&nbsp;&nbsp;</a>','1','21','1 2 3 10 11 12 13 14 15 16 17 18 19');
INSERT INTO pre_forum_bbcode VALUES ('3','0','sup','bb_sup.gif','<sup>{1}</sup>','X[sup]2[/sup]','上标','1','请输入上标文字:','1','22','1 2 3 12 13 14 15 16 17 18 19');
INSERT INTO pre_forum_bbcode VALUES ('4','0','sub','bb_sub.gif','<sub>{1}</sub>','X[sub]2[/sub]','下标','1','请输入下标文字:','1','23','1 2 3 12 13 14 15 16 17 18 19');

Expand Down
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Discuz X3.2 UTF-8 20150609 For PHP7
#Discuz X3.2 UTF-8 20151208 For PHP7

This is a a PHP7 Port of Discuz! X3.2, based on Discuz X3.2 UTF-8 20150609.
This is a a PHP7 Port of Discuz! X3.2, based on Discuz X3.2 UTF-8 20151208.
*Please Do Not Use For Production*

###Changes
Expand All @@ -14,7 +14,7 @@ Maybe there are still some bugs remaining to fix.

###Known Bugs

- None
- Please turn to issues for details.

###Other

Expand Down
10 changes: 9 additions & 1 deletion source/admincp/admincp_checktools.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* [Discuz!] (C)2001-2099 Comsenz Inc.
* This is NOT a freeware, use is subject to license terms
*
* $Id: admincp_checktools.php 31554 2012-09-07 08:49:56Z monkey $
* $Id: admincp_checktools.php 35472 2015-08-03 09:06:22Z nemohou $
*/

if(!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) {
Expand Down Expand Up @@ -362,6 +362,14 @@

$settingnew = $_GET['settingnew'];
if(!empty($_GET['previewthumb'])) {
if(!is_dir($settingnew['imageimpath'])) {
$settingnew['imageimpath'] = '';
} else {
$settingnew['imageimpath'] = str_replace('\\', '/', $settingnew['imageimpath']);
if(!preg_match('/^[\!@#\$%\^&\(\)_\+\-\=\{\}\[\];\',\.\/\:\w\s]+$/', $settingnew['imageimpath'])) {
$settingnew['imageimpath'] = '';
}
}
$_G['setting']['imagelib'] = $settingnew['imagelib'];
$_G['setting']['imageimpath'] = $settingnew['imageimpath'];
$_G['setting']['thumbwidth'] = $settingnew['thumbwidth'];
Expand Down
5 changes: 2 additions & 3 deletions source/admincp/admincp_cloudaddons.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* [Discuz!] (C)2001-2099 Comsenz Inc.
* This is NOT a freeware, use is subject to license terms
*
* $Id: admincp_cloudaddons.php 33369 2013-06-03 05:00:29Z andyzheng $
* $Id: admincp_cloudaddons.php 35705 2015-12-01 06:14:33Z nemohou $
*/
if(!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) {
exit('Access Denied');
Expand Down Expand Up @@ -35,8 +35,7 @@
} elseif($operation == 'download') {
$step = intval($_GET['step']);
$addoni = intval($_GET['i']);
$uniqueid = $_G['setting']['siteuniqueid'] ? $_G['setting']['siteuniqueid'] : C::t('common_setting')->fetch('siteuniqueid');
if(!$_GET['md5hash'] || md5($_GET['addonids'].md5($uniqueid.$_GET['timestamp'])) != $_GET['md5hash']) {
if(!$_GET['md5hash'] || md5($_GET['addonids'].md5(cloudaddons_getuniqueid().$_GET['timestamp'])) != $_GET['md5hash']) {
cpmsg('cloudaddons_validator_error', '', 'error');
}
$addonids = explode(',', $_GET['addonids']);
Expand Down
24 changes: 12 additions & 12 deletions source/admincp/discuzfiles.md5
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ d41d8cd98f00b204e9800998ecf8427e *data/template/index.htm
d41d8cd98f00b204e9800998ecf8427e *data/threadcache/index.htm
0d673a9b9f136a7a6b6b25d4ff4bc1fd *./install
08066574cc9c9cfa186b8e1a7ba35b5c *./source
4eeab4f3170c81bab4c3df07e0d276d0 *source/discuz_version.php
d774fb851c4ad4f88ea19469fd7353cf *source/discuz_version.php
7215ee9c7d9dc229d2921a40e899ec5f *source/index.htm
0a7896849dd83bbf64a31ccf11e58a17 *source/admincp/admincp_admingroup.php
8896d084661345e3de22cb445536f2cb *source/admincp/admincp_adv.php
Expand All @@ -86,10 +86,10 @@ e48263dce4356396f52bfbcfb5071c64 *source/admincp/admincp_block.php
dda34ea9edc3f37fb7f3c8bae9d587e0 *source/admincp/admincp_blogcategory.php
20479a5ebcc8c8de3dac7a61764af979 *source/admincp/admincp_blogrecyclebin.php
ac14d324de325ee9485caca992f796c1 *source/admincp/admincp_card.php
5e0ea6696805c296eaa6fdd9f5ee8bf2 *source/admincp/admincp_checktools.php
2ac5ca0a276104f1b12b2bab03ad27e2 *source/admincp/admincp_checktools.php
b40bc52669c410d5fbedaaf37550fb01 *source/admincp/admincp_click.php
85ef3aadb8fad22f669b99e44da52649 *source/admincp/admincp_cloud.php
eafad7bb76a8672f771147a2f2b4d278 *source/admincp/admincp_cloudaddons.php
50bbccf077a293c4f9ef5f9515a27d4a *source/admincp/admincp_cloudaddons.php
a7564ff1d1d99de04603d6a6f588a6e5 *source/admincp/admincp_collection.php
93c0cd010c921640c9bc5c06aa6c9394 *source/admincp/admincp_comment.php
6558bce5672e89e7e974deb172fa4912 *source/admincp/admincp_counter.php
Expand Down Expand Up @@ -381,7 +381,7 @@ d41d8cd98f00b204e9800998ecf8427e *source/class/forum/index.htm
79feb45e4626dbba96e19ea147fff3e2 *source/class/helper/helper_antitheft.php
59220a31da954b7d2227f336dbb6f0c3 *source/class/helper/helper_attach.php
7022fd0d4c037305b08aa3702a6add1e *source/class/helper/helper_dbtool.php
0d82e5d1b0ab576c3e0168074fc484d7 *source/class/helper/helper_form.php
b4a48768f230e623de4e45fe99241f55 *source/class/helper/helper_form.php
f44c81f0cf86f12e234da0e7f03d11f0 *source/class/helper/helper_json.php
cd6ed5c1af415245d93e3235c8ede908 *source/class/helper/helper_log.php
5385476aea9b3fb11a4e82607755229e *source/class/helper/helper_makehtml.php
Expand Down Expand Up @@ -727,20 +727,20 @@ f9fabd8329b3a8a91c7a8996bd0bc4cc *source/class/task/task_profile.php
d92c261612a6b18fa0f32c5832420258 *source/function/function_block.php
fda0f9733c9d07e18ac8b6aa1f04a4ba *source/function/function_blog.php
10152e216afcc2730c7961778fd2d36a *source/function/function_cache.php
f5ff825bf0d19f9e00ae7dcf1f3acfea *source/function/function_cloudaddons.php
f917245b79f202d4cc72f5542af42ff8 *source/function/function_cloudaddons.php
77f06f33b827d1155c5c3c2f28bc7909 *source/function/function_collection.php
90ee4789682564336c6043e19dc2dcb8 *source/function/function_comment.php
d5a65d86d0bf5f3108fd585b54d19493 *source/function/function_core.php
c404fdd625f0e359950b11e18d885a0f *source/function/function_core.php
fca8f813316f070ad4026e06b938db1d *source/function/function_credit.php
dc26872be5adc5364f42bc0335c4b504 *source/function/function_delete.php
30bda91dc181cecb1d39315f57bd7c2a *source/function/function_discuzcode.php
25f4f2b24b9a727183618d3e60a157e1 *source/function/function_discuzcode.php
9270deaa36c685a3f408bb9cee2db317 *source/function/function_domain.php
aaca86dc933b77a2313a4d463cf356a6 *source/function/function_ec_credit.php
59dbdc54dc7367bb120babaceaace2c1 *source/function/function_editor.php
ed60f1ffa5730c849ff679cf8fd5efcb *source/function/function_exif.php
f04336160dae343fe6604156811d68ed *source/function/function_feed.php
c47efcdd8ba9dcb0d7320c28eea4e086 *source/function/function_filesock.php
dfd83566bf1ab8634155e0bf57ca51cd *source/function/function_followcode.php
1cc0c56581f027b3d91a51d422a8d3ec *source/function/function_followcode.php
1c962bafb265c3e1dbafd63a9e0da270 *source/function/function_forum.php
53af5593f8b73b90b1a627c434310b8a *source/function/function_forumlist.php
10758d44f84170af87ed5d0a4f15d657 *source/function/function_friend.php
Expand Down Expand Up @@ -1170,7 +1170,7 @@ cb51cfe16559084716000b0725fb111a *source/module/forum/forum_rss.php
9eacb72a42d21156d35b2a8956cc0fdc *source/module/forum/forum_tag.php
571fc4f66dc650cdf4548ff0d8d60e40 *source/module/forum/forum_topicadmin.php
e7d4e8fed8d979a928cd8960eec25f2d *source/module/forum/forum_trade.php
f05cca10355dfc9a24c981dc6f69e462 *source/module/forum/forum_viewthread.php
06d43c18f22efc68a2a3de683e7fe1ab *source/module/forum/forum_viewthread.php
d41d8cd98f00b204e9800998ecf8427e *source/module/forum/index.htm
6ac2bc80c87d24ef37a87e02cf9f31cd *source/module/group/group_attentiongroup.php
b15c4aa15189bfdc446e1459929c773f *source/module/group/group_index.php
Expand Down Expand Up @@ -1216,7 +1216,7 @@ b06844b70785922e2cb5100b9f958685 *source/module/misc/misc_ranklist.php
1b7b4fdeb70502cbb855b32ae3e24d55 *source/module/misc/misc_seccode.php
4206a5bc3be20b2294752c38bcb6b0a1 *source/module/misc/misc_secqaa.php
8c5c539ef08c4ebad727020a04352103 *source/module/misc/misc_stat.php
8919f1089311965d2a9eaa449c713674 *source/module/misc/misc_swfupload.php
f9894157f4f320c958bbb16a07101106 *source/module/misc/misc_swfupload.php
8cff67e3f9f57d6eec68f1fada15202f *source/module/misc/misc_tag.php
b2e980162b4365aa940f4a2675e0cf68 *source/module/misc/misc_userstatus.php
d41d8cd98f00b204e9800998ecf8427e *source/module/portal/index.htm
Expand Down Expand Up @@ -2481,7 +2481,7 @@ b7d9174d54261a48fb7854d55fcb7852 *static/js/admincp.js
f619c8cbedf000f59d83d7ac61633767 *static/js/ajax.js
f4c8df3bcee17f02b333a7375777fefa *static/js/at.js
2d39b948d499baafb9102d32066b2cd8 *static/js/autoloadpage.js
64de46a394e0ab04021efd942b244100 *static/js/bbcode.js
87efdff43e4f794b4c1fb26394a6f0d7 *static/js/bbcode.js
85b59b1b90ddaf58bdab571698539495 *static/js/calendar.js
ec73c26f3b4b3e606c9acf9904af6626 *static/js/common.js
ebd21b3e2d0ecd4346546d0cd629bf80 *static/js/common_diy.js
Expand Down Expand Up @@ -2963,7 +2963,7 @@ af55380c7b9fe10b851c44886e9d2d50 *template/default/home/spacecp_upload.htm
9fb1f3dd6bae1647e1013e032a53267a *template/default/home/spacecp_usergroup.htm
2acc665da23d785108539569d20a4954 *template/default/home/spacecp_usergroup_header.htm
3c467ef9914518be03d6cb944ec67d52 *template/default/home/spacecp_videophoto.htm
082ea59206f18e26752474e4f7f89b3e *template/default/member/getpasswd.htm
9720e182ebdde207c689d1734392fdd2 *template/default/member/getpasswd.htm
565e669f1d0f24519158a3f9ea7f4013 *template/default/member/login.htm
8c03540906a485367438c4d822536b18 *template/default/member/login_simple.htm
26cb5ca9b5c4a670b01a17a82897862e *template/default/member/register.htm
Expand Down
5 changes: 2 additions & 3 deletions source/class/helper/helper_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* [Discuz!] (C)2001-2099 Comsenz Inc.
* This is NOT a freeware, use is subject to license terms
*
* $Id: helper_form.php 34543 2014-05-26 07:33:21Z nemohou $
* $Id: helper_form.php 35375 2015-07-06 02:26:18Z nemohou $
*/

if(!defined('IN_DISCUZ')) {
Expand All @@ -20,8 +20,7 @@ public static function submitcheck($var, $allowget = 0, $seccodecheck = 0, $secq
} else {
global $_G;
if($allowget || ($_SERVER['REQUEST_METHOD'] == 'POST' && !empty($_GET['formhash']) && $_GET['formhash'] == formhash() && empty($_SERVER['HTTP_X_FLASH_VERSION']) && (empty($_SERVER['HTTP_REFERER']) ||
strncmp($_SERVER['HTTP_REFERER'], 'http://wsq.discuz.qq.com', 24) === 0 || strncmp($_SERVER['HTTP_REFERER'], 'http://m.wsq.qq.com', 19) === 0 ||
preg_replace("/https?:\/\/([^\:\/]+).*/i", "\\1", $_SERVER['HTTP_REFERER']) == preg_replace("/([^\:]+).*/", "\\1", $_SERVER['HTTP_HOST'])))) {
strncmp($_SERVER['HTTP_REFERER'], 'http://wsq.discuz.qq.com/', 25) === 0 || preg_replace("/https?:\/\/([^\:\/]+).*/i", "\\1", $_SERVER['HTTP_REFERER']) == preg_replace("/([^\:]+).*/", "\\1", $_SERVER['HTTP_HOST'])))) {
if(checkperm('seccode')) {
if($secqaacheck && !check_secqaa($_GET['secanswer'], $_GET['secqaahash'])) {
showmessage('submit_secqaa_invalid');
Expand Down
6 changes: 3 additions & 3 deletions source/class/helper/helper_seo.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ public static function get_seosetting($page, $data = array(), $defset = array())


public static function strreplace_strip_split($searchs, $replaces, $str) {
$searchspace = array('((\s*\-\s*)+)', '((\s*\,\s*)+)', '((\s*\|\s*)+)', '((\s*\t\s*)+)', '((\s*_\s*)+)');
$replacespace = array('-', ',', '|', ' ', '_');
$searchspace = array('(((\s)*\-(\s)*)+)', '(((\s)*\,(\s)*)+)', '(((\s)*\|(\s)*)+)', '(((\s)*\t(\s)*)+)', '(((\s)*_(\s)*)+)');
$replacespace = array('$3-$3', '$3,$3', '$3|$3', '$3 $3', '$3_$3');
return trim(preg_replace($searchspace, $replacespace, str_replace($searchs, $replaces, $str)), ' ,-|_');
}

Expand Down Expand Up @@ -111,4 +111,4 @@ public static function base64_transform($type, $prefix, $string, $suffix) {
}
}

?>
?>
4 changes: 2 additions & 2 deletions source/discuz_version.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* [Discuz!] (C)2001-2099 Comsenz Inc.
* This is NOT a freeware, use is subject to license terms
*
* $Id: discuz_version.php 35307 2015-06-09 02:15:04Z hypowang $
* $Id: discuz_version.php 35711 2015-12-08 02:32:24Z hypowang $
*/

if(!defined('IN_DISCUZ')) {
Expand All @@ -13,7 +13,7 @@

if(!defined('DISCUZ_VERSION')) {
define('DISCUZ_VERSION', 'X3.2');
define('DISCUZ_RELEASE', '20150609');
define('DISCUZ_RELEASE', '20151208');
define('DISCUZ_FIXBUG', '32000000');
}

Expand Down
20 changes: 15 additions & 5 deletions source/function/cache/cache_setting.php
Original file line number Diff line number Diff line change
Expand Up @@ -448,19 +448,29 @@ function build_cache_setting() {
}
if($output['preg']){
foreach($data['footernavs'] as $id => $nav) {
$data['footernavs'][$id]['code'] = rewritereplace($nav['code']);
foreach ($output['preg']['search'] as $key => $value) {
$data['footernavs'][$id]['code'] = preg_replace_callback($value, create_function('$matches', 'return '.$output['preg']['replace'][$key].';'), $nav['code']);
}
}
foreach($data['spacenavs'] as $id => $nav) {
$data['spacenavs'][$id]['code'] = rewritereplace($nav['code']);
foreach ($output['preg']['search'] as $key => $value) {
$data['spacenavs'][$id]['code'] = preg_replace_callback($value, create_function('$matches', 'return '.$output['preg']['replace'][$key].';'), $nav['code']);
}
}
foreach($data['mynavs'] as $id => $nav) {
$data['mynavs'][$id]['code'] = rewritereplace($nav['code']);
foreach ($output['preg']['search'] as $key => $value) {
$data['mynavs'][$id]['code'] = preg_replace_callback($value, create_function('$matches', 'return '.$output['preg']['replace'][$key].';'), $nav['code']);
}
}
foreach($data['topnavs'] as $id => $nav) {
$data['topnavs'][$id]['code'] = rewritereplace($nav['code']);
foreach ($output['preg']['search'] as $key => $value) {
$data['topnavs'][$id]['code'] = preg_replace_callback($value, create_function('$matches', 'return '.$output['preg']['replace'][$key].';'), $nav['code']);
}
}
foreach($data['plugins']['jsmenu'] as $key => $nav) {
$data['plugins']['jsmenu'][$key]['url'] = rewritereplace($nav['url']);
foreach ($output['preg']['search'] as $key => $value) {
$data['plugins']['jsmenu'][$key]['url'] = preg_replace_callback($value, create_function('$matches', 'return '.$output['preg']['replace'][$key].';'), $nav['url']);
}
}
}
}
Expand Down
Loading