forked from juzeon/fast-mail-bomber
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
30 lines (30 loc) · 799 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
require_once (__DIR__.'/config.php');
require_once (__DIR__.'/init.php');
if($argc==1){
println(HELP_TEXT);
exit;
}
if(!file_exists(__DIR__.'/data')){
mkdir(__DIR__.'/data');
}
switch ($argv[1]){
case 'update-providers':
require_once (__DIR__ . '/actions/update-providers.php');
break;
case 'update-nodes':
require_once (__DIR__ . '/actions/update-nodes.php');
break;
case 'refine-nodes':
require_once (__DIR__ . '/actions/refine-nodes.php');
break;
case 'start-bombing':
require_once (__DIR__ . '/actions/start-bombing.php');
break;
case 'import-providers':
require_once (__DIR__ . '/actions/import-providers.php');
break;
default:
println(HELP_TEXT);
break;
}