equal
deleted
inserted
replaced
22 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. |
22 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. |
23 */ |
23 */ |
24 |
24 |
25 global $db, $session, $paths, $template, $plugins; // Common objects |
25 global $db, $session, $paths, $template, $plugins; // Common objects |
26 |
26 |
27 $plugins->attachHook('session_started', 'SpecialAdmin_paths_init();'); |
27 // $plugins->attachHook('session_started', 'SpecialAdmin_paths_init();'); |
28 |
28 |
29 function SpecialAdmin_paths_init() |
29 function SpecialAdmin_paths_init() |
30 { |
30 { |
31 global $paths; |
31 global $paths; |
32 $paths->add_page(Array( |
32 $paths->add_page(Array( |
163 } |
163 } |
164 $db->free_result(); |
164 $db->free_result(); |
165 // Stats |
165 // Stats |
166 if(getConfig('log_hits') == '1') |
166 if(getConfig('log_hits') == '1') |
167 { |
167 { |
|
168 require_once(ENANO_ROOT . '/includes/stats.php'); |
168 $stats = stats_top_pages(10); |
169 $stats = stats_top_pages(10); |
169 //die('<pre>'.print_r($stats,true).'</pre>'); |
170 //die('<pre>'.print_r($stats,true).'</pre>'); |
170 $c = 0; |
171 $c = 0; |
171 $cls = 'row2'; |
172 $cls = 'row2'; |
172 echo '<h3>' . $lang->get('acphome_heading_top_pages') . '</h3> |
173 echo '<h3>' . $lang->get('acphome_heading_top_pages') . '</h3> |