* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
define ('JIRAFEAU_ROOT', dirname (__FILE__) . '/');
-define ('DEBUG', true);
require (JIRAFEAU_ROOT . 'lib/config.php');
require (JIRAFEAU_ROOT . 'lib/settings.php');
require (JIRAFEAU_ROOT . 'lib/functions.php');
require (JIRAFEAU_ROOT . 'lib/lang.php');
+if (file_exists (JIRAFEAU_ROOT . 'install.php')
+ && !file_exists (JIRAFEAU_ROOT . 'lib/config.local.php'))
+{
+ header('Location: install.php');
+ exit;
+}
+
/* check if the destination dirs are writable */
$writable = is_writable (VAR_FILES) && is_writable (VAR_LINKS);
$res = array ();
if ($writable && isset ($_POST['jirafeau']))
{
-
$key = $_POST['key'];
$time = time ();
$key, $time, $cfg, $_SERVER['REMOTE_ADDR']);
}
-if (file_exists (JIRAFEAU_ROOT . 'install.php')
- && !file_exists (JIRAFEAU_ROOT . 'lib/config.local.php'))
-{
- header('Location: install.php');
- exit;
-}
-
require (JIRAFEAU_ROOT . 'lib/template/header.php');
/* Checking for errors. */
<hr /><div id = "moreoptions"> <p><label><input type =
"checkbox" name =
"one_time_download" /><?php echo _('One time download');
- ?></label></p> <p><label for = "input_key"
+ ?></label></p><br/><p><label for = "input_key"
><?php echo _('Password') . ':';
- ?></label> <input type = "text" name = "key" id = "input_key" /></p>
+ ?></label><input type = "text" name = "key" id = "input_key" /></p>
<p><label for = "select_time"
><?php echo _('Time limit') . ':';
?></label>