/** * Получить путь к фото * * @return string */ public function getPhoto() { if ($this->photo == "") { return Registry::getValue("USERS_NO_PHOTO"); } return self::PHOTO_PATH . $this->mail . "/" . $this->photo; }
public function __construct($useCorrect = false) { session_start(); if ($useCorrect) { if (isset($_SESSION["localCorrect"])) { $this->localCorrect = $_SESSION["localCorrect"]; } else { try { $this->localCorrect = Registry::getValue("UTCcorrect"); $_SESSION["localCorrect"] = $this->localCorrect; } catch (Exception $e) { die("Установите ключ UTCcorrect для текущего пояса"); } } } }