root/ip/trunk/adm/admin_google_bot_detector.php
| 122 | 169 | ||
|---|---|---|---|
20 | return; | 20 | return; |
21 | } | 21 | } |
22 | 22 | ||
23 | // Let's set the root dir for phpBB | 23 | // Load default Header |
24 | if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './../'); | 24 | if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './../'); |
25 | if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1)); | 25 | if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1)); |
26 | require('pagestart.' . PHP_EXT); | 26 | require('pagestart.' . PHP_EXT); |
... | ... | ||
40 | 40 | ||
41 | $template->set_filenames(array('body' => ADM_TPL . 'google_bot_detector_body.tpl')); | 41 | $template->set_filenames(array('body' => ADM_TPL . 'google_bot_detector_body.tpl')); |
42 | 42 | ||
43 | $sql = "SELECT * FROM " .GOOGLE_BOT_DETECTOR_TABLE ." ORDER BY detect_time DESC"; | 43 | $sql = "SELECT * FROM " . GOOGLE_BOT_DETECTOR_TABLE ." ORDER BY detect_time DESC"; |
44 | $result = $db->sql_query($sql); | 44 | $result = $db->sql_query($sql); |
45 | $total_row = $db->sql_numrows($result); | 45 | $total_row = $db->sql_numrows($result); |
46 | 46 | ||
47 | if (isset($total_row)) | 47 | if (isset($total_row)) |
48 | { | 48 | { |
49 | $pagination = generate_pagination(append_sid('admin_google_bot_detector.' . PHP_EXT), $total_row, $config['posts_per_page'], $start).' '; | 49 | $pagination = generate_pagination(append_sid('admin_google_bot_detector.' . PHP_EXT), $total_row, $config['posts_per_page'], $start) . ' '; |
50 | } | 50 | } |
51 | 51 | ||
52 | $db->sql_freeresult($result); | 52 | $db->sql_freeresult($result); |
53 | 53 | ||
54 | $sql .= " LIMIT " .$start .", " .$config['posts_per_page']; | 54 | $sql .= " LIMIT " . $start . ", " . $config['posts_per_page']; |
55 | $result = $db->sql_query($sql); | 55 | $result = $db->sql_query($sql); |
56 | 56 | ||
57 | if ($row = $db->sql_fetchrow($result)) | 57 | if ($row = $db->sql_fetchrow($result)) |
Download diff