差異處
這裏顯示兩個版本的差異處。
| 兩邊的前次修訂版前次修改 | |||
| footer [2026/06/17 06:12] – host | footer [2026/06/17 06:12] (目前版本) – host | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| - | <section> | + | <details><summary>Summary</summary>hello |
| - | <div class=" | + | Details |
| - | | + | </details> |
| - | global $ID; | + | |
| - | $counter_dir = DOKU_CONF . ' | + | |
| - | if (!is_dir($counter_dir)) { | + | |
| - | @mkdir($counter_dir, | + | |
| - | } | + | |
| - | + | ||
| - | $counter_file = $counter_dir . md5($ID) . ' | + | |
| - | $count = file_exists($counter_file) ? (int)file_get_contents($counter_file) : 0; | + | |
| - | + | ||
| - | // Increment only for real users | + | |
| - | $ua = $_SERVER[' | + | |
| - | if (!preg_match('/ | + | |
| - | $count++; | + | |
| - | file_put_contents($counter_file, | + | |
| - | } | + | |
| - | + | ||
| - | echo ' | + | |
| - | ?> | + | |
| - | </ | + | |
| - | </section> | + | |