아이콘, 게임 이미지 경로를 일괄 지정 가능하도록 변경

This commit is contained in:
2018-04-08 16:56:26 +09:00
parent fe53fb9359
commit bc7efae08c
31 changed files with 515 additions and 346 deletions
+9 -4
View File
@@ -12,16 +12,21 @@ $db = RootDB::db();
$member = $db->queryFirstRow('SELECT `id`, `name`, `grade`, `picture` FROM `MEMBER` WHERE `NO` = %i', $userID);
if(!$member['picture']){
$picture = IMAGE.'/default.jpg';
$picture = ServConfig::$sharedIconPath.'/default.jpg';
}
else{
$picture = $member['picture'];
if(strlen($picture) > 11){
$picture = substr($picture, 0, -10);
}
$picture = '../d_pic/'.$picture;
if(!file_exists($picture)){
$picture = IMAGE.'/'.$picture;
$pictureFSPath = AppConf::getUserIconPathFS().'/'.$picture;
if(file_exists($pictureFSPath)){
$picture = AppConf::getUserIconPathWeb().'/'.$picture;
}
else{
$picture = ServConfig::$sharedIconPath.'/'.$picture;
}
}