Example #1
0
 public function ResetPassword()
 {
     $email = $this->post->email;
     if (!$email) {
         return false;
     } else {
         $pilot = PilotData::GetPilotByEmail($email);
         if (!$pilot) {
             $this->render('login_notfound.tpl');
             return;
         }
         $newpw = substr(md5(date('mdYhs')), 0, 6);
         RegistrationData::ChangePassword($pilot->pilotid, $newpw);
         $this->set('firstname', $pilot->firstname);
         $this->set('lastname', $pilot->lastname);
         $this->set('newpw', $newpw);
         $message = Template::GetTemplate('email_lostpassword.tpl', true);
         Util::SendEmail($pilot->email, 'Password Reset', $message);
         $this->render('login_passwordreset.tpl');
     }
 }
Example #2
0
$RANKROWS = '';
while (list($i, $rank) = each($a_rank)) {
    // users for this rank
    if (isset($a_rank[$i - 1])) {
        $r_user = thwb_query("SELECT COUNT(userid) FROM {$pref}" . "user WHERE\n            userposts >= " . $rank['rankposts'] . " AND userposts < " . $a_rank[$i - 1]['rankposts']);
        list($rankusers) = mysql_fetch_row($r_user);
        $r_user = thwb_query("SELECT userid, username FROM {$pref}" . "user WHERE\n            userposts >= " . $rank['rankposts'] . " AND userposts < " . $a_rank[$i - 1]['rankposts'] . " ORDER BY userposts DESC LIMIT 1");
        $user = mysql_fetch_array($r_user);
    } else {
        $r_user = thwb_query("SELECT COUNT(userid) FROM {$pref}" . "user WHERE\n            userposts >= " . $rank['rankposts']);
        list($rankusers) = mysql_fetch_row($r_user);
        $r_user = thwb_query("SELECT userid, username FROM {$pref}" . "user WHERE\n            userposts >= " . $rank['rankposts'] . " ORDER BY userposts DESC LIMIT 1");
        $user = mysql_fetch_array($r_user);
    }
    if ($rank['rankimage']) {
        $rank['rankimage'] = '<img src="' . $rank['rankimage'] . '">';
    } else {
        $rank['rankimage'] = '&nbsp;';
    }
    $prozent = intval($rankusers / $usercount * 100);
    $width = intval($rankusers / $usercount * 120);
    if (!$width) {
        $width = 1;
    }
    $invwidth = 120 - $width;
    eval($Trankrow->GetTemplate('RANKROWS'));
}
$navpath .= 'Rang&uuml;bersicht';
eval($Trank->GetTemplate('CONTENT'));
eval($Tframe->GetTemplate());
Example #3
0
 /**
  * Write out a config file to the user, give the template name and
  *	the filename to save the template as to the user
  *
  * @param mixed $template_name Template to use for config (fspax_config.php)
  * @param mixed $save_as File to save as (xacars.ini)
  * @return mixed Nothing, sends the file to the user
  *
  */
 public function write_config($template_name, $save_as)
 {
     if (!Auth::LoggedIn()) {
         echo 'You are not logged in!';
         exit;
     }
     $this->set('pilotcode', PilotData::GetPilotCode(Auth::$pilot->code, Auth::$pilot->pilotid));
     $this->set('userinfo', Auth::$pilot);
     $this->set('pilot', Auth::$pilot);
     $acars_config = Template::GetTemplate($template_name, true);
     $acars_config = str_replace("\n", "\r\n", $acars_config);
     Util::downloadFile($acars_config, $save_as);
 }
Example #4
0
 /**
  * Reject the report, and then send them the comment
  * that was entered into the report
  */
 protected function reject_pirep_post()
 {
     $pirepid = $this->post->pirepid;
     $comment = $this->post->comment;
     if ($pirepid == '' || $comment == '') {
         return;
     }
     PIREPData::ChangePIREPStatus($pirepid, PIREP_REJECTED);
     // 2 is rejected
     $pirep_details = PIREPData::GetReportDetails($pirepid);
     // If it was previously accepted, subtract the flight data
     if (intval($pirep_details->accepted) == PIREP_ACCEPTED) {
         PilotData::UpdateFlightData($pirep_details->pilotid, -1 * floatval($pirep->flighttime), -1);
     }
     //PilotData::UpdatePilotStats($pirep_details->pilotid);
     RanksData::CalculateUpdatePilotRank($pirep_details->pilotid);
     PilotData::resetPilotPay($pirep_details->pilotid);
     StatsData::UpdateTotalHours();
     // Send comment for rejection
     if ($comment != '') {
         $commenter = Auth::$userinfo->pilotid;
         // The person logged in commented
         PIREPData::AddComment($pirepid, $commenter, $comment);
         // Send them an email
         $this->set('firstname', $pirep_details->firstname);
         $this->set('lastname', $pirep_details->lastname);
         $this->set('pirepid', $pirepid);
         $message = Template::GetTemplate('email_commentadded.tpl', true);
         Util::SendEmail($pirep_details->email, 'Comment Added', $message);
     }
     LogData::addLog(Auth::$userinfo->pilotid, 'Rejected PIREP #' . $pirepid);
     # Call the event
     CodonEvent::Dispatch('pirep_rejected', 'PIREPAdmin', $pirep_details);
 }
Example #5
0
} else {
    $user['userage'] = (int) $user['userage'];
}
if ($user['usericq'] == 0) {
    $user['usericq'] = "";
}
if ($config['showpostslevel'] == 0) {
    $user['userposts'] = "- (Vom Administrator deaktiviert)";
} elseif ($config['showpostslevel'] == 1 && $g_user['userid'] != $user['userid']) {
    if ($g_user['userisadmin']) {
        $user['userposts'] = '- (Versteckt)' . $style['smallfont'] . ' [Admin: Postcount = ' . $user['userposts'] . ' ]' . $style['smallfontend'];
    } else {
        $user['userposts'] = '- (Versteckt)';
    }
}
$user['useremail'] = get_email($user);
$user['username'] = parse_code($user['username']);
$user['userip'] = '';
if ($g_user['userisadmin']) {
    $r_online = thwb_query("SELECT onlineip FROM {$pref}" . "online WHERE userid='{$user['userid']}' AND onlinetime > " . (time() - $config['session_timeout']));
    if (mysql_num_rows($r_online) > 0) {
        $online = mysql_fetch_array($r_online);
        $user['userip'] = $style['smallfont'] . ' [Admin: IP = ' . $online['onlineip'] . ', Hostname = ' . gethostbyaddr($online['onlineip']) . ' ]' . $style['smallfontend'];
    }
}
$user['useraim'] = parse_code($user['useraim']);
$user['usermsn'] = parse_code($user['usermsn']);
$userurlname = rawurlencode($user['username']);
$navpath .= 'Profilansicht';
eval($Tprofile->GetTemplate("CONTENT"));
eval($Tframe->GetTemplate());
Example #6
0
$Tframe = new Template("templates/" . $style['styletemplate'] . "/frame.html");
$TTopics = new Template("templates/" . $style['styletemplate'] . "/markedlist.html");
$TTopicrow = new Template("templates/" . $style['styletemplate'] . "/markedrow.html");
if (!empty($do_delthreads) && $do_delthreads) {
    if (empty($delthreads) || !count($delthreads)) {
        message('Fehler', 'Sie m&uuml;ssen ein Thema ausw&auml;hlen.');
    }
    thwb_query("UPDATE " . $pref . "post SET postemailnotify='0' WHERE userid='" . $g_user['userid'] . "' AND threadid IN (" . join(',', $delthreads) . ")");
    message('Themen abbestellt', 'Die markierten Themen wurden abbestellt.');
}
$r_usermarkedthreads = thwb_query("SELECT DISTINCT threadid FROM " . $pref . "post WHERE postemailnotify = '1' AND userid = '" . $g_user['userid'] . "' GROUP BY threadid");
$i = 0;
$TOPICROWS = '';
if (!mysql_num_rows($r_usermarkedthreads)) {
    $TTopicrow = new Template('./templates/' . $style['styletemplate'] . '/board_nothreads.html');
    eval($TTopicrow->GetTemplate("TOPICROWS"));
} else {
    while ($a_thread = mysql_fetch_assoc($r_usermarkedthreads)) {
        $i % 2 > 0 ? $thisrowbg = $style['CellB'] : ($thisrowbg = $style['CellA']);
        $i++;
        $r_thread = mysql_query("SELECT threadid, threadauthor, threadtopic, threadviews, threadreplies, threadtime, boardid, threadlastreplyby FROM " . $pref . "thread WHERE threadid = '" . $a_thread['threadid'] . "'");
        if (mysql_num_rows($r_thread) != 0) {
            $thread = mysql_fetch_array($r_thread);
            $r_board = mysql_query("SELECT boardname FROM " . $pref . "board WHERE boardid = '" . $thread['boardid'] . "'");
            $board = mysql_fetch_array($r_board);
            $thread['threadtopic'] .= "<BR><span style=\"color:" . $style['color1'] . "\">" . $style['smallfont'] . "Forum: " . $board['boardname'] . $style['smallfontend'] . "</span>";
            $thread['threadtime'] = form_date($thread['threadtime']);
            eval($TTopicrow->GetTemplate("TOPICROWS"));
        } else {
            $usermarkedthreads = str_replace(";" . $threadid . ";", ";", $g_user['usermarkedthreads']);
            if (strlen($usermarkedthreads) == 1) {
Example #7
0
        $user['userlocation'] = chopstring(parse_code($user['userlocation']), 50);
        if ($user['userhomepage'] == "http://") {
            $user['userhomepage'] = '';
        }
        $user['userhomepage'] = parse_code($user['userhomepage']);
        $user['username'] = parse_code($user['username']);
        if ($config['showpostslevel'] != 2) {
            if (!$g_user['userisadmin']) {
                $user['userposts'] = 'n/a';
            }
        }
        $user['useremail'] = get_email($user, true);
        if ($user['userhomepage']) {
            $user['userhomepage'] = '<a href="' . str_replace('"', '', $user['userhomepage']) . '" target="_blank">' . chopstring($user['userhomepage'], 35) . "</a>";
        } else {
            $user['userhomepage'] = "&nbsp;";
        }
        if (!$user['usericq']) {
            $user['usericq'] = "&nbsp;";
        }
        if (!$user['userlocation']) {
            $user['userlocation'] = "&nbsp;";
        }
        eval($TMemberrow->GetTemplate("MEMBER_ROWS"));
        $i++;
    }
}
$search = str_replace('"', '&quot;', $search);
$navpath .= 'Mitgliederliste';
eval($TMemberlist->GetTemplate("CONTENT"));
eval($TFrame->GetTemplate());
Example #8
0
        ==============================================
          (c) 2000-2004 by ThWboard Development Group
          download the latest version:
            http://www.thwboard.de
          This  program is  free  software;  you can
          redistribute it and/or modify it under the
          terms of the GNU General Public License as
          published by the Free Software Foundation;
          either  version 2 of  the License,  or (at
          your option) any later version.
        ==============================================
*/
define('THWB_NOSESSION_PAGE', true);
include "./inc/header.inc.php";
if (!$P->has_permission(P_CEVENT)) {
    message('Fehlende Berechtigung', 'Fehler: Sie haben nicht die ben&ouml;tigte Berechtigung, um diese Seite zu ben&uuml;tzen.');
}
$Tframe = new Template("templates/" . $style['styletemplate'] . "/frame.html");
$Tnewevent = new Template("templates/" . $style['styletemplate'] . "/newcalendarentry.html");
$navpath .= 'Neuer Kalendereintrag';
$event['day'] = isset($day) ? $day : '';
$event['month'] = isset($month) ? $month : '';
$event['year'] = isset($year) ? $year : '';
if (!isset($event['subject'])) {
    $event['subject'] = '';
}
if (!isset($event['text'])) {
    $event['text'] = '';
}
eval($Tnewevent->GetTemplate('CONTENT'));
eval($Tframe->GetTemplate());
Example #9
0
 /**
  * Show the notification that an update is available
  */
 public function CheckForUpdates()
 {
     if (Config::Get('CHECK_RELEASE_VERSION') == true) {
         $key = 'PHPVMS_LATEST_VERSION';
         $feed = CodonCache::read($key);
         if ($feed === false) {
             $url = Config::Get('PHPVMS_API_SERVER') . '/version/get/json/';
             # Default to fopen(), if that fails it'll use CURL
             $file = new CodonWebService();
             $contents = @$file->get($url);
             # Something should have been returned
             if ($contents == '') {
                 $msg = '<br /><b>Error:</b> The phpVMS update server could not be contacted. 
 						Check to make sure allow_url_fopen is set to ON in your php.ini, or 
 						that the cURL module is installed (contact your host).';
                 $this->set('latestnews', $msg);
                 return;
             }
             #$xml = @simplexml_load_string($contents);
             $message = json_decode($contents);
             if (!$message) {
                 $msg = '<br /><b>Error:</b> There was an error retrieving news. It may be temporary.
 						Check to make sure allow_url_fopen is set to ON in your php.ini, or 
 						that the cURL module is installed (contact your host).';
                 $this->set('latestnews', $msg);
                 return;
             }
             CodonCache::write($key, $message, 'medium_well');
         }
         if (Config::Get('CHECK_BETA_VERSION') == true) {
             $latest_version = $message->betaversion;
         } else {
             $latest_version = $message->version;
         }
         # GET THE VERSION THAT'S THE LATEST AVAILABLE
         preg_match('/^[v]?(.*)-([0-9]*)-(.*)/', $latest_version, $matches);
         list($FULL_VERSION_STRING, $full_version, $revision_count, $hash) = $matches;
         preg_match('/([0-9]*)\\.([0-9]*)\\.([0-9]*)/', $full_version, $matches);
         list($full, $major, $minor, $revision) = $matches;
         $latest_version = $major . $minor . ($revision + $revision_count);
         # GET THE CURRENT VERSION INFO INSTALLED
         $installed_version = PHPVMS_VERSION;
         preg_match('/^[v]?(.*)-([0-9]*)-(.*)/', $installed_version, $matches);
         list($FULL_VERSION_STRING, $full_version, $revision_count, $hash) = $matches;
         preg_match('/([0-9]*)\\.([0-9]*)\\.([0-9]*)/', $full_version, $matches);
         list($full, $major, $minor, $revision) = $matches;
         $installed_version = $major . $minor . ($revision + $revision_count);
         #echo "CURRVERSION : $installed_version<br>AVAILVERSION: $latest_version<br>";
         if ($installed_version < $latest_version) {
             if (Config::Get('CHECK_BETA_VERSION') == true) {
                 $this->set('message', 'Beta version ' . $message->betaversion . ' is available for download!');
             } else {
                 $this->set('message', 'Version ' . $message->version . ' is available for download! Please update ASAP');
             }
             $this->set('updateinfo', Template::GetTemplate('core_error.php', true));
         }
         /* Retrieve latest news from Feedburner RSS, in case the phpVMS site is down
          */
         $key = 'PHPVMS_NEWS_FEED';
         $feed_contents = CodonCache::read($key);
         if ($feed_contents === false) {
             $feed_contents = $file->get(Config::Get('PHPVMS_NEWS_FEED'));
             CodonCache::write($key, $feed_contents, 'medium_well');
         }
         $i = 1;
         $count = 5;
         $contents = '';
         $feed = simplexml_load_string($feed_contents);
         foreach ($feed->channel->item as $news) {
             $news_content = (string) $news->description;
             $guid = (string) $news->guid;
             $title = (string) $news->title;
             $date_posted = str_replace('-0400', '', (string) $news->pubDate);
             $contents .= "<div class=\"newsitem\">";
             $contents .= '<a href="' . $guid . '"><b>' . $title . '</b></a><br />';
             $contents .= $news_content;
             $contents .= '<br /><br />Posted: ' . $date_posted;
             $contents .= '</div>';
             if ($i++ == $count) {
                 break;
             }
         }
         $this->set('phpvms_news', $contents);
         if (Config::Get('VACENTRAL_ENABLED') == true) {
             /* Get the latest vaCentral News */
             $contents = $file->get(Config::Get('VACENTRAL_NEWS_FEED'));
             $feed = simplexml_load_string($contents);
             $contents = '';
             $i = 1;
             $count = 5;
             // Show the last 5
             foreach ($feed->channel->item as $news) {
                 $news_content = (string) $news->description;
                 $date_posted = str_replace('-0400', '', (string) $news->pubDate);
                 $contents .= "<div class=\"newsitem\">\n\t\t\t\t\t\t\t\t\t<b>{$news->title}</b> {$news_content}\n\t\t\t\t\t\t\t\t\t<br /><br />\n\t\t\t\t\t\t\t\t\tPosted: {$date_posted}\n\t\t\t\t\t\t\t\t</div>";
                 if ($i++ == $count) {
                     break;
                 }
             }
             $this->set('vacentral_news', $contents);
         }
     }
 }
Example #10
0
    }
}
// Fetching all events...
$a_events = array();
$r_events = thwb_query("SELECT * FROM " . $pref . "calendar\n    WHERE eventtime>='{$year}-{$month}-01' AND eventtime<='{$year}-{$month}-{$lastday}'\n    AND eventactive='1'\n    ORDER BY eventtime, eventtext");
while ($event = mysql_fetch_array($r_events)) {
    $a_events[intval(substr($event['eventtime'], 8, 2)) - 1][] = $event;
}
// Creating Eventbox
$eventbox = '';
$r_calendar = mysql_query("SELECT eventid, eventtime, eventsubject FROM " . $pref . "calendar WHERE eventtime >= '{$a_current['year']}-{$a_current['month']}-{$a_current['day']}' ORDER BY eventtime LIMIT 1");
if (mysql_num_rows($r_calendar) > 0) {
    $calendar = mysql_fetch_array($r_calendar);
    $calendar['eventtime'] = make_date($calendar['eventtime']);
    $calendar['eventsubject'] = parse_code($calendar['eventsubject']);
    eval($Tcaleventbox->GetTemplate('eventbox'));
}
$boxcount = $lastday + $firstday - 1;
if ($boxcount % 7 > 0) {
    $boxcount += 7 - $boxcount % 7;
}
$calendar = '<tr>';
for ($i = 1; $i <= $boxcount; $i++) {
    $userbday = '';
    $events = '';
    if ($i < $firstday || $i >= $lastday + $firstday) {
        eval($Tcalrow_empty->GetTemplate('calendar'));
    } else {
        $thisday = $i + 1 - $firstday;
        if (isset($a_birthdays[$thisday - 1])) {
            $userbday = implode($a_birthdays[$thisday - 1], ',<br>');
Example #11
0
        $a_stats['admin_board_text'] = $a_stats['admin_kategorien_text'] = $a_stats['admin_themen_text'] = $a_stats['admin_views_text'] = $a_stats['admin_beitrag_text'] = '';
    }
    // create $a_stats['admins']
    $r_stats = thwb_query("SELECT userid, username FROM " . $pref . "user WHERE userisadmin = 1 AND usernodelete = 0 ORDER BY username ASC");
    $a_stats['admins'] = '';
    while ($datarow = mysql_fetch_array($r_stats)) {
        $a_stats['admins'] .= '<a href="v_profile.php?userid=' . $datarow['userid'] . '" target="_blank">' . $datarow['username'] . '</a>, ';
    }
    $a_stats['admins'] = substr($a_stats['admins'], 0, -2);
    mysql_free_result($r_stats);
    unset($datarow);
    // create $a_stats['uradmins']
    $r_stats = thwb_query("SELECT userid, username FROM " . $pref . "user WHERE userisadmin = 1 AND usernodelete = 1 ORDER BY username ASC");
    $a_stats['uradmins'] = '';
    while ($datarow = mysql_fetch_array($r_stats)) {
        $a_stats['uradmins'] .= '<a href="' . build_link('v_profile.php?userid=' . $datarow['userid']) . '" target="_blank">' . $datarow['username'] . '</a>, ';
    }
    $a_stats['uradmins'] = substr($a_stats['uradmins'], 0, -2);
    mysql_free_result($r_stats);
    unset($datarow);
    // create $a_stats['newmember']
    $r_stats = thwb_query("SELECT userid, username FROM " . $pref . "user ORDER BY userjoin DESC LIMIT 5");
    $a_stats['newmember'] = '';
    while ($datarow = mysql_fetch_array($r_stats)) {
        $a_stats['newmember'] .= '<a href="' . build_link('v_profile.php?userid=' . $datarow['userid']) . '" target="_blank">' . $datarow['username'] . '</a>, ';
    }
    $a_stats['newmember'] = substr($a_stats['newmember'], 0, -2);
    mysql_free_result($r_stats);
    unset($datarow);
    eval($t_stats->GetTemplate('stats'));
}
Example #12
0
$style['stdfont'] = '<span class="stdfont">';
$style['stdfontend'] = '</span>';
/*
################################################################################
Quicklinks[hack] By Morpheus
################################################################################
*/
$quicklinks = '';
$t_quicklinks = '';
if ($config['enable_quicklinks']) {
    $TQuicklinks = new Template('./templates/' . $style['styletemplate'] . '/quicklinks.html');
    $r_qlink = thwb_query("SELECT linkid, linkalt, linkcaption FROM " . $pref . "qlink");
    while ($qlink = mysql_fetch_array($r_qlink)) {
        $quicklinks .= "<A HREF=\"qlinks.php?id={$qlink['linkid']}\" title=\"{$qlink['linkalt']}\" target=_blank>[ {$qlink['linkcaption']} ]</a> ";
    }
    eval($TQuicklinks->GetTemplate("t_quicklinks"));
}
/*
################################################################################
            permissions
################################################################################
*/
global $P;
if (isset($board['boardid'])) {
    $P = new Permission($g_user['groupids'], $board['boardid']);
    requires_permission(P_VIEW);
} else {
    $P = new Permission($g_user['groupids']);
}
/*
################################################################################
Example #13
0
    /**
     * Show the notification that an update is available
     */
    public function CheckForUpdates()
    {
        if (Config::Get('CHECK_RELEASE_VERSION') == true) {
            $url = Config::Get('PHPVMS_API_SERVER') . '/version/get/xml/' . PHPVMS_VERSION;
            # Default to fopen(), if that fails it'll use CURL
            $file = new CodonWebService();
            $contents = @$file->get($url);
            # Something should have been returned
            if ($contents == '') {
                $msg = '<br /><b>Error:</b> The phpVMS update server could not be contacted. 
						Check to make sure allow_url_fopen is set to ON in your php.ini, or 
						that the cURL module is installed (contact your host).';
                $this->set('latestnews', $msg);
                return;
            }
            $xml = @simplexml_load_string($contents);
            if (!$xml) {
                $msg = '<br /><b>Error:</b> There was an error retrieving news. It may be temporary.
						Check to make sure allow_url_fopen is set to ON in your php.ini, or 
						that the cURL module is installed (contact your host).';
                $this->set('latestnews', $msg);
                return;
            }
            $version = $xml->version;
            if (Config::Get('CHECK_BETA_VERSION') == true) {
                $version = $xml->betaversion;
            }
            $postversion = intval(str_replace('.', '', trim($version)));
            $currversion = intval(str_replace('.', '', PHPVMS_VERSION));
            if ($currversion < $postversion) {
                if (Config::Get('CHECK_BETA_VERSION') == true) {
                    $this->set('message', 'A beta version ' . $version . ' is available for download!');
                } else {
                    $this->set('message', 'Version ' . $version . ' is available for download! Please update ASAP');
                }
                $this->set('updateinfo', Template::GetTemplate('core_error.tpl', true));
            }
            /* Retrieve latest news from Feedburner RSS, in case the phpVMS site is down
             */
            $contents = $file->get(Config::Get('PHPVMS_NEWS_FEED'));
            $feed = simplexml_load_string($contents);
            $contents = '';
            $i = 1;
            $count = 5;
            // Show the last 5
            foreach ($feed->channel->item as $news) {
                $news_content = (string) $news->description;
                $date_posted = str_replace('-0400', '', (string) $news->pubDate);
                $contents .= "<div class=\"newsitem\">\n\t\t\t\t\t\t\t\t<b>{$news->title}</b> <br />{$news_content}\n\t\t\t\t\t\t\t\t<br /><br />\n\t\t\t\t\t\t\t\tPosted: {$date_posted}\n\t\t\t\t\t\t\t</div>";
                if ($i++ == $count) {
                    break;
                }
            }
            $this->set('phpvms_news', $contents);
            if (Config::Get('VACENTRAL_ENABLED') == true) {
                /* Get the latest vaCentral News */
                $contents = $file->get(Config::Get('VACENTRAL_NEWS_FEED'));
                $feed = simplexml_load_string($contents);
                $contents = '';
                $i = 1;
                $count = 5;
                // Show the last 5
                foreach ($feed->channel->item as $news) {
                    $news_content = (string) $news->description;
                    $date_posted = str_replace('-0400', '', (string) $news->pubDate);
                    $contents .= "<div class=\"newsitem\">\n\t\t\t\t\t\t\t\t\t<b>{$news->title}</b> {$news_content}\n\t\t\t\t\t\t\t\t\t<br /><br />\n\t\t\t\t\t\t\t\t\tPosted: {$date_posted}\n\t\t\t\t\t\t\t\t</div>";
                    if ($i++ == $count) {
                        break;
                    }
                }
                $this->set('vacentral_news', $contents);
            }
        }
    }
Example #14
0
          your option) any later version.
        ==============================================
*/
include "./inc/header.inc.php";
if (!$config['allowregister']) {
    $navpath .= "User Registrierung &raquo; Fehler";
    message('Registrierung nicht m&ouml;lich!', 'Eine Registrierung ist derzeit leider nicht m&ouml;lich.<br>Bitte versuchen Sie es zu einem sp&auml;teren Zeitpunkt erneut.');
}
if ($g_user['userid']) {
    $navpath .= 'User Registrierung';
    message('Fehler', 'Sie sind bereits registriert.<br>Eine weitere Registrierung ist deshalb nicht m&ouml;glich.');
}
if (is_flooding(FLOOD_REGISTER)) {
    message('Fehler', 'IP wegen ' . $config['flood_login_count'] . ' Registrierungen f&uuml;r ' . $config['flood_login_timeout'] . ' Minuten gesperrt.');
}
if (!isset($accept) || !$accept) {
    $rules = '';
    $TRules = new Template('templates/' . $style['styletemplate'] . '/forumrules.html');
    eval($TRules->GetTemplate("rules"));
    $navpath .= "User Registrierung";
    message("Forumregeln", $rules, 0, 0);
} else {
    $Tframe = new Template("templates/" . $style['styletemplate'] . "/frame.html");
    $Tregform = new Template("templates/" . $style['styletemplate'] . "/register.html");
    $passwordfield = '';
    $navpath .= "User Registrierung &raquo; Dateneingabe";
    $TPasswordfield = new Template('./templates/' . $style['styletemplate'] . '/register_pwdfield.html');
    eval($TPasswordfield->GetTemplate('passwordfield'));
    eval($Tregform->GetTemplate("CONTENT"));
    eval($Tframe->GetTemplate());
}
Example #15
0
}
if ($config["usebwordprot"] >= BWORD_POST) {
    $post["posttext"] = check_banned($post["posttext"]);
}
if (isset($config['auto_close']) && $config['auto_close'] > 0) {
    thwb_query("UPDATE  " . $pref . "thread SET threadclosed = '1' WHERE threadtime < '" . (time() - ($config['auto_close'] + 1) * 86400) . "'");
}
if (isset($config['auto_delete']) && $config['auto_delete'] > 0) {
    thwb_query("DELETE FROM " . $pref . "thread WHERE threadtime < " . (time() - $config['auto_delete'] * 86400) . "");
}
// neue nachricht posten
thwb_query("INSERT INTO " . $pref . "post (posttime, posttext, userid, threadid, postemailnotify, postsmilies, postcode, postip, postguestname)\n    VALUES('{$ctime}',\n    '" . addslashes(preparse_code($post['posttext'])) . "',\n    '{$g_user['userid']}',\n    '{$thread['threadid']}',\n    '" . ($post['postemailnotify'] ? 1 : 0) . "',\n    '" . ($post['postsmilies'] ? 1 : 0) . "',\n    '" . ($post['postcode'] ? 1 : 0) . "',\n    '" . addslashes($REMOTE_ADDR) . "',\n    '" . $post['postguestname'] . "')");
// Replys um 1 erh&ouml;hen in der board datenbank
thwb_query("UPDATE " . $pref . "board SET\n    boardlastpost='{$ctime}',\n    boardposts=boardposts+1,\n    boardlastpostby='" . addslashes($g_user['username']) . "',\n    boardthreadtopic='" . addslashes($thread['threadtopic']) . "',\n    boardthreadid={$thread['threadid']} WHERE boardid='{$board['boardid']}'");
if ($g_user['userid']) {
    // Den postings wert des postenden users erh&ouml;hen
    thwb_query("UPDATE " . $pref . "user SET userlastpost={$ctime}, userposts=userposts+1 WHERE userid='{$g_user['userid']}'");
}
// Replys um 1 erh&ouml;hen in der topic datenbank + time aktualisieren
thwb_query("UPDATE " . $pref . "thread SET threadtime='{$ctime}', threadreplies=threadreplies+1,\n    threadlastreplyby='" . addslashes($g_user['username']) . "' WHERE threadid='{$thread['threadid']}'");
// email zeug
if ($config['use_email']) {
    $TRegmail = new Template("./templates/mail/newreply.mail");
    $r_email = thwb_query("SELECT DISTINCT\n        user.useremail as useremail, thread.threadtopic as threadtopic\n    FROM\n        " . $pref . "post as post, " . $pref . "user as user, " . $pref . "thread as thread\n    WHERE\n        thread.threadid={$thread['threadid']} AND\n        post.threadid={$thread['threadid']} AND\n        post.userid=user.userid AND\n        post.postemailnotify=1 AND\n        user.userid<>{$g_user['userid']}");
    while ($email = mysql_fetch_array($r_email)) {
        $text = '';
        eval($TRegmail->GetTemplate("text"));
        @mail($email['useremail'], $config['board_name'] . " - Neue Antwort", $text, "From: {$config['board_admin']}");
    }
}
header("Location: " . build_link("showtopic.php?threadid={$thread['threadid']}&time={$time}&pagenum=lastpage#bottom", true));
Example #16
0
function message_redirect($msg, $url)
{
    global $style;
    header("Location: http://{$_SERVER['HTTP_HOST']}/{$url}");
    $TRedirect = new Template('templates/' . $style['styletemplate'] . '/redirect.html');
    eval($TRedirect->GetTemplate());
    exit;
}
Example #17
0
<?php

/*
          ThWboard - PHP/MySQL Bulletin Board System
        ==============================================
            (c) 2000-2004-2002 by
          download the latest version:
            http://www.thwboard.de
          This  program is  free  software;  you can
          redistribute it and/or modify it under the
          terms of the GNU General Public License as
          published by the Free Software Foundation;
          either  version 2 of  the License,  or (at
          your option) any later version.
        ==============================================
*/
define('THWB_NOSESSION_PAGE', true);
require './inc/header.inc.php';
$a_pages = array('index' => 'H&auml;ufig gestellte Fragen', 'format' => 'Formatierung und Smilies', 'page1' => 'Benutzerfunktionen', 'page2' => 'Generelle Boardbenutzung', 'page3' => 'Lesen und Schreiben von Nachrichten');
if (!isset($page) || !file_exists('./templates/' . $style['styletemplate'] . '/faq_' . $page . '.html') || !isset($a_pages[$page])) {
    $page = "index";
}
$Tframe = new Template('./templates/' . $style['styletemplate'] . '/frame.html');
$Tfaq = new Template('templates/' . $style['styletemplate'] . '/faq_' . $page . '.html');
$navpath .= '<a class="bglink" href="' . build_link("help.php") . '">FAQ</a> &raquo; ' . $a_pages[$page];
eval($Tfaq->GetTemplate("CONTENT"));
eval($Tframe->GetTemplate());
Example #18
0
}
function getactiveusers()
{
    global $pref;
    $r_user = thwb_query("SELECT count(userid) AS usercount FROM " . $pref . "user WHERE userlastpost > " . (time() - 60 * 60 * 24 * 31));
    $user = mysql_fetch_array($r_user);
    return $user['usercount'];
}
$Tframe = new Template("templates/" . $style['styletemplate'] . "/frame.html");
$Tindex = new Template("templates/" . $style['styletemplate'] . "/main.html");
$Tcategory = new Template("templates/" . $style['styletemplate'] . "/categoryrow.html");
$Tboard = new Template("templates/" . $style['styletemplate'] . "/forumrow.html");
$lastthreads = '';
if ($config['uselastthreads']) {
    $Tlastthreads = new Template('templates/' . $style['styletemplate'] . '/lastthreads.html');
    eval($Tlastthreads->GetTemplate('lastthreads'));
}
if (isset($category['categoryid']) && $category['categoryid']) {
    $onlycat = ", (categoryid = '" . intval($category['categoryid']) . "') AS display";
} else {
    $onlycat = '';
}
// category _
$r_category = thwb_query("SELECT categoryid, categoryname" . "{$onlycat} FROM\n    " . $pref . "category ORDER BY categoryorder ASC");
$a_lastvisited = array();
// lastvisited
if ($g_user['userid']) {
    $r_lastvisited = thwb_query("SELECT boardid, lastvisitedtime FROM " . $pref . "lastvisited WHERE userid={$g_user['userid']}");
    while ($lastvisited = mysql_fetch_array($r_lastvisited)) {
        $a_lastvisited[$lastvisited['boardid']] = $lastvisited['lastvisitedtime'];
    }
Example #19
0
        eval($Tavatarpre->GetTemplate("AVATRAPRE"));
    }
    if ($config['useravatar'] == 2 || $config['useravatar'] == 3) {
        if ($config['useravatar'] == 3) {
            $alter = '<br>' . $style['smallfont'] . 'Alternative Avatarquelle des Benutzers:' . $style['smallfontend'] . '<br>';
            $alt_message = ' oder um die vorinstallierte Avatar Auswahl zu aktivieren';
            if (!isset($isinstal) || !$isinstal) {
                $avatarentry = $user['useravatar'];
            } else {
                $avatarentry = '';
            }
        } else {
            $alter = $alt_message = '';
            $avatarentry = $user['useravatar'];
        }
        eval($Tavatarop->GetTemplate('AVATRAOP'));
    }
    eval($Tavatarrow->GetTemplate('AVATRAROW'));
} else {
    $AVATRAROW = '';
}
if ($user['userhomepage'] == '') {
    $user['userhomepage'] = 'http://';
}
if (!isset($user['usericq']) || $user['usericq'] == 0) {
    $user['usericq'] = "";
}
if (!isset($user['userage']) || $user['userage'] == 0) {
    $user['userage'] = "";
}
if ($user['userhidesig'] == 1) {
Example #20
0
    $a_group[] = $group;
    $group_ids .= "OR INSTR(groupids, ',{$group['groupid']},')>0 ";
}
$group_ids = substr($group_ids, 3);
$TEAMROWS = '';
$r_user = thwb_query("SELECT userid, username, useremail, userhideemail, usertitle, userinvisible, groupids FROM {$pref}" . "user WHERE {$group_ids} ORDER BY username ASC");
while ($user = mysql_fetch_array($r_user)) {
    $user['username'] = parse_code($user['username']);
    if ($user['usertitle']) {
        $user['userlevel'] = $user['usertitle'];
    } else {
        // group titling..
        reset($a_group);
        while (list(, $group) = each($a_group)) {
            if (strstr($user['groupids'], ',' . $group['groupid'] . ',')) {
                $user['userlevel'] = $group['title'];
                break;
            }
        }
    }
    $user['useremail'] = get_email($user, true);
    if (isset($a_online[$user['userid']]) && $user['userinvisible'] != 1) {
        $user['userisonline'] = 'Ja';
    } else {
        $user['userisonline'] = 'Nein';
    }
    eval($TRow->GetTemplate("TEAMROWS"));
}
$navpath .= 'Forumstaff';
eval($TTeam->GetTemplate("CONTENT"));
eval($TFrame->GetTemplate());
Example #21
0
 public static function SendEmailConfirm($email, $firstname, $lastname, $newpw = '')
 {
     /*$firstname = Vars::POST('firstname');
       $lastname = Vars::POST('lastname');
       $email = Vars::POST('email');*/
     $confid = self::$salt;
     $subject = SITE_NAME . ' Registration';
     Template::Set('firstname', $firstname);
     Template::Set('lastname', $lastname);
     Template::Set('confid', $confid);
     $message = Template::GetTemplate('email_registered.tpl', true);
     //email them the confirmation
     Util::SendEmail($email, $subject, $message);
 }
Example #22
0
     $name = array();
     $value = array();
     $a_posters = array();
     $i = 0;
     $r_posters = thwb_query("SELECT userid, username, userposts FROM {$pref}" . "user ORDER BY userposts DESC LIMIT 10");
     while ($a_posters = mysql_fetch_array($r_posters)) {
         $name[$i] = '<a href="' . build_link('v_profile.php?userid=' . $a_posters['userid']) . '">' . $a_posters['username'] . '</a>';
         $value[$i] = $a_posters['userposts'];
         $i++;
     }
     for (; $i <= 9; $i++) {
         $name[$i] = 'n/a';
         $value[$i] = 'n/a';
     }
     mysql_free_result($r_posters);
     eval($TRow->GetTemplate("stats_top10_row"));
     $stats_top10_row .= "<br>";
 }
 /** top 10 boards **/
 $data['title'] = 'Top 10 Boards (nach Posts)';
 $name = array();
 $value = array();
 $a_boards = array();
 $i = 0;
 $r_boards = thwb_query("SELECT b.boardid, b.boardname, b.boardposts, c.categoryname FROM {$pref}" . "board AS b LEFT OUTER JOIN {$pref}" . "category AS c ON c.categoryid = b.categoryid ORDER BY boardposts DESC LIMIT 10");
 while ($a_boards = mysql_fetch_array($r_boards)) {
     $P->set_boardid($a_boards['boardid']);
     if (!$P->has_permission(P_VIEW)) {
         continue;
     }
     $name[$i] = '<a href="' . build_link('board.php?boardid=' . $a_boards['boardid']) . '">' . $a_boards['boardname'] . '</a>' . ' (Kategorie: ' . $a_boards['categoryname'] . ')';
Example #23
0
// Hier kann die maximale Anzahl der Avatar-Bilder pro
// Zeile eingestellt werden, einfach die vorgegebene
// Nummer durch die gewünschte Zahl ersetzen:
$maxpics = 5;
// ===================================================
define('THWB_NOSESSION_PAGE', true);
include "./inc/header.inc.php";
$navpath .= 'Alle Avatare auflisten';
$Tframe = new Template("templates/" . $style['styletemplate'] . "/frame.html");
$Tavatar = new Template("templates/" . $style['styletemplate'] . "/listavatar.html");
if (isset($sortbyname) && $sortbyname) {
    $avatar_sort = "{$style['stdfont']}<a href=\"" . build_link("listavatar.php") . "\">Nach Avatar-Nummer sortieren</a>{$style['stdfontend']}";
    $orderby = "avatarname";
} else {
    $avatar_sort = "{$style['stdfont']}<a href=\"" . build_link("listavatar.php?sortbyname=1") . "\">Nach Namen sortieren</a>{$style['stdfontend']}";
    $orderby = "avatarid";
}
$start = $e = 0;
$r_avatar = thwb_query("SELECT avatarid, avatarname, avatarurl FROM " . $pref . "avatar ORDER BY {$orderby}");
$avatar_rows = '';
while ($avatar_data = mysql_fetch_array($r_avatar)) {
    $start++;
    $avatar_rows .= "<td" . ($e % 2 == 0 ? ' bgcolor="' . $style['CellA'] . '"' : ' bgcolor="' . $style['CellB'] . '"') . "><img src=\"{$avatar_data['avatarurl']}\" border=\"0\"><br><b>" . $style['smallfont'] . "{$avatar_data['avatarid']}. {$avatar_data['avatarname']}</font></b></td>\n";
    if ($start == $maxpics) {
        $avatar_rows .= "</tr><tr>";
        $start = 0;
        $e++;
    }
}
eval($Tavatar->GetTemplate("CONTENT"));
eval($Tframe->GetTemplate());
Example #24
0
                $pic['start_sentence'] = "Achtung: Alle Nachrichten, die älter sind als ".$config['pmalive']." Tage werden automatisch gelöscht";
            }
            else
            {
                $pic['start_sentence'] = "Bitte achten Sie auf das Nachrichtenlimit. Sollte ihr Konto überfüllt sein, können Sie keine Nachrichten mehr empfangen.";
            }
            if ( $diskquota == 0 )
            {
                $pic['imageline'] = "&nbsp;";
            }
            elseif ( $diskquota < 25 )
            {
                $pic['start_width'] = 10;
                $pic['end_width'] = 10;
                $pic['middle_width'] = (300*($diskquota/100))-($pic['start_width']+$pic['end_width']);
            }
            else
            {
                $pic['start_width'] = 29;
                $pic['end_width'] = 29;
                $pic['middle_width'] = (300*($diskquota/100))-($pic[start_width]+$pic[end_width]);
            }
            $Tquota = new Template("templates/" . $style['styletemplate'] . "/pmquota.html");
            eval($Tquota->GetTemplate("QUOTA"));
        }*/
    // Initiating Template
    $Tpm = new Template("templates/" . $style['styletemplate'] . "/pm.html");
    $navpath .= 'Privatnachrichten &Uuml;bersicht';
    eval($Tpm->GetTemplate("CONTENT"));
    eval($TFrame->GetTemplate());
}
Example #25
0
<?php

/*
          ThWboard - PHP/MySQL Bulletin Board System
        ==============================================
          (c) 2000-2004 by ThWboard Development Group
          download the latest version:
            http://www.thwboard.de
          This  program is  free  software;  you can
          redistribute it and/or modify it under the
          terms of the GNU General Public License as
          published by the Free Software Foundation;
          either  version 2 of  the License,  or (at
          your option) any later version.
        ==============================================
*/
include "./inc/header.inc.php";
$navpath .= "Passwort vergessen";
if ($config['use_email']) {
    $Tframe = new Template("templates/" . $style['styletemplate'] . "/frame.html");
    $Tsendform = new Template("templates/" . $style['styletemplate'] . "/send_password.html");
    eval($Tsendform->GetTemplate("CONTENT"));
    eval($Tframe->GetTemplate());
} else {
    message('Sorry', 'Der Forumadministrator hat diese Funktion leider deaktiviert. Wenn Sie Ihr Passwort vergessen haben, wenden
        Sie sich bitte an den <a href="mailto:' . $config['board_admin'] . '">Forumadministrator</a>.');
}
Example #26
0
    } else {
        $replytext = '';
    }
    if ($config['smilies']) {
        $smilies_on_off = "AN";
    } else {
        $smilies_on_off = "AUS";
    }
    if ($config['use_email']) {
        $notifyavailable = '';
    } else {
        $notifyavailable = ' (Derzeit nicht verf&uuml;gbar)';
    }
    if ($g_user['userid']) {
        $replyusername = "******"" . build_link('logout.php?uid=' . $g_user['userid']) . "\">Logout</a> ]{$style['smallfontend']}";
    } else {
        if ($g_user['userid'] == 0 && $P->has_permission(P_REPLY)) {
            $replyusername = '******' . $style['smallfont'] . ' (Minimal ' . $config['min_usernamelength'] . ', maximal ' . $config['max_usernamelength'] . ' Zeichen, keine Sonderzeichen) <b>Das Forum speichert ihre IP-Addresse!</b>' . $style['smallfontend'];
        } else {
            $replyusername = '';
        }
    }
    $Treply = new Template("./templates/" . $style['styletemplate'] . "/replyform.html");
    eval($Treply->GetTemplate("REPLYFORM"));
}
thwb_query("UPDATE " . $pref . "thread SET threadviews=threadviews+1 WHERE threadid='{$thread['threadid']}'");
$JUMP_MENU = jumpmenu($board['boardid']);
$navpath .= 'Threadansicht';
$titleprepend = htmlspecialchars($thread['threadtopic']) . ' - ';
eval($Tpostings->GetTemplate("CONTENT"));
eval($Tframe->GetTemplate());
Example #27
0
 protected function write_template($name, $save_as)
 {
     $this->set('pilotcode', PilotData::GetPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid));
     $this->set('userinfo', Auth::$userinfo);
     $acars_config = Template::GetTemplate($name, true);
     $acars_config = str_replace("\n", "\r\n", $acars_config);
     Util::downloadFile($acars_config, $save_as);
     return;
     # Set the headers so the browser things a file is being sent
     header('Content-Type: text/plain');
     header('Content-Disposition: attachment; filename="' . $save_as . '"');
     header('Content-Length: ' . strlen($acars_config));
     echo $acars_config;
 }
Example #28
0
          published by the Free Software Foundation;
          either  version 2 of  the License,  or (at
          your option) any later version.
        ==============================================
*/
define('THWB_NOSESSION_PAGE', true);
function format_db_date($string_date)
{
    if ($string_date == '') {
        $output = "<B>Error :</B> Bad Time String !";
    } else {
        $output = substr($string_date, 8, 2) . "." . substr($string_date, 5, 2) . "." . substr($string_date, 0, 4);
    }
    return $output;
}
include "./inc/header.inc.php";
$Tshowevent = new Template("templates/" . $style['styletemplate'] . "/showevent.html");
if (!isset($event['eventtime']) || !isset($event['eventsubject']) || !isset($event['eventtext'])) {
    die("denied.");
}
// Searching Event
$r_calendar = mysql_query("SELECT calendar.*, user.username FROM " . $pref . "calendar AS calendar LEFT JOIN " . $pref . "user AS user ON calendar.userid=user.userid WHERE eventid = '" . addslashes($event) . "'");
$calendar = mysql_fetch_array($r_calendar);
if ($calendar['userid'] > 0) {
    $calendar['user'] = "******"" . build_link("v_profile.php?user[userid]={$calendar['userid']}") . "\" target=\"_blank\">" . parse_code($calendar['username']) . "</a>{$style['smallfontend']}";
}
$calendar['eventtime'] = format_db_date($calendar['eventtime']);
$calendar['eventsubject'] = parse_code($calendar['eventsubject']);
$calendar['eventtext'] = parse_code($calendar['eventtext'], 1, 1, 1);
eval($Tshowevent->GetTemplate());
Example #29
0
 /**
  * Reject the report, and then send them the comment
  * that was entered into the report
  */
 protected function reject_pirep_post()
 {
     $pirepid = $this->post->pirepid;
     $comment = $this->post->comment;
     if ($pirepid == '' || $comment == '') {
         return;
     }
     PIREPData::changePIREPStatus($pirepid, PIREP_REJECTED);
     // 2 is rejected
     $pirep_details = PIREPData::getReportDetails($pirepid);
     // Send comment for rejection
     if ($comment != '') {
         $commenter = Auth::$userinfo->pilotid;
         // The person logged in commented
         PIREPData::AddComment($pirepid, $commenter, $comment);
         // Send them an email
         $this->set('firstname', $pirep_details->firstname);
         $this->set('lastname', $pirep_details->lastname);
         $this->set('pirepid', $pirepid);
         $message = Template::GetTemplate('email_commentadded.tpl', true);
         Util::SendEmail($pirep_details->email, 'Comment Added', $message);
     }
     LogData::addLog(Auth::$userinfo->pilotid, 'Rejected PIREP #' . $pirepid);
     # Call the event
     CodonEvent::Dispatch('pirep_rejected', 'PIREPAdmin', $pirep_details);
 }
Example #30
0
    if ($bm) {
        message('Ung&uuml;ltige E-Mailadresse', 'Die von Ihnen gew&auml;hlte E-Mailadresse ist leider nicht erlaubt.');
    }
}
if (isset($errmsg) && strlen($errmsg) > 0) {
    message("Fehler", "Es sind leider folgende Fehler aufgetreten:<br><br><font color='{$style['color_err']}'>{$errmsg}</font>");
}
// ready to register
if ($register['userpassword'] != $register['userpassword2']) {
    message('Fehler', 'Das Passwort und die Passwortwiederholung unterscheiden sich, bitte &uuml;berpr&uuml;fen Sie ihre Angaben.');
}
if (!$register['userpassword']) {
    message('Fehler', 'Bitte geben Sie ein Passwort an');
}
$time = time();
$register['hash'] = md5($time);
thwb_query("INSERT INTO " . $pref . "user (username, userjoin, useremail, userpassword, groupids, useractivate)\n    VALUES('" . addslashes($register['username']) . "', '" . $time . "',\n    '" . addslashes($register['useremail']) . "',    '" . md5($register['userpassword']) . "', ',{$config['default_groupid']},', " . ($config['use_email'] ? 1 : 0) . ")");
$register['userid'] = mysql_insert_id();
possible_flood(FLOOD_REGISTER, $register['userid']);
if ($config['use_email']) {
    $email = '';
    $TRegistermail = new Template("./templates/mail/register.mail");
    eval($TRegistermail->GetTemplate("email"));
    @mail($register['useremail'], $config['board_name'] . " - Registrierung", $email, "From: {$config['board_admin']}");
    message("Registrierung erfolgreich!", "Der neue User wurde angelegt.<br>Sie erhalten in K&uuml;rze eine Email mit einem Best&auml;tigungslink zur Aktivierung ihres Accounts.<br><strong>Achtung: Bei AOL ist davon auszugehen, dass die Email vom Spamfilter abgefangen wird.</strong>");
} else {
    $s = new_session();
    $g_user['have_cookie'] = false;
    setcookie("thwb_cookie", md5($register['userpassword']) . $register['userid'], time() + 60 * 60 * 24 * 365);
    message('Registrierung erfolgreich!', 'Sie wurden soeben erfolgreich registriert und eingeloggt. Viel Spa&szlig;!');
}