基于PHP的网站

  • mingmou
    了解作者
  • PHP
    开发工具
  • 34.8MB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • 5 积分
    下载积分
  • 0
    下载次数
  • 2022-05-26 15:17
    上传日期
基于PHP的源码网站,商城,有登录,购买等多工能
A567.zip
内容介绍
<?php include("../../../app/system/inc.php"); $admin = 1; include("../check.php"); $act = _REQUEST('action'); $page = empty(_POST('page')) ? '1' : _POST('page'); $row = empty(_POST('row')) ? '20' : _POST('row'); switch ($act) { case 'setVerification': $type = $_POST['type']; $id = $_POST['id']; $key = $_POST['key']; $scene = $_POST['scene']; $scenes = implode(",", $scene); $ver = $type . '|' . $id . '|' . $key . '|' . $scenes; if ($type > 0) { null_json($id, '请输入接口Id'); null_json($key, '请输入接口密钥'); } $_data['zhuzhan_verification'] = $ver; $where = ' where id =' . $site_zid . ' '; $result = _UPDATE(DATA_FLAG . 'zhuzhan', $_data, $where); if ($result) { alert_success("设置成功"); } else { alert_error("设置失败"); } break; case 'setImage': $data = $_POST['data']; $defaultImgType = $data['defaultImgType']; $defaultImg = $data['defaultImg']; $s_image = $defaultImgType . "|" . $defaultImg; $_data['zhuzhan_image'] = $s_image; $where = ' where id =' . $site_zid . ' '; $result = _UPDATE(DATA_FLAG . 'zhuzhan', $_data, $where); if ($result) { alert_success("设置成功"); } else { alert_error("设置失败"); } break; case 'setAliYun': $data = $_POST['data']; $id = $data['id']; $key = $data['key']; $endpoint = $data['endpoint']; $bucket = $data['bucket']; $url = $data['url']; $s_aliyun = $id . "|" . $key . "|" . $endpoint . "|" . $bucket . "|" . $url; $_data['zhuzhan_aliyun'] = $s_aliyun; $where = ' where id =' . $site_zid . ' '; $result = _UPDATE(DATA_FLAG . 'zhuzhan', $_data, $where); if ($result) { alert_success("设置成功"); } else { alert_error("设置失败"); } break; case 'setQiNiu': $data = $_POST['data']; $id = $data['id']; $key = $data['key']; $endpoint = $data['endpoint']; $url = $data['url']; $qiniu = $id . "|" . $key . "|" . $endpoint . "|" . $url; $_data['zhuzhan_qiniu'] = $qiniu; $where = ' where id =' . $site_zid . ' '; $result = _UPDATE(DATA_FLAG . 'zhuzhan', $_data, $where); if ($result) { alert_success("设置成功"); } else { alert_error("设置失败"); } break; case 'setDefaultPay': $data = $_POST['data']; $zfb = $data['zfb']; $wx = $data['wx']; $qq = $data['qq']; $_data['zhuzhan_zfb'] = $zfb; $_data['zhuzhan_wx'] = $wx; $_data['zhuzhan_qq'] = $qq; $where = ' where id =' . $site_zid . ' '; $result = _UPDATE(DATA_FLAG . 'zhuzhan', $_data, $where); if ($result) { alert_success("设置成功"); } else { alert_error("设置失败"); } break; case 'setZfbPay': $data = $_POST['data']; $pid = $data['pid']; $key = $data['key']; $czsxf = $data['czsxf']; $zfsxf = $data['zfsxf']; $alipay = $pid . "|" . $key . "|" . $czsxf . "|" . $zfsxf; $_data['zhuzhan_alipay'] = $alipay; $where = ' where id =' . $site_zid . ' '; $result = _UPDATE(DATA_FLAG . 'zhuzhan', $_data, $where); if ($result) { alert_success("设置成功"); } else { alert_error("设置失败"); } break; case 'setEPay': $data = $_POST['data']; $url = $data['url']; $pid = $data['pid']; $key = $data['key']; $czsxf = $data['czsxf']; $zfsxf = $data['zfsxf']; $epay = $url . "|" . $pid . "|" . $key . "|" . $czsxf . "|" . $zfsxf; $_data['zhuzhan_epay'] = $epay; $where = ' where id =' . $site_zid . ' '; $result = _UPDATE(DATA_FLAG . 'zhuzhan', $_data, $where); if ($result) { alert_success("设置成功"); } else { alert_error("设置失败"); } break; case 'setMaPay': $data = $_POST['data']; $url = $data['url']; $pid = $data['pid']; $key = $data['key']; $czsxf = $data['czsxf']; $zfsxf = $data['zfsxf']; $mapay = $url . "|" . $pid . "|" . $key . "|" . $czsxf . "|" . $zfsxf; $_data['zhuzhan_mapay'] = $mapay; $where = ' where id =' . $site_zid . ' '; $result = _UPDATE(DATA_FLAG . 'zhuzhan', $_data, $where); if ($result) { alert_success("设置成功"); } else { alert_error("设置失败"); } break; case 'setSystem': $data = $_POST['data']; $s_template = $data['zhuzhan_template']; $s_name = $data['zhuzhan_name']; $s_sname = $data['zhuzhan_sname']; $s_key = $data['zhuzhan_key']; $s_des = $data['zhuzhan_des']; $s_icp = $data['zhuzhan_icp']; $s_content = $data['zhuzhan_content']; $s_email = $data['zhuzhan_name']; $s_init_level = $data['zhuzhan_name']; $s_init_level_name = $data['zhuzhan_name']; $s_init_level_price = $data['zhuzhan_name']; $s_isfree_pay = $data['zhuzhan_isfree_pay']; $s_kefu = $data['zhuzhan_kefuinfo']; $s_token = $data['zhuzhan_name']; null_json($s_name, '请输入网址名称'); $s_init_levels = implode("|", $s_init_level); $s_emails = implode("|", $s_email); $_data['zhuzhan_kefuinfo'] = $s_kefu; // $_data['zhuzhan_template']=$s_template; $_data['zhuzhan_isfree_pay'] = $s_isfree_pay; $_data['zhuzhan_isorder_df'] = $data['zhuzhan_isorder_df']; $_data['zhuzhan_name'] = $s_name; $_data['zhuzhan_sname'] = $s_sname; $_data['zhuzhan_key'] = $s_key; $_data['zhuzhan_des'] = $s_des; $_data['zhuzhan_icp'] = $s_icp; //$_data['zhuzhan_email']=$s_emails; $_data['zhuzhan_content'] = $s_content; //$_data['zhuzhan_init_level']=$s_init_levels; // $_data['zhuzhan_notice']=$data['zhuzhan_notice']; // $_data['zhuzhan_nav']=$data['zhuzhan_nav']; // $_data['zhuzhan_token']=$s_token; /* $_data['zhuzhan_init_level_name']=$s_init_level_names; $_data['zhuzhan_init_level_price']=$s_init_level_prices;*/ $where = ' where id =' . $site_zid . ' '; $result = _UPDATE(DATA_FLAG . 'zhuzhan', $_data, $where); if ($result) { alert_success("设置成功"); } else { alert_error("设置失败"); } break; case 'setStyle': $data = $_POST['data']; $s_template = $data['zhuzhan_template']; $s_notice = $data['zhuzhan_notice']; $s_nav = $data['zhuzhan_nav']; // $_data['zhuzhan_template']=$s_template; $_data['zhuzhan_ico'] = $data['zhuzhan_ico']; $_data['zhuzhan_style'] = $data['zhuzhan_style']; $_data['zhuzhan_web_qq'] = $data['zhuzhan_web_qq']; $_data['zhuzhan_notice'] = $s_notice; $_data['zhuzhan_nav'] = $s_nav; $where = ' where id =' . $site_zid . ' '; $result = _UPDATE(DATA_FLAG . 'zhuzhan', $_data, $where); if ($result) { alert_success("设置成功"); } else { alert_error("设置失败"); } break; case 'setUserSystem': $data = $_POST['data']; $init_level = $data['nregister'] . '|' . $data['uregister'];
评论
    相关推荐
    • PHP+MYSQL编程
      PHP + Mysql的数据 PDF格式的
    • php+mysql编程
      php+mysql编程一些例子
    • php + mysql
      php +mysql 编程, 很经典!我看了很收益。老外写的经典教材,php mysql, 太好了!
    • php+mysql
      mysql中文参考手册与php手册
    • PHP+MYSQL教程
      PHP+MYSQL教程,为公司内部培训而整理的,简单,易懂。总结了两个外文教程的精化所在。
    • PHP+MYSQL相册
      采用PHP+MYSQL的相册管理系统,多数相册功能都有,只是开发的时候是报着玩的态度,因此界面不算漂亮,并且设计的不是很完美,但各种功能都有。
    • PHP+MySQL
      PHP&MySQL PHP+MySQL
    • php+mysql学习
      PHP+MYSQL动态网站开发与全程实例,自学,教学都适宜
    • php+mysql源码
      文件包含了一个用php+mysql构建的网站.
    • PHPMYSQL
      PHP + MYSQL 圣经 据说很好