mirror of
https://github.com/KevinMidboe/zoff.git
synced 2026-02-10 19:39:35 +00:00
Removed some logging, and fixed new chan bg
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user