if (ereg('^127.0.0.1', $_SERVER['SERVER_NAME'])) {
$SitePrefix = '/~pab/linux01/';
$SiteFilesystemPrefix = '/home/pab/public_html/linux01';
$PackageBase = '/home/pab/public_html/guru/rpm/packages';
$FileBase = 'http://ftp.gwdg.de/pub/linux/misc/suser-guru/rpm/packages';
$FileBaseFTP = 'ftp://ftp.gwdg.de/pub/linux/misc/suser-guru/rpm/packages';
$YastBase = 'http://ftp.gwdg.de/pub/linux/misc/suser-guru/rpm';
} else {
$SitePrefix = '/~pbleser';
$SiteFilesystemPrefix = '/home/pbleser/public_html';
$PackageBase = '/ftp/pub/linux/misc/suser-guru/rpm/packages';
$FileBase = 'http://ftp.gwdg.de/pub/linux/misc/suser-guru/rpm/packages';
$FileBaseFTP = 'ftp://ftp.gwdg.de/pub/linux/misc/suser-guru/rpm/packages';
$YastBase = 'http://ftp.gwdg.de/pub/linux/misc/suser-guru/rpm';
}
$MirrorFileBase = 'http://ftp.skynet.be/pub/suser-guru/rpm/packages';
$Themes = array("white", "heights", "concrete");
$DefaultTheme = "white";
$FullSite = "http://" . $_SERVER['SERVER_NAME'] . $SitePrefix;
$NewsFile = 'news.txt';
$DescrBase = 'package-descriptions/';
$LocalSyncTime = "06:10:00";
$LIB = $SitePrefix . "/lib/";
$URL_Home = $SitePrefix.'/index.php';
$URL_PackageNews = $SitePrefix.'/pnews.php';
$URL_PackageNavigation = $SitePrefix.'/rpm-navigation.php';
$URL_AllPackages = $SitePrefix.'/allpackages.php';
$URL_AboutMe = $SitePrefix.'/aboutme.php';
$URL_Writings = $SitePrefix.'/writings.php';
$URL_Contact = $SitePrefix.'/contact.php';
$URL_Blog = 'http://dev-loki.blogspot.com';
$URL_RSS = $SitePrefix.'/rss.php';
$ImagePrefix = $SitePrefix.'/images';
$ImageFilesystemPrefix = $SiteFilesystemPrefix.'/images';
$PackageLogoSubdir = 'images/package-icons';
$PackageLogoExtension = 'png';
$PackageDefaultLogo = 'rpm';
$PackageIconsSubdir = 'images/package-icons';
$PackageIconsExtension = 'png';
$PackageDefaultIcon = 'rpm';
$RSSIcon = $ImagePrefix.'/rss.png';
$ArticlePrefix = $SitePrefix.'/article';
$ArticleFilesystemPrefix = $SiteFilesystemPrefix.'/article';
$BlogPageItems = 10;
$BlogDir = 'blog';
$BlogRSSTitle = "guru's blog";
$BlogRSSLink = $FullSite.'/blogrss.php';
$BlogRSSDescription = "thoughts and things";
$BlogRSSLanguage = "en";
$BlogRSSEditor = "Pascal Bleser guru@unixtech.be";
$BlogRSSWebMaster = $BlogRSSEditor;
$BlogRSSImage = $FullSite . '/images/me.png';
$BlogRSSImageWidth = 55;
$BlogRSSImageHeight = 67;
$BlogLink = $FullSite.'/blog.php';
$Stylesheet = $SitePrefix.'/style.css';
$SiteLogo = $ImagePrefix.'/suselogo-crystal.png';
$Banner = false;
$BannerList = array(
array('img' => 'http://www.fosdem.org/promo/fosdem-2007-static',
'link' => 'http://www.fosdem.org',
'alt' => 'FOSDEM, the Free and Open Source Software Developers European Meeting'),
array('img' => 'http://www.nosoftwarepatents.com/graphics/statb_1.gif',
'link'=> 'http://www.nosoftwarepatents.com',
'alt' => 'No Software Patents!'),
array('img' => 'images/sites/packman.png',
'link'=> 'http://packman.links2linux.org',
'alt' => "Packman SUSE RPM Repository")
);
$BannerListSize = 3;
if ($Banner) {
$BannerObj = $BannerList[rand(0, $BannerListSize - 1)];
} else {
$BannerObj = false;
}
$Footer = "Written with Emacs and nXML"
." ··· "
."Powered by Apache and PHP"
."
"
."Icons under GPL and © by Everaldo"
." ··· "
."SuSE and SuSE logos are © SuSE Linux GmbH"
."
"
."Best viewed with a gecko"
." ··· "
."RPMs are signed with this key";
$php_version_info = split('\.', phpversion());
if (($php_version_info[0] == 4) && ($php_version_info[1] <= 1)) {
$IS_OLD_PHP = true;
$USER_AGENT = $HTTP_USER_AGENT;
$GET_VARS =& $HTTP_GET_VARS;
$SELF = $PHP_SELF;
} else {
$IS_OLD_PHP = false;
if (array_key_exists('HTTP_USER_AGENT', $_SERVER)) {
$USER_AGENT = $_SERVER['HTTP_USER_AGENT'];
} else {
$USER_AGENT = 0;
}
if (array_key_exists('REQUEST_URI', $_SERVER)) {
$REQUEST_URI = $_SERVER['REQUEST_URI'];
} else {
$REQUEST_URI = 0;
}
$GET_VARS =& $_GET;
$SELF = $_SERVER['PHP_SELF'];
}
$SERVERNAME = $_SERVER['SERVER_NAME'];
define('BROWSER_UNKNOWN', 0);
define('BROWSER_GECKO', 1);
define('BROWSER_TEXT', 2);
$Browser = BROWSER_UNKNOWN;
if ($USER_AGENT && ereg('^(Lynx|w3m|Links|retawq|Emacs)', $USER_AGENT)) {
$Browser = BROWSER_TEXT;
} else {
// assume for now...
$Browser = BROWSER_GECKO;
}
if ($Browser == BROWSER_TEXT) { $Footer = "
\n----------
\n".$Footer; }
if (in_array("theme", $_COOKIE) && in_array($_COOKIE["theme"], $Themes)) {
$Theme = $_COOKIE["theme"];
} else {
$Theme = $DefaultTheme;
}
$ThemePrefix = $SitePrefix . '/themes/' . $Theme;
$Stylesheet = $ThemePrefix . '/style.css';
?>