<?
include('../system/inc.php');
include('./admin_config.php');
include('./check.php');
if ($_POST['修改信息'] =='保存')
{
$_data['qq'] = $_POST['qq'];
if ($_POST['pwd']!= '')
{$_data['loginpassword'] = $_POST['pwd'];}
//$_data['c_date'] = $sj;
$str = arrtoinsert($_data);
$sql = 'update '.flag.'zhuzhan set '.arrtoupdate($_data).' where id = '.$zhu_id.'';
if(mysql_query($sql)){
$data['l_ip'] = xiaoyewl_ip();
$data['l_date'] = date('y-m-d h:i:s',time());;
$data['l_qk'] = '修改站长账号密码';
$data['zid'] = $zhu_id;
$data['user'] = $_SESSION['admin_check'];
$str = arrtoinsert($data);
$sql = 'insert into '.flag.'log ('.$str[0].') values ('.$str[1].')';
mysql_query($sql);
alert_href('修改成功!','');
}else{
alert_back('修改失败!');
}
}
if ($_POST['提交'] =='续费')
{
if ($_POST['year']<=0)
{ alert_href('续费失败:续费时间不能低于1!',''); }
$xfprice =$_POST['year']*$site_price;
non_numeric_back($_POST['year'],'请输入续费时间');
if ($site_point < $site_price)
{ alert_href('续费失败:您的余额不足支付'.$xfprice.'元请充值!',''); }
else
{
$a_time = strtotime($site_ddate);
$b_time = strtotime('+'.$_POST['year'].' year',$a_time);
$b = date('Y-m-d H:i:s',$b_time);
$_data['ddate'] =$b ;
$str = arrtoinsert($_data);
$sql = 'update '.flag.'zhuzhan set '.arrtoupdate($_data).' where id = '.$zhu_id.'';
if(mysql_query($sql)){
//余额记录
$_data1['zid'] = $zhu_id;
$_data1['qje'] = $site_point;
$_data1['je'] = $xfprice;
$_data1['hje'] = $site_point-$xfprice;
$_data1['date'] = $sj;
$_data1['desc'] = '站点续费';
$_data1['lx'] = 0;
$str1 = arrtoinsert($_data1);
$sql1 = 'insert into '.flag.'zhuzhanpricejl ('.$str1[0].') values ('.$str1[1].')';
mysql_query($sql1);
//扣除余额
$_data2['point'] = $site_point-$xfprice;
$str2 = arrtoinsert($_data2);
$sql2 = 'update '.flag.'zhuzhan set '.arrtoupdate($_data2).' where id = '.$zhu_id.'';
mysql_query($sql2);
alert_href('续费成功!','');
}else{
alert_back('修改失败!');
}
}
}
if ($_POST['分站'] =='购买')
{
if ($_POST['peie']<=0)
{ alert_href('购买失败:购买数量不能低于1!',''); }
if ($_POST['fid']==1)
{
$fxfprice =$_POST['peie']*$site_zfprice1;
$yedu = $site_fed1;
}
elseif ($_POST['fid']==2)
{$fxfprice =$_POST['peie']*$site_zfprice2;
$yedu = $site_fed2;
}
elseif ($_POST['fid']==3)
{$fxfprice =$_POST['peie']*$site_zfprice3;
$yedu = $site_fed3;
}
non_numeric_back($_POST['peie'],'请输入购买个数');
if ($site_point < $fxfprice)
{ alert_href('购买失败:您的余额不足支付'.$fxfprice.'元请充值!',''); }
else
{
if ($_POST['fid']==1)
{ $_data['fed1'] =$site_fed1+$_POST['peie'] ;}
elseif ($_POST['fid']==2)
{ $_data['fed2'] =$site_fed2+$_POST['peie'] ;}
elseif ($_POST['fid']==3)
{ $_data['fed3'] =$site_fed3+$_POST['peie'] ;}
$_data['point'] = $site_point-$fxfprice;
$str = arrtoinsert($_data);
$sql = 'update '.flag.'zhuzhan set '.arrtoupdate($_data).' where id = '.$zhu_id.'';
if(mysql_query($sql)){
//余额记录
$_data1['zid'] = $zhu_id;
$_data1['qje'] = $site_point;
$_data1['je'] = $fxfprice;
$_data1['hje'] = $site_point-$fxfprice;
$_data1['date'] = $sj;
$_data1['desc'] = '购买'.get_fenzhan_banben_name($_POST['fid']).'分站额度'.$_POST['peie'].'个';
$_data1['lx'] = 0;
$str1 = arrtoinsert($_data1);
$sql1 = 'insert into '.flag.'zhuzhanpricejl ('.$str1[0].') values ('.$str1[1].')';
mysql_query($sql1);
//额度记录
$_data3['zid'] = $zhu_id;
{$_data3['qsl'] = $yedu;}
$_data3['sl'] = $_POST['peie'];
$_data3['hsl'] = $yedu+$_POST['peie'];
$_data3['date'] = $sj;
$_data3['desc'] = '购买'.get_fenzhan_banben_name($_POST['fid']).'分站额度'.$_POST['peie'].'个';
$_data3['lx'] = 1; //1=增加 0=扣除
$str3 = arrtoinsert($_data3);
$sql3 = 'insert into '.flag.'edu ('.$str3[0].') values ('.$str3[1].')';
mysql_query($sql3);
//扣除余额
$_data2['point'] = $site_point-$fxfprice;
$str2 = arrtoinsert($_data2);
$sql2 = 'update '.flag.'zhuzhan set '.arrtoupdate($_data2).' where id = '.$zhu_id.'';
mysql_query($sql2);
alert_href('购买成功!','');
}else{
alert_back('购买失败!');
}
}
}
$nav='home';
function get_czje($t0)
{
$result = mysql_query('select sum(je) as sl1 from '.flag.'czjl where zt = 1 and zid = '.$t0.' ');
if (!!($row = mysql_fetch_array($result))) {
return $row['sl1'];
} else {
return '0';
}
}
function get_tdczje($t0)
{
$result = mysql_query('select sum(je) as sl1 from '.flag.'czjl where day(pdate) = day(now()) and zt =1 and zid='.$t0.'');
if (!!($row = mysql_fetch_array($result))) {
return $row['sl1'];
} else {
return '0';
}
}
function get_ordersl($t0)
{
$result = mysql_query('select count(*) as sl1 from '.flag.'order where zid = '.$t0.' ');
if (!!($row = mysql_fetch_array($result))) {
return $row['sl1'];
} else {
return '0';
}
}
function get_tdayordersl($t0)
{
$result = mysql_query('select count(*) as sl1 from '.flag.'order where day(date) = day(now()) and zid = '.$t0.' ');
if (!!($row = mysql_fetch_array($result))) {
return $row['sl1'];
} else {
return '0';
}
}
function get_membersl($t0)
{
$result = mysql_query('select count(*) as sl1 from '.flag.'user where zid = '.$t0.' ');
if (!!($row = mysql_fetch_array($result))) {
return $row['sl1'];
} else {
return '0';
}
}
function get_tdaymembersl($t0)
{
$result = mysql_query('select count(*) as sl1 from '.flag.'user where day(date) = day(now()) and zid = '.$t0.' ');
if (!!($row = mysql_fetch_array($result))) {
return $row['sl1'];
} else {
return '0';
}
}
function get_fenzhansl($t0)
{
$result = mysql_query('select count(*) as sl1 from '.flag.'fenzhan where zid ='.$t0.' ');
if (!!($row = mysql_fetch_array($result))) {
return $row['sl1'];
} else {
return '0';
}
}
function get_tdayfenzhan($t0)
{
$result = mysql_query('select count(*) as sl1 from '.flag.'fenzhan where day(date) = day(now()) and zid = '.$t0.' ');
if (!!($row = mysql_fetch_array($result))) {
return $row['sl1'];
} else {
return '0';
}
}
function get_orderje($t0)
{
$result = mysql_query('select sum(price) as sl1 from '.flag.'order where zid = '.$t0.' ');
if (!!($row = mysql_fetch_array($result))) {
return $row['sl1'];
} else {
return '0';
}
}
function get_tdayorderje($t0)
{
$result = mysql_query('select sum(price) as sl1 from '.flag.'order where day(date) =day(now()) and zid = '.$t0.'');
if (!!($row = mysql_fetch_array($result))) {
return $row['sl1'];
} else {
return '0';
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>管理首页-<?=$site_name?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap core CSS -->
<link href="assets/style/bootstrap/css/bootstrap.min.css?" rel="stylesheet">
<!-- Font Awesome -->
<link href="assets/style/font-awesome_4.6.3/css/font-awesome.min.css?" rel="stylesheet">
<!-- ionicons -->
<link href="assets/style/css/ionicons.min.css?" rel="stylesheet">
<!-- Morris -->
<link href="assets/style/css/morris.css?" rel="stylesheet"/>
<!-- Datepicker -->
<link href="assets/style/css/datepicker.css?" rel="stylesheet"/>
<!-- Animate -->
<link href="assets/style/css/animate.min.css" rel="stylesheet">
<!-- Owl Carousel -->
<link href="assets/style/css/owl.carousel.min.css" rel="stylesheet">
<link href="assets/style/css/owl.theme.default.min.css" rel="stylesheet">
<!-- Simplify -->
<link href="assets/style/css/simplify.min.css" rel="stylesheet">
<link href="assets/common/bootstrap-switch/css/bootstrap3/bootstrap-switch.min.css"
rel="stylesheet">
<link rel="stylesheet" href="assets/common/toastr/toastr.min.css">
<link rel="shortcut icon
没有合适的资源?快使用搜索试试~ 我知道了~
亿乐社区源码 一比一高仿全开源 PHP源码
共1617个文件
php:324个
png:319个
js:246个
9 下载量 195 浏览量
2023-08-14
19:03:15
上传
评论 1
收藏 56.01MB ZIP 举报
温馨提示
php源码 安装说明: 1.打开system/data.php配置自己的数据库,下面还有一个域名要改这个文件的,这个域名就是总控域名 2.导入数据库 3.清除浏览器缓存 就可以打开了 1.打开system/data.php配置自己的数据库,下面还有一个域名要改这个的,这个域名就是总控域名 2.导入我打包的数据库 3.清除自己的浏览器缓存 就可以打开了 后台/admin 账号3301200869 密码123456
资源推荐
资源详情
资源评论
收起资源包目录
亿乐社区源码 一比一高仿全开源 PHP源码 (1617个子文件)
ionicons.svg-v=1.5.2 232KB
ionicons.svg-v=1.5.2 232KB
ionicons.svg-v=1.5.2 232KB
ionicons.svg-v=1.5.2 231KB
ionicons.ttf-v=1.5.2 136KB
ionicons.ttf-v=1.5.2 136KB
ionicons.ttf-v=1.5.2 136KB
ionicons.ttf-v=1.5.2 136KB
ionicons.eot-v=1.5.2 84KB
ionicons.eot-v=1.5.2 84KB
ionicons.eot-v=1.5.2 84KB
ionicons.eot-v=1.5.2 84KB
ionicons.woff-v=1.5.2 47KB
ionicons.woff-v=1.5.2 47KB
ionicons.woff-v=1.5.2 47KB
ionicons.woff-v=1.5.2 47KB
fontawesome-webfont.svg-v=4.6.3 383KB
fontawesome-webfont.svg-v=4.6.3 383KB
fontawesome-webfont.svg-v=4.6.3 383KB
fontawesome-webfont.svg-v=4.6.3 382KB
fontawesome-webfont.ttf-v=4.6.3 149KB
fontawesome-webfont.ttf-v=4.6.3 149KB
fontawesome-webfont.ttf-v=4.6.3 149KB
fontawesome-webfont.ttf-v=4.6.3 149KB
fontawesome-webfont.woff-v=4.6.3 88KB
fontawesome-webfont.woff-v=4.6.3 88KB
fontawesome-webfont.woff-v=4.6.3 88KB
fontawesome-webfont.woff-v=4.6.3 88KB
fontawesome-webfont.eot-v=4.6.3 75KB
fontawesome-webfont.eot-v=4.6.3 75KB
fontawesome-webfont.eot-v=4.6.3 75KB
fontawesome-webfont.eot-v=4.6.3 75KB
fontawesome-webfont.woff2-v=4.6.3 70KB
fontawesome-webfont.woff2-v=4.6.3 70KB
fontawesome-webfont.woff2-v=4.6.3 70KB
fontawesome-webfont.woff2-v=4.6.3 70KB
nginx.conf 1KB
apache.conf 963B
rewrite.conf 0B
reader.css 538KB
vendor-styles.css 287KB
home-min.css 234KB
bootstrap.min.css 147KB
simplify.min.css 143KB
simplify.min.css 143KB
simplify.min.css 143KB
simplify.min.css 143KB
simplify.min.css 143KB
simplify.min.css 143KB
styles.css 121KB
bootstrap.min.css 120KB
bootstrap.min.css 120KB
bootstrap.min.css 120KB
bootstrap.min.css 120KB
bootstrap.min.css 120KB
bootstrap.min.css 120KB
bootstrap.min.css 120KB
bootstrap.min.css 120KB
style.css 115KB
style.css 115KB
bootstrap.min.css 107KB
bootstrap.min.css 107KB
bootstrap.min.css 107KB
bootstrap.min.css 107KB
bootstrap.min.css 107KB
bootstrap.min.css 107KB
animate.min.css 54KB
animate.min.css 54KB
animate.min.css 54KB
animate.min.css 54KB
animate.min.css 54KB
animate.min.css 54KB
animate.min.css 52KB
ionicons.min.css 42KB
ionicons.min.css 42KB
ionicons.min.css 42KB
ionicons.min.css 42KB
ionicons.min.css 42KB
ionicons.min.css 42KB
font-awesome.min.css 29KB
font-awesome.min.css 29KB
font-awesome.min.css 29KB
font-awesome.min.css 29KB
font-awesome.min.css 28KB
font-awesome.min.css 28KB
font-awesome.min.css 28KB
font-awesome.min.css 28KB
font-awesome.min.css 28KB
font-awesome.min.css 28KB
jquery-ui.css 25KB
jquery-ui.css 25KB
bootstrap-theme.min.css 23KB
bootstrap-theme.min.css 23KB
bootstrap-theme.min.css 23KB
bootstrap-theme.min.css 23KB
default.css 20KB
style.css 13KB
style.css 13KB
style.css 13KB
style.css 13KB
共 1617 条
- 1
- 2
- 3
- 4
- 5
- 6
- 17
资源评论
行动之上
- 粉丝: 2275
- 资源: 927
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功