Location: PHPKode > projects > PodAdmin - Web-based podcast management > podadmin-0.5.1/app_globals.php
<?php

// test for require php version
if ( intval(phpversion()) < 5 ) {
	dieWithError("Sorry, PodAdmin requires PHP version 5+.");
	}

// load xml config file
$vsf->configfile = 'config.xml.php';

if (! file_exists($vsf->configfile)) {
	dieWithError("Config file $vsf->configfile does not exist!");
	}

// later move this check to only the area that updates the config file
// and make sure its writable
if (! is_writable($vsf->configfile)) {
	dieWithError("Config file $vsf->configfile is not writable!<br>" .
                     "You should change it to be owned by the webserver user, " .
                     "or change permissions on it to 666.");
	}

// then try to load it
@$vsf->config = simplexml_load_file($vsf->configfile) or dieWithError("Can't parse $configfile file!  Perhaps you edited it manually?");


?>
Return current item: PodAdmin - Web-based podcast management