Current Path : /web/htdocs/www.entinoprofit.org/home/database/
Upload File :
Current File : /web/htdocs/www.entinoprofit.org/home/database/view_file.php

<?php
include_once("include/config.php");
include_once("include/auth.lib.php");

list($status, $user) = auth_get_status();

if($status == AUTH_LOGGED & auth_get_option("TRANSICTION METHOD") == AUTH_USE_LINK){
	$link = "?uid=".$_GET['uid'];
}else	$link = '';

switch($status){
case AUTH_LOGGED:

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Database ACSI Comitato Provinciale di Padova</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="style.css" rel="stylesheet" type="text/css">
</head>

<body>
<table width="100%" class="table1">
  <!--DWLayoutTable-->
  <tr>
    <td height="20" colspan="9"><div align="center">Database ACSI Comitato Provinciale di Padova</div></td>
  </tr>
  <tr>
    <td height="20"></td>
  </tr>
  <tr>
    <td height="20" colspan="9"><div align="center"><?php include('in.php'); ?></div></td>
  </tr>
 </table>

<div id="main">


<p></p>

  <table width="100%" class="table2">
    <!--DWLayoutTable-->
	<thead>
		<tr><th height="20">MODULISTICA ACSI PADOVA</th>
 </th>
</tr></thead> 
<?
function elencafiles($dirname){	
	$arrayfiles=Array();	
	if(file_exists($dirname)){		
		$handle = opendir($dirname);		
		while (false !== ($file = readdir($handle))) { 			
			if(is_file($dirname.$file)){
						
			array_push($arrayfiles,$file);			
			}	
		}		
		    $handle = closedir($handle);	
	}	
	sort($arrayfiles);	
	return $arrayfiles;
}

$arrayfile=array();

$arrayfile=elencafiles("/web/htdocs/www.entinoprofit.org/home/database/files/1709/");


for($i=0;$i<count($arrayfile);$i++) {

	echo '<tr height="20" valign="middle">';


	echo "<td><a href='/database/files/1709/".$arrayfile[$i]."' target='_blank'>".$arrayfile[$i]."</a></td></tr>";

}
?>


</table>

</div> 
</body>
</html>
<?php }  ?>