/** * [LUPA!] * XIAOJIE5525@163.COM * * $Id: 自动更新文章的查看数 $ */ $dateline = TIMESTAMP - 3600 * 24 * 3;//7天内 $wheresql=" 1=1 "; $query = C::t('portal_article_count')->fetch_all_newarticle($wheresql, $dateline); foreach($query as $value) { $aid=$value['aid']; $article_count = C::t('portal_article_count')->fetch($aid); if($article_count) $article = array_merge($article_count, $article); if($article_count) { $viewnum=rand(10,20);//每次所加的查看数 C::t('portal_article_count')->increase($aid, array('viewnum'=>$viewnum)); unset($article_count); } else { C::t('portal_article_count')->insert(array( 'aid'=>$aid, 'catid'=>$article['catid'], 'viewnum'=>1)); } } ?>
SystemRescueCd是一份实现在可启动光盘或USB盘上的基于Gentoo的Linux系统,它被设计为在计算机崩溃后修复系统及数据。它的另
一个目标是为执行计算机管理任务,例如创建和修改硬盘分区,提供简易方法。它包含了很多有用的系统实用工具(GNU
Parted、PartImage、FSTools)及基本软件(编辑器、Midnight
Commander,网络工具)。它的宗旨是极佳的易用性。其系统内核支持所有当今最为重要的文件系统,包括ext2、ext3、ext4、
ReiserFS、Reiser4FS、btrfs、XFS、JFS、VFAT、NTFS、ISO9660,以及网络文件系统例如Samba和NFS。 François Dupoux has released a brand new version of SystemRescueCd, a Gentoo-based live CD featuring a number of useful utilities for data rescue and disk management tasks. The most important change is the introduction of Linux 2.6.35 as the default kernel. From the changelog: "Re-based standard kernels on 2.6.35.4 (rescuecd + rescue64); re-based alternative kernels on 2.6.32.21 (altker32 + altker64); updated X.Org Server to version 1.8.2 (graphical server and drivers); updated NTFS-3G to 2010.8.8 (driver that provides read-write access to NTFS file systems); added keymaps in isolinux (e.g.: just type 'de' to get a German keyboard map); Kernel Mode Settings graphic drivers (Intel, Radeon); updated GParted to version 0.6.2; updated Partimage to version 0.6.9." Read the full changelog for additional details. Download (MD5) the live CD image from SourceForge: systemrescuecd-x86-1.6.0.iso (270MB). |