head(); $this->banner(); $this->foot(); //网站配置 $configs = $this->peizhi(); //禁止注册用户名 $this->banuser = $configs['SITE_INFO']['banuser']; $_POST = $this->htmls($_POST); //订阅 $this->take = M("take"); $this->tougao = M("tougao"); $this->messages = M("message"); } function index(){ $seo = $this->youhua(9); $seo['title'] = '注册登录 - '.$seo['title']; $this->assign('seo',$seo); //注册协议 $data = $this->page->field('id,page_name')->find(14); $this->assign('data',$data); $this->display(); } //处理注册 function regSave(){ //$_POST = $this->htmls($_POST); $str = explode(',', $this->banuser); if (strlen($_POST['user']) < 6 || strlen($_POST['user']) > 20) { $this->error('用户名不能小于6位或大于20位!'); } if (in_array($_POST['user'], $str)) { $this->error('该用户名禁止注册!'); } $num = $this->member->where("user = '".$_POST['user']."'")->field('uid')->count(); if ($num > 0) { $this->error('用户名[ '.$_POST['user'].' ]已注册!'); } if (strlen($_POST['pwd']) < 6 || strlen($_POST['pwd']) > 20) { $this->error('密码不能小于6位或大于20位!'); } $nums = $this->member->where("email = '".$_POST['email']."'")->count(); if ($nums > 0) { $this->error('邮箱地址[ '.$_POST['email'].' ]已注册!'); } $this->member->create(); if (md5($_POST['codes']) == $_SESSION['verify']) { $_POST['pwd'] = $this->encrypt($_POST['pwd']); $result = $this->member->add(); if ($result) { $_SESSION['myuser']['uid'] = $result; $_SESSION['myuser']['user'] = $_POST['user']; $_SESSION['myuser']['pwd'] = $_POST['pwd']; $this->success('注册成功!','__URL__/main.html'); }else{ $this->error('注册失败!'); } } } //登录 function loginSave(){ $info['user'] = $_POST['user']; $info['pwd'] = $this->encrypt($_POST['pwd']); $data = $this->member->where($map)->find(); if ($data) { $_SESSION['myuser']['uid'] = $data['uid']; $_SESSION['myuser']['user'] = $info['user']; $_SESSION['myuser']['pwd'] = $info['pwd']; $this->success('登录成功!','__URL__/main.html'); }else{ $this->error('用户名或密码输入错误,请重新输入!'); } } function exits(){ $_SESSION['myuser'] = ''; $this->success('退出成功!','__APP__/Index.html'); } //个人中心 function main(){ if (!isset($_SESSION['myuser']) or empty($_SESSION['myuser'])) { //$this->redirect('__APP__/Member/index'); $this->error('请先登录或注册!','__APP__/Member.html'); } if (IS_POST) { $_POST['update_time'] = time(); $this->member->create(); if ($this->member->save()) { $this->success('保存成功!'); }else{ $this->error('保存失败!'); } }else{ $seo = $this->youhua(9); $seo['title'] = '个人中心 - '.$seo['title']; $this->assign('seo',$seo); $this->assign('data',$this->member->find($_SESSION['myuser']['uid'])); $this->assign('i',1); $this->display(); } } //公司信息 function company(){ if (!isset($_SESSION['myuser']) or empty($_SESSION['myuser'])) { //$this->redirect('__APP__/Member/index'); $this->error('请先登录或注册!','__APP__/Member.html'); } if (IS_POST) { $_POST['update_time'] = time(); $this->member->create(); if ($this->member->save()) { $this->success('保存成功!'); }else{ $this->error('保存失败!'); } }else{ $seo = $this->youhua(9); $seo['title'] = '公司信息 - '.$seo['title']; $this->assign('seo',$seo); $data = $this->member->find($_SESSION['myuser']['uid']); $this->assign('data',$data); $this->assign('i',2); $this->display(); } } //杂志订阅 function dingyue(){ if (!isset($_SESSION['myuser']) or empty($_SESSION['myuser'])) { //$this->redirect('__APP__/Member/index'); $this->error('请先登录或注册!','__APP__/Member.html'); } $configs = $this->peizhi(); if (IS_POST) { $_POST['dingstart'] = strtotime($_POST['dingstart']); $_POST['dingend'] = strtotime($_POST['dingend']); $m = $this->datem($_POST['dingstart'],$_POST['dingend']); $_POST['jine'] = $m*$_POST['fenshu']*$configs['SYSTEM_PAY']['bank']['dingjia']; if ($_POST['dingstart'] > $_POST['dingend']) { $this->error('结束时间要大于起订时间!'); } $_POST['time'] = time(); $_POST['uid'] = $_SESSION['myuser']['uid']; $this->take->create(); if ($this->take->add()) { $this->success('订阅成功!','__URL__/caxun.html'); }else{ $this->error('订阅失败!'); } }else{ $seo = $this->youhua(9); $seo['title'] = '杂志订阅 - '.$seo['title']; $this->assign('seo',$seo); $this->assign('i',3); //支付方式 银行汇款 $bank = $configs['SYSTEM_PAY']; $this->assign('bank',$bank); //邮局汇款 $postoffice = $configs['SYSTEM_PAY']; $this->assign('postoffice',$postoffice); $this->display(); } } //留言 function message(){ if (!isset($_SESSION['myuser']) or empty($_SESSION['myuser'])) { //$this->redirect('__APP__/Member/index'); $this->error('请先登录或注册!','__APP__/Member.html'); } if (IS_POST) { $_POST['addtime'] = time(); $_POST['uid'] = $_SESSION['myuser']['uid']; $_POST['statce'] = 1; $this->messages->create(); if ($this->messages->add()) { $this->success("感谢您的留言!"); }else{ $this->error("留言失败!"); } }else{ $seo = $this->youhua(9); $seo['title'] = '在线留言 - '.$seo['title']; $this->assign('seo',$seo); $this->assign('i',4); $this->display(); } } //查询 ----在线订阅 function caxun(){ if (!isset($_SESSION['myuser']) or empty($_SESSION['myuser'])) { //$this->redirect('__APP__/Member/index'); $this->error('请先登录或注册!','__APP__/Member.html'); } $seo = $this->youhua(9); $seo['title'] = '在线订阅 - '.$seo['title']; $this->assign('seo',$seo); $this->assign('i',5); // $configs = $this->peizhi(); $map['uid'] = $_SESSION['myuser']['uid']; $list = $this->take->where($map)->select(); foreach ($list as $k => $v) { $list[$k]['dangjia'] = $configs['SYSTEM_PAY']['bank']['dingjia']; } //var_dump($list); $this->assign('list',$list); $this->display(); } //发布供求信息 --- 列表 function gongqiu(){ if (!isset($_SESSION['myuser']) or empty($_SESSION['myuser'])) { //$this->redirect('__APP__/Member/index'); $this->error('请先登录或注册!','__APP__/Member.html'); } //供求列表 $map = array(); $map['cid'] = array('in',array(112,222,223)); $map['uid'] = $_SESSION['myuser']['uid']; $count = $this->news->field('id')->where($map)->count(); import("ORG.Util.MyPage"); //载入分页类 $page = new MyPage($count, 10); $showPage = $page->show(); $order = "time desc"; $list = $this->news->where($map)->field('id,cid,title,time,status,is_recommend')->order($order)->limit("$page->firstRow,$page->listRows")->select(); foreach ($list as $k => $v) { $cate = $this->category->find($v['cid']); $list[$k]['cidName'] = $cate['name']; } $this->assign("page", $showPage); $this->assign("list",$list); //Seo $seo = $this->youhua(9); $seo['title'] = '供求通道 - '.$seo['title']; $this->assign('seo',$seo); $this->assign('i',6); $this->display(); } function gongfrom(){ if (!isset($_SESSION['myuser']) or empty($_SESSION['myuser'])) { //$this->redirect('__APP__/Member/index'); $this->error('请先登录或注册!','__APP__/Member.html'); } if (IS_POST) { $_POST['time'] = time(); $_POST['status'] = 0; $_POST['uid'] = $_SESSION['myuser']['uid']; if (empty($_POST['keywords'])) { $_POST['keywords'] = $this->cutStr(strip_tags($_POST['content']), 200); } if (empty($_POST['description'])) { $_POST['description'] = $this->cutStr(strip_tags($_POST['content']), 200); } //var_dump($_POST);exit(); $this->news->create(); if ($this->news->add()) { $this->success('发布成功,我们会尽快安排工作人员给您审核!','__URL__/gongqiu.html'); }else{ $this->success('发布失败!'); } }else{ $seo = $this->youhua(9); $seo['title'] = '发布信息 - 供求通道 - '.$seo['title']; $this->assign('seo',$seo); $this->assign('i',6); $this->display(); } } function tougao(){ if (!isset($_SESSION['myuser']) or empty($_SESSION['myuser'])) { //$this->redirect('__APP__/Member/index'); $this->error('请先登录或注册!','__APP__/Member.html'); } if (IS_POST) { $_POST['statc'] = 0; $_POST['time'] = time(); $_POST['uid'] = $_SESSION['myuser']['uid']; $this->tougao->create(); if ($this->tougao->add()) { $this->success('投稿成功,我们会尽快安排工作人员给您审核!','__URL__/tougaolist.html'); }else{ $this->success('投稿失败!'); } }else{ $seo = $this->youhua(9); $seo['title'] = '在线投稿 - '.$seo['title']; $this->assign('seo',$seo); $this->assign('i',5); //分类 import("ORG.Util.Category"); $maps['type'] = "article"; $cat = new Category('Category', array('cid', 'pid', 'name', 'fullname'),$maps); $cat->getList(); //获取分类结构 $catlist = $cat->getList("",0,"pid asc,cid asc"); foreach ($catlist as $k => $v) { if (in_array($v['cid'],$this->cate())) { $catlist[$k]['disabled'] = "disabled"; } } $this->assign("catlist",$catlist); $this->display(); } } //投稿列表 function tougaolist(){ if (!isset($_SESSION['myuser']) or empty($_SESSION['myuser'])) { //$this->redirect('__APP__/Member/index'); $this->error('请先登录或注册!','__APP__/Member.html'); } $map = array(); $map['uid'] = $_SESSION['myuser']['uid']; $count = $this->tougao->field('id')->where($map)->count(); import("ORG.Util.MyPage"); //载入分页类 $page = new MyPage($count, 10); $showPage = $page->show(); $order = "time desc"; $list = $this->tougao->where($map)->order($order)->limit("$page->firstRow,$page->listRows")->select(); foreach ($list as $k => $v) { $cate = $this->category->find($v['cid']); $list[$k]['cidName'] = $cate['name']; } $this->assign("page", $showPage); $this->assign("list",$list); //Seo $seo = $this->youhua(9); $seo['title'] = '投稿查询 - '.$seo['title']; $this->assign('seo',$seo); $this->assign('i',5); $this->display(); } } 系统发生错误

:(

无法加载模块:Member

错误位置

FILE: E:\wwwroot\pmweb\pmweb.cn\ThinkPHP\Common\functions.php  LINE: 112