You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							15 lines
						
					
					
						
							410 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							15 lines
						
					
					
						
							410 B
						
					
					
				
								<?php
							 | 
						|
								
							 | 
						|
								    function __autoload($className) {
							 | 
						|
								        $fword = substr($className, 0, 1);
							 | 
						|
								        if(!in_array($fword, array('m', 'd', 'q'))) return true;
							 | 
						|
								
							 | 
						|
								        if($fword=='m') {
							 | 
						|
								            $dir = 'model';
							 | 
						|
								        } elseif($fword=='d') {
							 | 
						|
								            $dir = 'data';
							 | 
						|
								        } elseif($fword=='q') {
							 | 
						|
								            $dir = 'queue/model';
							 | 
						|
								        }
							 | 
						|
								        include_once SERVER_ROOT.$dir.'/'.$className.'.php';
							 | 
						|
								    }
							 | 
						|
								
							 |