-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfotos.php
More file actions
39 lines (33 loc) · 1.18 KB
/
fotos.php
File metadata and controls
39 lines (33 loc) · 1.18 KB
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
37
38
39
<?php include "topo.php"; ?>
<div class="fotos">
<h1>Fotinhas, ebaaaa...</h1>
<h2>...Quando papai e mamãe quiserem só jogar umas fotinhas novas pra galera, elas estarão aqui nessa página :-)</h2>
<?php
/*$dir = "/home/cabox/workspace/amy/fotos/";
foreach (glob ($dir."*", GLOB_ONLYDIR) as $pastas) {
if (is_dir ($pastas)) {
//echo "Galeria De ";
$caminho = str_replace ( $dir,"",$pastas);
echo " <a href=\"$caminho\"/index.php>".str_replace ( $dir,"",$pastas)."</a><br />";
echo "";
}
}*/
$caminho = "/home/cabox/workspace/amy/up/uploads/thumbs/";
$img = glob($caminho."*.{jpeg,JPG,jpg,png,gif}", GLOB_BRACE);
$contador = count($img);
foreach($img as $img){
$img_exib = str_replace("/home/cabox/workspace/amy/","",$img);
echo '<a href="ver.php?loc='.str_replace("up/uploads/thumbs/","up/uploads/",$img_exib).'"><img src="'.$img_exib.'" /></a>';
}
/*$caminho = "/home/cabox/workspace/amy/fotos/img_upload/";
$img = glob($caminho."*.{jpg,png,gif}", GLOB_BRACE);
$contador = count($img);
foreach($img as $img){
echo '<a href=""><img src="'.$img.'" width="50px" /></a>';
}*/
?>
<p>
<!--texto...-->
</p>
</div>
<?php include "rodape.php";