change profile image to png

This commit is contained in:
2023-11-01 15:36:26 +07:00
parent 086a291e34
commit c6a800f774
+3 -3
View File
@@ -36,9 +36,9 @@ final class App {
if (isset($_SESSION['__WEB_USER'])) { if (isset($_SESSION['__WEB_USER'])) {
$this->auser = $_SESSION['__WEB_USER']; $this->auser = $_SESSION['__WEB_USER'];
$this->auser['user_info'] = tgl_sql2str($this->auser['Last_Date'], true) ." // ". $this->auser['Last_IP'].'<input type="hidden" id="Desktop_User_ID" value="'.intval($this->auser['UserID']).'"><input type="hidden" id="Desktop_User_Level" value="'.intval($this->auser['Level']).'"><input type="hidden" id="Desktop_User_UID" value="'.$this->auser['Username'].'">'; $this->auser['user_info'] = tgl_sql2str($this->auser['Last_Date'], true) ." // ". $this->auser['Last_IP'].'<input type="hidden" id="Desktop_User_ID" value="'.intval($this->auser['UserID']).'"><input type="hidden" id="Desktop_User_Level" value="'.intval($this->auser['Level']).'"><input type="hidden" id="Desktop_User_UID" value="'.$this->auser['Username'].'">';
$this->auser['user_img'] = "profile.webp"; $this->auser['user_img'] = "profile.png";
if (file_exists($this->apps['REAL_PATH']."assets/images/profiles/".$this->auser['UserID'].".webp")) { if (file_exists($this->apps['REAL_PATH']."assets/images/profiles/".$this->auser['UserID'].".png")) {
$this->auser['user_img'] = $this->auser['UserID'].".webp"; $this->auser['user_img'] = $this->auser['UserID'].".png";
} }
} }
$this->reg = new \siaupheng\fonia3\Web\Register($this->__db); $this->reg = new \siaupheng\fonia3\Web\Register($this->__db);