From 798486d19f1eef4f1375d4d9b3d3a216e815fb74 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 30 Sep 2008 16:49:16 +0000 Subject: [PATCH] Session save path now fully supported --- .gitattributes | 2 + inc/databases.php | 2 +- inc/extensions/ext-sql_patches.php | 21 +++++-- inc/language/de.php | 7 ++- inc/modules/admin/what-config_proxy.php | 2 +- inc/modules/admin/what-config_session.php | 63 +++++++++++++++++++ inc/rdf.class.php | 1 + inc/session.php | 6 ++ .../de/html/admin/admin_config_session.tpl | 34 ++++++++++ 9 files changed, 129 insertions(+), 9 deletions(-) create mode 100644 inc/modules/admin/what-config_session.php create mode 100644 templates/de/html/admin/admin_config_session.tpl diff --git a/.gitattributes b/.gitattributes index 8c37b468b2..b825b35176 100644 --- a/.gitattributes +++ b/.gitattributes @@ -314,6 +314,7 @@ inc/modules/admin/what-config_register.php -text 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 @@ -840,6 +841,7 @@ templates/de/html/admin/admin_config_register2.tpl -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 diff --git a/inc/databases.php b/inc/databases.php index 73ccfeb30e..2cc912206d 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -113,7 +113,7 @@ define('USAGE_BASE', "usage"); 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); diff --git a/inc/extensions/ext-sql_patches.php b/inc/extensions/ext-sql_patches.php index 11c808fc3b..426eb0018b 100644 --- a/inc/extensions/ext-sql_patches.php +++ b/inc/extensions/ext-sql_patches.php @@ -38,13 +38,13 @@ if (!defined('__SECURITY')) { } // 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) { @@ -56,7 +56,8 @@ case "register": // Do stuff when installtion is running (modules.php?module=adm 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 @@ -65,8 +66,9 @@ what='config_title' 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 @@ -76,8 +78,7 @@ what='stats2' OR (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 @@ -653,6 +654,14 @@ PRIMARY KEY (id) // 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; diff --git a/inc/language/de.php b/inc/language/de.php index 46b9208d04..0b084cc026 100644 --- a/inc/language/de.php +++ b/inc/language/de.php @@ -277,7 +277,7 @@ define('GUEST_CONFIRM_LINK', "Ihr Bestätigungslink"); 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,"); @@ -1170,6 +1170,11 @@ define('MEMBER_ORDER_PLEASE_WAIT_1', "Ihre Seite wird auf Framekiller getestet. 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 keine {!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."); // ?> diff --git a/inc/modules/admin/what-config_proxy.php b/inc/modules/admin/what-config_proxy.php index 756b42d751..df6e62b190 100644 --- a/inc/modules/admin/what-config_proxy.php +++ b/inc/modules/admin/what-config_proxy.php @@ -8,7 +8,7 @@ * -------------------------------------------------------------------- * * Short description : Proxy settings * * -------------------------------------------------------------------- * - * Kurzbeschreibung : Proxy-Einstellungenent * + * Kurzbeschreibung : Proxy-Einstellungen * * -------------------------------------------------------------------- * * * * -------------------------------------------------------------------- * diff --git a/inc/modules/admin/what-config_session.php b/inc/modules/admin/what-config_session.php new file mode 100644 index 0000000000..316b9de73b --- /dev/null +++ b/inc/modules/admin/what-config_session.php @@ -0,0 +1,63 @@ + $_CONFIG['session_save_path'], + ); + + // Load template + LOAD_TEMPLATE("admin_config_session", false, $content); +} + +// +?> diff --git a/inc/rdf.class.php b/inc/rdf.class.php index 36cda4dd0e..d42bdbff8d 100644 --- a/inc/rdf.class.php +++ b/inc/rdf.class.php @@ -1355,6 +1355,7 @@ class fase4_rdf { fputs($fp, $request); $reply = ""; $isContent = false; $dummy = ""; // Read reply + $i=0; while ( !feof($fp) ) { $read = trim(fgets($fp, 4096)); if (substr($read, 0, 5) == " + + + + + + + + + + + + + + + + +
+ {--ADMIN_SESSION_SETTINGS_TITLE--} +
 
+ {--ADMIN_CONFIG_SESSION_SAVE_PATH--}:
+
+ +
+ + {--ADMIN_BASE_PATH--}:
+ {!PATH!}
+ {--ADMIN_SESSION_SAVE_PATH_NOTE--} +
+
 
+ -- 2.39.5