Changeset 60


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

rename setting to conf

File:
1 edited

Legend:

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

    r44 r60  
    4747        $ret = get_url_data( $num )['path'];
    4848        break;
    49     case 'setting':
    50         $ret = get_url_data( $num )['setting_path'];
     49    case 'conf':
     50        $ret = get_url_data( $num )['conf_path'];
    5151        break;
    5252    case 'output':
     
    7272        $cmd_line_items = array("find" , $top_path , "-regex", $regexp);
    7373        break;
    74     case 'setting':
     74    case 'conf':
    7575        $regexp = '".*[^~]"';
    7676        $cmd_line_items = array("find" , $top_path , "-type", "f", "-regex" , $regexp);
     
    102102
    103103function restrict_filelist( $num, $path_info , $part ) {
    104     if( $part === "setting" ){
     104    if( $part === "conf" ){
    105105        $pathinfox = new ns\PathInfo($part, $path_info["top_path"]);
    106106    }
     
    200200    global $exec_path;
    201201
    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");
    203203    #    $storage_dir = dirname(__FILE__) . '/../storage';
    204204    $storage_dir = dirname(__FILE__) . '/../storage-devconf';
     
    382382    $list = array();
    383383
    384     $fname = get_full_path( $num, 'setting_path' , 'site.tsv');
     384    $fname = get_full_path( $num, 'conf_path' , 'site.tsv');
    385385    if (($f = fopen( $fname , "r" )) !== FALSE) {
    386386        while (($data = fgetcsv($f, 1000, "\t")) !== FALSE) {
     
    422422
    423423function get_settings_file( $name ){
    424     $dir = get_item( 0 , "setting_path" );
     424    $dir = get_item( 0 , "conf_path" );
    425425    $path = implode( "/" , [$dir, $name] );
    426426
Note: See TracChangeset for help on using the changeset viewer.