Location: PHPKode > projects > Easy Music Box > lib/class.file_details.inc
<?php
/*
 * @package    Easy MusicBox
 * @author     Kevin Pentiah <hide@address.com>
 * @copyright  2006 3scriptz
 * @license    PHP License 
 * @version    Release: 1.0.0
 * @link       http://www.3scriptz.com
 * @since      Class available since Release 1.0.0
 * @desc	display a better looking file
 */

class file_details {
   function song_name($fullfile) {
      $fname = strrchr($fullfile, '/');
      $fname=str_replace('/'," ",$fname);
      $fname=str_replace('-'," ",$fname);
      $fname=str_replace('_'," ",$fname);
      $fname=str_replace('.mp3',"",$fname);
      $fname=str_replace('/a-z/',"/A-Z/",$fname);
      //$fname=preg_replace('/[0-9]/',"",$fname);
      return $fname;
   }
   function path_name($fullfile) {
      $pname = strstr($fullfile, '/');
      return $pname;
   }
   function is_music_file() {
   }
}

?>
Return current item: Easy Music Box