No Description

autoload.php 340B

1234567891011121314
  1. <?php
  2. define ( 'MiPush_Root', dirname ( __FILE__ ) . '/' );
  3. function mipushAutoload($classname) {
  4. $parts = explode ( '\\', $classname );
  5. $path = MiPush_Root . implode ( '/', $parts ) . '.php';
  6. if (file_exists ( $path )) {
  7. include ($path);
  8. }
  9. }
  10. spl_autoload_register ( 'mipushAutoload' );
  11. ?>