public function save() { if (!isset($_SESSION['logged'])) { return call('pages', 'home'); } else { $post_data = $_POST; Sources::add($post_data); return call('sources', 'index'); } }