password.inc.php 644 B

123456789101112131415161718
  1. <?php
  2. global $_GPC, $_W;
  3. $GLOBALS['frames'] = $this->getMainMenu();
  4. $item=pdo_get('zhtc_system',array('uniacid'=>$_W['uniacid']));
  5. if(checksubmit('submit')){
  6. if($item['cz_password']==$_GPC['cz_password']){
  7. setcookie("cz_password",$item['cz_password']);
  8. message('验证通过',$this->createWebUrl('settings'),'success');
  9. }else{
  10. message('验证失败','','error');
  11. }
  12. }
  13. if($_COOKIE["cz_password"]==$item['cz_password']){
  14. include $this->template('web/settings');
  15. }else{
  16. include $this->template('web/password');
  17. }