<th width="180">价格</th> <th width="70">会员</th> <th width="145">更新时间</th> <th>浏览</th> <th width="50">操作</th> </tr> <?php foreach ($sell as $v) { ?> <tr onmouseover="this.className='on';" onmouseout="this.className='';" align="center"> <td><input type="checkbox" name="itemid[]" value="<?php echo $v['itemid']; ?> "></td> <td><a href="<?php echo site_main(site_url("clist/index/" . $v['all_linkurl'])); ?> " target="_blank"><?php echo $v['catname']; ?> </a></td> <td><?php echo $type; ?> </td> <td><?php if ($v['level']) { echo "<img alt='' title='", $v['level'], "级' src='", base_url("skin/images/level_" . $v['level'] . ".gif"), "'>"; } ?> </td>
echo main_url(base_url("skin/images/bar4.gif")); ?> " width="25" height="85" alt="" id="b_4" onclick="show(4);" title="会员管理"> <img src="<?php echo main_url(base_url("skin/images/barnav.gif")); ?> " width="19" height="1" alt="" id="n_4" style="width: 19px;"></td> <td valign="top" class="barmain"> <div class="bartop"> <table cellpadding="0" cellspacing="0" width="100%"> <tbody><tr height="20"> <td width="5"></td> <td id="name">功能模块</td> <td width="60" align="right"> <a href="<?php echo site_main(); ?> " target="_blank"><img src="<?php echo base_url("skin/images/home.gif"); ?> " width="8" height="8" title="网站首页"></a> <a href="<?php echo site_url("my_menu/main/index"); ?> " target="_top"><img src="<?php echo base_url("skin/images/reload.gif"); ?> " width="8" height="8" title="刷新(返回后台起始页)"></a> <!-- <a href="" target="main"><img src="< ?php echo base_url("skin/images/search.gif")?>" width="8" height="8" title="后台功能搜索"></a> --> <a href="<?php echo site_url("reg_login/logout");
function login() { $this->load->helper('cookie'); $userid = intval($this->uri->rsegment(3, 0)); $username = trim($this->uri->rsegment(4, '')); $rs = $this->comm->find('member', array('userid' => $userid, 'username' => $username), '', 'userid,username,password'); if (!$rs) { $data['msg'] = "无此会员,请重新选择"; $url = $this->load->view('public/success', $data, TRUE); echo $url; die; } $site = $this->config->item('site'); $this->load->library('encrypt'); $hash_1 = $this->encrypt->sha1($username . time()); $hash_2 = $this->encrypt->sha1($username . time()); $username = $this->encrypt->encode($username, $hash_1); $password = $this->encrypt->encode($rs['password'], $hash_2); set_cookie('username', $username, 3600, ".{$site['site_url']}"); set_cookie('password', $password, 3600, ".{$site['site_url']}"); set_cookie('hash_1', $hash_1, 3600, ".{$site['site_url']}"); set_cookie('hash_2', $hash_2, 3600, ".{$site['site_url']}"); $data['msg'] = "授权成功, 正转入会员中心...<br /><a href='" . site_main(site_url('user/user_main/index')) . "'>如果浏览器没有反应,请点这里进入</a>"; $url = $this->load->view('public/success', $data, TRUE); echo $url; die; }
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="robots" content="noindex,nofollow"> <?php if (preg_match('/会员中心/', $msg)) { ?> <meta http-equiv='refresh' content=2;URL="<?php echo site_main(site_url('user/user_main/index')); ?> "> <?php } ?> <title>提示信息</title> <link rel="stylesheet" href="<?php echo base_url("skin/css/msg.css"); ?> " type="text/css"> <script type="text/javascript" src="<?php echo base_url("skin/js/config.js"); ?> "></script> <script type="text/javascript">try {document.execCommand("BackgroundImageCache", false, true);} catch(e) {}</script> <style type="text/css" charset="utf-8">/* See license.txt for terms of usage */ /** reset styling **/ .firebugResetStyles { z-index: 2147483646 !important; top: 0 !important; left: 0 !important; display: block !important;