'name' => array( 'header' => array( 'value' => $txt['spider_name'], ), 'data' => array( 'db' => 'spider_name', ), 'sort' => array( 'default' => 's.spider_name', 'reverse' => 's.spider_name DESC', ), ), 'page_hits' => array( 'header' => array( 'value' => $txt['spider_stats_page_hits'], ), 'data' => array( 'db' => 'page_hits', ), 'sort' => array( 'default' => 'ss.page_hits', 'reverse' => 'ss.page_hits DESC', ), ), ), 'form' => array( 'href' => $scripturl . '?action=admin;area=sengines;sa=stats', 'name' => 'spider_stat_list', ), 'additional_rows' => empty($date_select) ? array() : array( array( 'position' => 'below_table_data', 'value' => $date_select, 'style' => 'text-align: right;', ), ), ); createToken('admin-ss'); require_once($sourcedir . '/Subs-List.php'); createList($listOptions); $context['sub_template'] = 'show_spider_stats'; $context['default_list'] = 'spider_stat_list'; } /** * Callback function for createList() * Get a list of spider stats from the log_spider table * * @param int $start The item to start with (for pagination purposes) * @param int $items_per_page The number of items to show per page * @param string $sort A string indicating how to sort the results * @return array An array of spider statistics info */ function list_getSpiderStats($start, $items_per_page, $sort) { global $smcFunc; $request = $smcFunc['db_query']('', ' SELECT ss.id_spider, ss.stat_date, ss.page_hits, s.spider_name FROM {db_prefix}log_spider_stats AS ss INNER JOIN {db_prefix}spiders AS s ON (s.id_spider = ss.id_spider) ORDER BY {raw:sort} LIMIT {int:start}, {int:items}', array( 'sort' => $sort, 'start' => $start, 'items' => $items_per_page, ) ); $spider_stats = array(); while ($row = $smcFunc['db_fetch_assoc']($request)) $spider_stats[] = $row; $smcFunc['db_free_result']($request); return $spider_stats; } /** * Callback function for createList() * Get the number of spider stat rows from the log spider stats table * * @return int The number of rows in the log_spider_stats table */ function list_getNumSpiderStats() { global $smcFunc; $request = $smcFunc['db_query']('', ' SELECT COUNT(*) AS num_stats FROM {db_prefix}log_spider_stats', array( ) ); list ($numStats) = $smcFunc['db_fetch_row']($request); $smcFunc['db_free_result']($request); return $numStats; } /** * Recache spider names? */ function recacheSpiderNames() { global $smcFunc; $request = $smcFunc['db_query']('', ' SELECT id_spider, spider_name FROM {db_prefix}spiders', array() ); $spiders = array(); while ($row = $smcFunc['db_fetch_assoc']($request)) $spiders[$row['id_spider']] = $row['spider_name']; $smcFunc['db_free_result']($request); updateSettings(array('spider_name_cache' => $smcFunc['json_encode']($spiders))); } ?> S.E.L.D. - Sole Elettrico Lan Division - Indice
  • Welcome to S.E.L.D. - Sole Elettrico Lan Division.
 

News

Informazioni generali e News
Tutte le novit? importanti relative al forum e non solo.
Nessun utente pu? postare o rispondere a parte gli amministratori.

Post: 15
Topic: 8

Last post: 01 Novembre 2010, 16:53:22 Re: Aggiornamento Forum ... by MacGyver

EVENTI ORGANIZZATI

RUBIERA GAMES 2010 WINTER EDITION
Descrizione del torneo a 8 Team di Call of Duty 4 previsto per sabato 6 novembre!

Post: 87
Topic: 10

Last post: 08 Novembre 2010, 10:48:51 Re: FOTO part 1 by MacGyver

RUBIERA GAMES 2009 WINTER EDITION
Descrizione dell'evento videoludico di sabato 14 novembre...

Post: 60
Topic: 7

Last post: 16 Novembre 2009, 14:29:47 Re: Tutti i vostri comme... by NOXE

Generale

Forum degli Associati
Forum pubblico dedicato agli argomenti che ruotano attorno all'associazione Culturale Eclettica

Post: 23
Topic: 3

Last post: 14 Giugno 2011, 00:32:39 Re: Pranzo di fine stagi... by MacGyver

Sezione per le Lan, Call of Duty, varie ed eventuali legate ai SELD
tutto ci? che riguarda il team S.E.L.D. a portata di tutti... Qui potrete postare qualunque cosa ruoti attorno al team.

Post: 685
Topic: 46

Last post: 18 Ottobre 2012, 01:01:23 20121019 Lan Party al So... by MacGyver

Argomenti Vari
Parla di quello che ti pare... NON relativo ai SELD, a Call of Duty ed alle LAN!

Post: 397
Topic: 45

Last post: 15 Giugno 2012, 12:53:47 Web Night Caf? Rubiera 2... by MacGyver

Sub-BoardsVendo e Compro

2,005 Posts in 220 Topics by 57 Members - Ultimo utente: HannibalSmit
Ultimo post: "20121019 Lan Party al So..." (18 Ottobre 2012, 01:01:23)
Mostra gli ultimi post del forum.

Utenti Online

Online: 135 Visitatori, 0 Utenti  - Record odierno di presenze: 135 -  Record assoluto di presenze: 506 (20 Dicembre 2022, 11:32:09)