Changeset 190
- Timestamp:
- 11/11/08 13:17:08 (2 months ago)
- Location:
- hellaworld/branches/autonzb
- Files:
-
- 3 modified
-
classes/autoload.php (modified) (1 diff)
-
classes/feed-manager.php (modified) (1 diff)
-
manage.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
hellaworld/branches/autonzb/classes/autoload.php
r185 r190 10 10 $class_name = str_replace('_', '-', strtolower($class_name)); 11 11 12 if (file_exists($path = 'classes/'.$class_name.'.php'))12 if (file_exists($path = APPPATH.'classes/'.$class_name.'.php')) 13 13 require_once($path); 14 14 } -
hellaworld/branches/autonzb/classes/feed-manager.php
r185 r190 9 9 protected $dataset; 10 10 11 public function __construct( ) {12 $this->dataset = new XML_Dataset( 'feeds.xml');11 public function __construct($file_name) { 12 $this->dataset = new XML_Dataset($file_name); 13 13 } 14 14 -
hellaworld/branches/autonzb/manage.php
r188 r190 33 33 } 34 34 35 require_once('classes/autoload.php'); 36 require_once('config.php'); 35 // We need to know the app path before we can include the config. 36 define('APPPATH', dirname(__FILE__).DIRECTORY_SEPARATOR); 37 38 require_once(APPPATH.'config.php'); 39 require_once(APPPATH.'classes/autoload.php'); 37 40 $controller = new HellaController($config['host'], $config['port'], $config['username'], $config['password']); 38 41 39 $manager = new Feed_Manager( );42 $manager = new Feed_Manager(APPPATH.'feeds.xml'); 40 43 41 44 // Grab the command off the args.
