forked from CCHits/Website
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathautoloader.php
More file actions
31 lines (31 loc) · 955 Bytes
/
Copy pathautoloader.php
File metadata and controls
31 lines (31 loc) · 955 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
/**
* CCHits.net is a website designed to promote Creative Commons Music,
* the artists who produce it and anyone or anywhere that plays it.
* These files are used to generate the site.
*
* PHP version 5
*
* @category Default
* @package CCHitsClass
* @author Jon Spriggs <jon@sprig.gs>
* @license http://www.gnu.org/licenses/agpl.html AGPLv3
* @link http://cchits.net Actual web service
* @link https://github.com/CCHits/Website/wiki Developers Web Site
* @link https://github.com/CCHits/Website Version Control Service
*/
/**
* A basic autoloader
*
* @param string $className The name of the class we're trying to load
*
* @return true|false Whether we were able to load the class.
*/
function __autoload($className)
{
if (is_file(dirname(__FILE__) . '/class_' . $className . '.php')) {
include_once dirname(__FILE__) . '/class_' . $className . '.php';
return true;
}
return false;
}