Ignore:
Timestamp:
2006/08/30 22:26:34 (20 years ago)
Author:
kakinaka
Message:

blank

File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/html/admin/design/template.php

    r3326 r3327  
    272272        copy($taget_tpl_path . "/detail.tpl", $save_tpl_path . "detail.tpl"); 
    273273         
    274         // MYPAGE¤Î¥Õ¥¡¥¤¥ë¤ò¼èÆÀ¤¹¤ë 
    275         $arrMypage=glob($taget_tpl_path."mypage/" . "*" ); 
    276          
    277         // ¥Õ¥©¥ë¥À¤¬¤Ê¤±¤ì¤ÐºîÀ®¤¹¤ë 
    278         if(!is_dir($save_tpl_path."mypage")){ 
    279             mkdir($save_tpl_path."mypage"); 
    280         } 
    281          
    282         foreach($arrMypage as $key => $val){ 
    283             $matches = array(); 
    284             mb_ereg("^(.*[\/])(.*)",$val, $matches); 
    285             $data=$matches[2]; 
    286              
    287             copy($val, $save_tpl_path . "mypage/" . $data); 
    288         } 
     274        lfFolderCopy($taget_tpl_path."mypage/", $save_tpl_path."mypage/"); 
    289275 
    290276        // ¥Ö¥í¥Ã¥¯¥Ç¡¼¥¿¤Î¥³¥Ô¡¼ 
     
    294280    } 
    295281} 
     282 
     283// ¥Õ¥©¥ë¥À¤ò¥³¥Ô¡¼¤¹¤ë 
     284function lfFolderCopy($taget_path, $save_path){ 
     285 
     286    // ¥Õ¥©¥ë¥ÀÆâ¤Î¥Õ¥¡¥¤¥ë¤ò¼èÆÀ¤¹¤ë 
     287    $arrMypage=glob($taget_path . "*" ); 
     288     
     289    // ¥Õ¥©¥ë¥À¤¬¤Ê¤±¤ì¤ÐºîÀ®¤¹¤ë 
     290    if(!is_dir($save_path)){ 
     291        mkdir($save_path); 
     292    } 
     293 
     294    // ¥Õ¥©¥ë¥ÀÆâ¤òÁ´¤Æ¥³¥Ô¡¼ 
     295    foreach($arrMypage as $key => $val){ 
     296        $matches = array(); 
     297        mb_ereg("^(.*[\/])(.*)",$val, $matches); 
     298        $data=$matches[2]; 
     299        copy($val, $save_path . $data); 
     300    } 
     301} 
Note: See TracChangeset for help on using the changeset viewer.