inc/modules/sponsor/.htaccess -text svneol=unset#text/plain
inc/modules/sponsor/.php -text svneol=unset#text/plain
inc/modules/sponsor/account.php -text svneol=unset#text/plain
+inc/modules/sponsor/guest.php svneol=native#text/plain
+inc/modules/sponsor/logout.php svneol=native#text/plain
inc/modules/sponsor/settings.php -text svneol=unset#text/plain
inc/modules/sponsor/welcome.php -text svneol=unset#text/plain
inc/monthly/.htaccess -text svneol=unset#text/plain
// Determine it
$ret = (
(isSessionVariableSet('sponsor_id')) &&
- (isSessionVariableSet('sponsorpass')) &&
+ (isSessionVariableSet('sponsor_pass')) &&
(fetchSponsorData(getSession('sponsor_id')))
);
LIMIT 1",
array(
bigintval(getSession('sponsor_id')),
- getSession('sponsorpass')
+ getSession('sponsor_pass')
), __FUNCTION__, __LINE__);
// This update went fine?
// Add SQL tail data
$sql .= " WHERE `id`=%s AND `password`='%s' LIMIT 1";
$DATA[] = bigintval(getSession('sponsor_id'));
- $DATA[] = getSession('sponsorpass');
+ $DATA[] = getSession('sponsor_pass');
// Saving data was completed... ufff...
switch (getWhat()) {
return $country;
}
+// Destroy sponsor session
+function destroySponsorSession () {
+ // Remove all user data from session
+ return ((setSession('sponsor_id', '')) && (setSession('sponsor_pass', '')));
+}
+
// [EOF]
?>
if ($status == 'CONFIRMED') {
// Is confirmed so both is fine and we can continue with login procedure
$login = ((setSession('sponsor_id' , bigintval(postRequestParameter('sponsor_id')))) &&
- (setSession('sponsorpass', md5(postRequestParameter('password')) ))
+ (setSession('sponsor_pass', md5(postRequestParameter('password')) ))
);
if ($login === true) {
--- /dev/null
+<?php
+/************************************************************************
+ * Mailer v0.2.1-FINAL Start: 05/19/2008 *
+ * =================== Last change: 05/19/2008 *
+ * *
+ * -------------------------------------------------------------------- *
+ * File : *
+ * -------------------------------------------------------------------- *
+ * Short description : *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung : *
+ * -------------------------------------------------------------------- *
+ * $Revision:: $ *
+ * $Date:: $ *
+ * $Tag:: 0.2.1-FINAL $ *
+ * $Author:: $ *
+ * Needs to be in all Files and every File needs "svn propset *
+ * svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2009 by Roland Haeder *
+ * For more information visit: http://www.mxchange.org *
+ * *
+ * 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. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the Free Software *
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, *
+ * MA 02110-1301 USA *
+ ************************************************************************/
+
+// Some security stuff...
+if (!defined('__SECURITY')) {
+ die();
+} elseif ((!isExtensionActive('sponsor'))) {
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('sponsor'));
+ return;
+} elseif (!isSponsor()) {
+ // No sponsor!
+ addFatalMessage(__FILE__, __LINE__, '{--SPONSOR_ONLY_AREA_ENTERED--}');
+ return;
+}
+
+// Simple redirect
+redirectToUrl('modules.php?module=index');
+
+// [EOF]
+?>
--- /dev/null
+<?php
+/************************************************************************
+ * Mailer v0.2.1-FINAL Start: 05/19/2008 *
+ * =================== Last change: 05/19/2008 *
+ * *
+ * -------------------------------------------------------------------- *
+ * File : *
+ * -------------------------------------------------------------------- *
+ * Short description : *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung : *
+ * -------------------------------------------------------------------- *
+ * $Revision:: $ *
+ * $Date:: $ *
+ * $Tag:: 0.2.1-FINAL $ *
+ * $Author:: $ *
+ * Needs to be in all Files and every File needs "svn propset *
+ * svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2009 by Roland Haeder *
+ * For more information visit: http://www.mxchange.org *
+ * *
+ * 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. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the Free Software *
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, *
+ * MA 02110-1301 USA *
+ ************************************************************************/
+
+// Some security stuff...
+if (!defined('__SECURITY')) {
+ die();
+} elseif ((!isExtensionActive('sponsor'))) {
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('sponsor'));
+ return;
+} elseif (!isSponsor()) {
+ // No sponsor!
+ addFatalMessage(__FILE__, __LINE__, '{--SPONSOR_ONLY_AREA_ENTERED--}');
+ return;
+}
+
+// Base URL for redirection (both cases)
+$url = 'modules.php?module=index&code=';
+
+if (destroySponsorSession()) {
+ // Remove theme cookie as well
+ if (isExtensionActive('theme')) setTheme('');
+
+ // Logout completed
+ $url .= getCode('LOGOUT_DONE');
+} else {
+ // Cannot logout! :-(
+ $url .= getCode('LOGOUT_FAILED');
+}
+
+// Load the URL
+redirectToUrl($url);
+
+// [EOF]
+?>
<div class="big">
Willkommen zum Sponsorenbereich von {?MAIN_TITLE?}
</div>
+
+<div>
+ {?SLOGAN?}
+</div>