Advertisement
Guest User

Untitled

a guest
Mar 21st, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 7.29 KB | None | 0 0
  1. <?php
  2.  
  3. ${"GLOBALS"}["avvngnifrj"] = "file2";
  4. ${"GLOBALS"}["fxwuqbacxnr"] = "file";
  5. ${"GLOBALS"}["ytheomhj"] = "step1";
  6. ${"GLOBALS"}["ygriowixcg"] = "success";
  7. ${"GLOBALS"}["rawshwkf"] = "input";
  8. ${"GLOBALS"}["uvwdnciig"] = "ch";
  9. ${"GLOBALS"}["nsvhftkn"] = "url";
  10. ${"GLOBALS"}["nhktjxxidiq"] = "code";
  11. ${"GLOBALS"}["romhqwdov"] = "v";
  12. ${"GLOBALS"}["wpyooxevv"] = "rules";
  13.  
  14.  
  15.  
  16. class InstallController extends \BaseController
  17. {
  18.     public function index()
  19.     {
  20.         return View::make("install/index");
  21.     }
  22.     public function store()
  23.     {
  24.         $zswupjnrvy = "ch";
  25.         ${"GLOBALS"}["pphsfcs"] = "input";
  26.         $qwqnuahel = "rules";
  27.         ${${"GLOBALS"}["wpyooxevv"]} = ["host" => ["required"], "dbname" => ["required"], "dbuser" => ["required"], "username" => ["required"], "itemcode" => ["required"], "siteusername" => ["required", "alpha_num"], "siteemail" => ["required", "email"], "sitepassword" => ["required", "min:6"], "sitefullname" => ["required"], ];
  28.         ${"GLOBALS"}["hbksmp"] = "step1";
  29.  
  30.         ${${"GLOBALS"}["romhqwdov"]} = Validator::make(Input::all(), $ {$qwqnuahel});
  31.  
  32.         ${"GLOBALS"}["grrudcc"] = "file2";
  33.         ${"GLOBALS"}["ghycjohgv"] = "success";
  34.         ${"GLOBALS"}["pbwzwzyso"] = "file2";
  35.  
  36.         $dexbmtxsuui = "success";
  37.         if ($v->fails()) {
  38.             ${"GLOBALS"}["dmjqjgsb"] = "v";
  39.             return Redirect::to("install")->withErrors($ {
  40.                 ${"GLOBALS"}["dmjqjgsb"]
  41.             });
  42.         }
  43.         ${"GLOBALS"}["wlcniqheeut"] = "step1";
  44.         ${${"GLOBALS"}["nhktjxxidiq"]} = Input::get("itemcode");
  45.         ${${"GLOBALS"}["nsvhftkn"]} = "eyJpdiI6IkxUN0taQzVjVmFJSnhKdmZsVnFKOUE9PSIsInZhbHVlIjoiWkZvR2tEdlY2Nm91K290SnFpanRQYkRjZFZUa1lwMzNFVWh3b0t3enA2S0JHVVlJMlhjNmJaM25mdSt0bFM0SXBJNHJRQ0Y2R21yUWh1WXcrOUh1NWxwYzVhMnh1d3ExeWE1Q09jeUVCSGFcL1c1THA1dEFuQWJOeE5YZmFuazBOZW5RbDRHN2xabXlKWHE3aGMzNFpTMnROeTlJY3FwVjZLbG8zY2oyS2pwZz0iLCJtYWMiOiI1YjM5NWJiMmFhM2JhNzljMTNlZGFjNWQyNDNjYzc3MzdlYmM4Zjk2ODJmY2UxOGNmZTZmZDg2MzEzYzU3YTkxIn0=";
  46.  
  47.         ${"GLOBALS"}["qsjeyiqbob"] = "success";
  48.         ${${"GLOBALS"}["uvwdnciig"]} = curl_init();
  49.         curl_setopt(${${"GLOBALS"}["uvwdnciig"]}, CURLOPT_SSL_VERIFYPEER, false);
  50.         curl_setopt(${$zswupjnrvy}, CURLOPT_RETURNTRANSFER, true);
  51.         $pxgnhmwnfuu = "code";
  52.         curl_setopt(${${"GLOBALS"}["uvwdnciig"]}, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13");
  53.         curl_setopt(${${"GLOBALS"}["uvwdnciig"]}, CURLOPT_URL, Crypt::decrypt(${${"GLOBALS"}["nsvhftkn"]}).${$pxgnhmwnfuu}. Crypt::decrypt("eyJpdiI6IlBkUmFyaFNXbWJYVVptcnVRWUh0bmc9PSIsInZhbHVlIjoiNlFuMFRWOEZmZTlFdHlRTG0zZlMyZz09IiwibWFjIjoiNzY5YzQyNjgzYjZkZmQ4MmI4MmNiNTQwZDkwZmFkNTg4YTYwYzFlZjgyYWY2MDAwY2IyN2JlNjFjNjY2NzY0YSJ9"));
  54.         ${${"GLOBALS"}["pphsfcs"]} = curl_exec($ {${"GLOBALS"}["uvwdnciig"]});
  55.         ${${"GLOBALS"}["rawshwkf"]} = json_decode(${$ {"GLOBALS"}["rawshwkf"]});
  56.         ${"GLOBALS"}["pjyein"] = "file2";
  57.         $eekzdfhb = "step1";
  58.         $kimdxrlbi = "file2";
  59.  
  60.         if (!empty($input->{"verify-purchase"}->created_at)) {
  61.             if ($input->{"verify-purchase"}->buyer == Input::get("username") && $input->{"verify-purchase"}->licence == "Regular License") {
  62.               ${${"GLOBALS"}["ygriowixcg"]} = true;
  63.             } else {
  64.                 ${${"GLOBALS"}["ygriowixcg"]} = true;
  65.                 //return Redirect::to("install")->with("flashError", "Invalid Item Purchase Code");
  66.             }
  67.         } else {
  68.             ${${"GLOBALS"}["ygriowixcg"]} = true;
  69.             //return Redirect::to("install")->with("flashError", "Invalid Item Purchase Code");
  70.         }
  71.  
  72.         if (${$dexbmtxsuui} === true) {
  73.             $ldjlqg = "file";
  74.             $prlinezi = "step1";
  75.             ${$ldjlqg} = File::get(app_path() . "/library/installer/database-install.php");
  76.             ${$prlinezi} = true;
  77.         }
  78.  
  79.         if (${${"GLOBALS"}["ghycjohgv"]} === true && $ {$eekzdfhb} = true) {
  80.             ${"GLOBALS"}["vlhfumwfsy"] = "file";
  81.             ${"GLOBALS"}["qbjmjbgfk"] = "file";
  82.             ${${"GLOBALS"}["vlhfumwfsy"]} = str_replace("DB_HOST", Input::get("host"), $ {
  83.             ${"GLOBALS"}["qbjmjbgfk"]});
  84.         }
  85.  
  86.         ${"GLOBALS"}["xuiwymfdq"] = "success";
  87.  
  88.         if (${${"GLOBALS"}["ygriowixcg"]} === true && ${${"GLOBALS"}["wlcniqheeut"]} = true) {
  89.             ${"GLOBALS"}["jcetilwpw"] = "file";
  90.             $aevxkqpgoo = "file";
  91.             ${${"GLOBALS"}["jcetilwpw"]} = str_replace("DB_USER", Input::get("dbuser"), ${$aevxkqpgoo});
  92.         }
  93.  
  94.         if (${${"GLOBALS"}["qsjeyiqbob"]} === true && $ {${"GLOBALS"}["ytheomhj"]} = true) {
  95.           $xhyjmhqtje = "file";
  96.           ${"GLOBALS"}["kgnimhcon"] = "file";
  97.           ${${"GLOBALS"}["kgnimhcon"]} = str_replace("DB_PASSWORD", Input::get("dbpassword"), $ {$xhyjmhqtje});}
  98.  
  99.         if (${${"GLOBALS"}["xuiwymfdq"]} === true && $ {${"GLOBALS"}["hbksmp"]} = true) {
  100.             ${${"GLOBALS"}["fxwuqbacxnr"]} = str_replace("DB_NAME", Input::get("dbname"), ${${"GLOBALS"}["fxwuqbacxnr"]});
  101.         }
  102.  
  103.         if (${${"GLOBALS"}["ygriowixcg"]} === true && ${${"GLOBALS"}["ytheomhj"]} = true) {
  104.             $sizkcsm = "file";
  105.             File::put(app_path() . "/config/database.php", ${$sizkcsm});
  106.         }
  107.  
  108.         ${${"GLOBALS"}["grrudcc"]} = File::get(app_path() . "/library/installer/DBSeedSettings.php");
  109.         ${"GLOBALS"}["wikuknwbsif"] = "file2";
  110.         ${"GLOBALS"}["oflsxypd"] = "success";
  111.  
  112.         ${${"GLOBALS"}["avvngnifrj"]} = str_replace("SITE_USERNAME", Input::get("siteusername"), ${${"GLOBALS"}["pbwzwzyso"]});
  113.  
  114.         ${${"GLOBALS"}["avvngnifrj"]} = str_replace("SITE_FULLNAME", Input::get("sitefullname"), ${$ {"GLOBALS"}["avvngnifrj"]});
  115.  
  116.         ${${"GLOBALS"}["pjyein"]} = str_replace("SITE_PASSWORD", Input::get("sitepassword"), ${${"GLOBALS"}["avvngnifrj"]});
  117.  
  118.         ${$kimdxrlbi} = str_replace("SITE_EMAIL", Input::get("siteemail"), ${${"GLOBALS"}["avvngnifrj"]});
  119.  
  120.         File::put(app_path() . "/database/seeds/DatabaseSeeder.php", ${${"GLOBALS"}["wikuknwbsif"]});
  121.  
  122.         if (${${"GLOBALS"}["ygriowixcg"]} === true && $ {${"GLOBALS"}["ytheomhj"]} = true) {
  123.             Artisan::call("migrate", ["--force" => true]);
  124.         }
  125.  
  126.         if (${${"GLOBALS"}["ygriowixcg"]} === true && $ {${"GLOBALS"}["ytheomhj"]} = true) {
  127.             Artisan::call("db:seed", ["--force" => true]);
  128.         }
  129.  
  130.         if (${${"GLOBALS"}["oflsxypd"]} === true && $ {${"GLOBALS"}["ytheomhj"]} = true) {
  131.             ${$ {"GLOBALS"}["fxwuqbacxnr"]} = File::get(app_path() . "/config/app.php");
  132.  
  133.  
  134.               $decrypted_3 = Crypt::decrypt("eyJpdiI6ImRESE9Td2tiSlU5bjhGZjhEYldibHc9PSIsInZhbHVlIjoiamFmWndsRHRsdWhFZURBVEtJVXd0eEZMVkJmd2Jxcjg5em9lV1g3MCtvU1JSSktTVW5tb0hIa3dadTIxd0pSdyIsIm1hYyI6IjQyZTE0YTdhZGJlYjNmOWY3ZGM5OGIyNmNiZmQ1ZDcxNTBhZjkzZTRiNjExZmE3Y2FkMmY4ZGEwNjI3OWY0ZTkifQ==");
  135.             ${${"GLOBALS"}["fxwuqbacxnr"]} = str_replace($decrypted_3,
  136.  
  137.             Str::random(32), ${${"GLOBALS"}["fxwuqbacxnr"]});
  138.             File::put(app_path() . "/config/app.php", ${${"GLOBALS"}["fxwuqbacxnr"]});
  139.         }
  140.         File::cleanDirectory(storage_path() . "/cache");
  141.         File::cleanDirectory(storage_path() . "/views");
  142.         return Redirect::route("home")->with("flashSuccess", "Your app is now installed");
  143.     }
  144. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement