This repository has been archived on 2024-11-28. You can view files and clone it, but cannot push or open issues or pull requests.
MatritumCantat_Web/www/components/com_zoom/admin/upload.php

145 lines
5.4 KiB
PHP
Raw Permalink Normal View History

<?php
//zOOm Gallery//
/**
-----------------------------------------------------------------------
| zOOm Image Gallery! by Mike de Boer - a multi-gallery component |
-----------------------------------------------------------------------
-----------------------------------------------------------------------
| |
| Date: January, 2004 |
| Author: Mike de Boer, <http://www.mikedeboer.nl> |
| Copyright: copyright (C) 2004 by Mike de Boer |
| Description: zOOm Image Gallery, a multi-gallery component for |
| Mambo based on RSGallery by Ronald Smit. It's the most |
| feature-rich gallery component for Mambo! |
| Filename: upload.php |
| Version: 2.0 |
| |
-----------------------------------------------------------------------
**/
// MOS Intruder Alerts
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
if(array_key_exists('formtype', $_REQUEST))
$formtype = $_REQUEST['formtype'];
if ($zoom->_CONFIG['readEXIF']) {
include($mosConfig_absolute_path."/components/com_zoom/classes/iptc/JPEG.php");
include($mosConfig_absolute_path."/components/com_zoom/classes/iptc/EXIF.php");
include($mosConfig_absolute_path."/components/com_zoom/classes/iptc/Photoshop_IRB.php");
include($mosConfig_absolute_path."/components/com_zoom/classes/iptc/XMP.php");
include($mosConfig_absolute_path."/components/com_zoom/classes/iptc/Photoshop_File_Info.php");
}
?>
<script language="Javascript">
<!--
function submitCount() {
document.count_form.submit();
return false;
}
// -->
</script>
<!-- Begin header -->
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td align="center" width="100%"><a href="index<?php echo ($zoom->_isBackend) ? "2" : "";?>.php?option=com_zoom&Itemid=<?php echo $Itemid ?>&page=admin">
<img src="<?php echo $mosConfig_live_site;?>/components/com_zoom/images/home.gif" alt="<?php echo _ZOOM_MAINSCREEN;?>" border="0">&nbsp;&nbsp;<?php echo _ZOOM_MAINSCREEN;?>
</a>&nbsp; | &nbsp;
<?php
if(isset($return)){
?>
<a href="index<?php echo ($zoom->_isBackend) ? "2" : "";?>.php?option=com_zoom&page=mediamgr&catid=<?php echo $catid;?>&Itemid=<?php echo $Itemid ?>">
<img src="<?php echo $mosConfig_live_site;?>/components/com_zoom/images/back.png" alt="<?echo _ZOOM_BACK;?>" border="0">&nbsp;&nbsp;<?php echo _ZOOM_BACK;?>
</a>
<?php
}
?>
</td>
</tr>
<tr>
<td align="left"><img src="<?php echo $mosConfig_live_site;?>/components/com_zoom/images/admin/upload_f2.png" border="0" alt="<?php echo _ZOOM_HD_UPLOAD;?>">&nbsp;<b><font size="4"><?php echo _ZOOM_HD_UPLOAD;?></font></b></td>
</tr>
<tr>
<td height="10">&nbsp;</td>
</tr>
<tr>
<td align="center" width="100%">
<link id="luna-tab-style-sheet" type="text/css" rel="stylesheet" href="<?php echo $mosConfig_live_site;?>/components/com_zoom/tabs/tabpane.css" />
<script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/components/com_zoom/tabs/tabpane.js"></script>
<div class="tab-page" id="modules-cpanel">
<script type="text/javascript">
var tabPane1 = new WebFXTabPane( document.getElementById( "modules-cpanel" ), 0 )
</script>
<div class="tab-page" id="module19">
<h2 class="tab"><?php echo _ZOOM_UPLOAD_SINGLE;?></h2>
<script language="javascript" type="text/javascript">
<!--
tabPane1.addTabPage( document.getElementById( "module19" ) );
//-->
</script>
<?php
include($mosConfig_absolute_path.'/components/com_zoom/admin/upl_single.php');
?>
</div>
<div class="tab-page" id="module20">
<h2 class="tab"><?php echo _ZOOM_UPLOAD_MULTIPLE;?></h2>
<script language="javascript" type="text/javascript">
<!--
tabPane1.addTabPage( document.getElementById( "module20" ) );
//-->
</script>
<?php
include($mosConfig_absolute_path.'/components/com_zoom/admin/upl_multiple.php');
?>
</div>
<div class="tab-page" id="module21">
<h2 class="tab"><?php echo _ZOOM_UPLOAD_DRAGNDROP;?></h2>
<script language="javascript" type="text/javascript">
<!--
tabPane1.addTabPage( document.getElementById( "module21" ) );
//-->
</script>
<?php
include($mosConfig_absolute_path.'/components/com_zoom/admin/upl_dragndrop.php');
?>
</div>
<div class="tab-page" id="module22" align="center">
<h2 class="tab"><?php echo _ZOOM_UPLOAD_SCANDIR;?></h2>
<script language="javascript" type="text/javascript">
<!--
tabPane1.addTabPage( document.getElementById( "module22" ) );
//-->
</script>
<?php
include($mosConfig_absolute_path.'/components/com_zoom/admin/upl_scan.php');
?>
</div>
</div>
</tr>
<tr>
<td height="10">&nbsp;</td>
</tr>
</table>
<script language="javascript" type="text/javascript">
<!--
<?php
// switch between single file and multiple files form.
switch ($formtype){
case 'single':
echo "tabPane1.setSelectedIndex(0);\n";
break;
case 'multiple':
echo "tabPane1.setSelectedIndex(1);\n";
break;
case 'dragndrop':
echo "tabPane1.setSelectedIndex(2);\n";
break;
case 'scan':
echo "tabPane1.setSelectedIndex(3);\n";
break;
default:
echo "tabPane1.setSelectedIndex(0);\n";
break;
}
?>
//-->
</script>