repository/include/
repository/include/magpie/
repository/include/magpie/extlib/
repository/include/magpie/htdocs/
repository/include/magpie/scripts/
repository/include/magpie/scripts/smarty_plugin/
repository/include/magpie/scripts/templates/
<?
  /* set our current directory -shouldn't have to change*/
  define('INCLUDE_DIR', dirname(__FILE__));

  /* include files required -shouldn't have to change*/
  include_once( INCLUDE_DIR."/magpie/Fetch.inc");

  /* The http location to your database xml file directory: no trailing slash */
  $database_url = "http://www.yoursite.com/repository/include/database";

  /* location to database on server. Make sure this is chmod 777 so apache
   * can update the files. This is where all the xml files are stored when
   * you run the: yoursite.com/repository/update_xml.php   file
   */
  $database_dir = INCLUDE_DIR."/database";

  /* Username and Password you want to use for the update_xml.php file */
  /* CHANGE THESE VALUES! you can set them to whatever you want */
  $admin_username = "repository";
  $admin_passwd   = "fosieur";
 
  /* what category id do you want to start at? DIKU is 29 -visit mudmagic
   * and click on any RSS image at the bottom of the page to determine a cat id
   * This is the STARTING directory - this and all subdirectories of it will be
   * retrieved.
   */
  $first_catid = "29";

  //you shouldn't have to change this. It is the url location to the mudmagic
  //xml directory. It is not complete though. A numerical category id is
  //appended to this variable as needed. The first appended entry is your top
  //directory category id
  $mudmagic_url = "http://www.mudmagic.com/rss/code/cat_list/rss20";


//quick function to return the current directory location
//input: http://www.mudmagic.com/codes/download/diku/merc/...
//output: diku/merc/...
function location_lookup( $url )
{  
  return( strtolower( ereg_replace("http://www.mudmagic.com/codes/download/", "", $url ) ));
}
?>