Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- //##########################################################################
- //# AURORAGPT Script Copyright owned by Mike Pratt #
- //# AURORA SDR Script Copyright owned by Noroc Marius-Mihai #
- //# ALL RIGHTS RESERVED 2007-2017 #
- //# #
- //# Any illegal use of this script is strictly prohibited unless #
- //# permission is given by the owner of this script. To sell #
- //# this script you must have a resellers license. Your site #
- //# must also use a unique encrypted license key for your #
- //# site. Your site must also have site_info module and #
- //# key.php file must be in the script unedited. Otherwise #
- //# it will be considered as unlicensed and can be shut down #
- //# legally by Illusive Web Services. By using AuroraGPT #
- //# script you agree not to copy infringe any of the coding #
- //# and or create a clone version is also copy infringement #
- //# and will be considered just that and legal action will be #
- //# taken if neccessary. #
- //########################################################################//
- $includes[title]="Manage Code Rotator";
- $newcod = $_POST['newcod'];
- if($action == "add") {
- $Db1->query("INSERT INTO code_rotator SET
- title='".addslashes($title)."',
- code='$newcod',
- `limit`='$limit',
- weight='$weight'
- ");
- $Db1->sql_close();
- header("Location: admin.php?view=admin&ac=code_rotator&".$url_variables."");
- }
- $newcob = $_POST['newcob'];
- if($action == "update") {
- for($x=0; $x<count($weight); $x++) {
- if($delete[$x] == 1) {
- $Db1->query("DELETE FROM code_rotator WHERE id='".$codeid[$x]."'");
- }
- else {
- $Db1->query("UPDATE code_rotator SET
- weight='".$weight[$x]."',
- `limit`='".$limit[$x]."',
- code='$newcob',
- title='".addslashes($title[$x])."' WHERE id='".$codeid[$x]."'");
- }
- }
- $Db1->sql_close();
- header("Location: admin.php?view=admin&ac=code_rotator&".$url_variables."");
- }
- $sql=$Db1->query("SELECT * FROM code_rotator ORDER BY dsub");
- for($x=0; $code = $Db1->fetch_array($sql); $x++) {
- $list.="
- <input type=\"hidden\" name=\"codeid[$x]\" value=\"$code[id]\">
- <table width=\"450px\">
- <tr>
- <td width=\"250px\">Title:</td>
- <td><input type=\"text\" name=\"title[$x]\" size=35 value=\"".htmlentities(stripslashes($code[title]))."\"></b></td>
- </tr>
- <tr>
- <td width=\"250px\"><font color=\"darkred\">Delete this Ad:</font></td>
- <td><input type=\"checkbox\" name=\"delete[$x]\" value=\"1\"></td>
- </tr>
- <tr>
- <td width=\"250px\">Credits Assigned:</td>
- <td><input type=\"text\" name=\"limit[$x]\" size=5 value=\"$code[limit]\"></td>
- </tr>
- <tr>
- <td width=\"250px\">Hits Received:</td>
- <td>$code[tcount]</td>
- </tr>
- <tr>
- <td width=\"250px\">Ad Weight:</td>
- <td><input type=\"text\" name=\"weight[$x]\" size=3 value=\"$code[weight]\"></td>
- </tr>
- <tr>
- <td width=\"250px\">Code:</td>
- </tr>
- </table>
- <table>
- <tr>
- <td><textarea cols=50 rows=3 name=\"newcob\">".stripslashes($code[code])."</textarea></td>
- </tr>
- <tr>
- <td colspan=2 height=1 bgcolor=\"darkblue\"></td>
- </tr>
- </table>
- ";
- }
- $includes[content]="
- <div align=\"center\">
- <table width=\"450px\">
- <tr>
- <td width=\"450\" align=\"center\"; bgcolor=\"d0fb8f\"><b><font style=\"font-size: 12pt; color: darkblue\">Create a New Code Rotator Ad</font></b></td>
- </tr>
- </table>
- <form action=\"admin.php?view=admin&ac=code_rotator&action=add&".$url_variables."\" method=\"post\">
- <table width=\"450px\">
- <tr>
- <td width=\"250px\">Title: </td>
- <td><input type=\"text\" name=\"title\" size=\"35\"></td>
- </tr>
- <tr>
- <td width=\"250px\">Credits: </td>
- <td><input type=\"text\" name=\"limit\" size=8 value=\"0\"></td>
- </tr>
- <tr>
- <td width=\"250px\">Ad Weight: </td>
- <td><input type=\"text\" name=\"weight\" size=8 value=\"1\"></td>
- </tr>
- <tr>
- <td width=\"250px\">Code: </td>
- </tr>
- </table>
- <table>
- <tr>
- <td colspan=2><textarea name=\"newcod\" cols=50 rows=3></textarea></td>
- </tr>
- <tr>
- <td colspan=2 align=\"center\"><input type=\"submit\" value=\"Add Code\"></td>
- </tr>
- </table>
- </form>
- <table width=\"450px\">
- <tr>
- <td width=\"450\" align=\"center\"; bgcolor=\"d0fb8f\"><b><font style=\"font-size: 12pt; color: darkblue\">Current Code Rotator Ads</font></b></td>
- </tr>
- </table>
- <form action=\"admin.php?view=admin&ac=code_rotator&action=update&".$url_variables."\" method=\"post\">
- $list
- <table width=\"445px\">
- <tr>
- <td align=\"center\"><input type=\"submit\" value=\"Save\"></td>
- </tr>
- </table>
- </form>
- </div>
- ";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement