public function remove() { if (!isset($_SESSION['logged'])) { return call('pages', 'home'); } else { if (!isset($_GET['name'])) { return call('pages', 'error', 2); } Sources::remove($_GET['name']); return call('sources', 'index'); } }