Lines Matching full:if
26 /** @var bool if changes have been made that require a cache purge */
79 if ($skipInstalled && $extension->isInstalled()) return;
94 if (!$url) {
126 if ($_FILES[$field]['error']) {
132 if (!move_uploaded_file($_FILES[$field]['tmp_name'], "$tmp/$tmpbase.archive")) {
155 if ($extension->isInstalled()) {
156 if (!$this->overwrite) {
170 if (isset($this->processed[$id])) continue;
171 if ($id == $extension->getId()) continue; // avoid circular dependencies
198 if (!$extension->isInstalled()) {
202 if ($extension->isProtected()) {
209 if ($dependants !== []) {
213 if (!io_rmdir($extension->getInstallDir(), true)) {
228 if ($extension->isTemplate()) throw new Exception('notimplemented');
229 … if (!$extension->isInstalled()) throw new Exception('error_notinstalled', [$extension->getId()]);
230 … if ($extension->isEnabled()) throw new Exception('error_alreadyenabled', [$extension->getId()]);
234 if (!$plugin_controller->enable($extension->getBase())) {
247 if ($extension->isTemplate()) throw new Exception('notimplemented');
248 … if (!$extension->isInstalled()) throw new Exception('error_notinstalled', [$extension->getId()]);
249 … if (!$extension->isEnabled()) throw new Exception('error_alreadydisabled', [$extension->getId()]);
250 …if ($extension->isProtected()) throw new Exception('error_disable_protected', [$extension->getId()…
253 if ($dependants !== []) {
259 if (!$plugin_controller->disable($extension->getBase())) {
276 if (!preg_match('/https?:\/\//i', $url)) {
292 if (PHP_SAPI === 'cli' || @set_time_limit(60 * 4)) {
299 … if ($data === false) throw new Exception('error_download', [$url, $http->error, $http->status]);
302 if (
319 if (@file_put_contents("$tmp/$file", $data) === false) {
334 if (!file_exists($definitionfile)) return;
340 if (!$line) continue;
343 if (!file_exists($file)) continue;
359 if (function_exists('opcache_reset')) {
378 * Throws an exception if the extension is not compatible
386 if ($min && version_compare(PHP_VERSION, $min, '<')) {
391 if ($max && version_compare(PHP_VERSION, $max, '>')) {
399 * @throws Exception if the permissions are not correct
406 if ($extension->isBundled()) {
411 if (file_exists($target)) {
412 if (!is_writable($target)) throw new Exception('noperms');
418 if (!is_writable($target)) {
419 if ($extension->isTemplate()) throw new Exception('notplperms');
452 if (!$dir) throw new Exception('error_dircreate');
472 if (
479 if ($extensions) return $extensions;
484 if (count($files) === 1 && is_dir($files[0])) {
499 if (!$fh) throw new Exception('error_archive_read', [$archive]);
503 if (strpos($magic, "\x50\x4b\x03\x04") === 0) {
527 if (is_dir($src)) {
528 if (!$dh = @opendir($src)) {
532 if (io_mkdir_p($dst)) {
534 if ($f == '..' || $f == '.') continue;
545 if (!@copy($src, $dst)) {
548 if (!$existed && $conf['fperm']) chmod($dst, $conf['fperm']);
554 * Reset caches if needed
558 if ($this->isDirty) {