Undefined
By: Gotexx | Date: Jan 10 2007 17:22 | Format: PHP | Expires: never | Size: 3.95 KB | Hits: 1534
- <?
- ////////////////////////////////////////
- // http://www.Xmoo.org //
- // Scripting: Mohammad Moghtader //
- ////////////////////////////////////////
- //Map waar foto's inzitten...
- $files = "Images";
- //Hoeveel foto's per pagina weergeven...
- $perpagina = 1;
- //Breedte van (kleine)foto die weergegeven wordt...
- $w = 600;
- //Hoogte van (kleine)foto die weergegeven wordt...
- $h = 800;
- //Hieronder niets wijzigen!
- ?>
- <?PHP
- /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Path to the CuteNews directory (to make the includng easyer)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
- $path = ".";
- /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- This is a fix if register_globals is turned off
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
- if(!$PHP_SELF){
- }
- if($PHP_SELF == ""){ $PHP_SELF = $HTTP_SERVER_VARS[PHP_SELF]; }
- ?>
- <SCRIPT language=JavaScript1.1>
- function right(e) {
- if (navigator.appName == 'Netscape' &&
- (e.which == 3 || e.which == 2))
- return false;
- else if (navigator.appName == 'Microsoft Internet Explorer' &&
- (event.button == 2 || event.button == 3)) {
- alert("Copyright (c) 2003-2004, Xmoo Software. All Rights
- Reserved.");
- return false;
- }
- return true;
- }
- document.onmousedown=right;
- document.onmouseup=right;
- if (document.layers) window.captureEvents(Event.MOUSEDOWN);
- if (document.layers) window.captureEvents(Event.MOUSEUP);
- window.onmousedown=right;
- window.onmouseup=right;
- // End -->
- </SCRIPT>
- <style>
- img.foto
- {
- border: 1px solid black;
- }
- </style>
- <?
- echo "<center>";
- {
- if (($open != "..") AND ($open != "."))
- {
- if (($point == "JPG") OR ($point == "JPEG") OR ($point == "GIF"))
- {
- $photos[] = "$open";
- }
- }
- }
- if($aantal == 0)
- {
- echo "Er zijn geen foto's gevonden!";
- }
- else
- {
- {
- {
- $p = 1;
- }
- {
- }
- {
- echo "<a href="?photo=$c" name="$c"><img class="foto" src="".$files."/".$photos[$c]."" height="$h" width="$w"></a> ";
- }
- echo "<br><br>| ";
- for ($b = 1; $b < ($paginas+1); $b++)
- {
- if ($p == $b)
- {
- echo "<b>$b</b> | ";
- }
- else
- {
- echo "<a href="?p=$b">$b</a> | ";
- }
- }
- echo "<br>Totaal $aantal foto's!";
- }
- else
- {
- {
- $nav = "| <a href="?p=$p#$photo">Terug</a>";
- if ($photo != 0)
- {
- $nav .= " | <a href="?photo=".($photo-1)."">Vorige</a>";
- }
- if (($photo+1) != $aantal)
- {
- $nav .= " | <a href="?photo=".($photo+1)."">Volgende</a>";
- }
- $nav .= " |";
- echo "<img class="foto" src="".$files."/".$photos[$photo].""><br><br>$nav";
- }
- else
- {
- echo "Deze foto is niet gevonden!";
- }
- }
- }
- echo "</center>";
- ?>
- <?php // ?>
Latest pastes
1 hours ago
11 hours ago
1 days ago
2 days ago
2 days ago