require_once("imgresize.inc.php"); ?>
Vendors at Vegas 2010
Click images below to zoom |
$link = "vendors/";
if(($open = @opendir($link)) == false) {
echo "Couldn't open directory";
exit;
}
while(($read = readdir($open)) !== false) {
if(is_dir($link . "/" . $read)) {
$dir[] = $read;
} else {
$files[] = $read;
}
}
closedir($open);
natcasesort($dir);
natcasesort($files);
$i = 1;
$dir = "vendors/";
$c = 0;
// Open a known directory, and proceed to read its contents
if ($files <> "") {
foreach($files as $filess => $vars)
{
$file = $vars;
$cnt = strrpos($file, ".");
$type = substr($file, $cnt, 1000);
if ($type == ".jpg")
{
if ($i == 1)
{
echo '';
}
$image = 'vendors/'.$file.'';
$cnt = strrpos($image, ".");
$txt = substr($image,0,$cnt).'.txt';
$vid = substr($image,0,$cnt).'.wmv';
@$mysock = getimagesize($image);
echo '

';
@$lines = file($txt);
if ($lines){
// Loop through our array, show HTML source as HTML source; and line numbers too.
$o = 0;
foreach ($lines as $line_num => $line)
{
$o = $o+1;
if ($o == 1)
{
echo "" . htmlspecialchars($line) . " ";
}
else
{
echo "" . htmlspecialchars($line) . " ";
}
}}
if (file_exists($vid)) {
echo '[Watch the Clip]
|
';}
$i = $i+1;
$c = $c+1;
if ($i == 4)
{
echo ' ';
$i = 1;
}
}
}
}
if ($c == 0)
{
echo '
| Nothing yet. Check back. |
';
}
?>
|
|
 |