Changeset 5623
- Timestamp:
- 03/24/08 12:33:40 (10 months ago)
- Location:
- trunk
- Files:
-
- 3 modified
-
components/Textcube.Function.Respond.php (modified) (2 diffs)
-
interface/owner/center/about/index.php (modified) (2 diffs)
-
interface/owner/skin/sidebar/setPlugin/index.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/components/Textcube.Function.Respond.php
r5593 r5623 33 33 } 34 34 35 function NotFoundPage() { 35 function NotFoundPage($isAjaxCall = false) { 36 if($isAjaxCall) return respond::ResultPage(-1); 36 37 header('HTTP/1.1 404 Not Found'); 37 38 header("Connection: close"); … … 88 89 } 89 90 90 function ErrorPage($message=NULL, $buttonValue=NULL, $buttonLink=NULL ) {91 function ErrorPage($message=NULL, $buttonValue=NULL, $buttonLink=NULL, $isAjaxCall = false) { 91 92 global $service; 93 if($isAjaxCall) return respond::ResultPage(-1); 92 94 ?> 93 95 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> -
trunk/interface/owner/center/about/index.php
r5592 r5623 69 69 <tr> 70 70 <td class="name vcard"><a class="fn url" href="http://daybreaker.info">Kim Joongi</a></td> 71 <td class="role"><?php echo _t('XHTML specification / Textcube main page/ Quality Assurance');?></td>71 <td class="role"><?php echo _t('XHTML / Textcube server / Quality Assurance');?></td> 72 72 </tr> 73 73 <tr> 74 74 <td class="name vcard"><a class="fn url" href="http://www.graphittie.org/blog">graphittie™</a></td> 75 <td class="role"><?php echo _t('UI / Sidebar / XHTML specification/ Bug tracking');?></td>75 <td class="role"><?php echo _t('UI / Sidebar / XHTML / Bug tracking');?></td> 76 76 </tr> 77 77 <tr> … … 81 81 <tr> 82 82 <td class="name vcard"><a class="fn url" href="http://www.create74.com">Yong-ju, Park</a></td> 83 <td class="role"><?php echo _t(' Teamblog / Coverpage / Plugin');?></td>83 <td class="role"><?php echo _t('Mobile / Teamblog / Coverpage / Plugin');?></td> 84 84 </tr> 85 85 <tr> -
trunk/interface/owner/skin/sidebar/setPlugin/index.php
r5285 r5623 8 8 } 9 9 10 11 /*$IV = array( 10 $IV = array( 12 11 'REQUEST' => array( 13 12 'sidebarNumber' => array('int'), 14 13 'modulePos' => array('int'), 15 ) 16 );*/ 14 'viewMode' => array('int','mandatory'=>false) 15 ) 16 ); 17 17 18 18 if (!array_key_exists('viewMode', $_REQUEST)) $_REQUEST['viewMode'] = ''; … … 21 21 requireLibrary('blog.skin'); 22 22 requireModel("blog.sidebar"); 23 requireComponent("Textcube.Function.Respond"); 23 24 requireStrictRoute(); 24 25 … … 27 28 $sidebarOrderData = getSidebarModuleOrderData($sidebarCount); 28 29 29 if (!isset($_REQUEST['sidebarNumber']) || !is_numeric($_REQUEST['sidebarNumber'])) respond::NotFoundPage( );30 if (!isset($_REQUEST['modulePos']) || !is_numeric($_REQUEST['modulePos'])) respond::NotFoundPage( );30 if (!isset($_REQUEST['sidebarNumber']) || !is_numeric($_REQUEST['sidebarNumber'])) respond::NotFoundPage($ajaxcall); 31 if (!isset($_REQUEST['modulePos']) || !is_numeric($_REQUEST['modulePos'])) respond::NotFoundPage($ajaxcall); 31 32 32 33 $sidebarNumber = $_REQUEST['sidebarNumber']; 33 34 $modulePos = $_REQUEST['modulePos']; 34 35 35 if (($sidebarNumber < 0) || ($sidebarNumber >= $sidebarCount)) respond::ErrorPage( );36 if (!isset($sidebarOrderData[$sidebarNumber]) || !isset($sidebarOrderData[$sidebarNumber][$modulePos])) respond::ErrorPage( );36 if (($sidebarNumber < 0) || ($sidebarNumber >= $sidebarCount)) respond::ErrorPage(null,null,null,$ajaxcall); 37 if (!isset($sidebarOrderData[$sidebarNumber]) || !isset($sidebarOrderData[$sidebarNumber][$modulePos])) respond::ErrorPage(null,null,null,$ajaxcall); 37 38 38 39 $pluginData = $sidebarOrderData[$sidebarNumber][$modulePos]; 39 if ($pluginData['type'] != 3) respond::ErrorPage( );40 if ($pluginData['type'] != 3) respond::ErrorPage(null,null,null,$ajaxcall); 40 41 41 42 $plugin = $pluginData['id']['plugin']; … … 75 76 76 77 $sidebarOrderData[$sidebarNumber][$modulePos]['parameters'] = $newParameter; 77 set BlogSetting("sidebarOrder", serialize($sidebarOrderData));78 setting::setBlogSettingGlobal("sidebarOrder", serialize($sidebarOrderData)); 78 79 Skin::purgeCache(); 79 80 if ($ajaxcall == false) { 80 81 if ($_REQUEST['viewMode'] != '') $_REQUEST['viewMode'] = '?' . $_REQUEST['viewMode']; 81 82 header('Location: '. $blogURL . '/owner/skin/sidebar' . $_REQUEST['viewMode']); 83 } else { 84 respond::ResultPage(0); 82 85 } 83 86 ?>
