your theme change gives useless horizontal scrolling though it no longer breaks.
meeks wrote: there's a script I wrote that detects new videos and embeds the links automatically, simply by uploading the swf files.
function getFileList($dir) {
# array to hold return value
$retval = array();
# add trailing slash if missing
if(substr($dir, -1) != "/") $dir .= "/";
# open pointer to directory and read list of files
$d = @dir($dir) or die("getFileList: Failed opening directory $dir for reading");
while(false !== ($entry = $d->read())) {
# skip hidden files
if($entry[0] == ".")
continue;
if(is_dir("$dir$entry")) {
$retval[] = array( "name" => "$entry/", "path" => filetype("$dir$entry"), "size" => 0, "lastmod" => filemtime("$dir$entry") );
} elseif(is_readable("$dir$entry")) {
$retval[] = array( "name" => "$entry", "path" => "$dir$entry", "size" => filesize("$dir$entry"), "lastmod" => filemtime("$dir$entry") );
}
}
$d->close();
return $retval;
}
$dirlist = getFileList("./swf/");
foreach($dirlist as $file) {
if(strpos($file['name'],"/")==0){
$popName=str_replace("_"," ",$file['name']);
$popName=str_replace(".swf","",$popName);
$filename=str_replace(".swf","",$file['name']);
echo "<p><a href=\"#\" onclick=\"javascript:document.getElementById('tvScreen').src='embedded-video.php?video={$filename}'\">{$popName}</a></p>";
//echo "<a href=\"javascript:viewImage('{$popName}')\"><img src=\"{$file['path']}\" border=\"0\"/></a>\n";
}
}
ashe wrote:why the gi's? just curious...
Users browsing this forum: No registered users and 24 guests