public function __construct($argv, $argc) { cmd::init(); if ($argc < 2) { $this->usage(); } switch ($argv[1]) { case 'proxy': $this->proceed_proxy($argv, $argc); break; case 'restart': echo "please wait while CADBiS restarting...\r\n"; cadbis::restart(); break; case 'start': echo "please wait while CADBiS starting...\r\n"; cadbis::start(); break; case 'stop': echo "please wait while CADBiS stopping...\r\n"; cadbis::stop(); break; case 'open': echo "Warning! Now Internet is open for whole LAN! ...\r\n"; cadbis::open(); break; case 'close': cadbis::close(); break; case 'status': cadbis::status(); break; default: $this->usage(); } }