コード例 #1
0
ファイル: Settings.php プロジェクト: netconstructor/LampCMS
 protected function main()
 {
     $this->aPageVars['title'] = $this->_('Edit settings');
     $vals = array('confirmation' => $this->makeConfirmBlock(), 'change_password' => $this->_('Change Password'), 'profile' => $this->_('Edit Profile'), 'profileUrl' => '/editprofile/', 'emailPrefs' => $this->_('Email Preferences'), 'clearCache' => '');
     if ($this->Registry->Viewer->isAdmin()) {
         $vals['clearCache'] = $this->makeClearCache();
     }
     $this->aPageVars['body'] = \tplSettings::parse($vals);
 }
コード例 #2
0
 protected function main()
 {
     $this->aPageVars['title'] = $this->_('Edit settings');
     $vals = array('confirmation' => $this->makeConfirmBlock(), 'profileUrl' => '{_WEB_ROOT_}/{_editprofile_}/');
     try {
         $this->checkAccessPermission('edit_category');
         $canEdit = true;
     } catch (\Exception $e) {
         $canEdit = false;
     }
     try {
         $this->checkAccessPermission('edit_category');
         $vals['updateMongo'] = $this->makeMonghoShellLink();
     } catch (\Exception $e) {
         $vals['updateMongo'] = '';
     }
     if ($this->Registry->Viewer->isAdmin()) {
         $vals['clearCache'] = $this->makeClearCache();
     }
     if ($canEdit) {
         $vals['editCategories'] = $this->makeEditCategory();
     }
     $this->aPageVars['body'] = \tplSettings::parse($vals);
 }