Пример #1
0
 /**
  * Получить путь к фото
  * 
  * @return string
  */
 public function getPhoto()
 {
     if ($this->photo == "") {
         return Registry::getValue("USERS_NO_PHOTO");
     }
     return self::PHOTO_PATH . $this->mail . "/" . $this->photo;
 }
Пример #2
0
 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 для текущего пояса");
             }
         }
     }
 }