<?php
header("content-type:text/html;charset=utf-8");
include "../hexin.php";
$ziliao=ziliao($zh);
$_SESSION["xx"]="";
$_SESSION["xxsl"]=$ziliao["xiaoxisl"];
$jqhy=$_REQUEST["jqhy"];
file_put_contents("../shuoju/chuchang/chuchang.txt",$zh);
if($zh=="")
{
tz("./denglu.php");
}
else if($jqhy!="")
{
$hyy=array("欢迎新人。","欢迎一起聊天。","欢迎你的到来。","你终于来了。");
$nc=duqu("../shuoju/ziliao/".$jqhy."/nicheng.txt");
$_SESSION["msg"]=json_encode(array("msg"=>"艾特","zhanghao"=>"".$jqhy."","neirong"=>"@".$nc." ".$hyy[rand(1,3)].""),JSON_UNESCAPED_UNICODE);
}
$jxmsg=json_decode($_SESSION["msg"],true);
echo '<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0">
<title>畅聊</title>
<link rel="stylesheet" type="text/css" href="../page/css/aui.css">
<script type="text/javascript" src="../page/js/jquery.js"></script>
<script type="text/javascript" src="../page/js/aui.js"></script>
<script type="text/javascript" src="../page/js/changan.js"></script>
</head>
<body>
<header style="background-image:url(../shuoju/ziliao/'.$zh.'/beijing/1.gif);background-size:100% 100%;" class="aui-bar aui-bar-nav">
<a href="./zhanghao.php" class="aui-pull-left aui-btn">
<img src="../shuoju/ziliao/'.$zh.'/touxian.gif" width="30" height="30" class="aui-img-round"></img></a>
<a id="yonghu"></a>
<a href="./qunyuan.php" class="aui-pull-right aui-btn"><span class="aui-iconfont aui-icon-more"></span></a>
</header>
<div id="words" class="aui-chat" style="background-image:url(../shuoju/ziliao/'.$zh.'/beijing/2.gif);background-size:100% 100%;">
<div id="xiaoxi"></div></div>';

if($_SESSION["xxsl2"]!=""&&($_SESSION["xxsl"]-$_SESSION["xxsl2"])>"5")
{
if(($_SESSION["xxsl"]-$_SESSION["xxsl2"])>"99")
{
$xxsl="99+";
}
else
{
$xxsl=($_SESSION["xxsl"]-$_SESSION["xxsl2"]);
}
echo '<div id="xinxx" class="aui-card-list-header" style="position:fixed;bottom:50%;padding:0.2rem;right:0;border-radius:50px 0 0 50px;background-color:#ff9900;" onclick="document.getElementById(\'xinxx\').style.display=\'none\';dingwei('.($_SESSION["xxsl"]-($_SESSION["xxsl"]-$_SESSION["xxsl2"])+1).');">
<div class="aui-iconfont aui-icon-comment" style="margin-left:0.5rem;font-size:30px;"></div>
<div style="margin-left:0.5rem;margin-right:0.2rem;padding-top:10px;font-size:0.75rem;overflow:hidden;">'.$xxsl.'条新消息</div></div>';
}

echo '<div id="chuchang" class="aui-card-list-header" style="display:none;position:fixed;bottom:50%;padding:0.2rem;right:0;border-radius:50px 0 0 50px;background-color:#ff9900;">
<img id="cctx" width="40" height="40" class="aui-img-round"></img>
<div id="ccxx" style="margin-left:0.5rem;margin-right:0.2rem;padding-top:10px;font-size:0.75rem;overflow:hidden;"></div></div>

<div id="write" style="display:none;position:fixed;bottom:155px;right:20px;width:40px;height:40px;border-radius:100%;color: #fff;border:1px solid #000;background:rgba(0,0,0,.6);" onclick="bottom();">
<div class="aui-iconfont aui-icon-down" style="margin-top:20%;text-align:center;">
</div></div>

<div id="write1" style="display:none;position:fixed;bottom:155px;right:20px;width:40px;height:40px;border-radius:100%;border:1px solid #000;background:#00aaff;" onclick="bottom();">
<div id="xxsl" style="margin-top:10%;text-align:center;font-size:1rem;">
</div></div>

<div id="xxcz" style="display:none;position:fixed;width:100%;padding:50px;top:2rem;" onclick="xxcz();">
<div style="width:100%;text-align:center;padding:10px;background:rgba(0,0,0,.9);border-radius:10px 10px 0 0;"><span class="xuancai">消 息 操 作</span></div>
<div id="chxx" style="width:100%;background:#00aaff;text-align:center;border:1px solid #000;padding:10px;" onclick="get(\'../caozuo.php?msg=撤回消息\');">撤回消息</div>
<div id="zfxx" style="width:100%;background:#00aaff;text-align:center;border:1px solid #000;padding:10px;" onclick="zhuanfa();">转发消息</div>
<div id="bjxx" style="width:100%;background:#00aaff;text-align:center;border:1px solid #000;padding:10px;" onclick="bianji();">编辑消息</div>
<div id="ldxx" style="width:100%;background:#00aaff;text-align:center;border:1px solid #000;padding:10px;" onclick="langdu();">朗读消息</div>
<div style="width:100%;float:left;background:#00aaff;text-align:center;border:1px solid #000;padding:10px;border-radius:0 0 10px 10px;">取消操作</div>
</div>

<ul class="aui-list aui-form-list">
<div style="background-image:url(../shuoju/ziliao/'.$zh.'/beijing/3.gif);background-size:100% 100%;">

<li id="jinyan" style="display:none;" class="aui-list-item">
<div class="aui-list-item-inner">
<div class="aui-list-item-input">
<textarea id="jinyan1" disabled></textarea>
</div>
<input type="button" class="aui-btn aui-btn-info aui-margin-r-5" value="发送"></input>
</div>
</li>

<li id="jieyan" class="aui-list-item">
<div class="aui-list-item-inner">
<div class="aui-list-item-input">
<textarea id="msg" type="text" placeholder="输入内容" onclick="dkaiguan(\'guan\');">';
if($jxmsg["msg"]!="")
{
echo $jxmsg["neirong"];
}
echo '</textarea>
</div>
<div id="qingkong" style="display:none;" class="aui-btn aui-btn-danger aui-margin-r-4" onclick="$(\'#msg\').val(\'\');">清空</div>
<input id="fasong" type="submit" class="aui-btn aui-btn-info aui-margin-r-5" value="发送"></input>

<form id="file" style="display:none;" action="./files.php" method="post" enctype="multipart/form-data">
<label for="uploadFile">
<div class="aui-btn aui-btn-danger">选择</div>
<input style="display:none;" id="uploadFile" type="file" name="file"></input>
</label>
<input type="submit" class="aui-btn aui-btn-info" style="top:5px;" onclick="xieru(\'msg\',\'图文\'+msg.value+\'\',\'false\');" value="发送">
</form>

</div>
</li>

<div class="aui-list-item-inner aui-list-item">
<div class="gong" onclick="file();">
<img src="../page/image/swj.png" width="40" height="20"></img></div>
<div class="gong1" onclick="alert(\''.duqu("../qita/gonggao.txt").'\');">
<img src="../page/image/sgg.png" width="40" height="20"></img></div>
<div class="gong1" onclick="dkaiguan(\'biaoqing\');">
<img src="../page/image/sbq.png" width="40" height="20"></img></div>
<div class="gong2" onclick="dkaiguan(\'gengduo\');">
<img src="../page/image/sgd.png" width="40" height="20"></img></div>
</div>
</div>
</ul>

<div id="gengduo" style="display:none;height:8rem;">
<div style="width:100%;margin-top:8px;float:left;padding:6px;">
<div style="width:3rem;height:3rem;float:left;margin-left:20px;border-radius:4px;background-color:#00aaff;color:#fff" onclick="$(\'#msg\').val(\'\');">
<img src="../page/image/dqk.png" width="60" height="60"></img></div>
<div style="width:3rem;height:3rem;float:left;margin-left:22px;border-radius:4px;background-color:#00aaff;color:#fff" onclick="dkaiguan(\'guan\');fsxx(\'菜单\');">
<img src="../page/image/dcd.png" width="60" height="60"></img></div>
<div style="width:3rem;height:3rem;float:right;margin-right:20px;border-radius:4px;background-color:#00aaff;color:#fff" onclick="dkaiguan(\'xiutu\');">
<img src="../page/image/dxt.png" width="60" height="60"></img></div>
<div style="width:3rem;height:3rem;float:right;margin-right:22px;border-radius:4px;background-color:#00aaff;color:#fff" onclick="dkaiguan(\'guan\');fsxx(\'玩游戏\');">
<img src="../page/image/dyx.png" width="60" height="60"></img></div>
</div>

<div style="width:100%;float:left;padding:6px;">
<a style="width:3rem;height:3rem;float:left;margin-left:20px;border-radius:4px;background-color:#00aaff;color:#fff" onclick="alert(\'此功能1.5版本才有哦，快联系QQ2955036981购买吧\');">
<img src="../page/image/dqb.png" width="60" height="60"></img></a>
<a style="width:3rem;height:3rem;float:left;margin-left:22px;border-radius:4px;background-color:#00aaff;color:#fff" onclick="alert(\'此功能1.5版本才有哦，快联系QQ2955036981购买吧\');"">
<img src="../page/image/dhb.png" width="60" height="60"></img></a>
<div style="width:3rem;height:3rem;float:right;margin-right:20px;border-radius:4px;background-color:#00aaff;color:#fff" onclick="alert(\'此功能1.5版本才有哦，快联系QQ2955036981购买吧\');">
<img src="../page/image/dxy.png" width="60" height="60"></img></div>
<a style="width:3rem;height:3rem;float:right;margin-right:22px;border-radius:4px;background-color:#00aaff;color:#fff" onclick="alert(\'此功能1.5版本才有哦，快联系QQ2955036981购买吧\');">
<img src="../page/image/drj.png" width="60" height="60"></img></a>
</div>
</div>

<div id="xiutu" style="display:none;height:8rem;text-align:center;">
<div style="float:left;width:50%;height:100%;background-color:#00aaff;" onclick="alert(\'此功能1.5版本才有哦，快联系QQ2955036981购买吧\');">
<img src="../page/image/dxt.png" width="100" height="100"></img><div style="color:#fff">普通秀图</div></div>
<div style="float:left;width:50%;height:100%;background:linear-gradient(90deg,#ff0000 50%,#00aaff 50%);" onclick="alert(\'此功能1.5版本才有哦，快联系QQ2955036981购买吧\');">
<img src="../page/image/dxt.png" width="100" height="100"></img><div style="color:#fff">红蓝秀图</div></div>
</div>

<div id="biaoqing" class="biaoqing" style="display:none;overflow-x:hidden;height:8rem;padding:16px;">
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😁\');">😁</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😂\');">😂</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'👾\');">👾</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'💤\');">💤</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'👍\');">👍</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'👎\');">👎</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😈\');">😈</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'👌\');">👌</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😃\');">😃</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😄\');">😄</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'👿\');">👿</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😉\');">😉</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😊\');">😊</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'☺\');">☺</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😌\');">😌</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😍\');">😍</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😏\');">😏</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😒\');">😒</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😓\');">😓</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😔\');">😔</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😖\');">😖</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😘\');">😘</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😚\');">😚</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😜\');">😜</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😝\');">😝</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😞\');">😞</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😠\');">😠</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😡\');">😡</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😢\');">😢</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😣\');">😣</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😥\');">😥</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😨\');">😨</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😪\');">😪</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😭\');">😭</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😰\');">😰</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😱\');">😱</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😲\');">😲</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😳\');">😳</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😷\');">😷</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😋\');">😋</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😗\');">😗</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😛\');">😛</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😎\');">😎</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😩\');">😩</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😤\');">😤</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😴\');">😴</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😀\');">😀</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😅\');">😅</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😇\');">😇</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😙\');">😙</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😟\');">😟</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😕\');">😕</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😫\');">😫</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😶\');">😶</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😐\');">😐</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😑\');">😑</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😯\');">😯</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😦\');">😦</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😧\');">😧</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😮\');">😮</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😵\');">😵</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'😬\');">😬</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'🤕\');">🤕</div>
<div style="float:left;padding:5px;font-size:1.2rem;" onclick="duxiebianji(\'ᥬ😂᭄\');">ᥬ😂᭄</div>
</div>

</body>
</html>';
?>