3.0.0MPAKÿüÌINFOÌüÿ# # This file contains Installation Informations. # This file does not include Installation Instructions for the normal User. # Please do not edit this file if you are not the Module Author. # # Please read the provided install.txt for Informations on how to install this Module. # # Module Name [name] Last Online [/name] # Module Directory Name [short_name] last_online [/short_name] # your name [author] Wicher ... [/author] # your email [email] N/A ... [/email] # your webpage url [url] http://www.detecties.com/phpbb2018 [/url] # module version [version] 4.1.1 [/version] # required minimum Statistics Mod Version [stats_mod_version] 3.0.1beta3s [/stats_mod_version] # default update time [update_time] 0 [/update_time] [check_update_site] http://www.detecties.com/phpbb2018 [/check_update_site] # extra info for the user [extra_info] This Module displays the last users who and when they were last online; [/extra_info] ÌÌÿINFOÿÌÌÿüÌLANGÌüÿhttp://www.phpbbhacks.com/download/237) has not been found, please install it before using this module'; // [/lang_english] // [lang_danish] $lang['module_name'] = 'Last Online'; $lang['name'] = 'Username'; $lang['last_online'] = 'Last Online'; $lang['Error_message'] = 'Last Visit Mod (http://www.phpbbhacks.com/download/237) has not been found, please install it before using this module'; // [/lang_danish] // [lang_dutch] $lang['module_name'] = 'Laatst Online'; $lang['name'] = 'Gebruikersnaam'; $lang['last_online'] = 'Laatst Online'; $lang['Error_message'] = 'Last Visit Mod (http://www.phpbbhacks.com/download/237) is niet gevonden, installeer die eerst voor je deze module gebruikt.'; // [/lang_dutch] // [lang_german] $lang['module_name'] = 'Letztes Online'; $lang['name'] = 'Benutzername'; $lang['last_online'] = 'Letztes On-line'; $lang['Error_message'] = 'Last Visit Mod (http://www.phpbbhacks.com/download/237) ist nicht gefunden worden, es bitte anbringt, bevor man dieses Modul verwendete'; // [/lang_german] // [lang_italian] $lang['module_name'] = 'Ultimo In linea'; $lang['name'] = 'Username'; $lang['last_online'] = 'Ultimo In linea'; $lang['Error_message'] = 'Last Visit Mod (http://www.phpbbhacks.com/download/237) non è stato trovato, prego lo installano prima di per mezzo di questo modulo'; // [/lang_italian] // [lang_spanish] $lang['module_name'] = 'En línea Pasado'; $lang['name'] = 'Username'; $lang['last_online'] = 'En línea Pasado'; $lang['Error_message'] = 'Last Visit Mod (http://www.phpbbhacks.com/download/237) no se ha encontrado, lo instalan por favor antes de usar este módulo'; // [/lang_spanish] ?>ÌÌÿLANGÿÌÌÿüÌMODÌüÿstart_module(true); $core->set_content('statistical'); $sql = "SELECT user_totaltime FROM " . USERS_TABLE . " ORDER BY user_totaltime DESC LIMIT 1"; if (!$result = $db->sql_query($sql)) { $there=0; } else { $there=1; } if ($there == 0) { message_die(GENERAL_MESSAGE, $lang['Error_message']); } $core->set_view('rows', $core->return_limit); $core->set_view('columns', 3); $core->define_view('set_columns', array( $core->pre_defined('rank'), 'date' => $lang['last_online'], 'user' => $lang['name']) ); $core->set_header($lang['module_name']); $core->assign_defined_view('align_rows', array( 'left', 'center', 'left') ); $core->assign_defined_view('width_rows', array( '10%', '50%', '80%') ); $sql = 'SELECT user_id, username, FROM_UNIXTIME(user_lastvisit + '.$userdata['user_timezone'].' * 3600) as lastvisit FROM ' . USERS_TABLE . ' WHERE user_id <> ' . ANONYMOUS . ' ORDER BY user_lastvisit DESC LIMIT ' . $core->return_limit; $result = $core->sql_query($sql, 'Couldn\'t retrieve topic data'); $topic_data = $core->sql_fetchrowset($result); $core->set_data($topic_data); // // Now this one could get a big beast // We will explain the structure, no fear, but not now. :D // $core->define_view('set_rows', array( '$core->pre_defined()', '$core->data(\'lastvisit\')', '$core->generate_link(append_sid($phpbb_root_path . \'profile.php?mode=viewprofile&u=\' . $core->data(\'user_id\')), $core->data(\'username\'), \'target="_blank"\')') ); // '$core->create_date('.$board_config['default_dateformat'].', data(\'user_lastvisit\'), '.$board_config['board_timezone'].')', $core->run_module(); ?>ÌÌÿMODÿÌÌ