|
2 | 2 | <?php
|
3 | 3 | /*
|
4 | 4 | * Created by @Voldemort1912
|
5 |
| -* Last Update: 14/03/2019 |
6 |
| -* Time: 1800 |
| 5 | +* Last Update: 28/03/2019 |
| 6 | +* Time: 1330 |
7 | 7 | * Telegram @hewhomustnotbenamed
|
8 | 8 | */
|
9 | 9 |
|
|
33 | 33 | sleep(3);
|
34 | 34 | echo "\n[i] The Dependencies Have Been Installed Successfully!!";
|
35 | 35 | echo "\n[i] The Program has Been Installed Successfully!";
|
| 36 | + echo "\n[i] Initiating Setup!!"; |
| 37 | + sleep(3); |
| 38 | + |
| 39 | + echo "\n\033[51;33;1m[i] Show Only Hits ?? Type \033[01;32;1m'yes'\033[51;33;1m/\033[01;31m'no'\033[51;33;1m : \033[0m "; |
| 40 | + $conhan = fgets(fopen("php://stdin", "rb")); |
| 41 | + |
| 42 | + if (trim($conhan) == 'yes'){ |
| 43 | + file_put_contents('.pref', '1'); //Hitsonly |
| 44 | + } else { |
| 45 | + file_put_contents('.pref', '0'); //all |
| 46 | + } |
| 47 | + |
36 | 48 | echo "\n[i] Please Restart the Program to See the Changes";
|
37 | 49 | echo "\n[i] Press Enter to Exit...";
|
38 | 50 | fgetc(STDIN);
|
|
58 | 70 | sleep(2);
|
59 | 71 | include ('class.spotify.php');
|
60 | 72 |
|
| 73 | + if(is_file('.pref')){ |
| 74 | + $hitpref = trim(file_get_contents('.pref')); |
| 75 | + } else { |
| 76 | + $hitpref = '0'; |
| 77 | + } |
| 78 | + |
| 79 | + |
61 | 80 | //Check Updates
|
62 | 81 | $glo_ver = trim(file_get_contents('https://raw.githubusercontent.com/VoldemortCommunity/SpotifyChecker/master/.version'));
|
63 | 82 | $loc_ver = trim(file_get_contents('.version'));
|
|
72 | 91 | if (trim($ln) == 'yes'){
|
73 | 92 | echo "\033[05;32;1m[i] Updating Now...\n[i] Press Enter to Start...\033[0m";
|
74 | 93 | fgetc(STDIN);
|
75 |
| - system('rm -rf .first'); |
76 | 94 | system('git reset --hard');
|
77 | 95 | system('git pull origin master');
|
78 | 96 | echo "\033[01;32;1m[i] Update Complete!! Please Restart to see Changes!!";
|
|
108 | 126 | }
|
109 | 127 | $lines = file(trim($inpnam));
|
110 | 128 |
|
111 |
| -//get ComboList Type |
| 129 | +/*//get ComboList Type |
112 | 130 | echo "\n \n\033[01;32;1m[i]Enter Combo List Type:\n \n[1] Email:Password\n \n[2] Username:Password\n \nResponse[1/2]:\033[0m ";
|
113 | 131 | $comtype = fgets(fopen("php://stdin", "r"));
|
114 | 132 | if (trim($comtype) == '2'){
|
115 | 133 | echo "\n\033[05;31m[i]ABORT.\n[i]This Feature Has Been Discontinued.\n[i]Contact \033[01;32;1m@hewhomustn0tbenamed\033[01;31m (Telegram) for Details.\n[i]The Program will Now Exit!!\n[i]Press Enter to Continue...\033[0m";
|
116 | 134 | fgetc(STDIN);
|
117 | 135 | exit;
|
118 |
| -} |
| 136 | +}*/ |
119 | 137 |
|
120 | 138 | //Saving Hits
|
121 | 139 | echo "\n\033[51;33;1m[i] Enter File Name to Save Hits : \033[0m";
|
|
146 | 164 | if($dec["status"]==true){
|
147 | 165 | $count++;
|
148 | 166 | echo "\033[01;32;1m";
|
149 |
| - file_put_contents($file, "[!]Email ID : ".$usernn."\n[!]Password : ".$inppass."\n[i]SpotifyChecker by @hewhomustn0tbenamed (Telegram)!!\n[!]".$res."\n\n", FILE_APPEND); |
150 | 167 | } else {
|
151 | 168 | echo "\033[01;31m";
|
152 | 169 | }
|
153 |
| - echo "[!]Username : " . $usernn . "\n"; |
154 |
| - echo "[!]Password : " . $inppass . "\n"; |
155 |
| - echo "[!]" . $res . "\n\n\033[0m"; |
| 170 | + |
| 171 | + if ($dec['status'] == true){ |
| 172 | + echo "[!] Email ID : " . $usernn . "\n"; |
| 173 | + echo "[!] Password : " . $inppass . "\n"; |
| 174 | + echo "[!] Subscription : " . $dec['subscription'] . "\n"; |
| 175 | + echo "[!] Validity : " . $dec['expdate'] . "\n"; |
| 176 | + echo "[!] Country : " . $dec['ip'] . "\n\n\n\033[0m"; |
| 177 | + file_put_contents($file, "[!] Email ID : ".$usernn."\n[!] Password : ".$inppass."\n[!] Subscription : " . $dec['subscription'] . "\n[!] Validity : " . $dec['expdate'] . "\n[!] Country : " . $dec['ip'] . "\n[i] SpotifyChecker by @hewhomustn0tbenamed (Telegram)!!\n\n", FILE_APPEND); |
| 178 | + } else if($hitpref == '0'){ |
| 179 | + echo "[!] Email ID : " . $usernn . "\n"; |
| 180 | + echo "[!] Password : " . $inppass . "\n"; |
| 181 | + echo "[!] Invalid Account! \n"; |
| 182 | + echo "[!] " . $dec['error'] . "\n\n\n\033[0m"; |
| 183 | + } |
156 | 184 | $combocount++;
|
157 | 185 | }
|
158 | 186 |
|
|
0 commit comments