. // It's licensed under the AFFERO GENERAL PUBLIC LICENSE unless stated otherwise. // You can get copies of the licenses here: // http://www.affero.org/oagpl.html // AFFERO GENERAL PUBLIC LICENSE is also included in the file called "COPYING". include('config.php'); include(mnminclude.'html1.php'); include(mnminclude.'sneak.php'); #$globals['ads'] = true; $globals['body-args'] = 'onload="start()"'; // Create temporary table for chat if it does not exist $db->query('CREATE TABLE IF NOT EXISTS `chats` ( `chat_time` INTEGER UNSIGNED NOT NULL DEFAULT 0 , `chat_uid` INTEGER UNSIGNED NOT NULL DEFAULT 0, `chat_user` CHAR( 32 ) NOT NULL , `chat_md5` CHAR( 32 ), `chat_text` CHAR( 255 ) NOT NULL , INDEX USING BTREE ( `chat_time` ) ) ENGINE = MEMORY MAX_ROWS = 500'); $db->query('CREATE TABLE IF NOT EXISTS `sneakers` ( `sneaker_id` CHAR(24) NOT NULL, `sneaker_time` INTEGER UNSIGNED NOT NULL DEFAULT 0, UNIQUE ( `sneaker_id` ) ) ENGINE = MEMORY MAX_ROWS = 500'); // Check number of users if it's annonymous if ($current_user->user_id == 0) { $nusers= $db->get_var("select count(*) from sneakers"); if ($nusers > 100) { header('Location: http://' . get_server_name().$globals['base_url'].'toomuch.html'); die; } } // Delete all connections from the same IP, just to avoid stupid cheating $db->query("delete from sneakers where sneaker_id like '".$globals['user_ip']."%'"); // Start html do_header(_('¡HOYGAN!')); ?> '; echo '
'; echo '
'; echo '
'; echo 'play/pause      '; echo ''._('votos de publicadas').''; echo ''._('meneos').''; echo ''._('problema').''; echo ''._('HOYGAN').''; echo ''._('nueva').''; echo ''._('publicada').''; if ($current_user->user_id > 0) $chat_checked = 'checked="checked"'; else $chat_checked = ''; echo ''._('mensaje').''; echo _('fisgonas'). ': '; echo "
\n"; if ($current_user->user_id > 0) { echo '
'; echo _('mensaje') . ':  '; echo '
'; } echo '
' . "\n"; echo '
'; echo '
'; echo '
'._('hora').'
'; echo '
'._('acción').'
'; echo '
me/co
'; echo '
 '._('noticia').'
'; echo '
 '._('quién/qué').'
'; echo '
'._('estado').'
'; echo "
\n"; echo "
\n"; for ($i=0; $i<$max_items;$i++) { echo '
 '; echo "
\n"; } echo '
'; //echo "\n"; // air-with-footer do_footer(false); ?>