Ignore:
Timestamp:
Jan 8, 2016, 11:00:11 PM (9 years ago)
Author:
chronos
Message:
  • Modified: Network configure actions now can be executed through cmd.php interface using "php cmd.php config <action>".
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Application/System.php

    r779 r781  
    200200      {
    201201        $Command = $this->CommandLine[$argv[1]];
    202         if(is_string($Command['Callback'][0]))
    203         {
    204           $Class = new $Command['Callback'][0]($this);
    205           $Output = $Class->$Command['Callback'][1]();
    206         } else $Output = call_user_func($Command['Callback']);
    207         echo($Output);
    208       } else echo('Command "'.$argv[1].'" not supported.'."\n");
    209     } else echo('No command was given as parameter'."\n");
     202        $Output = call_user_func($Command['Callback'], $argv);
     203      } else $Output = 'Command "'.$argv[1].'" not supported.'."\n";
     204    } else $Output = 'No command was given as parameter'."\n";
     205    echo($Output);
    210206  }
    211207
Note: See TracChangeset for help on using the changeset viewer.