. // 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_once('Smarty.class.php'); if(!isset($main_smarty)){$main_smarty = new Smarty;} // If we're calling this page through another page like index.php, $main_smarty will already be set // If we're calling this page directly, set main_smarty include_once('config.php'); include_once(mnminclude.'html1.php'); include_once(mnminclude.'link.php'); include_once(mnminclude.'tags.php'); include_once(mnminclude.'search.php'); include_once(mnminclude.'smartyvariables.php'); echo "
Top Users
"; $res = "select user_login,user_id,link_author,link_status,count(link_id) as links from ".table_users.",".table_links." WHERE user_id = link_author AND link_status = 'published' ORDER BY links DESC GROUP BY user_id limit 10"; $list_users = mysql_query($res) or die(mysql_error()); while($row = mysql_fetch_array($list_users)){ $user_url = getmyurl("user", $row['user_login']); echo "".$row['user_login']."
"; } echo "
"; ?>