-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Mike Myers
committed
Oct 20, 2016
1 parent
d31e5a1
commit c48cb45
Showing
6,413 changed files
with
596,617 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,197 @@ | ||
<?php | ||
/* | ||
+-------------------------------------------------------------------------- | ||
| | ||
| v1.0.0 | ||
| Copyright 2009, 2010 Genius Idea Studio, LLC. All Rights Reserved | ||
| | ||
| The sale, duplication or transfer of the script to any | ||
| person other than the original purchaser is a violation | ||
| of the purchase agreement and is strictly prohibited. | ||
| | ||
| Any alteration of the script source code or accompanying | ||
| materials will void any responsibility of Genius Idea | ||
| Studio, LLC regarding the proper functioning of the script. | ||
| | ||
| By using this script you agree to the terms and conditions | ||
| of use of the script. | ||
| | ||
| ================================================================ | ||
| RAP-tools.com Google Analytics | ||
| ================================================================ | ||
+-------------------------------------------------------------------------- | ||
*/ | ||
|
||
|
||
if ($_REQUEST['action'] == "register") { | ||
|
||
include("../../../config.php"); | ||
|
||
// Connect to mysql server | ||
|
||
define("MYSQL_DB_USER", $dbuser); | ||
define("MYSQL_DB_PASSWORD", $dbpass); | ||
define("MYSQL_DB_NAME", $dbname); | ||
define("MYSQL_DB_HOST", $dbhost); | ||
|
||
include_once ("../../../library/my_sql.php"); | ||
|
||
$sql="select * from admin LIMIT 1"; | ||
$sds=mysql_query($sql); | ||
$srow=mysql_fetch_array($sds);?> | ||
|
||
<link rel='stylesheet' type='text/css' href='css/styles.css'> | ||
|
||
<form id="registrationform" name="registrationform" method="post" action="/rap_admin/addons/GIS/WishlistMember/ClassVersion.php"> | ||
<input type="hidden" name="action" value="registration"> | ||
<input type="hidden" name="title" value="<?= $_REQUEST['title']; ?>"> | ||
<table width="500"> | ||
<tr><td> </td></tr> | ||
<tr><td class="Prompts" colspan="3">Before you can use the Wishlist Member addon you need to register it using your paypal email address. The site owners paypal email will be used for registration.</td></tr> | ||
<tr><td> </td></tr> | ||
<tr><td class="Prompts">Email Address used for registration:</td><td> </td><td><?= $srow['paypal']; ?><input type="hidden" name="Email" id="Email" value="<?= $srow['paypal'] ?>"></td></tr> | ||
<tr><td> </td></tr> | ||
<tr><td></td><td></td><td><input type="submit" name="submit" id="submit" value="Register" /></td></tr> | ||
</table> | ||
</form> | ||
<? | ||
} | ||
|
||
if ($_REQUEST['action'] == "registration") { | ||
|
||
$modregister = new ModVersion; | ||
|
||
$success = $modregister->register($_REQUEST['Email'], $_REQUEST['title']); | ||
|
||
echo "<link rel='stylesheet' type='text/css' href='css/styles.css'>"; | ||
if ($success == '1') { | ||
echo "<p class=\"Prompts\">Congratulations this domain is now registered. Click the continue link below to return to the main RAP interface.<br><br><a href=\"/rap_admin\" target=\"_top\">Continue...</a></p>"; | ||
} else { | ||
echo "<p class=\"Prompts\">We are sorry but we could not find that email address for this product. Click the Continue link below to return to the registration page.<br><br><a href=\"?action=register&title=" . $_REQUEST['title'] . "\">Continue...</a></p>"; | ||
} | ||
|
||
} | ||
|
||
|
||
class ModVersion | ||
{ | ||
function versioninfo($g_emailaddr) | ||
{ | ||
$title = title; | ||
$version = version; | ||
|
||
$lv = $this->versioncheck($g_emailaddr); | ||
|
||
$latestversion = $lv[0]; | ||
$upgradeURL = $lv[1]; | ||
$addonsuppt = $lv[2]; | ||
$reg=$lv[3]; | ||
|
||
if ($reg == '0') { | ||
$reg = "Unregistered"; | ||
$html=" | ||
<iframe src='addons/GIS/WishlistMember/ClassVersion.php?action=register&title=" . $title . "' width='800' height='800' frameborder='0'> | ||
</iframe>"; | ||
} else { | ||
|
||
$upgrade = (version < $latestversion) ? "<a target=_blank href=$upgradeURL><font color=Red>Download Current Release.</font></a>" : "<font color=green>You have the latest version.</font>" ; | ||
$currentv = $latestversion; | ||
|
||
$html=" | ||
<table width='800' cellpadding='2' cellspacing='0' border='0'> | ||
<tr> | ||
<td align='center' valign='top' class='admin_index_news_border'> | ||
<table width='100%' cellpadding='2' cellspacing='0' border='0'> | ||
<tr> | ||
<td style=\"width: 170px face: georgia\">Your Version: $version</td> | ||
<td style=\"width: 170px face georgia\">Current Version: $currentv</td> | ||
<td ><center>$upgrade</center></td> | ||
<td align=\"right\">Registered to: $reg</td> | ||
</tr> | ||
</table> | ||
</td> | ||
</tr> | ||
</table>"; | ||
|
||
|
||
} | ||
return $html; | ||
} | ||
|
||
|
||
function g_getSecretCode($g_url) { | ||
|
||
$g_url = trim($g_url); | ||
$g_code = 0; | ||
|
||
for ($l=0; $l<strlen($g_url); ++$l) { | ||
$g_code += ord(substr($g_url,$l,1)); | ||
} | ||
|
||
return $g_code; | ||
} | ||
|
||
|
||
function register($g_emailAddress, $title) { | ||
|
||
$file = "http://rap-tools.com/rap_admin/addons/GIS/regmgr/register.php?pr=" . $title . "&dn=" . $_SERVER['HTTP_HOST'] . "&pe=" . $g_emailAddress . "&sc=" . $this->g_getSecretCode($_SERVER['HTTP_HOST']); | ||
$file = str_replace(" ", "%20", $file); | ||
|
||
$fp = @fopen($file,"r"); | ||
if ($fp) { | ||
$line = @fgets($fp,1024); | ||
fclose($fp); | ||
} | ||
if ($line == "1") { | ||
//success | ||
return 1; | ||
} else { | ||
//failed | ||
return 0; | ||
} | ||
|
||
} | ||
|
||
|
||
function versioncheck($g_emailaddr){ | ||
$title = title; | ||
|
||
//get the addons | ||
$line = $this->readAddonsFile($g_emailaddr); | ||
|
||
$line = ereg_replace("#.*$","",$line); | ||
|
||
list($name,$value,$url,$suptlnk,$reg) = explode("|",$line); | ||
$mb_info[trim($name)] = array(trim($value),trim($url),trim($suptlnk),trim($reg)); | ||
return $mb_info[$title]; | ||
|
||
} | ||
|
||
function readAddonsFile($g_emailaddr) | ||
{ | ||
global $sys_version; | ||
|
||
$title = title; | ||
|
||
$myaddons = ""; | ||
|
||
$file = "http://rap-tools.com/rap_admin/addons/GIS/regmgr/verify.php?pr=" . $title . "&dn=" . $_SERVER['HTTP_HOST'] . "&pe=" . $g_emailaddr . "&rv=" . $sys_version . "&av=" . version; | ||
$file = str_replace(" ", "%20", $file); | ||
|
||
$fp = @fopen($file,"r"); | ||
if ($fp) { | ||
while($line = @fgets($fp,1024)) | ||
{ | ||
$myaddons .= $line; | ||
} | ||
fclose($fp); | ||
} | ||
return $myaddons; | ||
} | ||
|
||
} | ||
?> |
Oops, something went wrong.