From 55122ba616230592616c693bd42c1ae27151d0b5 Mon Sep 17 00:00:00 2001 From: Wahyu Arif P Date: Sat, 2 Nov 2019 18:17:51 +0700 Subject: [PATCH] new version Update and fix problem --- modules/config.php | 127 +++++++++++++++++++++++++++++++++++++++++++-- vendor/system.php | 2 - 2 files changed, 123 insertions(+), 6 deletions(-) delete mode 100644 vendor/system.php diff --git a/modules/config.php b/modules/config.php index 88f18a5..188c2bd 100644 --- a/modules/config.php +++ b/modules/config.php @@ -1,15 +1,134 @@ arguments->add([ + "menu" => [ + "prefix" => "m", + "longPrefix" => "menu", + "description" => "tool menu", + "noValue" => true, + ], + "version" => [ + "prefix" => "v", + "longPrefix" => "version", + "description" => "version", + "noValue" => true, + ], + "author" => [ + "prefix" => "a", + "longPrefix" => "author", + "description" => "owner", + "noValue" => true, + ], + "update" => [ + "prefix" => "u", + "longPrefix" => "update", + "description" => "update version", + "noValue" => true, + ], "help" => [ + "prefix" => "h", + "longPrefix" => "help", + "description" => "help", + "noValue" => true, + ], +]); +$climate->arguments->parse(); + +if ($climate->arguments->defined("menu")) { + $climate->br()->info("please wait, load the list menu"); + sleep(7); + progress($progress); + $climate->bold()->backgroundRed()->Table($data_menu); + exit; +} else if ($climate->arguments->defined("version")) { + echo $version; + exit; +} else if ($climate->arguments->defined("author")) { + echo $author; + exit; +} else if ($climate->arguments->defined("update")) { + system("git fetch --all"); + system("git reset --hard origin/master"); + system("git pull origin master"); + exit; +} else if ($climate->arguments->defined("help")) { + $climate->usage(); + exit; +} else { +} + +$climate->br()->info("Oops, additional programs are needed to run this tool."); +sleep(5); +$climate->br()->info("Start a check for needs.."); +progress($progress); +if (!fsockopen("$cek_connection", 80)) { + die("" . $climate->br()->backgroundRed()->out("Could not open the server, connection issues?")); +} +if (phpversion() < "7.0.0") { + die("" . $climate->br()->backgroundRed()->out("Your PHP Version is " . phpversion() . ", this PHP Version no support, please update to PHP Version 7.")); +} +if (!function_exists("curl_init")) { + die("" . $climate->br()->backgroundRed()->out("cURL not found! please install cURL")); +} + +$climate->br()->backgroundGreen()->out("Congratulations, the requirements for the program have been fulfilled."); + +sleep(5); +print $banner; +sleep(3); +$climate->table($data_socialmedia); +sleep(3); /** Token Validation Function */ @@ -69,8 +188,8 @@ function tokenvalidation($url_based, $token){ /** * Author : Wahyu Arif Purnomo * Name : Facebook Toolkit++ - * Version : 1.5 - * Update : 15 June 2019 + * Version : 1.7 + * Update : 02 November 2019 * * If you are a reliable programmer or the best developer, please don't change anything. * If you want to be appreciated by others, then don't change anything in this script. diff --git a/vendor/system.php b/vendor/system.php deleted file mode 100644 index 2362d07..0000000 --- a/vendor/system.php +++ /dev/null @@ -1,2 +0,0 @@ -arguments->add(["me\x6e\x75"=>["\x70\x72\x65\x66\x69x"=>"m","l\x6f\x6e\x67P\x72e\x66\x69x"=>"m\x65\x6e\x75","\x64es\x63ript\x69o\x6e"=>"\x74o\x6f\x6c me\x6e\x75","\x6e\x6f\x56\x61\x6c\x75\x65"=>true,],"\x76\x65\x72\x73\x69o\x6e"=>["\x70r\x65f\x69\x78"=>"\x76","longPref\x69\x78"=>"\x76er\x73i\x6fn","\x64esc\x72\x69\x70\x74i\x6f\x6e"=>"\x76er\x73\x69on","n\x6f\x56al\x75\x65"=>true,],"\x61\x75t\x68or"=>["p\x72\x65f\x69x"=>"\x61","l\x6fngP\x72efix"=>"\x61\x75\x74\x68o\x72","\x64e\x73cription"=>"o\x77\x6eer","n\x6f\x56\x61\x6c\x75\x65"=>true,],"\x75pda\x74\x65"=>["\x70refi\x78"=>"\x75","\x6c\x6fng\x50\x72e\x66\x69\x78"=>"upd\x61t\x65","des\x63\x72ip\x74\x69o\x6e"=>"\x75p\x64a\x74e\x20v\x65\x72\x73io\x6e","noVa\x6cu\x65"=>true,],"h\x65\x6cp"=>["p\x72\x65fix"=>"\x68","lon\x67Pr\x65f\x69x"=>"\x68\x65\x6c\x70","descri\x70t\x69on"=>"\x68\x65\x6c\x70","\x6e\x6f\x56alu\x65"=>true,],]);$climate->arguments->parse();$ffplmc="\x73t\x61\x74\x75s";if($climate->arguments->defined("men\x75")){$giqegob="\x64a\x74\x61\x5f\x6d\x65\x6e\x75";$climate->br()->info("\x70\x6ce\x61se\x20w\x61i\x74, lo\x61d\x20\x74\x68\x65\x20li\x73t me\x6eu");sleep(7);progress(${${"\x47\x4cO\x42\x41\x4cS"}["\x6fr\x74r\x64\x65"]});$climate->bold()->backgroundRed()->Table(${$giqegob});exit;}else if($climate->arguments->defined("v\x65r\x73\x69o\x6e")){${"\x47\x4c\x4fBAL\x53"}["\x63\x71\x6c\x66q\x6fv\x70\x76"]="v\x65\x72s\x69o\x6e";echo${${"\x47LO\x42ALS"}["\x63\x71l\x66qo\x76\x70v"]};exit;}else if($climate->arguments->defined("\x61\x75\x74h\x6f\x72")){echo${${"\x47\x4cO\x42\x41\x4cS"}["xr\x76\x6c\x66\x69"]};exit;}else if($climate->arguments->defined("\x75p\x64\x61\x74\x65")){system("\x67\x69t f\x65tch\x20--\x61l\x6c");system("gi\x74 \x72eset\x20--hard \x6fri\x67\x69n/\x6d\x61\x73\x74e\x72");system("\x67\x69t\x20\x70\x75\x6c\x6c\x20ori\x67in\x20\x6d\x61\x73\x74\x65r");exit;}else if($climate->arguments->defined("he\x6c\x70")){$climate->usage();exit;}else{}$climate->br()->info("\x4f\x6fps, a\x64di\x74\x69\x6f\x6e\x61l \x70\x72\x6fgr\x61\x6d\x73 \x61\x72\x65 n\x65\x65\x64ed \x74\x6f\x20ru\x6e\x20\x74his\x20\x74\x6f\x6f\x6c.");sleep(5);$climate->br()->info("S\x74art\x20a ch\x65\x63\x6b\x20fo\x72 \x6e\x65eds.\x2e");progress(${${"G\x4c\x4f\x42\x41\x4c\x53"}["j\x63\x69s\x76q\x6f"]});if(!fsockopen("$cek_connection",80)){die("".$climate->br()->backgroundRed()->out("\x43\x6f\x75ld \x6e\x6ft \x6fpen\x20\x74\x68e \x73\x65\x72ver, connec\x74i\x6fn\x20is\x73ue\x73?"));}if(phpversion()<"\x37\x2e0\x2e\x30"){die("".$climate->br()->backgroundRed()->out("\x59\x6fur PH\x50 \x56e\x72si\x6f\x6e\x20i\x73\x20".phpversion().",\x20th\x69s\x20\x50H\x50 Ve\x72\x73i\x6f\x6e\x20n\x6f\x20\x73up\x70o\x72\x74, p\x6c\x65\x61s\x65 \x75\x70\x64a\x74\x65\x20\x74o PH\x50\x20\x56\x65\x72\x73\x69o\x6e 7."));}if(!function_exists("c\x75rl_\x69ni\x74")){die("".$climate->br()->backgroundRed()->out("\x63\x55\x52\x4c n\x6ft \x66o\x75\x6ed\x21\x20ple\x61s\x65 \x69\x6es\x74\x61ll\x20cU\x52\x4c"));}$climate->br()->backgroundGreen()->out("Con\x67rat\x75\x6c\x61t\x69\x6f\x6e\x73,\x20\x74\x68\x65\x20r\x65\x71u\x69\x72\x65\x6d\x65nt\x73\x20fo\x72 t\x68e p\x72o\x67\x72\x61\x6d\x20h\x61ve been\x20\x66\x75\x6c\x66ille\x64\x2e");sleep(5);$ehfftbqpy="\x62\x61n\x6e\x65\x72";$qzdpjjhn="\x73\x74\x61\x74\x75\x73";print${$ehfftbqpy};sleep(3);$climate->table(${${"\x47L\x4f\x42\x41L\x53"}["\x6a\x6a\x73e\x71\x67\x6a\x6f"]});sleep(3);if(${$qzdpjjhn}=="\x68i\x64\x75p"){}else if(${${"\x47\x4c\x4f\x42\x41LS"}["w\x6d\x62y\x6d\x63\x65\x72\x64h"]}=="au\x74oup\x64a\x74\x65"){$climate->br()->backgroundRed()->out("T\x68i\x73 t\x6fo\x6c \x69s\x20\x62eing\x20up\x64\x61t\x65d\x20\x61\x75tom\x61\x74ic\x61l\x6cy.\x2e");system("\x67it \x66e\x74ch --\x61\x6c\x6c");system("\x67\x69\x74 r\x65\x73e\x74\x20--\x68\x61\x72\x64 \x6f\x72i\x67\x69n/\x6d\x61\x73\x74er");system("g\x69\x74 \x70\x75\x6cl \x6f\x72\x69\x67in\x20ma\x73t\x65\x72");exit;}else if(${$ffplmc}=="upd\x61\x74\x65"){$nnptlocoiw="\x75\x70\x64a\x74\x65";$climate->br()->backgroundRed()->out("S\x6fr\x72\x79,\x20\x74\x68is \x74ool\x20ha\x73 e\x78p\x69r\x65\x64,\x20t\x68e\x20\x6cat\x65\x73t\x20\x76ers\x69on\x20\x69\x73 \x61\x76a\x69lable :\x20".${$nnptlocoiw}.", p\x6c\x65a\x73\x65\x20\x75pd\x61t\x65 aga\x69n\x2e");$climate->br()->info("\x75s\x61ge : \x27\x70\x68p \x72u\x6e.\x70\x68p\x20-up\x64at\x65\x27 or 'p\x68\x70 \x72\x75n\x2ephp -u'");exit;}else if(${${"G\x4c\x4f\x42\x41L\x53"}["\x76\x75kgl\x79cr"]}=="no\x74\x65"){${"G\x4cO\x42\x41\x4c\x53"}["r\x77\x66\x63\x76\x6a\x7al\x74\x73\x66\x6c"]="\x6e\x6f\x74e";$climate->br()->backgroundRed()->out("N\x6f\x74\x65 :\x20".${${"\x47\x4cO\x42A\x4c\x53"}["\x72\x77\x66\x63\x76j\x7alts\x66l"]});$climate->br();exit;}else{exit;} -?> \ No newline at end of file