
阿里山系的塔山景觀山谷下為來吉、豐山及太和村。
<?php
global $user;
print l("My Blog", "blog/" . $user->uid);
?>
<?php
$day = 02;
$month = 11;
$year = 2005;
$age= ((int)((mktime (0,0,0,$month,$day,$year) - time(void))/86400) * -1 );
print ("本站已開台: " . $age . "天");
?>
...Visitor from Nov 2005
<?php
$header = array ('Users', 'Posts');
$rows = array();
$q = "SELECT u.name, u.uid, count(DISTINCT c.cid)+count(DISTINCT n.nid) AS posts FROM users u LEFT JOIN {node} n ON u.uid=n.uid LEFT JOIN {comments} c ON u.uid=c.uid WHERE u.name!='' GROUP BY u.name HAVING posts>0 ORDER BY posts DESC LIMIT 100";
if($result = db_query($q)) {
while ( $row = db_fetch_object ( $result ) ) {
$user_link = "uid."'>".$row->name."";
$rows[] = array ( 'data' => array ( $user_link, $row->posts )) ;
}
}
if (!$rows) {
$rows[] = array(array('data' => t('No comments available.'), 'colspan' => 2));
}
print theme('table', $header, $rows);
?>
<?php
$uptime = shell_exec("cut -d. -f1 /proc/uptime");
$loadavg_array = explode(" ", exec("cat /proc/loadavg"));
$days = floor($uptime/60/60/24);
$hours = $uptime/60/60%24;
$mins = $uptime/60%60;
$secs = $uptime%60;
echo "This server has been up $days day(s) $hours hour(s) $mins minute(s) and $secs second(s)";
echo "Current server load:- 1m $loadavg_array[0]- 5m $loadavg_array[1]- 15m $loadavg_array[2]";
?>
<?php
global $user;
if (!$user->uid) {
// Change the following line's Login/Register text to whatever you want.
return l("Login/Register", "user/login");
} elseif ($user->uid) {
// The following line will display the username you are logged in as.
return 'Logged in as ' . $user->name . 'Logout';
}
?>
2007 整合不同相簿至部落日誌,開放的影像部落格 PhotoBlogs、私有的投影部落格 SlideBlogs、及共享的國際氣象圖 WeatherBlogs 。More PhotoBlogs