Ignore:
Timestamp:
2007/03/31 21:59:45 (20 years ago)
Author:
nanasess
Message:

header("Location: 〜") で相対パスが使用されていたのを絶対パスに変更.
data/lib/slib.php に sfGetCurrentUri(boolean) と sfGetCurrentSchema() を追加

Location:
branches/comu/html/admin/design
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/comu/html/admin/design/bloc.php

    r11730 r12039  
    102102             
    103103        $bloc_id = $arrBlocData[0]['bloc_id'];   
    104         header("location: ./bloc.php?bloc_id=$bloc_id&msg=on"); 
     104        header("location: " . sfGetCurrentUri() . "/bloc.php?bloc_id=$bloc_id&msg=on"); 
    105105    }else{ 
    106106        // ¥¨¥é¡¼¤¬¤¢¤ì¤ÐÆþÎÏ»þ¤Î¥Ç¡¼¥¿¤òɽ¼¨¤¹¤ë 
    … …  
    140140    } 
    141141 
    142     header("location: ./bloc.php"); 
     142    header("location: " . sfGetCurrentUri() . "/bloc.php"); 
    143143} 
    144144 
  • branches/comu/html/admin/design/index.php

    r11730 r12039  
    6565// ¿·µ¬¥Ö¥í¥Ã¥¯ºîÀ® 
    6666if ($_POST['mode'] == 'new_bloc') { 
    67     header("location: ./bloc.php"); 
     67    header("location: " . sfGetCurrentUri() . "/bloc.php"); 
    6868} 
    6969 
    7070// ¿·µ¬¥Ú¡¼¥¸ºîÀ® 
    7171if ($_POST['mode'] == 'new_page') { 
    72     header("location: ./main_edit.php"); 
     72    header("location: " . sfGetCurrentUri() . "/main_edit.php"); 
    7373} 
    7474 
    … …  
    154154        header("Location: ". URL_DIR . "preview/index.php"); 
    155155    }else{ 
    156         header("Location: ./index.php?page_id=$page_id&msg=on"); 
     156        header("Location: " . sfGetCurrentUri() . "/index.php?page_id=$page_id&msg=on"); 
    157157    } 
    158158} 
  • branches/comu/html/admin/design/main_edit.php

    r11730 r12039  
    168168        } 
    169169 
    170         header("location: ./main_edit.php?page_id=$page_id&msg=on"); 
     170        header("location: " . sfGetCurrentUri() . "/main_edit.php?page_id=$page_id&msg=on"); 
    171171    }else{ 
    172172        // ¥¨¥é¡¼¤¬¤¢¤ì¤ÐÆþÎÏ»þ¤Î¥Ç¡¼¥¿¤òɽ¼¨¤¹¤ë 
Note: See TracChangeset for help on using the changeset viewer.