Changeset 7009
- Timestamp:
- 11/18/08 14:57:26 (7 weeks ago)
- Location:
- trunk/library
- Files:
-
- 2 removed
- 2 modified
-
environment/XMLCustomType.php (deleted)
-
environment/XMLRPC.php (modified) (1 diff)
-
environment/XMLRPCFault.php (deleted)
-
include.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/library/environment/XMLRPC.php
r6998 r7009 371 371 } 372 372 } 373 class XMLRPCFault { 374 var $code, $string; 375 376 function XMLRPCFault($code = 0, $string = 'Error') { 377 $this->code = $code; 378 $this->string = $string; 379 } 380 } 381 class XMLCustomType { 382 var $value, $name; 383 384 function XMLCustomType($varString, $varName) { 385 $this->name = $varName; 386 $this->value = $varString; 387 } 388 } 373 389 ?> -
trunk/library/include.php
r7004 r7009 43 43 class Autoload { 44 44 private static $drivers = array( 45 'auth' => array('Auth','OpenID' ),45 'auth' => array('Auth','OpenID',array('Privilege'=>'Auth','Acl'=>'Auth')), 46 46 'cache' => array('PageCache'), 47 47 'data' => array('BlogSetting','BlogStatistics','DailyStatistics', … … 55 55 'Post','RemoteResponse','SkinSetting','Tag','Trackback','TrackbackLog'), 56 56 'environment' => array( 57 'Base64Stream','HTTPRequest','OutputWriter','XMLRPC','XMLRPCFault', 58 'XMLCustomType','XMLTree','Pop3'), 57 'Base64Stream','HTTPRequest','OutputWriter','XMLRPC', 58 array('XMLRPCFault'=>'XMLRPC','XMLCustomType'=>'XMLRPC'), 59 'XMLTree','Pop3'), 59 60 'plugin' => array('Misc','PluginCustomConfig'), 60 61 'session' => array('Session'), … … 65 66 foreach (self::$drivers as $namespace => $classes) { 66 67 if(!empty($classes)) foreach($classes as $class) { 67 self::$relation[$class] = $namespace; 68 if(is_array($class)) { 69 foreach($class as $module => $file) self::$relation[$module] = $namespace.'/'.$file; 70 } else self::$relation[$class] = $namespace.'/'.$class; 68 71 } 69 72 } … … 80 83 require_once(ROOT . "/library/session/Session_Memcached.php"); 81 84 } else if(empty(self::$relation[$name])) { 82 if(defined('TCDEBUG')) print "T C: Unregisterred auto load class: $name<br/>\n";83 } else { 85 if(defined('TCDEBUG')) print "Textcube: Unregisterred auto load class: $name<br/>\n"; 86 } else { 84 87 require_once(ROOT . "/library/".self::$relation[$name]."/".$name.".php"); 85 88 }
