7e47ce238b
添加了管理后台所需的图片资源、Excel文件、安装程序以及设计相关的图片文件
55 lines
1.5 KiB
PHP
55 lines
1.5 KiB
PHP
<?php
|
|
header("Content-type: text/html; charset=utf-8");
|
|
if(THIS_IN!="edt_ipad")
|
|
exit("错误的访问!");
|
|
$uid=check_cookie_jxs();
|
|
//$tmp_client=get_db_msg("select title from web_client where id='".$uid."'");
|
|
switch($_a){
|
|
case "getCilentTime":
|
|
$now = time();
|
|
echo $now;
|
|
break;
|
|
|
|
case "showData":
|
|
//服务器当前
|
|
$tmp_first=get_db_msg("select id,timetemp from web_barrage where id = '$barrageId'");
|
|
if($nowTime>0){
|
|
$now = $tmp_first["id"]?$tmp_first["timetemp"]:$nowTime;
|
|
}else{
|
|
$now=time();
|
|
}
|
|
$barrageId = $barrageId;
|
|
//
|
|
$sql="select id,uid,value from web_barrage where id > '$barrageId' and timetemp>='".$now."'";
|
|
$result = $db->query($sql);
|
|
$list = array();
|
|
$lastId = $barrageId;
|
|
while($row =$db->fetch_array($result)){
|
|
$tmp_client=get_db_msg("select title from web_client where id='".$row["uid"]."'");
|
|
$lastId = $row['id'];
|
|
$item = array(
|
|
'barrageId' => $row['id'],
|
|
'value' => $tmp_client["title"].":".$row['value']
|
|
);
|
|
array_push($list,$item);
|
|
}
|
|
|
|
echo json_encode(
|
|
array(
|
|
'lastId'=> $lastId,
|
|
'list'=>$list
|
|
)
|
|
);
|
|
break;
|
|
case "save_dm":
|
|
$tmp_client=get_db_msg("select * from web_client where id='".$uid."'");
|
|
if($tmp_client["is_jy"]=="n"){
|
|
$db->query("insert into web_barrage(uid,cate,value,timetemp,timeDif,color,fontSize,topPer,speed,wSize,hSize)values('".$uid."','直播','".$value."','".time()."','','','','','','','')");
|
|
echo 'success';
|
|
}else{
|
|
echo 'jy';
|
|
}
|
|
break;
|
|
}
|
|
?>
|