/[LeafOK_CVS]/fenglin/bbs/top_user.php
ViewVC logotype

Contents of /fenglin/bbs/top_user.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations)
Sat Mar 1 08:43:29 2025 UTC (12 months, 2 weeks ago) by sysadm
Branch: MAIN
Changes since 1.2: +12 -17 lines
Convert GB2312 to UTF-8

1 <?
2 require_once "./session_init.inc.php";
3 ?>
4 <?
5 if ($_SESSION["BBS_uid"]==0)
6 {
7 include "./force_login.inc.php";
8 exit();
9 }
10 ?>
11 <html>
12 <head>
13 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
14 <title>原创排行榜</title>
15 </head>
16 <body>
17 <p align="center">
18 -----===== 原创排行榜 =====-----
19 </p>
20 <?
21 $cache_path = "../stat/top_user.txt";
22 $buffer = false;
23 if (file_exists($cache_path))
24 {
25 if (time() - filemtime($cache_path) < 60*60*8)
26 {
27 $buffer = file_get_contents($cache_path);
28 }
29 }
30 if ($buffer == false)
31 {
32 $db_conn = include "./db_open.inc.php";
33
34 ob_start();
35 include "top_user_gen.inc.php";
36 $buffer = ob_get_clean();
37
38 file_put_contents($cache_path, $buffer);
39 }
40 echo $buffer;
41 ?>
42 </body>
43 </html>

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1