예제 #1
0
// make media access from http
$medialink = "";
$httpmedia = "/tmp/www/media";
if (is_link($httpmedia)) {
    $medialink = readlink($httpmedia);
}
if ("" == $medialink && is_link("/sbin/www/media")) {
    $medialink = readlink("/sbin/www/media");
}
if ("" == $medialink) {
    symlink($base, $httpmedia);
}
//--------------------------------------
//--------------------------------------
// main
printRSS(getApps($mounts));
//--------------------------------------
//--------------------------------------
// get applications
function getApps($mounts)
{
    global $defaultFocusedIcon, $defaultUnfocusedIcon, $base;
    $appfolders = array();
    foreach ($mounts as $mount) {
        $appdir = $mount . "scripts/";
        if (is_dir($appdir)) {
            $appfolders = rscandir($appdir);
        }
    }
    foreach ($appfolders as $appfolder) {
        $appconfig = $appfolder . "version.xml";
예제 #2
0
     # Image Gallery
     define("_BBC_PAGE_NAME", "Gallery: " . $dir);
     @(include_once COUNTER);
     # Gallery View
     gallery();
     exit;
 case "slide":
     # Slide Show / Preview Mode
     define("_BBC_PAGE_NAME", "Preview: " . $dir . $file);
     @(include_once COUNTER);
     # Preview View
     preview($file);
     exit;
 case "rss":
     # Generate RSS Feed
     printRSS();
     exit;
 case "captions":
     # Add Image Captions
     # Determine if caption editing is on or off.
     if ($enable_caption_editing) {
         define("_BBC_PAGE_NAME", "Caption:" . $dir . $file);
         @(include_once COUNTER);
         makeCaptions($_POST);
     } else {
         header("Location:" . rrawurlencode($baseURL . $dir));
     }
     exit;
 case "swf_player":
     # JW's SWF Player. http://www.longtailvideo.com/players/jw-flv-player/
     define("_BBC_PAGE_NAME", "Movie:" . $dir . $file);
예제 #3
0
파일: rss.php 프로젝트: ultramookie/dertyn
>
  <channel>
	<title><?php 
echo $sitename;
?>
</title>
	<link><?php 
echo $siteurl;
?>
</link>
	<description><?php 
echo $sitename;
?>
</description>
	<generator>dertyn <?php 
echo $version;
?>
</generator>
	<atom:link href="<?php 
echo $siteurl;
?>
/rss.php" rel="self" type="application/rss+xml" />
	<ttl>5</ttl>
<?php 
printRSS($numRss);
?>

  </channel>
</rss>