diff options
| author | Bulletin <bulletin@bulletinalpha.tk> | 2016-12-29 16:42:32 -0500 |
|---|---|---|
| committer | Bulletin <bulletin@bulletinalpha.tk> | 2016-12-29 16:42:32 -0500 |
| commit | 1a7fa60f6cb2ee26843ca19e37bb4ff44104ad55 (patch) | |
| tree | 2fa1fbdea9992ab63ba2a7abbac8bbcd633d13f7 /js/auth.php | |
| download | bulletin-1a7fa60f6cb2ee26843ca19e37bb4ff44104ad55.tar.gz | |
Added existing progress
Diffstat (limited to 'js/auth.php')
| -rw-r--r-- | js/auth.php | 14 |
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 + } +?> +}; |
