Initial commit
This commit is contained in:
parent
cb24cc9b9b
commit
2500470a1a
32 changed files with 2660 additions and 0 deletions
30
enableSite.php
Normal file
30
enableSite.php
Normal file
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
|
||||
/* Init Classes */
|
||||
|
||||
class GetOpts
|
||||
{
|
||||
private $longOpts = [];
|
||||
|
||||
function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function setLongOpt(string $opt, array $callback)
|
||||
{
|
||||
$this->longOpts[$opt] = $callback;
|
||||
}
|
||||
}
|
||||
|
||||
class CheckDomain
|
||||
{
|
||||
public function host(string $domain)
|
||||
{
|
||||
echo $domain;
|
||||
}
|
||||
}
|
||||
|
||||
CheckDomain::host('lhprojects.net');
|
||||
/* Get command line options */
|
||||
$args = new GetOpts;
|
Loading…
Add table
Add a link
Reference in a new issue