D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
stickain
/
www
/
itosu-ryu.us
/
gallery
/
Filename :
index.php
back
Copy
<? if (file_exists('top.html')) {include 'top.html';}else{ $title=explode('\\',getcwd()); echo "<title>Itosu-ryu Photo Gallery</title>"; echo "<center><b>". $title[count($title)-1] . "</b></center>"; } ?><HEAD> <STYLE type="text/css"> <!-- A { text-decoration:none } --> </STYLE> </HEAD> <script type="text/javascript" language="javascript"> function showPic (whichpic) { if (document.getElementById) { document.getElementById('placeholder').src = whichpic.href; if (whichpic.title) { document.getElementById('desc').childNodes[0].nodeValue = whichpic.title; } else { document.getElementById('desc').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue; } return false; } else { return true; } } </script> <table border=1 width=100%><tr><td> <ul> <table><tr><td valign=top width=100> <img src="../images/camera.jpg" width=160 height=0><br> Photo Gallery<br><br> <div style="height:500;overflow:auto;"> <? foreach (glob("*.*") as $file) { $name=explode(".",$file); if ($name[count($name)-1]=="pdf"){$outfiles=$outfiles . '<br><a href="' . $file .'">' . $file . '</a>';} if ($name[count($name)-1]=="gif" or $name[count($name)-1]=="jpg"){ $file1=$file; if(strlen($file1)>2 and strlen($firstfile)<2){$firstfile=$file1;} $filetext=str_replace("." . $name[count($name)-1],"",str_replace("-"," ",str_replace("_", " ", $file))); $loader=$loader . "<img src=$file height=0 width=0 border=0>" ; echo '<li><a border="" onclick="return showPic(this)" href="./' . $file . '" title="' . $filetext . '"><font size=-1>' . $filetext . ' </font></a></li>'; } } echo '</div></ul><font size=-1>' . $outfiles . '</font></td><td valign=top align=center><p id="desc">Photos</p>'; echo '<img id="placeholder" src="./' . $firstfile . '" alt="">'; echo '</div>'; echo '</tr></table>'; echo "$loader"; ?></td></tr></table> <? if (file_exists('bottom.html')) {include 'bottom.html';} ?>