Changeset 5506 for temp/trunk/html


Ignore:
Timestamp:
2006/09/23 18:07:59 (20 years ago)
Author:
kakinaka
Message:

blank

File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/html/admin/system/bkup.php

    r5505 r5506  
    1212        $this->tpl_subno = 'bkup'; 
    1313        $this->tpl_subtitle = '¥Ð¥Ã¥¯¥¢¥Ã¥×´ÉÍý'; 
     14         
     15        $this->bkup_dir = ROOT_DIR . USER_DIR . "bkup/"; 
    1416    } 
    1517} 
     
    7981// ¥Ð¥Ã¥¯¥¢¥Ã¥×¥Õ¥¡¥¤¥ëºîÀ® 
    8082function lfCreateBkupData(){ 
     83    global $objPage; 
    8184    $objQuery = new SC_Query(); 
    8285    $csv_data = ""; 
     86    $bkup_dir = $objPage->bkup_dir; 
    8387     
    8488    // Á´¥Æ¡¼¥Ö¥ë¼èÆÀ 
     
    109113            } 
    110114             
    111              
     115            // CSV½ÐÎϥǡ¼¥¿À¸À® 
    112116            $csv_data .= $val . "\n"; 
    113117            $csv_data .= $arrKyes . "\n"; 
     
    115119            $csv_data .= "\n"; 
    116120        }    
    117          
    118         //sfprintr(array_keys($arrData[0])); 
    119         //sfprintr(sfGetCSVList($arrData)); 
    120          
    121     } 
    122      
    123     sfprintr($csv_data); 
     121    } 
     122     
     123    // CSV½ÐÎÏ 
     124    $fp = fopen(ROOT_DIR . BLOC_DIR . $_POST['filename'] . '.tpl',"w"); 
     125    fwrite($fp, $_POST['bloc_html']); 
     126    fclose($fp); 
     127     
     128        sfprintr($csv_data); 
     129     
    124130     
    125131     
Note: See TracChangeset for help on using the changeset viewer.