Changeset 25 for branches/testa/php
- Timestamp:
- Aug 21, 2019 7:44:47 PM (6 years ago)
- File:
-
- 1 edited
-
branches/testa/php/content.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/testa/php/content.php
r23 r25 9 9 require_once( dirname(__FILE__) . '/NorthernCross/ns/PathInfo.php'); 10 10 require_once( dirname(__FILE__) . "/spyc-0.5/spyc.php"); // ★の部分にはspyc.phpを置いたパスを入れます 11 12 11 13 12 function get_url_data_array() … … 123 122 function cmdx(){ 124 123 $filelist_filename = "filelist.json"; 124 $setting_filelist_filename = "setting-filelist.json"; 125 125 $storage_dir = dirname(__FILE__) . '/../storage'; 126 126 … … 132 132 133 133 switch ($cmd) { 134 case 'get_setting_filelist': 135 $path = ensure_storage_dir( $storage_dir , $num, $setting_filelist_filename ); 136 if( file_exists($path) ){ 137 $content = input_file( $path ); 138 } 139 else { 140 $content = get_path_info( $num ); 141 output_file( $path , $content ); 142 } 143 break; 144 case 'build': 145 break; 134 146 case 'get_content': 135 147 if (isset($_GET['path'])) { … … 146 158 $path = ensure_storage_dir( $storage_dir , $num, $filelist_filename ); 147 159 if( file_exists($path) ){ 148 $content = input_file( $ filename);160 $content = input_file( $path ); 149 161 } 150 162 else {
Note: See TracChangeset
for help on using the changeset viewer.
![(trac.ini の [header_logo] セクションを設定してください)](/python/trac/Flist/chrome/common/trac_logo_mini.png)