PluginProbe
ANAC XML Bandi di Gara / 7.7
ANAC XML Bandi di Gara v7.7
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 7.7, at includes/index.php.null

116 lines 4.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 setlocale(LC_ALL, array(
3 'it_IT.UTF-8',
4 'it_IT@euro',
5 'it_IT',
6 'italian'
7 ));
8 // Free PHP File Directory Listing Script - Version 1.4 - HalGatewood.com
9 // Edited for AVCP/ANAC XML compatiblity by MARCO MILESI - WPGOV - wpgov.it
10
11 ?>
12 <!DOCTYPE html>
13 <html>
14
15 <head>
16 <title>ANAC XML</title>
17 <?php
18 $urlcompleto = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
19 $url = substr_replace($urlcompleto, "", -5);
20 ?>
21 <style>
22 body { font-family: 'Open Sans', sans-serif; padding: 0; margin: 0; background-color: #f5f5f5; }
23 .wrap { width: 700px; margin: 0 auto 0 auto; padding: 25px;}
24 h1 { margin: 0 0 5px 0; font-size:120%; font-weight:normal; color: #666; }
25 h2 { margin: 0; font-size: 1.2em; }
26 a { color: #399ae5; text-decoration: none; } a:hover { color: #206ba4; text-decoration: underline; }
27 .note { padding: 0 5px 25px 0; font-size:80%; color: #666; line-height: 18px; }
28 .media_block { clear: both; min-height: 50px; padding: 10px 15px; border-top: solid 1px #ECE9E9; }
29 .media_block_filebox { float:left; width: 30%; padding: 20px 0; min-height: 50px;}
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 div.clear {
51 clear:both;
52 }
53 </style>
54 </head>
55 <body>
56 <div style="padding:20px;box-shadow: 0 1px 3px rgba(0,0,0,0.2);background-color: #fff;">
57 <div style="float:right;"><small><a href="<?php echo $url; ?>" title="Torna al sito">Torna al Sito</a></small></div>
58 <h1>ANAC XML</h1>
59 </div>
60 <div class="wrap">
61 <?php
62
63 function cleanTitle($title)
64 {
65 $title = str_replace("-", " ", $title);
66 $title = str_replace("_", " ", $title);
67 return ucwords($title);
68 }
69
70 function getFileExt($filename)
71 {
72 return substr(strrchr($filename, '.'), 1);
73 }
74
75 function format_size($file)
76 {
77 $bytes = filesize($file);
78 if ($bytes < 1024)
79 return '<strong>' . $bytes . '</strong> byte';
80 elseif ($bytes < 1048576)
81 return '<strong>' . round($bytes / 1024, 2) . '</strong> KB';
82 elseif ($bytes < 1073741824)
83 return '<strong>' . round($bytes / 1048576, 2) . '</strong> MB';
84 elseif ($bytes < 1099511627776)
85 return '<strong>' . round($bytes / 1073741824, 2) . '</strong> GB';
86 else
87 return '<strong>' . round($bytes / 1099511627776, 2) . '</strong> TB';
88 }
89
90 // GET FILES AND PUT INTO AN ARRAY
91 $files = array();
92 $handle = opendir(dirname(__FILE__));
93 while (false !== ($file = readdir($handle)))
94 if (!is_dir($file) && getFileExt($file) == "xml")
95 $files[] = $file;
96 closedir($handle);
97 natcasesort($files);
98
99 foreach ($files as $file)
100 {
101 echo "<div class=\"media_block_filebox\">";
102 echo " <a href=\"$file\"><img style=\"float: left;\" src=\"" . $url . "wp-content/plugins/avcp/includes/xmlicon.png\"></a>";
103 echo " <div class=\"media_block_file\"><h2><a href=\"$file\">" . basename($file, ".xml") ."</a></h2></div>\n";
104 echo " <div class=\"media_block_date\">" . format_size($file) . "<br>" . ucwords(strftime("%d %B %Y", filemtime($file))) . "</div>\n";
105 echo "</div>";
106 }
107 echo "<div class='clear'></div>";
108 ?>
109 </div>
110
111 <div style="text-align:center;padding:10px;font-size: 0.8em;">
112 Software <a href="https://wordpress.org/plugins/avcp/" title="ANAC XML Bandi di Gara">ANAC XML Bandi di Gara</a> su piattaforma WordPress
113 <br>Sviluppato da <a href="https://www.marcomilesi.com" title="Marco Milesi">Marco Milesi</a> nell'ambito del progetto <a href="https://www.wpgov.it" title="WPGov.it">WPGov.it</a>
114 </div>
115 </body>
116 </html>