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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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} 
Note: See TracChangeset for help on using the changeset viewer.