aboutsummaryrefslogtreecommitdiff
path: root/library/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'library/functions.php')
-rw-r--r--library/functions.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/library/functions.php b/library/functions.php
index ee3a0d0..9ea37b1 100644
--- a/library/functions.php
+++ b/library/functions.php
@@ -1,5 +1,4 @@
<?php
-session_start();
function truncate($text, $chars = 25) {
if (strlen($text) <= $chars) {
@@ -11,5 +10,11 @@ function truncate($text, $chars = 25) {
$text = $text."...";
return $text;
}
+
+function session_set() {
+ if(isset($_SESSION['user_id']) && $_SESSION['user_id'] != "") {
+ return true;
+ }
+}
?>