Changeset 15822 for branches/feature-templates/html
- Timestamp:
- 2007/09/21 10:36:47 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-templates/html/admin/design/up_down.php
r15809 r15822 10 10 11 11 // ¥í¥°¥¤¥ó¥Á¥§¥Ã¥¯ 12 sfIsSuccess(new SC_Session()); 12 $objSession = new SC_Session(); 13 sfIsSuccess($objSession); 13 14 14 15 class LC_Page { … … 26 27 $objPage->now_template = lfGetNowTemplate(); 27 28 29 // uniqid¤ò¥Æ¥ó¥×¥ì¡¼¥È¤ØËä¤á¹þ¤ß 30 $objPage->uniqid = $objSession->getUniqId(); 31 28 32 switch(lfGetMode()) { 29 33 30 34 // ¥À¥¦¥ó¥í¡¼¥É¥Ü¥¿¥ó²¡²¼»þ¤Î½èÍý 31 35 case 'download': 36 // ²èÌÌÁ«°Ü¤ÎÀµÅöÀ¥Á¥§¥Ã¥¯ 37 if (!sfIsValidTransition($objSession)) { 38 sfDispError(''); 39 } 32 40 lfDownloadCreatedFiles(); 33 41 exit; … … 36 44 // ¥¢¥Ã¥×¥í¡¼¥É¥Ü¥¿¥ó²¡²¼»þ¤Î½èÍý 37 45 case 'upload': 46 // ²èÌÌÁ«°Ü¤ÎÀµÅöÀ¥Á¥§¥Ã¥¯ 47 if (!sfIsValidTransition($objSession)) { 48 sfDispError(''); 49 } 38 50 // ¥Õ¥©¡¼¥à¥Ñ¥é¥á¡¼¥¿½é´ü²½ 39 51 $objForm = lfInitUpload(); … … 222 234 /** 223 235 * ¥æ¡¼¥¶¤¬ºîÀ®¤·¤¿¥Õ¥¡¥¤¥ë¤ò¥¢¡¼¥«¥¤¥Ö¤·¥À¥¦¥ó¥í¡¼¥É¤µ¤»¤ë 224 * 236 * TODO Í×¥ê¥Õ¥¡¥¯¥¿¥ê¥ó¥° 225 237 * @param void 226 238 * @return void … … 232 244 233 245 if (!mkdir($tmpDir)) return ; 246 if (!mkdir($tmpDir . 'templates')) return ; 234 247 if (!mkdir($tmpUserEditDir)) return ; 235 248 … … 286 299 function lfCopyTplPackage($to) { 287 300 $nowTpl = lfGetNowTemplate(); 301 if (!$nowTpl) return; 302 288 303 $from = TPL_PKG_PATH . $nowTpl . '/'; 289 290 304 sfCopyDir($from, $to, ''); 291 305 }
Note: See TracChangeset
for help on using the changeset viewer.