Esempio n. 1
0
 case 'preferences':
     if (!isset($_GET['id']) || !$_GET['id']) {
         $_GET['id'] = $id;
     }
     if (!$userid) {
         #          print "Userid not set".$_SESSION["userid"];
         print sendPersonalLocationPage($id);
         break;
     }
     if (ASKFORPASSWORD && $userpassword && !$canlogin) {
         print LoginPage($id, $userid, $emailcheck);
         break;
     }
     $success = (require 'admin/subscribelib2.php');
     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;
Esempio n. 2
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;
 }