summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-05-30 10:23:24 -0400
committerEvan Prodromou <evan@prodromou.name>2008-05-30 10:23:24 -0400
commitc501b7b9259b6fc8c34655b870ce79f102ada137 (patch)
tree00eaba024ac6c4021262d8f6628977a560df0159 /lib/util.php
parent9210f956332d5fcd786dd3ec757e6fd789f9a1ad (diff)
interim commit after pull from server
darcs-hash:20080530142324-84dde-782c9f04f551447514f1557b9e80f8461a17771f.gz
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php
index 30bd4d3ae..2d4fc2766 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -525,6 +525,16 @@ function common_mtrand($bytes) {
return $enc;
}
+function common_set_returnto($url) {
+ common_ensure_session();
+ $_SESSION['returnto'] = $url;
+}
+
+function common_get_returnto() {
+ common_ensure_session();
+ return $_SESSION['returnto'];
+}
+
function common_timestamp() {
return date('YmdHis');
}