2014
05-09
标签: wamp
-
-
2014 04-22
-
2014 03-24
-
2014 03-18
-
2014 03-15
-
2014 03-111.添加debian更新源 登入winscp 帐号 root 密码 welc0me 文件目录地址/etc/apt/sources.list 原来的更新源: deb http://ftp.us.debian.org/debian/ squeeze main deb http://ftp.us.debian.org/debian/ wheezy main #deb-src http://ftp.us.debian.org/debian/ wheezy main #deb http://ftp.us.debian.org/debian/ sid main 把前面两个deb加#注释掉或是全部删掉 添加 deb http://archive.debian.org/debian/ lenny main 2.登入PuTTY 帐号 root 密码 welc0me 查看你的MBL的硬件版本 我的硬件版本是 MyBookLive:~# cat /etc/version 02.42.03-027 保护udev[list=1] [*]aptitude hold udev [/list] 升级并安装mysql[
-
2013 11-18
-
2013 08-30
-
2013 03-10
-
2012 10-24
-
2012 10-22
-
2012 09-08有时候会在WP模板中加入一些东西,但是这些东西呢又不想让别人看到,只有自己能看到。 那么就会用到下面这段代码: <?php global $user_ID; if( $user_ID ) : ?> <?php if( current_user_can('level_10') ) : ?> [stuff here] <?php endif; ?> <?php endif; ?> 如你所见,代码很简单,如果当前用户的等级为10级(管理员等级)则显示代码中的内容。 反之,如果等级不够或未登录,那么内容则不会给与显示。 如果你觉得上面的代码太复杂了,那你也可以试试下面的,只有一行,不过没有前面的严谨。 <?php if($GLOBALS['user_login']=='admin') { echo '[stuff here]'; } ?> 我的留言板 清风徐来_一风的留言板 已按此内容更新,现在所有留言只有一风能看到哦。












