摘要:
setInterval(function() {var date = new Date();var year = date.getFullYear();var month = date.getMonth()+1;var day = date.getDate();var weekArray = new 阅读全文
摘要:
define('BIND_MODULE','Admin');//生成admin模块后关闭//define('BUILD_MODEL_LIST','User,Menu');define('APP_PATH','./Application/');require './ThinkPHP/ThinkPHP. 阅读全文
摘要:
input{ vertical-align:middle; margin-top:-2px; margin-bottom:1px; } 阅读全文
摘要:
public function _initialize(){ if(!$_SESSION['username']){ $this->error('请先登录',U('Admin/Login/index')); } } 阅读全文
摘要:
$(function(){ $('.xii').click(function(){var xid = $(this).children('input').val();$.ajax({type:"post",url:"{:U('Home/Pin/xii')}",data:"xid="+xid,data 阅读全文
摘要:
修改TP里的session相当简单,TP也为我们考虑到了! 仅需要在项目配置文件里面加上: 'SESSION_OPTIONS' => array('path'=>'D:/thinkphp/sessions/') 也可以修改在php.ini里的配置session.save_path是注释掉的,那么Se 阅读全文
摘要:
<a href="http://wpa.qq.com/msgrd?v=3&uin= 你的QQ号码 &site=qq&menu=yes"> 阅读全文
摘要:
public function upload(){ $upload = new \Think\Upload();// 实例化上传类 $upload->maxSize = 3145728 ;// 设置附件上传大小 $upload->exts = array('jpg', 'gif', 'png', ' 阅读全文