Changeset 62 for branches


Ignore:
Timestamp:
Aug 31, 2019 7:02:48 PM (6 years ago)
Author:
anonymous
Message:

rename setting to conf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/testa-single-bookmark/php/x.php

    r45 r62  
    4646        $ret = get_url_data( $num )['path'];
    4747        break;
    48     case 'setting':
    49         $ret = get_url_data( $num )['setting_path'];
     48    case 'conf':
     49        $ret = get_url_data( $num )['conf_path'];
    5050        break;
    5151    case 'output':
     
    7171        $cmd_line_items = array("find" , $top_path , "-regex", $regexp);
    7272        break;
    73     case 'setting':
     73    case 'conf':
    7474        $regexp = '".*[^~]"';
    7575        $cmd_line_items = array("find" , $top_path , "-type", "f", "-regex" , $regexp);
     
    101101
    102102function restrict_filelist( $num, $path_info , $part ) {
    103     if( $part === "setting" ){
     103    if( $part === "conf" ){
    104104        $pathinfox = new ns\PathInfo($part, $path_info["top_path"]);
    105105    }
     
    199199    global $exec_path;
    200200
    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");
    202202    #    $storage_dir = dirname(__FILE__) . '/../storage';
    203203    $storage_dir = dirname(__FILE__) . '/../storage-devconf';
     
    381381    $list = array();
    382382
    383     $fname = get_full_path( $num, 'setting_path' , 'site.tsv');
     383    $fname = get_full_path( $num, 'conf_path' , 'site.tsv');
    384384    if (($f = fopen( $fname , "r" )) !== FALSE) {
    385385        while (($data = fgetcsv($f, 1000, "\t")) !== FALSE) {
     
    421421
    422422function get_settings_file( $name ){
    423     $dir = get_item( 0 , "setting_path" );
     423    $dir = get_item( 0 , "conf_path" );
    424424    $path = implode( "/" , [$dir, $name] );
    425425
Note: See TracChangeset for help on using the changeset viewer.