if($argv[1]=="--client-start"){StartOPenVPNCLients();die();} if($argv[1]=="--client-stop"){StopOpenVPNCLients();die();} if($argv[1]=="--client-configure"){BuildOpenVpnSingleClient($argv[2]);die();} if($argv[1]=="--client-configure-start"){BuildOpenVpnSingleClient($argv[2]);OpenVPNCLientStart($argv[2]);die();} if($argv[1]=="--server-stop"){StopServer();die();} if($argv[1]=="--default-eth"){OpenVpnClientGetDefaultethLink();die();} if($argv[1]=="--ipof"){echo GetIpaddrOf($argv[2])."\n";die();} if($argv[1]=="--bridges"){print_r(GetBridgeExists($argv[2]))."\n";die();} if($argv[1]=="--fix-routes"){BuildClientRoute($argv[2])."\n";die();} if($argv[1]=="--schedule"){ServerScheduledTTL()."\n";die();} if($argv[1]=="--windows-client"){windows_client($argv[2])."\n";die();} if($argv[1]=="--argvs"){LoadArgvs()."\n";die();} if($argv[1]=="--wakeup-server"){wakeup_server_mode()."\n";die();} if($argv[1]=="--wakeup-clients"){wakeup_client_mode()."\n";die();} if($argv[1]=="--remove-clients"){remove_client($argv[2])."\n";die();} if($argv[1]=="--client-connect"){client_connect($argv)."\n";die(0);} if($argv[1]=="--client-restart"){ StopOpenVPNCLients(); StartOPenVPNCLients(); die(); }
die; } if ($argv[1] == "--schedule") { ServerScheduledTTL() . "\n"; die; } if ($argv[1] == "--windows-client") { windows_client($argv[2]) . "\n"; die; } if ($argv[1] == "--argvs") { LoadArgvs() . "\n"; die; } if ($argv[1] == "--wakeup-server") { wakeup_server_mode() . "\n"; die; } if ($argv[1] == "--wakeup-clients") { wakeup_client_mode() . "\n"; die; } if ($argv[1] == "--remove-clients") { remove_client($argv[2]) . "\n"; die; } if ($argv[1] == "--client-connect") { client_connect($argv) . "\n"; die(0); } if ($argv[1] == "--client-restart") {