khanat-opennel-code/code/ryzom/tools/server/admin/functions_tool_applications.php

21 lines
401 B
PHP
Raw Normal View History

2014-03-23 12:26:42 +00:00
<?php
function tool_applications_menu_get_list()
{
global $db;
$data = null;
$sql = "SELECT * FROM ". NELDB_APPLICATION_TABLE ." WHERE application_visible=1 AND application_uri<>'' ORDER BY application_order ASC";
if ($result = $db->sql_query($sql))
{
if ($db->sql_numrows($result))
{
$data = $db->sql_fetchrowset($result);
}
}
return $data;
}
?>