ITeye博客

Bryant's Space

gengshu1111 · 共 28 篇文章

Quick Linux Server Installation

基本服务器配置! Apache + MySQL + PHP + PhpMyAdmin + Webalizer + Mail Server (Postfix/Dovecot) + SquirrelMail + FTP Server (VSFtp) + ClamAV (Antivirus) + Webmin + IPTables Firewall + PHP-MySQL-Apache Server Kits 网址: http://mysql-apache-php.com/

2010-11-06 13:45 · Linux · 评论(0)

linux下ftp配置vsftp.conf

记下这个配置 /etc/vsftpd.conf listen =YES max_clients = 200 //最大连接数 max_per_ip = 10 anonymous_enable = NO //是否允许匿名登录 local_enable = YES write_enable = YES connect_from_port_20 = YES xferlog_enable = YES local_root = /var/www //本地用户指向文件夹

2010-11-04 09:09 · Linux · 评论(0)

利用vsftpd假设ftp服务器

转自 http://linux.chinaunix.net/doc/netconf/2005-02-02/1054.shtml 为了验证局域网网络安装Linux,近两天做了一个实验,目的就是为了写一个比较完整的帖子。 约定: 1。本帖操作环境是Redhat 9.0,vsFTPd的版本是Redhat 9.0所带的vsftpd-1.1.3-8.i386.rpm,在安装盘的第三张中 2。vsFTPd实现的最基本的目的:用系统中存在的真实用户能登入FTP,能用匿名访问。 3。本帖中vsFTPd运行模式是在standalone模式下运行的,也就是说,本帖中vsFTPd所有的功能都是在standalon…

2010-11-01 17:13 · Linux · 评论(0)

js滚动类

<实例地址:http://www.popub.net/script/MSClass.html> <!-- /*MSClass (Class Of Marquee Scroll通用不间断滚动JS封装类) Ver 1.65*\ 制作时间:2006-08-29 (Ver 0.5) 发布时间:2006-08-31 (Ver 0.8) 更新时间:2007-12-28 (Ver 1.65) 更新说明: + 加入功能 * 修正、完善 1.65.071228 * 横向、纵向滚动格式调整 (解决横向滚动换行的问题,无需特殊设置) * 彻底解决由于IE问题导致上下滚动页面留白的问题 (本次更新主要解决此问题,感…

2010-11-01 14:00 · javascript · 评论(0)

深度遍历implode函数

//Recursive implode function r_implode($glue,$arr) { foreach($arr as $r_arr) { if(is_array($r_arr)) { $val[] = r_implode($glue,$r_arr); }else{ $val[] = $r_arr; } } return implode($glue,$val); }

2010-10-26 14:35 · php · 评论(0)

dede的arclist 或list标签中autoindex的用法

autoindex是一个很重要的用法,用在列表时遇到不同的样式或是需要不同处理的情况,如下: {dede:list pagesize='28' titlelen='90' orderby='pubdate'} <li><a href="[field:arcurl/]">[field:title/]</a><span>[field:pubdate function="MyDate('Y-m-d',@me)"/]</span></li> [field:global name='autoindex' runphp='yes'](@me%7==0&&@me!=28)?@me="<li class='…

2010-10-14 13:04 · dedeCMS · 评论(0)

Ucenter 密码加密机制

因为疏忽 ,忘记了ucenter下的一个应用的后台管理员登录名和密码,google 了下ucenter的密码加密机制,很犀利: 如下: $salt = substr(uniqid(rand()), -6);//生成随机值 $pass ='mypass';//用户密码 $password = md5(md5($pass).$salt);//两次md5加密 下面是uc的107行数据库插入语句 $this->db->query("INSERT INTO ".UC_DBTABLEPRE."members SET $sqladd username='$username', password='$pas…

2010-10-14 12:54 · Ucenter · 评论(0)

dede分页条 样式设置

每次都遇见dede烦人的分页,总结到下边 <div class="tg_pages"> <ul> {dede:pagelist listitem="pre,next,pageno" listsize="5"/} </ul> </div> .tg_pages{padding-top: 10px;padding-bottom: 10px; margin-left:220px; height:20px;} .tg_pages ul li{display: inline;height:20px;line-height: 20px;float:left; text-align:center;margi…

2010-10-13 17:38 · dedeCMS · 评论(0)

Ubuntu Linux下apache基于域名的虚拟主机配置

最近在学习linux,今天在linux下配置了下虚拟主机,下面是步骤: 要配置的网站http://www.myweb.cn 虚拟主机文件 myweb 1、首先在 /etc/apache2/sites-available 目录下新建一个空的虚拟主机文件myweb cd /etc/apache2/sites-available touch myweb 2、退出返回到apache2目录,在sites-enabled下创建myweb的软连接 cd /etc/apache2/sites-enabled ln -f -s ../sites-available/myweb myweb 3、用vi打开myw…

2010-10-12 14:29 · Linux · 评论(0)

Jquery form plugin 的使用方法

表单的提交是一个经常要处理的东西,google了下,找到了jquery form 的插件,可以实现ajax的方式提交表单,并且设置起来很方便,代码如下: 设置调用 <script type='text/javascript' src='jquery.js'></script> <script type='text/javascript' src='jquery.form.js'></script> 设置表单 <form id='ajaxform' > <input name="username" type='text'/> <input name="pwd" type='password'/…

2010-10-12 10:00 · 评论(0)

JS换皮肤及cookie读写

要做皮肤切换,就涉及到js存取cookie的问题 function GetCookieVal(offset) //获得Cookie解码后的值 { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); } function SetCookie(name, value) //设定Cookie值 { var expdate = n…

2010-10-11 16:31 · javascript · 评论(0)

JS中的escape,encodeURI,encodeURIComponent 用法

在使用url进行参数传递时,经常会传递一些中文名(或含有特殊字符)的参数或URL地址,在 后台处理时会发生转换错误。在有些传递页面使用GB2312,而在接收页面使用UTF8,这样接收到的参数就可能会与原来发生不一致。使用服务器端的 urlEncode函数编码的URL,与使用客户端javascript的encodeURI函数编码的URL,结果就不一样。 javascript对文字进行编码涉及 3 个函数: escape,encodeURI,encodeURIComponent ,相应 3 个解码函数: unescape,decodeURI,decodeURIComponent javaScri…

2010-10-09 14:34 · javascript · 评论(0)

dede5.5 首页调用文章内容页body

{dede:arclist flag=h typeid=2 row=1 titlelen='200' orderby=pubdate} 调用全文语句: $aid = @me; $row = $GLOBALS->GetOne("Select body From dede_addonarticle where aid='$aid' "); @me = "{$row}";

2010-10-09 09:04 · dedeCMS · 评论(0)