inc/modules/admin/what-config_register2.php -text
inc/modules/admin/what-config_rewrite.php -text
inc/modules/admin/what-config_secure.php -text
+inc/modules/admin/what-config_session.php -text
inc/modules/admin/what-config_sponsor.php -text
inc/modules/admin/what-config_stats.php -text
inc/modules/admin/what-config_surfbar.php -text
templates/de/html/admin/admin_config_rewrite.tpl -text
templates/de/html/admin/admin_config_rewrite_rows.tpl -text
templates/de/html/admin/admin_config_secure.tpl -text
+templates/de/html/admin/admin_config_session.tpl -text
templates/de/html/admin/admin_config_sponsor.tpl -text
templates/de/html/admin/admin_config_stats.tpl -text
templates/de/html/admin/admin_config_sub_points.tpl -text
define('SERVER_URL', "http://www.mxchange.org");
// This current patch level
-define('CURR_SVN_REVISION', "419");
+define('CURR_SVN_REVISION', "420");
// Take a prime number which is long (if you know a longer one please try it out!)
define('_PRIME', 591623);
}
// Version number
-$EXT_VERSION = "0.5.2";
+$EXT_VERSION = "0.5.3";
// Auto-set extension version
if (!isset($EXT_VER)) $EXT_VER = $EXT_VERSION;
// Version history array (add more with , "0.1" and so on)
-$EXT_VER_HISTORY = array("0.0", "0.0.1", "0.0.2", "0.0.3", "0.0.4", "0.0.5", "0.0.6", "0.0.7", "0.0.8", "0.0.9", "0.1.0", "0.1.1", "0.1.2", "0.1.3", "0.1.4", "0.1.5", "0.1.6", "0.1.7", "0.1.8", "0.1.9", "0.2.0", "0.2.1", "0.2.2", "0.2.3", "0.2.4", "0.2.5", "0.2.6", "0.2.7", "0.2.8", "0.2.9", "0.3.0", "0.3.1", "0.3.2", "0.3.3", "0.3.4", "0.3.5", "0.3.6", "0.3.7", "0.3.8", "0.3.9", "0.4.0", "0.4.1", "0.4.2", "0.4.3", "0.4.4", "0.4.5", "0.4.6", "0.4.7", "0.4.8", "0.4.9", "0.5.0", "0.5.1", "0.5.2");
+$EXT_VER_HISTORY = array("0.0", "0.0.1", "0.0.2", "0.0.3", "0.0.4", "0.0.5", "0.0.6", "0.0.7", "0.0.8", "0.0.9", "0.1.0", "0.1.1", "0.1.2", "0.1.3", "0.1.4", "0.1.5", "0.1.6", "0.1.7", "0.1.8", "0.1.9", "0.2.0", "0.2.1", "0.2.2", "0.2.3", "0.2.4", "0.2.5", "0.2.6", "0.2.7", "0.2.8", "0.2.9", "0.3.0", "0.3.1", "0.3.2", "0.3.3", "0.3.4", "0.3.5", "0.3.6", "0.3.7", "0.3.8", "0.3.9", "0.4.0", "0.4.1", "0.4.2", "0.4.3", "0.4.4", "0.4.5", "0.4.6", "0.4.7", "0.4.8", "0.4.9", "0.5.0", "0.5.1", "0.5.2", "0.5.3");
switch ($EXT_LOAD_MODE)
{
case "remove": // Do stuff when removing extension
// SQL commands to run
$SQLs[] = "DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_admin_menu WHERE
-(action='theme' AND (what='theme_import' OR what='theme_edit')) OR
+what='theme_import' OR
+what='theme_edit' OR
what='config_extensions' OR
what='config_home' OR
what='list_unconfirmed' OR
what='sub_points' OR
what='config_admin' OR
what='config_proxy' OR
+what='config_session' OR
what='list_norefs'
-LIMIT 13";
+LIMIT 14";
$SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_themes";
$SQLs[] = "DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_guest_menu WHERE action='themes' LIMIT 1";
$SQLs[] = "DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_member_menu WHERE
(action='stats' AND (what='' OR what IS NULL)) OR
(action='extras' AND (what='' OR what IS NULL)) OR
(action='rals' AND (what='' OR what IS NULL)) OR
-(action='account' AND (what='' OR what IS NULL))
-LIMIT 8";
+(action='account' AND (what='' OR what IS NULL))";
$SQLs[] = "UPDATE "._MYSQL_PREFIX."_member_menu SET action='main' WHERE
action='stats' OR
action='extras' OR
// Update notes (these will be set as task text!)
$UPDATE_NOTES = "Prozents&aum;tze können nun fünf Stelle hinter dem Komma sein.";
break;
+
+ case "0.5.3": // SQL queries for v0.5.3
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD session_save_path varchar(255) NOT NULL DEFAULT ''";
+ $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (`action`,`what`,`title`,`descr`,`sort`) VALUES ('setup','config_session','Session-Einstellungen','Ändern Sie hier den Speicherpfad für Sessiondateien (Sitzungsdateien) ab, falls die Standart-Einstellung bei Ihrem Hoster zu Problem führen sollte.', 16)";
+
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Session-Speicherpfad konfigurierbar. Beispielsweise ist dies bei all-inkl.com nötig.";
+ break;
}
break;
define('THANX', "Vielen Dank.\n\nMit freundlichem Gruss,");
define('YOUR', "Ihr");
define('TEAM', "Team");
-define('HELLO_ADMIN', "Hallo lieber Administrator");
+define('HELLO_ADMIN', "Hallo Administrator");
define('ADMIN_GUEST_REGISTERED_WITH_US', "Ein Gast hat sich soeben bei uns angemeldet.");
define('ADMIN_GUEST_PERSONA_DATA', "Hier sind zur Überprüfung nochmals seine persönlichen Daten");
define('ADMIN_THANX', "Mit freundlichem Gruss,");
define('MEMBER_ORDER_PLEASE_WAIT_2', " Sekunden warten.");
define('ADMIN_LIST_NOREFS_ACCOUNTS', "Auflistung aller Accounts ohne Werber");
define('ADMIN_NO_REF_LEVELS', "In Ihrem {!MT_WORD!} sind keine Referal-Ebenen eingerichtet! Ihre Mitglieder erhalten <u>keine</u> {!POINTS!} gutgeschrieben. Richten Sie mindestens Referal-Ebene 0 mit 100% Vergütung ein.");
+define('ADMIN_SESSION_SAVE_PATH_INVALID', "Pfad für Sitzungsdateien ungütig!");
+define('ADMIN_SESSION_SETTINGS_TITLE', "Einstellungen zum Sitzungsmanagement");
+define('ADMIN_CONFIG_SESSION_SAVE_PATH', "Speicherpfad f. Sitzungsdateien");
+define('ADMIN_BASE_PATH', "Absoluter Server-Pfad");
+define('ADMIN_SESSION_SAVE_PATH_NOTE', "Sie sollten für Sitzungsdateien einen Pfad wählen der ausserhalb des Server-Pfades liegt, da sonst eventuell die Sitzungsdateien vom Web erreichbar sind, was ein hohes Sicherheitsrisiko darstellt.");
//
?>
* -------------------------------------------------------------------- *
* Short description : Proxy settings *
* -------------------------------------------------------------------- *
- * Kurzbeschreibung : Proxy-Einstellungenent *
+ * Kurzbeschreibung : Proxy-Einstellungen *
* -------------------------------------------------------------------- *
* *
* -------------------------------------------------------------------- *
--- /dev/null
+<?php
+/************************************************************************
+ * MXChange v0.2.1 Start: 09/30/2008 *
+ * ================ Last change: 09/30/2008 *
+ * *
+ * -------------------------------------------------------------------- *
+ * File : what-config_session.php *
+ * -------------------------------------------------------------------- *
+ * Short description : Session settings *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung : Session-Einstellungen *
+ * -------------------------------------------------------------------- *
+ * *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2008 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')) || (!IS_ADMIN())) {
+ $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
+ require($INC);
+}
+
+// Add description as navigation point
+ADD_DESCR("admin", basename(__FILE__));
+
+if (isset($_POST['ok'])) {
+ // Test Path
+ if ((empty($_POST['session_save_path'])) || ((is_dir($_POST['session_save_path'])) && (is_writeable($_POST['session_save_path'])))) {
+ // Save configuration
+ ADMIN_SAVE_SETTINGS($_POST);
+ } else {
+ // Invalid!
+ LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_SESSION_SAVE_PATH_INVALID);
+ }
+} else {
+ // Prepare content
+ $content = array(
+ 'session_save_path' => $_CONFIG['session_save_path'],
+ );
+
+ // Load template
+ LOAD_TEMPLATE("admin_config_session", false, $content);
+}
+
+//
+?>
fputs($fp, $request);
$reply = ""; $isContent = false; $dummy = "";
// Read reply
+ $i=0;
while ( !feof($fp) ) {
$read = trim(fgets($fp, 4096));
if (substr($read, 0, 5) == "<?xml" || $isContent) {
// Skip updating of cookies when viewing a banner
if (($VIEW == 1) && ($_SERVER['PHP_SELF'])) return;
+// Set session save path if set
+if (!empty($_CONFIG['session_save_path'])) {
+ // Please make sure this valid!
+ @session_save_path($_CONFIG['session_save_path']);
+} // END - if
+
// Start the session
@session_start();
global $PHPSESSID;
--- /dev/null
+<form action="{!URL!}/modules.php?module=admin&what=config_proxy" method="POST">
+<table border="0" cellspacing="0" cellpadding="0" align="center" class="admin_table dashed" width="700">
+ <tr>
+ <td colspan="2" align="center" class="admin_title bottom2" height="30">
+ <strong>{--ADMIN_SESSION_SETTINGS_TITLE--}</strong>
+ </td>
+ </tr>
+ <tr><td colspan="2" class="seperator" height="5"> </td></tr>
+ <tr>
+ <td align="right" style="padding-right:10px">
+ {--ADMIN_CONFIG_SESSION_SAVE_PATH--}:<br />
+ </td>
+ <td>
+ <input type="text" name="session_save_path" value="$content[session_save_path]" size="30" maxlength="255" />
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2" style="padding:3px" align="center">
+ <span class="admin_note">
+ {--ADMIN_BASE_PATH--}:<br />
+ <em>{!PATH!}</em><br />
+ {--ADMIN_SESSION_SAVE_PATH_NOTE--}
+ </span>
+ </td>
+ </tr>
+ <tr><td colspan="2" class="bottom2 seperator" height="5"> </td></tr>
+ <tr>
+ <td colspan="2" class="admin_footer">
+ <input type="reset" class="admin_reset" value="{--CLEAR_FORM--}" /> *
+ <input type="submit" name="ok" class="admin_submit" value="{--SAVE_SETTINGS--}" />
+ </td>
+ </tr>
+</table>
+</form>