
-
might be the site still being under surgery, but when I tried to add the newest offer to my pending I got a page with:
RegisterVar("TITLE", _LANG_CONF_TITLE); if(!$user->IsLoggedIn()) exit($error->Report(_LANG_CONF_TITLE, _LANG_ERROR_NOTLOGGEDIN)); if($_SERVER["REQUEST_METHOD"] == "POST") { if( !$_POST["paidsignup"]) if(!$_POST["programid"] || !$_POST["confirmation"]) exit($error->Report(_LANG_CONF_TITLE, _LANG_ERROR_FIELDEMPTY)); $db->Query("SELECT id FROM paid_signups WHERE id='" . $_POST["programid"] . "'"); if($db->NumRows() == 0) exit($error->Report(_LANG_CONF_TITLE, _LANG_CONF_PIDINVALID)); //added Jan18,2010 as the option to hide offers from users if they ask if( $_POST["remove"] =="REMOVE FROM MY LIST") // "REMOVE FROM MY LIST" { $from_url = $_SERVER["HTTP_REFERER"]; $offerid=$_POST["programid"]; if( is_numeric($offerid)) { $db->Query("select id from user_removed_paid_signups where oid=$offerid and uid='" . $user->Get("id") . "'"); if($db->NumRows() ==0) $db->Query("insert into user_removed_paid_signups (oid, uid, dateStamp) values ($offerid, " . $user->Get("id") . "," . time() . ")"); } header("Location: " . $from_url); exit(); } //end hiding offers //added the update statement to keep an automatic postback from beating a user clicking "move to pending" //7-2-2007 $db->Query("SELECT id FROM received_signups WHERE sid='" . $_POST["programid"] . "' AND uid='" . $user->Get("id") . "'"); if($db->NumRows() == 0) $db->Query("INSERT INTO received_signups (uid, sid, confirmation, dateStamp) VALUES ('" . $user->Get("id") . "', '" . $_POST["programid"] . "', '" . $_POST["confirmation"] . "', '" . time() . "');"); else if ($db->NumRows() == 1) $db->Query("update received_signups set dateStamp='" . time() . "' where uid='" . $user->Get("id") . "' and sid='" . $_POST["programid"] . "'"); else exit($error->Report(_LANG_CONF_TITLE, _LANG_CONF_DOUBLE)); $max = $db->Fetch("SELECT max FROM paid_signups WHERE id='" . $_POST["programid"] . "'"); $db->Query("SELECT id FROM received_signups WHERE sid='" . $_POST["programid"] . "' AND NOT (checked='1' AND credited='no')"); if($db->NumRows() == $max) $db->Query("UPDATE paid_signups SET active='no' WHERE id='" . $_POST["programid"] . "'"); if( $_POST["paidsignup"]) { header("Location:" . _SITE_URL . "/pending_offers.php?sid=" . $session->ID); exit(); } else $main->printText(_LANG_CONF_CONFSENT); } else { $tml->loadFromFile("pages/header"); $tml->RegisterVar("FNAME", $user->Get("fname")); $tml->Parse(); $tml->RegisterVar("NAME", $user->Get("fname") . " " . $user->Get("sname")); $tml->RegisterVar("EMAIL", $user->Get("email")); $tml->loadFromFile("pages/confirmation"); $tml->Parse(); $tml->loadFromFile("pages/footer"); $tml->Parse(); $tml->Output(); } ?>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks