1 2 3 4 5 6 7
<?php class Handler_Protected extends Handler { function before($method) { return parent::before($method) && !empty($_SESSION['uid']); } }