sm = new SubModule(); if ($this->sm->call('init') !== false) { return; } } public function post() { if (!local_channel()) { return; } if ($_SESSION['delegate']) { return; } // logger('mod_settings: ' . print_r($_REQUEST,true)); if (argc() > 1) { if ($this->sm->call('post') !== false) { return; } } goaway(z_root() . '/settings'); } public function get() { Navbar::set_selected('Settings'); if ((!local_channel()) || ($_SESSION['delegate'])) { notice(t('Permission denied.') . EOL); return login(); } $channel = App::get_channel(); if ($channel) { head_set_icon($channel['xchan_photo_s']); } $o = $this->sm->call('get'); if ($o !== false) { return $o; } $o = EMPTY_STR; } }