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