summaryrefslogtreecommitdiff
path: root/js/auth.php
diff options
context:
space:
mode:
authorBulletin <bulletin@bulletinalpha.tk>2016-12-29 16:42:32 -0500
committerBulletin <bulletin@bulletinalpha.tk>2016-12-29 16:42:32 -0500
commit1a7fa60f6cb2ee26843ca19e37bb4ff44104ad55 (patch)
tree2fa1fbdea9992ab63ba2a7abbac8bbcd633d13f7 /js/auth.php
downloadbulletin-1a7fa60f6cb2ee26843ca19e37bb4ff44104ad55.tar.gz
Added existing progress
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
+ }
+?>
+};