Location: PHPKode > projects > Netautor Professional > netautor/napro4/admin/index/filedetail.php
<?php 
/* +----------------------------------------------------------------------+
   | Netautor Professional Application Server                             |
   +----------------------------------------------------------------------+
   | Copyright (C) 1998-2005 digiconcept GmbH. <www.digiconcept.net>      |
   +----------------------------------------------------------------------+
   | This file is subject to license, that is bundled with this package   |
   | in the file LICENSE.TXT, and is available at through the             |
   | world-wide-web at http://www.netautor.com/license/                   |
   |                                                                      |
   | If you did not receive a copy of the license and are unable to       |
   | obtain it through the world-wide-web, please send a note to          |
   | hide@address.com so we can mail you a copy.                      |
   +----------------------------------------------------------------------+
   | Authors: Stefan Rottensteiner <hide@address.com>    |
   |          Marek  Kadziela      <hide@address.com>	      |
   |          Gregor Wollner                                              |
   |          Christian Unger                                             |
   |          Helli  Kleinhans  									      |
   +----------------------------------------------------------------------+*/

   /**
    * @version $Revision: 1.15 $
	* @author	Stefan Rottensteiner
	*/

 	require_once('../../include/init.inc'); 
	if(!$USER->check_feature('Admin') && $GLOBALS['USER']->ID > 100  )
	{
		$USER->login_call();
	}

	$LOCALE->textdomain('index');

?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//DE">
<html>
<head><title>digiconcept/netautor/file details</title></head>
<script language="JavaScript" type="text/javascript">
var delete_window=null;

function closeWindow(What)
{
	text ="if ("+What+"_window!=null)	{ if ("+What+"_window.closed==false) "+What+"_window.close();"+What+"_window=null;};"; 
	eval (text);
}

function openWindow(WinName,Path,width,height,Rest)
{
	closeWindow(WinName);
	if (Rest=="") Rest="scrollbars=yes,resizable=yes,menubar=no,status=no,locationbar=no,dependet=yes";
	win = window.open(Path,WinName+"Window","width="+width+",height="+height+","+Rest);
	win.focus();
	eval(WinName+"_window=win;");
}

function callback_del_close()
{
	if (window.opener)
	{
		window.opener.document.location.reload();
	}
	window.close();
}

</script>
<link href="../../include/netautor.css" rel="stylesheet" type="text/css">
<body bgcolor="#ffffff" class="standard" onLoad="window.focus();" >
<?php 
 	include_once('../../include/init.inc');
	//	---	include necessary functions
	includeNaPro( 'file,filetype,form' );

//	error_reporting(255);
	if (!empty($file))
	{
		$params=array(	'match_file'=>basename($file),
						'only_files'=>true,
						'timeformat'=>'d.m.Y H:i:s'
					);
		$FileInfo = File_readDirectory(dirname($file).'/',1,$params);

		if (is_array($FileInfo))
		{
			$FileInfo= $FileInfo[0];
			$FileInfo['mime']=array();
			ext2mime($FileInfo['name'],$FileInfo['mime']);
		}
		else
		{
		$FileInfo = array(	'name'			=>'',
							'url'			=>'',
							'size'			=>'',
							'creation'		=>'',
							'modification'	=>'',
							'mime'			=> array( 'mimetype'=>'', 'mimedescription'=>'' )
							);
		}
	}
	else
	{
		$FileInfo = array(	'name'			=>'',
							'url'			=>'',
							'size'			=>'',
							'creation'		=>'',
							'modification'	=>'',
							'mime'			=> array('mimetype'=>'','mimedescription'=>'')
							);
	}
?>
<table width="482" border="0" cellspacing="0" cellpadding="4" align="center" class="bgwindow482">
	<tr class="bglistgrey">
		<td align="left" valign="top" class="text">
			<?php echo $LOCALE->gettext('file_name'); ?><br>
		</td>
		<td align="left" valign="top" class="text">
			<?php echo($FileInfo['name']);?><br>
		</td>
	</tr>
	<tr class="bglistgrey">
		<td align="left" valign="top" class="text">
			<?php echo $LOCALE->gettext('directory'); ?><br>
		</td>
		<td align="left" valign="top" class="text">
			<?php echo($FileInfo['url']);?><br>
		</td>
	</tr>
	<tr class="bglistgrey">
		<td align="left" valign="top" class="text">
			<?php echo $LOCALE->gettext('file_size'); ?><br>
		</td>
		<td align="left" valign="top" class="text">
			<?php echo(number_format(intval($FileInfo['size']),0,'','.'));?> bytes<br>
		</td>
	</tr>	
	<tr class="bglistgrey">
		<td align="left" valign="top" class="text">
			<?php echo $LOCALE->gettext('file_dat_crt'); ?><br>
		</td>
		<td align="left" valign="top" class="text">
			<?php echo($FileInfo['creation']);?><br>
		</td>
	</tr>
	<tr class="bglistgrey">
		<td align="left" valign="top" class="text">
			<?php echo $LOCALE->gettext('file_dat_mod'); ?><br>
		</td>
		<td align="left" valign="top" class="text">
			<?php echo($FileInfo['modification']);?><br>
		</td>
	</tr>
	<tr class="bglistgrey">
		<td align="left" valign="top" class="text">
			<?php echo $LOCALE->gettext('file_dat_acc'); ?><br>
		</td>
		<td align="left" valign="top" class="text">
			<?php echo($FileInfo['access']);?><br>
		</td>
	</tr>
<?php if(!empty($FileInfo['mime']['mimetype'])): ?>	
	<tr class="bglistgrey">
		<td align="left" valign="top" class="text">
			Mime-Type<br>
		</td>
		<td align="left" valign="top" class="text">
			<?php echo($FileInfo['mime']['mimetype']);?><br>
		</td>
	</tr>
<?php endif; ?>	
<?php if(!empty($FileInfo['mime']['description'])): ?>	
	<tr class="bglistgrey">
		<td align="left" valign="top" class="text">
			Mime-Description<br>
		</td>
		<td align="left" valign="top" class="text">
			<?php echo($FileInfo['mime']['description']);?><br>
		</td>
	</tr>
<?php endif; ?>
	<tr class="bglistgrey">
		<td align="center" valign="top" class="text" colspan="2" >
			&raquo;&nbsp;<a target="_blank" class="link" href="../../wrapper/media.php3?filename=<?php echo(rawurlencode(realpath($file)));?>" ><?php echo $LOCALE->gettext('show_file'); ?></a>
		</td>
	</tr>
</table>
<img src="../../grafik/bgwindow_482_stop.gif" width="482" height="14"><br>
</body>
</html>
Return current item: Netautor Professional