Location: PHPKode > scripts > GenieGate Membership protection software > web/admin/admin.php
<?php
/**
 * $Id: admin.php,v 1.2 2008/11/12 05:23:10 joe Exp $
 * Configuration: if GenieGate is unable to find your configuration file, you 
 * can define the constant GENIEGATE_CONF_FILE
 */

//define("GENIEGATE_CONF_FILE","/your/path/to/geniegate.ini");

// define('GENIEGATE_HOME');

require_once("./doconf.php"); // Need findConf

function main(){
  	$conf = findConf();
	/// Custom implementation?
	$impl = $conf['Controller'];
	list($rf,$clazz) = explode(':',$impl['Admin'],2);
	if(! $rf){
		$rf='GenieGate/Controller/Admin.php';
		$clazz='GenieGate_Controller_Admin';
	}
	require $rf;
	$ap = new $clazz($conf);
  	$view =& $ap->run();
  	if($view){  
    	$view->display();
    	$ap->finish($view);
    	return(TRUE);
  	}
  	return(FALSE);
}
if(! main()){
  echo "<H1>Error</H1>";
}
?>
Return current item: GenieGate Membership protection software