1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154
|
<?php
/*
* Gallery - a web based photo album viewer and editor
* Copyright (C) 2000-2005 Bharat Mediratta
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Id: check_versions.php,v 1.20.2.1 2005/03/10 02:36:34 cryptographite Exp $
*/
?>
<?php
require_once(dirname(__FILE__) . '/init.php');
require(dirname(__FILE__) . '/functions.inc');
?>
<?php echo doctype(); ?>
<html>
<head>
<title> <?php echo _("Check Versions") ?> </title>
<?php common_header(); ?>
<style>
.shortdesc { width:30% }
</style>
</head>
<body dir="<?php echo $gallery->direction ?>">
<?php configLogin(basename(__FILE__)); ?>
<h1 class="header"><?php echo _("Check Versions") ?></h1>
<div class="sitedesc"><?php
echo sprintf(_("This page gives you information about the version of each necessary %s file. "),"Gallery");
echo _("If you see any error(s), we highly suggest to get the actual version of that file(s).");
?></div>
<table class="inner" width="100%">
<tr>
<td class="desc"><?php
if (empty($show_details)) {
$show_details=0;
}
if ($show_details) {
print sprintf(_("%sClick here%s to hide the details"),
'<a href="check_versions.php?show_details=0">','</a>');
} else {
print sprintf(_("%sClick here%s to see more details"),
'<a href="check_versions.php?show_details=1">','</a>');
}
?></td>
</tr>
</table>
<?php
list($oks, $errors, $warnings)=checkVersions(false);
if ($errors) { ?>
<table class="inner" width="100%">
<tr>
<td class="errorlong" colspan="2">
<?php echo pluralize_n2(ngettext("One file is missing, corrupt or older than expected.",
"%d files are missing, corrupt or older than expected.", count($errors)),
count($errors), _("All files okay."));
?>
</td>
</tr>
<?php
if ($show_details) { ?>
<tr>
<td class="desc" colspan="2"><?php print sprintf(_("There are problems with the following files. Please correct them before configuring %s."), Gallery()); ?></td>
</tr><?php
foreach ($errors as $file => $error) {
echo "\n<tr>";
echo "\n\t<td class=\"shortdesc\">$file:</td>";
echo "\n\t<td class=\"desc\">$error</td>";
echo "\n</tr>";
}
}
?>
</table>
<?php
}
if ($warnings) {
?>
<table class="inner" width="100%">
<tr>
<td class="warninglong" colspan="2">
<?php echo pluralize_n2(ngettext("One file is more recent than expected.",
"%d files are more recent than expected.", count($warnings)),
count($warnings), _("All files okay."));
?>
</td>
</tr>
<?php
if ($show_details) {?>
<tr>
<td class="desc" colspan="2"><?php
echo sprintf(_("The following files are more up-to-date than expected for this version of %s. If you are using pre-release code, this is OK."), Gallery());
echo "</td>";
echo "\n</tr>";
foreach ($warnings as $file => $warning) {
echo "\n<tr>";
echo "\n\t<td class=\"shortdesc\">$file:</td>";
echo "\n\t<td class=\"desc\">$warning</td>";
echo "\n</tr>";
}
}
?>
</table>
<?php } ?>
<table class="inner" width="100%">
<tr>
<td class="successlong" colspan="2">
<?php echo pluralize_n2(ngettext("One file is up-to-date.",
"%d files are up-to-date.", count($oks)),
count($oks), _("All files are up-to-date."));
?>
</td>
</tr><?php
if ($show_details && $oks) {
echo "\n<tr>";
echo "\n\t<td class=\"desc\" colspan=\"2\">" . _("The following files are up-to-date.") . "</td>";
echo "\n</tr>";
foreach ($oks as $file => $ok) {
echo "\n<tr>";
echo "\n\t<td class=\"shortdesc\">$file:</td>";
echo "\n\t<td class=\"desc\">$ok</td>";
echo "\n</tr>";
}
}
?>
</table>
<p align="center"><?php echo returnToConfig(); ?></p>
</body>
</html>
|