18 lines
409 B
PHP
18 lines
409 B
PHP
<?php
|
|
|
|
include('leviathanutils/vendor/autoload.php');
|
|
|
|
//getopt(string $short_options, array $long_options = [], int &$rest_index = null)
|
|
|
|
$long_opts=['user:', 'home_user:'];
|
|
|
|
$arr_opts=getopt('', $long_opts);
|
|
|
|
if(!isset($long_opts['user']) || !isset($long_opts['home_user'])) {
|
|
|
|
echo "php delete_proxy.php --user=username --home_user=/path/to/app/home\n";
|
|
|
|
}
|
|
|
|
//Proxy only delete apache vhosts.
|
|
|