Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function err($msg, $var = "") {
- global $posterr;
- global $_POST;
- $posterr = 1;
- echo "<font color=red>{$msg}</font><br>";
- if ($var) {
- $_POST[$var] = "";
- }
- }
- function _encryptLIC($theString) {
- global $_TXT;
- global $cckey;
- global $encrypted_string;
- global $cipher_alg;
- global $iv;
- $cckey = "301778a94a97f1441c6fc56112e92000";
- $cipher_alg = MCRYPT_RIJNDAEL_256;
- $iv = mcrypt_create_iv(mcrypt_get_iv_size($cipher_alg, MCRYPT_MODE_ECB), MCRYPT_RAND);
- $encrypted_string = mcrypt_encrypt($cipher_alg, $cckey, $theString, MCRYPT_MODE_CBC, $iv);
- return bin2hex($iv) . bin2hex($encrypted_string);
- }
- function DB_UPDATE($inserts, $debug) {
- global $_TXT;
- $doit = $inserts;
- if ($debug) {
- echo "<p>{$doit} <p>";
- }
- if (!mysql_query($doit)) {
- exit(mysql_error());
- }
- }
- chdir("Files");
- require ("Subs/ev3tH1nG.php");
- if (!function_exists("SECURE_URL")) {
- function SECURE_URL($omit) {
- global $_TXT;
- $_SERVER['THIS_URL'] = "http";
- if ($_SERVER['HTTPS'] == "on") {
- $_SERVER.= "FULL_URL";
- }
- $_SERVER.= "THIS_URL";
- if ($_SERVER['SERVER_PORT'] != "80") {
- $_SERVER.= "THIS_URL";
- } else {
- $_SERVER.= "THIS_URL";
- }
- if (" " < $_SERVER['QUERY_STRING']) {
- $_SERVER.= "THIS_URL";
- }
- if ($omit) {
- $_SERVER['THIS_URL'] = str_replace("index.php", "", $_SERVER['THIS_URL']);
- }
- return $_SERVER['THIS_URL'];
- }
- }
- if (!function_exists("GetMainBaseFromURL")) {
- function GetMainBaseFromURL($url) {
- $chars = preg_split("//", $url, 0 - 1, PREG_SPLIT_NO_EMPTY);
- $slash = 3;
- $i = 0;
- foreach($chars as $key => $char) {
- if ($char == "/") {
- $j = $i++;
- }
- if ($i == 3) {
- $pos = $key;
- break;
- break;
- }
- }
- $main_base = substr($url, 0, $pos);
- $main_base = str_replace("https://", "", $main_base);
- $main_base = str_replace("https://www.", "", $main_base);
- $main_base = str_replace("http://", "", $main_base);
- $main_base = str_replace("http://www.", "", $main_base);
- $main_base = str_replace("www.", "", $main_base);
- return $main_base;
- }
- }
- $file_find = GetMainBaseFromURL(SECURE_URL($omit));
- $file_find = GetMainBaseFromURL(SECURE_URL($omit));
- echo "\n<HTML>\n <HEAD>\n <TITLE>Setup License</TITLE>\n\n<!-- Add this to have a specific theme --> \n\n</HEAD>\n <BODY BGCOLOR=\"#ffffff\">\n\n\n";
- if ($_REQUEST['ins'] && strlen($_REQUEST['regkey']) != 256) {
- err("Registration key must be 256 characters long.");
- }
- if ($_REQUEST['ins'] && !$posterr) {
- DB_UPDATE("UPDATE xt_config_page SET site_addr='" . trim($_REQUEST['regkey']) . "' LIMIT 1", 0);
- $res = explode("license.php", SECURE_URL(1));
- $reg = $res[1];
- $ourl = $res[0];
- echo "<FONT FACE=\"Verdana,Arial,Times New I2\"><FONT SIZE=\"2\">Your software has been registered. <a href=\"{$ourl}\">Click here</a> to continue.</FONT></FONT><P> <FONT FACE=\"Verdana,Arial,Times New I2\"><FONT SIZE=\"2\"><b>YOU NEED DELETE THIS FILE (license.php) NOW</b></FONT></FONT>";
- } else {
- echo "\n<!-- example key: ";
- echo trim(_encryptLIC("localhost::Premier::t::t::t::t::t::t::t::t::t::t::2012-02-15 23:23:23::1000"));
- echo "-->\n<form name=install method=POST>\n<input type=hidden name=\"domainkey\" value=\"";
- echo $file_find;
- echo "\">\n\n <P>\n <FONT FACE=\"Verdana,Arial,Times New I2\">Paypal.com Clone Installation.</FONT></P>\n <P>\n <FONT FACE=\"Verdana,Arial,Times New I2\"><FONT SIZE=\"2\">Please enter the Software \n Registration Key given to you at the time of purchase. You must have \n a valid Key in order to run this software, and Key must be used under the domain it was intended for.</FONT></FONT></P>\n\n";
- if ($_REQUEST['i'] == "expired") {
- echo "<center>\n<div style=\"padding:3px; width: 80%; border: 1px dotted red;\">It appears the registration key you are using has expired. Please obtain a new registration key before continuing.</div>\n</center>\n";
- }
- echo "\n <P>\n <TABLE WIDTH=\"100%\" CELLPADDING=\"2\" CELLSPACING=\"0\" BORDER=\"0\">\n <TR>\n <TD WIDTH=\"50%\" VALIGN=TOP>\n <P>\n <FONT SIZE=\"2\"><FONT FACE=\"Verdana,Arial,Times New I2\">\n <P>\n Domain Name<BR>\n <INPUT TYPE=TEXT NAME=\"domainkeya\" SIZE=\"47\" MAXLENGTH=\"256\" value=\"";
- echo $file_find;
- echo "\" disabled></P>\n\n Registration Key<BR>\n<TEXTAREA name=\"regkey\" COLS=36 ROWS=6></TEXTAREA></P>\n <P>\n <INPUT TYPE=SUBMIT NAME=\"ins\" VALUE=\"Register Software\"></FONT></FONT></TD>\n <TD WIDTH=\"50%\" VALIGN=TOP>\n <P ALIGN=left>\n <FONT SIZE=\"3\"><FONT FACE=\"Verdana,Arial,Times New I2\">Required PHP Extensions</FONT></FONT>\n\n <P ALIGN=left>\n <FONT SIZE=\"2\"><FONT FACE=\"Verdana,Arial,Ti";
- echo "mes New I2\">Mcrypt ";
- if (!extension_loaded("mcrypt")) {
- echo "<font color=red><b>Missing!</b></font>";
- } else {
- echo "<font color=green><b>Installed!</b></font>";
- }
- if (!extension_loaded("mhash")) {
- echo "<font color=red><b>Missing!</b></font>";
- } else {
- echo "<font color=green><b>Installed!</b></font>";
- }
- echo "</FONT></FONT>\n\n <P ALIGN=left>\n <FONT SIZE=\"2\"><FONT FACE=\"Verdana,Arial,Times New I2\">GD ";
- if (!extension_loaded("gd")) {
- echo "<font color=red><b>Missing!</b></font>";
- } else {
- echo "<font color=green><b>Installed!</b></font>";
- }
- echo "</FONT></FONT>\n\n <P ALIGN=left>\n <FONT SIZE=\"2\"><FONT FACE=\"Verdana,Arial,Times New I2\">Gettext ";
- if (!extension_loaded("gettext")) {
- echo "<font color=red><b>Missing!</b></font>";
- } else {
- echo "<font color=green><b>Installed!</b></font>";
- }
- echo "</FONT></FONT>\n\n <P ALIGN=left>\n <FONT SIZE=\"2\"><FONT FACE=\"Verdana,Arial,Times New I2\">Curl ";
- if (!extension_loaded("curl")) {
- echo "<font color=red><b>Missing!</b></font>";
- } else {
- echo "<font color=green><b>Installed!</b></font>";
- }
- echo "</FONT></FONT>\n\n";
- echo "</TD>\n </TR>\n </TABLE>\n\n\n </BODY>\n</HTML>\n\n</form>\n\n";
- }
- echo "\n </BODY>\n</HTML>\n\n";
- echo "\n";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement