<?php /* This file contains the installation settings for Photogenix. It defines the RSS feeds and loads the default screen file. Important: rename this file to config.php if you have changed the settings to match your environment */ /* This tells the software where it actually is on your server. If you have placed the php-files in /www/somedir, set $Base to "/www/somedir/" (note the slash at the end). */ $Base = "/home/intermat/.html/intermate.nl/sites/wcwc/"; $DisplayName = "WCWC"; $ContentDirectory = "content"; $ScreensDirectory = $ContentDirectory . "/screens"; $PhotosDirectory = $ContentDirectory . "/photos"; /** RSS FEEDS **/ $RSS = array(); $RSS[] = array("url" => "http://www.intermate.nl/rss.xml", "cache" => "intermate.nl.xml", "logo" => "content/images/intermate.png"); /*$RSS[] = array("url"=>"http://w3.tue.nl/nl/rss.xml", "cache" => "tue.nl.xml", "logo"=>"content/images/intermate.png");*/ /** Screen content */ $Settings = array(); require_once "functions.inc.php"; LoadScreenSettings($Base . $ContentDirectory . "/default.screen");
$QuotesData .= "" . htmlentities($it->title) . ""; } $QuotesData .= "</div></li>"; if ($i % 2 == 0) { $QuotesData .= "</ul><ul>"; } $i++; } $QuotesData .= "</ul>"; $ReturnData->quotes = str_replace("\n", "", $QuotesData); // Choose a random campaign to load $Screens = array(); $dir = opendir($Base . $ScreensDirectory); while (($file = readdir($dir)) !== false) { if ($file[0] != ".") { $Screens[] = $file; } } closedir($dir); if (!isset($Settings["content.ignore-campaigns"]) || $Settings["content.ignore-campaigns"] != "true") { $CurrentScreen = $Screens[rand(0, count($Screens) - 1)]; LoadScreenSettings($Base . $ScreensDirectory . "/" . $CurrentScreen); } // General settings $ReturnData->hideBar = $Settings["display.hide-bar"]; $ReturnData->hideTicker = $Settings["display.hide-ticker"]; $ReturnData->hideBackground = $Settings["display.hide-background"]; $ReturnData->marqueeText = $Settings["marquee.text"]; $ReturnData->popupText = str_replace("\r\n", "", $Settings["popup.text"]); $ReturnData->runTime = $Settings["runtime"]; echo JSONSerialize($ReturnData);