mysql_connect($INFO['base_host'], $INFO['base_user'], $INFO['base_pass']); mysql_query("SET NAMES 'utf8'"); mysql_select_db($INFO['base_name']); include "inc/cookie.php"; include "lib/theme.php"; $c = intval($_REQUEST['c']); ############ # SELECT FROM DB mysql_select_db($INFO['base_name']); mysql_query("SET NAMES 'utf8'") or die("Invalid query: " . mysql_error()); $query = "SELECT * FROM `" . $INFO['base_tabl'] . "` WHERE dst_ntb!='DC' and (`dst_mac`='ff:ff:ff:ff:ff:ff') and \r\n(`" . $INFO['base_tabl'] . "`.id>'" . intval($c) . "') order by id limit 1"; if (isset($query)) { $nn = 0; include "inc/popups.php"; while ($nn < 2) { $e = mysql_query($query) or die("Invalid query: " . mysql_error()); $output = popup_parse($e, false); // var_dump($output); break; ob_flush(); } sleep(1); $nn++; } # BROWSE END if ($output) { print $output; } else { print " "; } die;
$cp = 0; } if ($cn <= 0) { $cn = $c + 1; } //echo "$cmax $cn $c $cp"; $vars['cn'] = $cn; $vars['cp'] = $cp; $vars['c'] = $c; $vars['mpopups'] = $mpopups; $vars['navigate'] = theme('navigate', $vars); $query = "SELECT * FROM `" . $INFO['base_tabl'] . "` WHERE `" . $INFO['base_tabl'] . "`.id='" . intval($c) . "' limit 1"; if (isset($query)) { $e = mysql_query($query) or die("Invalid query: " . mysql_error()); include "popups.php"; $vars['content'] = popup_parse($e); } } # BROWSE END # STAT BEGING if ($jl_act == "stat") { include "modules/stat.php"; $vars['content'] = stat_page(); } # STAT END # SEARCH BEGING if ($jl_act == "search") { $vars['content'] = theme('search', $vars); } # SEARCH END # SETTINGS BEGING