-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcli.php
More file actions
85 lines (72 loc) · 2.46 KB
/
cli.php
File metadata and controls
85 lines (72 loc) · 2.46 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?php
/**
* Author : Zainul Muhaimin
* Name : Facebook Post Tools
* Version : 1.0
* Update : 05 May 2020
*
* Copyright (C) 2020 Zainul Muhaimin
* MIT Liencesed
* http://opensource.org/licenses/MIT
*
* (C) Zainul Muhaimin https://github.com/znmn
*/
foreach (glob(__DIR__."/classes/*.php") as $filename){
require_once $filename;
}
echo " ~ Facebook Post Tools ~ \n";
echo "============================== \n";
echo "[I] Change Privacy/Delete Post Features \n";
echo "[0] DISABLE : Disable This Feature \n";
echo "[1] EVERYONE : PUBLIC \n";
echo "[2] FRIENDS_OF_FRIENDS : Friends of Friends \n";
echo "[3] ALL_FRIENDS : Friends \n";
echo "[4] SELF : Only Me \n";
echo "[5] DELETE : Delete Post \n";
echo "============================== \n";
do{
$choose = getInput("[?] Choose Mode (0-5) : ");
}while(!is_numeric($choose) || $choose < 0 || $choose > 5);
switch ($choose) {
case 1:
$mode = 'EVERYONE';
break;
case 2:
$mode = 'FRIENDS_OF_FRIENDS';
break;
case 3:
$mode = 'ALL_FRIENDS';
break;
case 4:
$mode = 'SELF';
break;
case 5:
$mode = 'DELETE';
break;
default:
$mode = 'DISABLE';
break;
}
echo "============================== \n";
echo "[I] Hide Other Post Feature \n";
echo "[0] Disable This Feature \n";
echo "[1] Enable This Feature \n";
echo "============================== \n";
do{
$choose = getInput("[?] Choose Mode (0-1) : ");
}while(!is_numeric($choose) || $choose < 0 || $choose > 1);
if ($choose == 1)
$hide_others = true;
else
$hide_others = false;
$sleep = getInput("[?] Sleep (In Seconds) : "); // Sleep In Seconds, Set 0 to disable
$year = getInput("[?] How Many Years Before : "); // How Many Years Before; Default : 0
$month = getInput("[?] How Many Months Before : "); // How Many Months Before; Default : 0
$day = getInput("[?] How Many Days Before : "); // How Many Days Before; Default : 0
$hour = getInput("[?] How Many Hours Before : "); // How Many Hours Before; Default : 0
$minute = getInput("[?] How Many Minutes Before : "); // How Many Minutes Before; Default : 0
$second = getInput("[?] How Many Seconds Before : "); // How Many Seconds Before; Default : 0
$token = getInput("[?] Access Token : \n~>"); // ACCESS TOKEN : EAAA...
echo "[I] Running Program... \n";
postTool($token, $mode, $hide_others, $year, $month, $day, $hour, $minute, $second, $sleep, $failed_file);
?>