aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-02-22 15:27:45 -0800
committerfriendica <info@friendica.com>2015-02-22 15:27:45 -0800
commit86aefe0e012939fb08193fa59ba74deed062a1af (patch)
tree305d1fd81eec663ca09ffb35ce666ae11c4ec73d
parent0faffe616017e3e363331bbdd18d49fb248bb82c (diff)
downloadvolse-hubzilla-86aefe0e012939fb08193fa59ba74deed062a1af.tar.gz
volse-hubzilla-86aefe0e012939fb08193fa59ba74deed062a1af.tar.bz2
volse-hubzilla-86aefe0e012939fb08193fa59ba74deed062a1af.zip
new session functions
-rw-r--r--include/session.php29
-rw-r--r--version.inc2
-rwxr-xr-xview/tpl/admin_site.tpl2
3 files changed, 31 insertions, 2 deletions
diff --git a/include/session.php b/include/session.php
index ed4dfdd16..00e1d8fbe 100644
--- a/include/session.php
+++ b/include/session.php
@@ -6,7 +6,36 @@
$session_exists = 0;
$session_expire = 180000;
+$session_mirror = null;
+
+function red_session_start() {
+ global $session_mirror;
+
+ session_start();
+ $session_mirror = $_SESSION;
+ session_write_close();
+}
+
+function red_session_get($var) {
+ global $session_mirror;
+ if(is_null($session_mirror))
+ red_session_start();
+ return $session_mirror[$var];
+}
+function red_session_put($var,$val) {
+ session_start();
+ $_SESSION[$var'] = $val;
+ $session_mirror = $_SESSION;
+ session_write_close();
+}
+
+function red_session_destroy() {
+ session_start();
+ unset($_SESSION);
+ unset($session_mirror);
+ session_write_close();
+}
function new_cookie($time) {
diff --git a/version.inc b/version.inc
index db0f2f5e5..2e906c260 100644
--- a/version.inc
+++ b/version.inc
@@ -1 +1 @@
-2015-02-20.950
+2015-02-22.952
diff --git a/view/tpl/admin_site.tpl b/view/tpl/admin_site.tpl
index a30892f71..1bcdba473 100755
--- a/view/tpl/admin_site.tpl
+++ b/view/tpl/admin_site.tpl
@@ -24,7 +24,7 @@
$.post(url, data, function(data) {
if(timer) clearTimeout(timer);
NavUpdate();
- $.fancybox.close();
+ $.colorbox.close();
})
return false;