Proszę o wskazówki :
class User { public $logged_in = null; public $user_level = null; function __construct() { $this->startSession(); } private function loginCheck() { return true; } else { return false; } } private function levelCheck() { $q = $db->query("Select * from mpa_users where id='$id'"); if($db->num_rows($q) == 1) { $row = $db->fetch_array($q); if($row['admin'] == 1) { return 7; { return 2; { $db->query("Update mpa_users set premium='0' where id='$id'"); return 1; }elseif($row['admin'] == 0 && $row['premium'] == 0) { return 1; } } else { } } private function startSession() { $this->logged_in = $this->loginCheck(); if($this->logged_in) { $this->user_level = $this->levelCheck(); } else { $this->user_level = 0; } } }