Changeset 60 for branches/testa-single-bookmark
- Timestamp:
- Aug 31, 2019 7:01:06 PM (6 years ago)
- File:
-
- 1 edited
-
branches/testa-single-bookmark/php/content3.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/testa-single-bookmark/php/content3.php
r44 r60 47 47 $ret = get_url_data( $num )['path']; 48 48 break; 49 case ' setting':50 $ret = get_url_data( $num )[' setting_path'];49 case 'conf': 50 $ret = get_url_data( $num )['conf_path']; 51 51 break; 52 52 case 'output': … … 72 72 $cmd_line_items = array("find" , $top_path , "-regex", $regexp); 73 73 break; 74 case ' setting':74 case 'conf': 75 75 $regexp = '".*[^~]"'; 76 76 $cmd_line_items = array("find" , $top_path , "-type", "f", "-regex" , $regexp); … … 102 102 103 103 function restrict_filelist( $num, $path_info , $part ) { 104 if( $part === " setting" ){104 if( $part === "conf" ){ 105 105 $pathinfox = new ns\PathInfo($part, $path_info["top_path"]); 106 106 } … … 200 200 global $exec_path; 201 201 202 $filelist_filename = array("data"=> "filelist.json", " setting"=> "setting-filelist.json", "output" => "output-filelist.json");202 $filelist_filename = array("data"=> "filelist.json", "conf"=> "conf-filelist.json", "output" => "output-filelist.json"); 203 203 # $storage_dir = dirname(__FILE__) . '/../storage'; 204 204 $storage_dir = dirname(__FILE__) . '/../storage-devconf'; … … 382 382 $list = array(); 383 383 384 $fname = get_full_path( $num, ' setting_path' , 'site.tsv');384 $fname = get_full_path( $num, 'conf_path' , 'site.tsv'); 385 385 if (($f = fopen( $fname , "r" )) !== FALSE) { 386 386 while (($data = fgetcsv($f, 1000, "\t")) !== FALSE) { … … 422 422 423 423 function get_settings_file( $name ){ 424 $dir = get_item( 0 , " setting_path" );424 $dir = get_item( 0 , "conf_path" ); 425 425 $path = implode( "/" , [$dir, $name] ); 426 426
Note: See TracChangeset
for help on using the changeset viewer.
![(trac.ini の [header_logo] セクションを設定してください)](/python/trac/Flist/chrome/common/trac_logo_mini.png)