-
Notifications
You must be signed in to change notification settings - Fork 1
/
getver.php
24 lines (23 loc) · 817 Bytes
/
getver.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
include_once "config.php";
$db = Config::GetIntance();
$sdk=$_GET['sdk'];
if ($sdk == '14') {
$appver=$db->mGet("luo2888_config", "value", "where name='appver_sdk14'");
$appUrl=$db->mGet("luo2888_config", "value", "where name='appurl_sdk14'");
} else {
$appver=$db->mGet("luo2888_config", "value", "where name='appver'");
$appUrl=$db->mGet("luo2888_config", "value", "where name='appurl'");
$up_size=$db->mGet("luo2888_config", "value", "where name='up_size'");
$up_sets=$db->mGet("luo2888_config", "value", "where name='up_sets'");
$up_text=$db->mGet("luo2888_config", "value", "where name='up_text'");
}
$obj=(Object)null;
$obj->appver=$appver;
$obj->appurl=$appUrl;
$obj->appsets=$up_sets;
$obj->appsize=$up_size;
$obj->apptext=$up_text;
echo json_encode($obj,JSON_UNESCAPED_UNICODE);
unset($obj);
?>