if ($success != 3) { print PreferencesPage($id, $userid); } break; case 'forward': print ForwardPage($id); break; case 'confirm': print ConfirmPage($id); break; #0013076: Blacklisting posibility for unknown users #0013076: Blacklisting posibility for unknown users case 'donotsend': case 'blacklist': case 'unsubscribe': print UnsubscribePage($id); break; default: FileNotFound(); } } else { FileNotFound(); } } else { print '<title>' . $GLOBALS['strSubscribeTitle'] . '</title>'; print $pagedata['header']; $req = Sql_Query(sprintf('select * from %s where active', $tables['subscribepage'])); if (Sql_Affected_Rows()) { while ($row = Sql_Fetch_Array($req)) { $intro = Sql_Fetch_Row_Query(sprintf('select data from %s where id = %d and name = "intro"', $tables['subscribepage_data'], $row['id'])); print $intro[0];
function selectPage($id) { if (!$id) { return '<!-- no subscribe page defined -->'; } $html = ''; # if (preg_match("/(\w+)/",$_GET["p"],$regs)) { switch ($_GET["p"]) { case "preferences": if (!$_GET["id"]) { $_GET["id"] = $id; } require $this->coderoot() . "/subscribelib2.php"; $html = PreferencesPage($id, $userid); break; case "confirm": $html = ConfirmPage($id); break; case "unsubscribe": $html = UnsubscribePage($id); break; default: case "subscribe": require $this->coderoot() . "/subscribelib2.php"; $html = SubscribePage($id); break; } return $html; }