Esempio n. 1
0
 /**
  * Set up this controller.
  *
  * @param String $action Name of the action to be invoked
  * @param Array  $args   Arguments to be passed to the action method
  */
 public function before_filter(&$action, &$args)
 {
     parent::before_filter($action, $args);
     PageLayout::setTitle(_('Allgemeine Einstellungen anpassen'));
     Navigation::activateItem('/profile/settings/general');
     SkipLinks::addIndex(_('Allgemeine Einstellungen anpassen'), 'layout_content', 100);
 }
Esempio n. 2
0
 /**
  * Set up this controller and define the infobox.
  *
  * @param String $action Name of the action to be invoked
  * @param Array  $args   Arguments to be passed to the action method
  */
 public function before_filter(&$action, &$args)
 {
     parent::before_filter($action, $args);
     PageLayout::setHelpKeyword('Basis.HomepageLebenslauf');
     PageLayout::setTitle($this->user->perms == 'dozent' ? _('Lebenslauf, Arbeitsschwerpunkte und Publikationen bearbeiten') : _('Lebenslauf bearbeiten'));
     Navigation::activateItem('/profile/edit/details');
     SkipLinks::addIndex(_('Private Daten bearbeiten'), 'layout_content');
 }
Esempio n. 3
0
 /**
  * Set up this controller.
  *
  * @param String $action Name of the action to be invoked
  * @param Array  $args   Arguments to be passed to the action method
  */
 public function before_filter(&$action, &$args)
 {
     parent::before_filter($action, $args);
     PageLayout::setHelpKeyword('Basis.MyStudIPPrivacy');
     PageLayout::setTitle(_('Privatsphäre'));
     Navigation::activateItem('/profile/settings/privacy');
     SkipLinks::addIndex(_('Privatsphäre'), 'layout_content', 100);
 }
Esempio n. 4
0
 /**
  * Set up this controller and define the infobox
  *
  * @param String $action Name of the action to be invoked
  * @param Array  $args   Arguments to be passed to the action method
  */
 public function before_filter(&$action, &$args)
 {
     parent::before_filter($action, $args);
     PageLayout::setHelpKeyword('Basis.HomepagePersönlicheDaten');
     PageLayout::setTitle(_('Benutzerkonto bearbeiten'));
     Navigation::activateItem('/profile/edit/profile');
     SkipLinks::addIndex(_('Benutzerkonto bearbeiten'), 'layout_content');
     Sidebar::get()->setImage('sidebar/person-sidebar.png');
 }
Esempio n. 5
0
 /**
  * Set up this controller.
  *
  * @param String $action Name of the action to be invoked
  * @param Array  $args   Arguments to be passed to the action method
  */
 public function before_filter(&$action, &$args)
 {
     parent::before_filter($action, $args);
     PageLayout::setHelpKeyword('Basis.HomepageNutzerdomänen');
     PageLayout::setTitle(_('Nutzerdomänen bearbeiten'));
     Navigation::activateItem('/profile/edit/userdomains');
     SkipLinks::addIndex(_('Zugeordnete Nutzerdomänen'), 'assigned_userdomains');
     SkipLinks::addIndex(_('Nutzerdomäne auswählen'), 'select_userdomains');
     Sidebar::get()->setImage('sidebar/admin-sidebar.png');
 }
Esempio n. 6
0
 /**
  * Set up this controller.
  *
  * @param String $action Name of the action to be invoked
  * @param Array  $args   Arguments to be passed to the action method
  */
 public function before_filter(&$action, &$args)
 {
     parent::before_filter($action, $args);
     require_once 'lib/deputies_functions.inc.php';
     PageLayout::setHelpKeyword('Basis.MyStudIPDeputies');
     PageLayout::setTitle(_('Standardvertretung'));
     Navigation::activateItem('/profile/settings/deputies');
     SkipLinks::addIndex(_('Standardvertretung'), 'main_content', 100);
     $this->edit_about_enabled = get_config('DEPUTIES_EDIT_ABOUT_ENABLE');
 }
Esempio n. 7
0
 /**
  * Set up this controller. Rewrites $action on verification.
  *
  * @param String $action Name of the action to be invoked
  * @param Array  $args   Arguments to be passed to the action method
  */
 public function before_filter(&$action, &$args)
 {
     parent::before_filter($action, $args);
     Navigation::activateItem('/profile/categories');
     PageLayout::setHelpKeyword('Basis.HomepageSonstiges');
     PageLayout::setTitle(_('Eigene Kategorien bearbeiten'));
     SkipLinks::addIndex(_('Eigene Kategorien bearbeiten'), 'layout_content', 100);
     if ($action === 'verify') {
         $action = 'index';
     }
 }
Esempio n. 8
0
 /**
  * Set up this controller
  *
  * @param String $action Name of the action to be invoked
  * @param Array  $args   Arguments to be passed to the action method
  * @throws AccessDeniedException if the calendar is not globally enabled
  */
 public function before_filter(&$action, &$args)
 {
     if (!get_config('CALENDAR_ENABLE')) {
         throw new AccessDeniedException(_('Der Kalender ist nicht aktiviert.'));
     }
     parent::before_filter($action, $args);
     PageLayout::setHelpKeyword('Basis.MyStudIPTerminkalender');
     PageLayout::setTitle(_('Einstellungen des Terminkalenders anpassen'));
     Navigation::activateItem('/profile/settings/calendar_new');
     SkipLinks::addIndex(_('Einstellungen des Terminkalenders anpassen'), 'main_content', 100);
 }
Esempio n. 9
0
 /**
  * Set up this controller.
  *
  * @param String $action Name of the action to be invoked
  * @param Array  $args   Arguments to be passed to the action method
  * @throws AccessDeniedException if the current user is not allowed to
  *                               change the password
  */
 public function before_filter(&$action, &$args)
 {
     parent::before_filter($action, $args);
     if (!$this->shallChange('auth_user_md5.password', 'password')) {
         throw new AccessDeniedException();
     }
     PageLayout::setHelpKeyword('Basis.HomepagePersönlicheDaten');
     PageLayout::setTitle(_('Passwort ändern'));
     Navigation::activateItem('profile/edit/password');
     SkipLinks::addIndex(_('Passwort ändern'), 'layout_content');
 }
Esempio n. 10
0
 /**
  * Set up this controller
  *
  * @param String $action Name of the action to be invoked
  * @param Array  $args   Arguments to be passed to the action method
  */
 public function before_filter(&$action, &$args)
 {
     parent::before_filter($action, $args);
     PageLayout::setHelpKeyword('Basis.HomepageBild');
     PageLayout::setTitle(_('Hochladen eines persönlichen Bildes'));
     Navigation::activateItem('/profile/avatar');
     SkipLinks::addIndex(_('Hochladen eines persönlichen Bildes'), 'edit_avatar');
     $this->customized = Avatar::getAvatar($this->user->user_id)->is_customized();
     if ($this->customized) {
         SkipLinks::addIndex(_('Eigenes Bild löschen'), 'delete_picture');
     }
 }
Esempio n. 11
0
 public function before_filter(&$action, &$args)
 {
     if ($action === 'verify') {
         $action = 'index';
     }
     parent::before_filter($action, $args);
     PageLayout::setHelpKeyword('Basis.MyStudIPMessaging');
     PageLayout::setTitle(_('Einstellungen des Nachrichtensystems anpassen'));
     Navigation::activateItem('/profile/settings/messaging');
     SkipLinks::addIndex(_('Einstellungen des Nachrichtensystems anpassen'), 'layout_content', 100);
     $this->settings = $this->config->MESSAGING_SETTINGS;
 }
Esempio n. 12
0
 /**
  * Set up this controller.
  *
  * @param String $action Name of the action to be invoked
  * @param Array  $args   Arguments to be passed to the action method
  */
 public function before_filter(&$action, &$args)
 {
     parent::before_filter($action, $args);
     if (!in_array($this->user->perms, words('autor tutor dozent'))) {
         throw new AccessDeniedException();
     }
     PageLayout::setHelpKeyword('Basis.HomepageUniversitäreDaten');
     PageLayout::setTitle(_('Studiengang bearbeiten'));
     Navigation::activateItem('/profile/edit/studies');
     SkipLinks::addIndex(_('Fächer und Abschlüsse auswählen'), 'select_fach_abschluss');
     SkipLinks::addIndex(_('Zu Einrichtungen zuordnen'), 'select_institute');
     $this->allow_change = array('sg' => !StudipAuthAbstract::CheckField('studiengang_id', $this->user->auth_plugin) && (Config::get()->ALLOW_SELFASSIGN_STUDYCOURSE || $GLOBALS['perm']->have_perm('admin')), 'in' => Config::get()->ALLOW_SELFASSIGN_INSTITUTE || $GLOBALS['perm']->have_perm('admin'));
 }
Esempio n. 13
0
 /**
  * Set up this controller and define the infobox
  *
  * @param String $action Name of the action to be invoked
  * @param Array  $args   Arguments to be passed to the action method
  */
 public function before_filter(&$action, &$args)
 {
     if ($action === 'verify') {
         $action = 'index';
     }
     parent::before_filter($action, $args);
     require_once 'lib/statusgruppe.inc.php';
     PageLayout::setHelpKeyword('Basis.HomepageUniversitäreDaten');
     PageLayout::setTitle(_('Einrichtungsdaten bearbeiten'));
     Navigation::activateItem('/profile/edit/statusgruppen');
     SkipLinks::addIndex(_('Einrichtungsdaten bearbeiten'), 'layout_content', 100);
     Sidebar::get()->setImage('sidebar/group-sidebar.png');
 }
Esempio n. 14
0
 /**
  * Set up this controller and define the infobox
  *
  * @param String $action Name of the action to be invoked
  * @param Array  $args   Arguments to be passed to the action method
  * @throws AccessDeniedException if notifications are not globally enabled
  *                               or if the user has no access to these
  *                               notifications (admin or root accounts).
  */
 public function before_filter(&$action, &$args)
 {
     parent::before_filter($action, $args);
     if (!get_config('MAIL_NOTIFICATION_ENABLE')) {
         $message = _('Die Benachrichtigungsfunktion wurde in den Systemeinstellungen nicht freigeschaltet.');
         throw new AccessDeniedException($message);
     }
     if (!$GLOBALS['auth']->is_authenticated() || $GLOBALS['perm']->have_perm('admin')) {
         throw new AccessDeniedException();
     }
     PageLayout::setHelpKeyword('Basis.MyStudIPBenachrichtigung');
     PageLayout::setTitle(_('Benachrichtigung über neue Inhalte anpassen'));
     Navigation::activateItem('/profile/settings/notification');
     SkipLinks::addIndex(_('Benachrichtigung über neue Inhalte anpassen'), 'layout_content', 100);
     Sidebar::get()->setImage('sidebar/seminar-sidebar.png');
 }