/**
  * Displays a form which allows members to deliver their solutions
  *
  * @access public
  */
 function submissionScreen()
 {
     global $ilUser;
     require_once "./Services/Utilities/classes/class.ilUtil.php";
     $this->tabs_gui->setTabActive("overview");
     $this->addOverviewSubTabs("overview");
     if (mktime() > $this->ass->getDeadline()) {
         ilUtil::sendInfo($this->lng->txt("rep_robj_xeph_time_up"));
     }
     $this->tpl->addBlockFile("ADM_CONTENT", "adm_content", "tpl.eph_deliver_file.html", "Customizing/global/plugins/Services/Repository/RepositoryObject/Ephorus");
     include_once dirname(dirname(__FILE__)) . '/include/class.DLEApi.php';
     include_once "./Customizing/global/plugins/Services/Repository/RepositoryObject/Ephorus/classes/class.ilEphDeliveredFilesTableGUI.php";
     $tab = new ilEphDeliveredFilesTableGUI($this, "deliver", $this->object, $_GET["ass_id"]);
     $this->tpl->setVariable("DELIVERED_FILES_TABLE", $tab->getHTML());
     if (mktime() < $this->ass->getDeadline()) {
         $disclosure = DLEApi::getSetting("disclosure");
         if (!empty($disclosure)) {
             $this->tpl->setVariable("DISCLOSURE", "<div class=\"framed\"><p class=\"small\">" . $disclosure . "</p></div><br />");
         }
         $this->initUploadForm();
         $this->tpl->setVariable("UPLOAD_SINGLE_FORM", $this->form->getHTML());
         $this->initZipUploadForm();
         $this->tpl->setVariable("UPLOAD_MULTI_FORM", $this->form->getHTML());
     }
 }
 public function testIndex()
 {
     /* Initiate the service class */
     $service = new EphorusService(false);
     /* Get the index address */
     $index_address = DLEApi::getSetting('index_address');
     if ($index_address == '') {
         return false;
     }
     $curl = curl_init($index_address);
     curl_setopt($curl, CURLOPT_RETURNTRANSFER, false);
     curl_setopt($curl, CURLOPT_FAILONERROR, true);
     if (DLEApi::getProxySetting('host')) {
         curl_setopt($curl, CURLOPT_PROXY, DLEApi::getProxySetting('host') . ':' . DLEApi::getProxySetting('port'));
     }
     if (!curl_exec($curl) || !strpos($index_address, 'wsdl')) {
         return false;
     }
     /* Initiate soap */
     $soap_client = $service->initSoapClient($index_address, 'visibility');
     /* Try to change file's visibility index */
     try {
         @$soap_client->IndexDocument(array('documentGuid' => '123456-123456-123456-123456', 'indexType' => 2));
         return true;
     } catch (SoapFault $e) {
         return true;
     }
 }