summaryrefslogtreecommitdiff
path: root/js/auth.php
diff options
context:
space:
mode:
Diffstat (limited to 'js/auth.php')
-rw-r--r--js/auth.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/js/auth.php b/js/auth.php
new file mode 100644
index 0000000..bab3e27
--- /dev/null
+++ b/js/auth.php
@@ -0,0 +1,14 @@
+<?php
+header('Content-type: text/javascript');
+require('../inc/common.php');
+?>
+var auth = {
+<?php
+ if ($b_user['id'] > 0) {
+?>
+ id: '<?=intval($b_user['id']); ?>',
+ session: '<?=addslashes($b_user['session']); ?>',
+<?php
+ }
+?>
+};