$lang["systemsetup"], 'href' => $baseurl_short . "pages/admin/admin_home.php", 'menu' => true], ['title' => $lang["installationcheck"]] ]); ?>  ' . escape($lang["repeatinstallationcheck"]); ?>

%1$s (%2$s)', escape($lang["blockedbrowsingoffilestore"]), escape($cfb['filestore_url']) ); ?> $required_fn) { ?> $sysu) { // Skip utilities which are a sub program (e.g ImageMagick has convert, identify, composite etc., checking for // convert is enough) -or- are not required and configured if (!$sysu['show_on_check_page'] || (!$sysu['required'] && !isset($GLOBALS[$sysu['path_var_name']]))) { continue; } display_utility_status($sysu_name); } # Check archiver if ( !$use_zip_extension && ($collection_download || isset($zipcommand)) # Only check if it is going to be used. ) { $archiver_fullpath = get_utility_path("archiver", $path); if ($path == null && !isset($zipcommand)) { $result = $lang["status-notinstalled"]; } elseif ($collection_download && $archiver_fullpath != false) { $result = $lang["status-ok"]; if (isset($zipcommand)) { $result .= "
" . $lang["zipcommand_overridden"]; } } elseif (isset($zipcommand)) { $result = $lang["status-warning"] . ": " . $lang["zipcommand_deprecated"]; } else { $result = $lang["status-fail"] . ": " . str_replace("?", $path, $lang["softwarenotfound"]); } ?>
2 || $last_cron == $lang["status-never"]) { ?>
php-
> php- $utilityname, 'version' => '', 'success' => false, 'error' => $lang['unknown']]; } $utility = RS_SYSTEM_UTILITIES[$utilityname]; $utility_fullpath = get_utility_path($utilityname, $path); $name = $utility['display_name'] ?? $utilityname; # Check path. if ($path == null) { # There was no complete path to check - the utility is not installed. $error_msg = $lang["status-notinstalled"]; return array("name" => $name, "version" => "", "success" => false, "error" => $error_msg); } if ($utility_fullpath === false) { # There was a path but it was incorrect - the utility couldn't be found. $error_msg = $lang["status-fail"] . ":
" . str_replace("?", $path, $lang["softwarenotfound"]); return array("name" => $name, "version" => "", "success" => false, "error" => $error_msg); } # Look up the argument to use to get the version. $version_argument = $utility['version_check']['argument'] ?? '' ?: '-version'; # Check execution and find out version. $version_command = $utility_fullpath . " " . $version_argument; $utilities_with_version_on_STDERR = ['python', 'antiword', 'pdftotext', 'fits']; $version = run_command($version_command, in_array($utilityname, $utilities_with_version_on_STDERR)); $version_check = call_user_func_array( $utility['version_check']['callback']['fct_name'], array_merge([$version, $utility], $utility['version_check']['callback']['args']) ); $name = $version_check['utility']['display_name'] ?? $name; $expected = $version_check['found']; if (!$expected) { # There was a correct path but the version check failed - unexpected output when executing the command. # Check if version command returned a custom error message if (isset($version_check['error_message'])) { $error_msg = $version_check['error_message']; } else { $error_msg = "{$lang["status-fail"]}:
" . str_replace(['%command', '%output'], [$version_command, $version], $lang['execution_failed']); } return array("name" => $name, "version" => "", "success" => false, "error" => $error_msg); } else { # There was a working path and the output was the expected - the version is returned. $s = explode("\n", $version); $version_line = $utilityname === 'antiword' ? $s[3] : $s[0]; return array("name" => $name, "version" => $version_line, "success" => true, "error" => ""); } } function php_is_64bit() { $int = "9223372036854775807"; $int = intval($int); if ($int == 9223372036854775807) { return true; } elseif ($int == 2147483647) { return false; } else { return "error"; } }