getDB(), getRootDB()를 autoload 클래스로 변경
- 각각 DB::db(), RootDB::db()임.
This commit is contained in:
1 parent
bb1a496835
commit
9e1aadf486
62 files changed
+258
-269
No files matched your search
+1
-1
@@ -64,7 +64,7 @@ if($me['skin'] < 1) {
|
||||
</table>
|
||||
<?php
|
||||
|
||||
$nationLevel = getDB()->queryFirstField('select level from nation where nation = %i', $me['nation']);
|
||||
$nationLevel = DB::db()->queryFirstField('select level from nation where nation = %i', $me['nation']);
|
||||
switch($type) {
|
||||
case 1: $query = "select npc,special,special2,personal,picture,imgsvr,name,level,dedication,experience,injury,leader,power,intel,gold,rice,belong,connect,killturn from general where nation='{$me['nation']}' order by level desc"; break;
|
||||
case 2: $query = "select npc,special,special2,personal,picture,imgsvr,name,level,dedication,experience,injury,leader,power,intel,gold,rice,belong,connect,killturn from general where nation='{$me['nation']}' order by dedication desc"; break;
|
||||
|
||||
Reference in new issue
Block a user