Exemple #1
0
 /**
  * Read installation parameters from stdin.
  * FIXME: May want to implement an abstract "CLIForm" class handling input/validation.
  * FIXME: Use readline if available?
  */
 function readParams()
 {
     printf("%s\n", Locale::translate('installer.ojsInstallation'));
     parent::readParams();
     $this->readParamBoolean('install', 'installer.installOJS');
     return $this->params['install'];
 }
 /**
  * Read installation parameters from stdin.
  * FIXME: May want to implement an abstract "CLIForm" class handling input/validation.
  * FIXME: Use readline if available?
  */
 function readParams()
 {
     AppLocale::requireComponents(array(LOCALE_COMPONENT_PKP_INSTALLER, LOCALE_COMPONENT_APPLICATION_COMMON, LOCALE_COMPONENT_PKP_USER));
     printf("%s\n", __('installer.ojsInstallation'));
     parent::readParams();
     $this->readParamBoolean('install', 'installer.installApplication');
     return $this->params['install'];
 }
Exemple #3
0
 /**
  * Read installation parameters from stdin.
  * FIXME: May want to implement an abstract "CLIForm" class handling input/validation.
  * FIXME: Use readline if available?
  */
 function readParams()
 {
     Locale::requireComponents(array(LOCALE_COMPONENT_PKP_INSTALLER, LOCALE_COMPONENT_APPLICATION_COMMON));
     printf("%s\n", Locale::translate('installer.harvester2Installation'));
     parent::readParams();
     $this->readParamBoolean('install', 'installer.installHarvester2');
     return $this->params['install'];
 }
 /**
  * Reads stream, applies property file formatting and returns resulting stream.
  *
  * @return string transformed buffer.
  * @throws BuildException if TYPO3version is not set in unresolveableReplacementPairs
  */
 public function read($len = null)
 {
     if (FALSE === $this->getInitialized()) {
         $this->initialize();
         $this->setInitialized(TRUE);
     }
     $defaultConfiguration = '';
     if (-1 === version_compare($this->getTYPO3Version(), '0.0.0')) {
         throw new BuildException('You must pass a TYPO3 version via the corresponding parameter in your build file!');
     }
     while (($data = $this->in->read($len)) !== -1) {
         $defaultConfiguration .= $data;
     }
     if ('' === $defaultConfiguration) {
         return -1;
     }
     $this->setDefaultConfiguration($defaultConfiguration);
     $comments = $this->installTool->getDefaultConfigArrayComments($defaultConfiguration);
     $out = $this->createPropertyPathsFromCommentArray($comments);
     return $out;
 }
Exemple #5
0
        }
        $objRow = $this->Database->query("SELECT COUNT(*) AS count FROM tl_files");
        // Step 2: scan the upload folder
        if ($objRow->count < 1) {
            if (Input::post('FORM_SUBMIT') == 'tl_30update') {
                $this->import('Database_Updater');
                $this->Database_Updater->scanUploadFolder();
                $this->Config->update("\$GLOBALS['TL_CONFIG']['checkFileTree']", true);
                $this->reload();
            }
            $this->Template->step = 2;
            $this->Template->is30Update = true;
            $this->outputAndExit();
        } elseif ($GLOBALS['TL_CONFIG']['checkFileTree']) {
            if (Input::post('FORM_SUBMIT') == 'tl_30update') {
                $this->import('Database_Updater');
                $this->Database_Updater->updateFileTreeFields();
                $this->Config->update("\$GLOBALS['TL_CONFIG']['checkFileTree']", false);
                $this->reload();
            }
            $this->Template->step = 3;
            $this->Template->is30Update = true;
            $this->outputAndExit();
        }
    }
}
/**
 * Instantiate the controller
 */
$objInstallTool = new InstallTool();
$objInstallTool->run();