Changeset 6085 for temp/trunk/html/admin/design/header.php
- Timestamp:
- 2006/10/12 13:34:31 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/html/admin/design/header.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/html/admin/design/header.php
r5934 r6085 31 31 32 32 $division = $_POST['division']; 33 $tpl_DIR = ROOT_DIR . INCLUDE_DIR; 34 $pre_DIR = ROOT_DIR . INCLUDE_DIR. 'preview/'; 33 $pre_DIR = USER_INC_PATH . 'preview/'; 35 34 36 35 // ¥Ç¡¼¥¿¹¹¿·½èÍý … … 43 42 // ÅÐÏ¿»þ¤Ï¥×¥ì¥Ó¥å¡¼Íѥƥó¥×¥ì¡¼¥È¤ò¥³¥Ô¡¼¤¹¤ë 44 43 if ($_POST['mode'] == 'confirm'){ 45 copy($pre_DIR.$division.".tpl", $tpl_DIR.$division.".tpl");44 copy($pre_DIR.$division.".tpl", USER_INC_PATH . $division . ".tpl"); 46 45 // ´°Î»¥á¥Ã¥»¡¼¥¸¡Ê¥×¥ì¥Ó¥å¡¼»þ¤Ïɽ¼¨¤·¤Ê¤¤¡Ë 47 46 $objPage->tpl_onload="alert('ÅÐÏ¿¤¬´°Î»¤·¤Þ¤·¤¿¡£');"; … … 65 64 mkdir($pre_DIR); 66 65 } 67 copy( $tpl_DIR. "header.tpl", $pre_DIR . "header.tpl");68 copy( $tpl_DIR. "footer.tpl", $pre_DIR . "footer.tpl");66 copy(USER_INC_PATH . "header.tpl", $pre_DIR . "header.tpl"); 67 copy(USER_INC_PATH . "footer.tpl", $pre_DIR . "footer.tpl"); 69 68 70 69 // ¥Ø¥Ã¥À¡¼¥Õ¥¡¥¤¥ë¤ÎÆÉ¤ß¹þ¤ß 71 $header_data = file_get_contents( $tpl_DIR. "header.tpl");70 $header_data = file_get_contents(USER_INC_PATH . "header.tpl"); 72 71 // ¥Õ¥Ã¥¿¡¼¥Õ¥¡¥¤¥ë¤ÎÆÉ¤ß¹þ¤ß 73 $footer_data = file_get_contents( $tpl_DIR. "footer.tpl");72 $footer_data = file_get_contents(USER_INC_PATH . "footer.tpl"); 74 73 75 74 }
Note: See TracChangeset
for help on using the changeset viewer.
