khanat-opennel-code/code/web/public_php/admin/functions_tool_applications.php
shubham_meena c4ce26501c Merged in Gsoc14-ryzomAppImprovements (pull request #1)
Merging Gsoc 14 branch with default
2014-08-15 01:05:39 +05:30

21 lines
No EOL
401 B
PHP

<?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;
}
?>