Changeset 5625

Show
Ignore:
Timestamp:
03/24/08 13:27:34 (8 months ago)
Author:
inureyes
Message:

#890

  • ajaxcall 관련 처리
Location:
trunk/interface/owner/skin/sidebar
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • trunk/interface/owner/skin/sidebar/edit/index.php

    r5285 r5625  
    44/// See the GNU General Public License for more details. (/doc/LICENSE, /doc/COPYRIGHT) 
    55 
    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;'; 
    118 
    129$IV = array( 
     
    3027$modulePos = $_REQUEST['modulePos']; 
    3128 
    32 if (($sidebarNumber < 0) || ($sidebarNumber >= $sidebarCount)) respond::ErrorPage(); 
    33 if (!isset($sidebarOrderData[$sidebarNumber]) || !isset($sidebarOrderData[$sidebarNumber][$modulePos])) respond::ErrorPage(); 
     29if (($sidebarNumber < 0) || ($sidebarNumber >= $sidebarCount)) respond::ErrorPage(null,null,null,$ajaxcall); 
     30if (!isset($sidebarOrderData[$sidebarNumber]) || !isset($sidebarOrderData[$sidebarNumber][$modulePos])) respond::ErrorPage(null,null,null,$ajaxcall); 
    3431 
    3532$pluginData = $sidebarOrderData[$sidebarNumber][$modulePos]; 
    36 if ($pluginData['type'] != 3) respond::ErrorPage(); 
     33if ($pluginData['type'] != 3) respond::ErrorPage(null,null,null,$ajaxcall); 
    3734 
    3835$plugin = $pluginData['id']['plugin']; 
     
    147144    require ROOT . '/lib/piece/owner/footer.php'; 
    148145} 
    149  
    150  
    151146?> 
  • trunk/interface/owner/skin/sidebar/initialize/index.php

    r5285 r5625  
    33/// All rights reserved. Licensed under the GPL. 
    44/// See the GNU General Public License for more details. (/doc/LICENSE, /doc/COPYRIGHT) 
     5 
     6$ajaxcall = isset($_REQUEST['ajaxcall']) ? true : false; 
     7 
    58require ROOT . '/lib/includeForBlogOwner.php'; 
    69requireStrictRoute(); 
     
    1215setting::removeBlogSettingGlobal('sidebarOrder'); 
    1316Skin::purgeCache(); 
    14 header('Location: '. $blogURL . '/owner/skin/sidebar' . $_REQUEST['viewMode']); 
     17if($ajaxcall == false) header('Location: '. $blogURL . '/owner/skin/sidebar' . $_REQUEST['viewMode']); 
     18else respond::ResultPage(0); 
    1519?> 
  • trunk/interface/owner/skin/sidebar/order/index.php

    r5285 r5625  
    33/// All rights reserved. Licensed under the GPL. 
    44/// See the GNU General Public License for more details. (/doc/LICENSE, /doc/COPYRIGHT) 
     5 
     6$ajaxcall = isset($_REQUEST['ajaxcall']) ? true : false; 
     7 
    58$IV = array( 
    69    'REQUEST' => array( 
  • trunk/interface/owner/skin/sidebar/register/index.php

    r5285 r5625  
    33/// All rights reserved. Licensed under the GPL. 
    44/// See the GNU General Public License for more details. (/doc/LICENSE, /doc/COPYRIGHT) 
     5 
     6$ajaxcall = isset($_REQUEST['ajaxcall']) ? true : false; 
    57 
    68$IV = array( 
     
    3537if ($_REQUEST['viewMode'] != '') $_REQUEST['viewMode'] = '?' . $_REQUEST['viewMode']; 
    3638 
    37 if ($_SERVER['REQUEST_METHOD'] != 'POST') 
    38     header('Location: '. $blogURL . '/owner/skin/sidebar' . $_REQUEST['viewMode']); 
     39if($ajaxcall == false) { 
     40    if ($_SERVER['REQUEST_METHOD'] != 'POST') 
     41        header('Location: '. $blogURL . '/owner/skin/sidebar' . $_REQUEST['viewMode']); 
     42} else { 
     43    respond::ResultPage(0); 
     44} 
    3945?> 
  • trunk/interface/owner/skin/sidebar/setPlugin/index.php

    r5624 r5625  
    33/// All rights reserved. Licensed under the GPL. 
    44/// 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; 
    97 
    108$IV = array(