Changeset 5625
- Timestamp:
- 03/24/08 13:27:34 (8 months ago)
- Location:
- trunk/interface/owner/skin/sidebar
- Files:
-
- 5 modified
-
edit/index.php (modified) (3 diffs)
-
initialize/index.php (modified) (2 diffs)
-
order/index.php (modified) (1 diff)
-
register/index.php (modified) (2 diffs)
-
setPlugin/index.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/interface/owner/skin/sidebar/edit/index.php
r5285 r5625 4 4 /// See the GNU General Public License for more details. (/doc/LICENSE, /doc/COPYRIGHT) 5 5 6 $ajaxcall= false; 7 if (isset($_REQUEST['ajaxcall'])) { 8 $ajaxcall= true; 9 $ajaxmethod = $_REQUEST['ajaxcall']; 10 } 6 $ajaxcall = isset($_REQUEST['ajaxcall']) ? true : false; 7 $ajaxmethod = isset($_REQUEST['ajaxcall']) ? $_REQUEST['ajaxcall'] : 'return false;'; 11 8 12 9 $IV = array( … … 30 27 $modulePos = $_REQUEST['modulePos']; 31 28 32 if (($sidebarNumber < 0) || ($sidebarNumber >= $sidebarCount)) respond::ErrorPage( );33 if (!isset($sidebarOrderData[$sidebarNumber]) || !isset($sidebarOrderData[$sidebarNumber][$modulePos])) respond::ErrorPage( );29 if (($sidebarNumber < 0) || ($sidebarNumber >= $sidebarCount)) respond::ErrorPage(null,null,null,$ajaxcall); 30 if (!isset($sidebarOrderData[$sidebarNumber]) || !isset($sidebarOrderData[$sidebarNumber][$modulePos])) respond::ErrorPage(null,null,null,$ajaxcall); 34 31 35 32 $pluginData = $sidebarOrderData[$sidebarNumber][$modulePos]; 36 if ($pluginData['type'] != 3) respond::ErrorPage( );33 if ($pluginData['type'] != 3) respond::ErrorPage(null,null,null,$ajaxcall); 37 34 38 35 $plugin = $pluginData['id']['plugin']; … … 147 144 require ROOT . '/lib/piece/owner/footer.php'; 148 145 } 149 150 151 146 ?> -
trunk/interface/owner/skin/sidebar/initialize/index.php
r5285 r5625 3 3 /// All rights reserved. Licensed under the GPL. 4 4 /// See the GNU General Public License for more details. (/doc/LICENSE, /doc/COPYRIGHT) 5 6 $ajaxcall = isset($_REQUEST['ajaxcall']) ? true : false; 7 5 8 require ROOT . '/lib/includeForBlogOwner.php'; 6 9 requireStrictRoute(); … … 12 15 setting::removeBlogSettingGlobal('sidebarOrder'); 13 16 Skin::purgeCache(); 14 header('Location: '. $blogURL . '/owner/skin/sidebar' . $_REQUEST['viewMode']); 17 if($ajaxcall == false) header('Location: '. $blogURL . '/owner/skin/sidebar' . $_REQUEST['viewMode']); 18 else respond::ResultPage(0); 15 19 ?> -
trunk/interface/owner/skin/sidebar/order/index.php
r5285 r5625 3 3 /// All rights reserved. Licensed under the GPL. 4 4 /// See the GNU General Public License for more details. (/doc/LICENSE, /doc/COPYRIGHT) 5 6 $ajaxcall = isset($_REQUEST['ajaxcall']) ? true : false; 7 5 8 $IV = array( 6 9 'REQUEST' => array( -
trunk/interface/owner/skin/sidebar/register/index.php
r5285 r5625 3 3 /// All rights reserved. Licensed under the GPL. 4 4 /// See the GNU General Public License for more details. (/doc/LICENSE, /doc/COPYRIGHT) 5 6 $ajaxcall = isset($_REQUEST['ajaxcall']) ? true : false; 5 7 6 8 $IV = array( … … 35 37 if ($_REQUEST['viewMode'] != '') $_REQUEST['viewMode'] = '?' . $_REQUEST['viewMode']; 36 38 37 if ($_SERVER['REQUEST_METHOD'] != 'POST') 38 header('Location: '. $blogURL . '/owner/skin/sidebar' . $_REQUEST['viewMode']); 39 if($ajaxcall == false) { 40 if ($_SERVER['REQUEST_METHOD'] != 'POST') 41 header('Location: '. $blogURL . '/owner/skin/sidebar' . $_REQUEST['viewMode']); 42 } else { 43 respond::ResultPage(0); 44 } 39 45 ?> -
trunk/interface/owner/skin/sidebar/setPlugin/index.php
r5624 r5625 3 3 /// All rights reserved. Licensed under the GPL. 4 4 /// See the GNU General Public License for more details. (/doc/LICENSE, /doc/COPYRIGHT) 5 $ajaxcall= false; 6 if (isset($_REQUEST['ajaxcall'])) { 7 $ajaxcall= true; 8 } 5 6 $ajaxcall = isset($_REQUEST['ajaxcall']) ? true : false; 9 7 10 8 $IV = array(
