Removed some logging, and fixed new chan bg

This commit is contained in:
Kasper Rynning-Tønnesen
2015-04-12 16:00:53 +02:00
parent 11c604279d
commit 97934a0d17
3 changed files with 3 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
<?php
$guid=substr(base64_encode(crc32($_SERVER['HTTP_USER_AGENT'].$_SERVER['REMOTE_ADDR'].$_SERVER['HTTP_ACCEPT_LANGUAGE'])), 0, 8);
if(isset($_GET['chan'])) {header('Location: '.$_GET['chan']); exit;}
$list = explode("/", htmlspecialchars(strtolower($_SERVER["REQUEST_URI"])));
if($list[1]==""||!isset($list[1])||count($list)<=1){$list="";include('php/nochan.php');die();}
@@ -15,7 +15,7 @@
<script src="http://code.jquery.com/jquery-1.11.1.js"></script>
<script>
var socket = io.connect('http://localhost:3000');
var guid = "<?php $guid=substr(base64_encode(crc32($_SERVER['HTTP_USER_AGENT'].$_SERVER['REMOTE_ADDR'].$_SERVER['HTTP_ACCEPT_LANGUAGE'])), 0, 8); echo $guid; ?>";
var guid = "<?php echo $guid; ?>";
socket.emit('list', '<?php echo $list; ?>,'+guid);
</script>
<script src="js/socket_list.js"></script>