Пример #1
0
 function getInfo()
 {
     global $default;
     if ($default->disableBulkImport) {
         return null;
     }
     if (!Permission::userIsSystemAdministrator($this->oUser->getId())) {
         return null;
     }
     return parent::getInfo();
 }
Пример #2
0
 function check()
 {
     $res = parent::check();
     if (empty($res)) {
         return $res;
     }
     $postExpected = KTUtil::arrayGet($_REQUEST, "postExpected");
     $postReceived = KTUtil::arrayGet($_REQUEST, "postReceived");
     if (!empty($postExpected)) {
         $aErrorOptions = array('redirect_to' => array('main', sprintf('fFolderId=%d', $this->oFolder->getId())), 'message' => _kt('Upload larger than maximum POST size (post_max_size variable in .htaccess or php.ini)'));
         $this->oValidator->notEmpty($postReceived, $aErrorOptions);
     }
     return true;
 }
Пример #3
0
 function getInfo()
 {
     return parent::getInfo();
 }
Пример #4
0
 function getInfo()
 {
     $aInfo = parent::getInfo();
     if (!Subscription::exists($this->oUser->getID(), $this->oFolder->getID(), SubscriptionEvent::subTypes('Folder'))) {
         $aInfo['active'] = 'no';
     }
     return $aInfo;
 }
Пример #5
0
 function FolderIndexAction($oDocument = null, $oUser = null, $oPlugin = null)
 {
     parent::KTFolderAction($oDocument, $oUser, $oPlugin);
     $this->sDisplayName = _kt('Schedule Indexing');
 }
Пример #6
0
 function JavascriptFolderAction($oFolder = null, $oUser = null, $oPlugin = null)
 {
     parent::KTFolderAction($oFolder, $oUser, $oPlugin);
     $this->js_initialise();
 }