Initial commit

This commit is contained in:
温泉
2019-12-09 10:23:56 +08:00
commit ed35810923
420 changed files with 181538 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
<?php
/**
* Created by PhpStorm.
* User: 温泉
* Date: 2018-01-14
* Time: 13:44
*/
function app_idgetinfo($id)
{
global $db;
return $db->select_first_row('sq_apps', '*', array('ID' => $id), 'AND');
}
function app_idgetname($id)
{
global $db;
if (!$result = $db->select_first_row('sq_apps', 'appname', array('ID' => $id), 'AND')) {
return false;
}
return $result['appname'];
}
function level_idgetname($id)
{
global $db;
if (!$result = $db->select_first_row('sq_level', 'lname', array('ID' => $id), 'AND')) {
return false;
} else {
return $result['lname'];
}
}