<?php
/*
 * Gallery - a web based photo album viewer and editor
 * Copyright (C) 2000-2003 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: progress_uploading.php,v 1.20 2003/08/12 12:34:35 jefmcg Exp $
 */
?>
<?php
// Hack prevention.
if (!empty($HTTP_GET_VARS["GALLERY_BASEDIR"]) ||
		!empty($HTTP_POST_VARS["GALLERY_BASEDIR"]) ||
		!empty($HTTP_COOKIE_VARS["GALLERY_BASEDIR"])) {
	print _("Security violation") ."\n";
	exit;
}
?>
<?php if (!isset($GALLERY_BASEDIR)) {
    $GALLERY_BASEDIR = './';
}
require($GALLERY_BASEDIR . 'init.php'); ?>
<?php
function image($name) {
	global $GALLERY_BASEDIR;
	return $GALLERY_BASEDIR . "images/$name";
}
?>
<html>
<head>
  <title><?php echo _("Uploading Photos") ?></title>
  <?php echo getStyleSheetLink() ?>
</head>

<body dir=<?php echo $gallery->direction ?>>
<center>
<span class="title"><?php echo _("File upload in progress!") ?></span>
<p>
<?php echo _("This page will go away automatically when the upload is complete.  Please be patient!") ?>
<p>
<table border=0 cellpadding=0 cellspacing=0>
 <tr>
  <td> <img src=<?php echo image("computer.gif") ?> width=31 height=32> </td>
  <td> <img src=<?php echo image("uploading.gif") ?> width=160 height=11> </td>
  <td> <img src=<?php echo image("computer.gif") ?> width=31 height=32> </td>
 </tr>
</table>

</center>

</script>
</body>
</html>
