PluginProbe
ANAC XML Bandi di Gara / 2.3
ANAC XML Bandi di Gara v2.3
7.8 trunk 0.1 1.0.0.1 1.0.1 1.0.2 1.0.3 1.0.4 1.1 1.1.1 1.1.2 2.0 2.0.1 2.0.2 2.0.3 2.1 2.2 2.3 2.3.1 3 3.0.1 3.1 3.1.1 3.1.2 3.1.3 All 57 releases
avcp / includes / index.php.null

index.php.null in ANAC XML Bandi di Gara 2.3, at includes/index.php.null

129 lines 5.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 // MODIFICA A CURA DI MARCO MILESI PER INTEGRAZIONE CON AVCP XML WORDPRESS
3 // Free PHP File Directory Listing Script - Version 1.4
4 // HalGatewood.com
5
6 // ADD SPECIFIC FILES YOU WANT TO IGNORE HERE
7 $ignore_file_list = array(".", "Thumbs.db", ".DS_Store", "index.php", "icons.png");
8
9 // ADD SPECIFIC FILE EXTENSIONS YOU WANT TO IGNORE HERE
10 $ignore_ext_list = array();
11
12 $title = cleanTitle(basename(dirname(__FILE__)));
13 ?>
14 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
15 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
16 <html xmlns="http://www.w3.org/1999/xhtml">
17 <head>
18 <title><?php echo $title; ?></title>
19 <?php $urlcompleto = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
20 $url = substr_replace($urlcompleto, "", -5); ?>
21 <style>
22 body { font-family: 'Calibri', sans-serif; padding: 0; margin: 0; background: #f5f5f5 url('<?php echo $url; ?>wp-content/plugins/avcp/includes/bandieraitaliana.png') no-repeat; }
23 .wrap { width: 515px; margin: 4em auto; background: white; padding: 25px; border: solid 1px #ECE9E9; -moz-border-radius: 10px; -webkit-border-radius: 10px; }
24 h1 { margin: 0 0 5px 0; font-size:120%; font-weight:normal; color: #666; }
25 a { color: #399ae5; text-decoration: none; } a:hover { color: #206ba4; text-decoration: underline; }
26 .note { padding: 0 5px 25px 0; font-size:80%; color: #666; line-height: 18px; }
27 .media_block { clear: both; min-height: 50px; padding: 10px 15px; border-top: solid 1px #ECE9E9; }
28 .media_block_image { width: 50px; height: 50px; float: left; margin-right: 10px; }
29 .media_block_image a { width: 50px; height: 50px; line-height: 75px; display: block; background: transparent url(https://dl.dropbox.com/u/6771946/icons/icons.png) no-repeat 0 0; } .media_block_image a:hover { text-decoration: none; }
30 .media_block_date { margin-top: 4px; font-size: 70%; color: #666; }
31 .jpg, .jpeg, .gif, .png { background-position: -50px 0 !important; }
32 .pdf { background-position: -100px 0 !important; }
33 .txt, .rtf { background-position: -150px 0 !important; }
34 .xls, .xlsx { background-position: -200px 0 !important; }
35 .ppt, .pptx { background-position: -250px 0 !important; }
36 .doc, .docx { background-position: -300px 0 !important; }
37 .zip, .rar, .tar, .gzip { background-position: -350px 0 !important; }
38 .swf { background-position: -400px 0 !important; }
39 .fla { background-position: -450px 0 !important; }
40 .mp3 { background-position: -500px 0 !important; }
41 .wav { background-position: -550px 0 !important; }
42 .mp4 { background-position: -600px 0 !important; }
43 .mov, .aiff, .m2v, .avi, .pict, .qif { background-position: -650px 0 !important; }
44 .wmv, .avi, .mpg { background-position: -700px 0 !important; }
45 .flv, .f2v { background-position: -750px 0 !important; }
46 .psd { background-position: -800px 0 !important; }
47 .ai { background-position: -850px 0 !important; }
48 .html, .xhtml, .dhtml, .php, .asp, .css, .js, .inc { background-position: -900px 0 !important; }
49 .dir { background-position: -950px 0 !important; }
50 </style>
51 </head>
52 <body>
53 <div class="wrap">
54 <div style="float:right;"><small><a href="<?php echo $url; ?>" title="Torna al sito">Torna al Sito</a></small></div>
55 <h1>Avcp XML</h1>
56 <?php
57
58 function cleanTitle($title)
59 {
60 $title = str_replace("-", " ", $title);
61 $title = str_replace("_", " ", $title);
62 return ucwords($title);
63 }
64
65 function getFileExt($filename)
66 {
67 return substr(strrchr($filename,'.'),1);
68 }
69
70 function format_size($file)
71 {
72 $bytes = filesize($file);
73 if ($bytes < 1024) return $bytes.'b';
74 elseif ($bytes < 1048576) return round($bytes / 1024, 2).'kb';
75 elseif ($bytes < 1073741824) return round($bytes / 1048576, 2).'mb';
76 elseif ($bytes < 1099511627776) return round($bytes / 1073741824, 2).'gb';
77 else return round($bytes / 1099511627776, 2).'tb';
78 }
79
80 // GET FILES AND PUT INTO AN ARRAY
81 $files = $directories = array();
82 $handle=opendir(dirname(__FILE__));
83 while (($file = readdir($handle))!==false) { $files[] = $file; }
84 closedir($handle);
85
86 sort($files);
87
88 // GET DIRECTORIES
89 foreach($files as $c => $file)
90 {
91 if(!is_dir($file)) { continue; }
92 if(in_array($file, $ignore_file_list)) { continue; }
93 if(in_array($fileExt, $ignore_ext_list)) { continue; }
94
95 echo "<div class=\"media_block\">";
96 echo " <div class=\"media_block_image\"><a href=\"$file\" class=\"dir\">&nbsp;</a></div>";
97 echo " <div class=\"media_block_name\">\n";
98 echo " <div class=\"media_block_file\"><a href=\"$file\">$file</a></div>\n";
99 echo " <div class=\"media_block_date\">Ultima Modifica: " . date("D. F jS, Y - h:ma", filemtime($file)) . "</div>\n";
100 echo " </div>\n";
101 echo "</div>";
102
103 unset($files[$c]);
104 }
105
106 // LOOP THE FILES
107 foreach($files as $file)
108 {
109 $fileExt = getFileExt($file);
110 if(in_array($file, $ignore_file_list)) { continue; }
111 if(in_array($fileExt, $ignore_ext_list)) { continue; }
112 if(is_dir($file)) { $fileExt = "dir"; }
113
114 echo "<div class=\"media_block\">";
115 echo " <div class=\"media_block_image\"><a href=\"$file\" class=\"$fileExt\">&nbsp;</a></div>";
116 echo " <div class=\"media_block_name\">\n";
117 echo " <div class=\"media_block_file\"><a href=\"$file\">$file</a></div>\n";
118 echo " <div class=\"media_block_date\">Dimensione: " . format_size($file) . "<br />Ultima Modifica: " . date("D. F jS, Y - h:ma", filemtime($file)) . "</div>\n";
119 echo " </div>\n";
120 echo "</div>";
121 }
122
123
124 ?>
125 </div>
126
127 <center><small>Software pubblicazione e trasmissione bandi di gara realizzato da <a href="http://www.marcomilesi.ml" target="_blank">Marco Milesi</a> su piattaforma <a href="http://wordpress.org/plugins/avcp" target="_blank">Wordpress</a></small></center>
128 </body>
129 </html>