File: index.php

package info (click to toggle)
phpldapadmin 0.9.5-3sarge3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,052 kB
  • ctags: 2,526
  • sloc: php: 21,258; sh: 262; makefile: 132; xml: 42
file content (36 lines) | stat: -rw-r--r-- 739 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php 
    require_once '../header.php';
?>
<body>
<h3 class="title">phpLDAPadmin icons</h3>
<br />
<center>
<?php

$dir = opendir( '.' );
while(  ( $file = readdir( $dir ) ) !== false ) {
    $counter++;
    if( $file == '.' || $file == '..' )
        continue;
    if( ! preg_match( '/\.png$/', $file ) )
        continue;
    if( $file == 'phpLDAPadmin_logo1.png' )
        continue;
    $files[ filesize( $file ) . '_' . $file ] = $file;
}

ksort( $files );

$counter = 0;
foreach( $files as $file ) {
    $counter++;
    echo '<img title="' . htmlspecialchars( $file ) . '" src="' . htmlspecialchars( $file ) . '" />&nbsp;&nbsp;';
    if( $counter % 15 == 0 )
        echo '<br /><br />';
    flush();
}

?>
</center>
</body>
</html>