require_once '../../inc/global.inc.php'; require_once 'langstats.class.php'; /** * Init */ $terms_limit = 10000 + 50; $x_most_popular = 2000; $output = false; $ls = new langstats(); if ($ls === false) { exit($ls->error); } $list = $ls->get_popular_terms($x_most_popular); if ($_GET['output'] == 1) { $output = true; $variables_origin = $ls->get_variables_origin(); } /** * Display */ if (count($list) == 0) { echo 'No terms loaded so far'; } if (count($list) > 0) { $i = 1; $j = 1; $k = 0; $files = array(); $trans = array(); echo 'Number of records: ' . count($list) . '<br />'; echo '<table><tr><th>Index</th><th>Registration order</th><th>Term</th>' . ($output == 1 ? '<th>Origin</th>' : '') . '<th>Count</th></tr>';