Location: PHPKode > projects > Top Music module > Top Music 3.0.7/html/modules/topMusic/lib/com/sergids/common/PHPNuke.php
<?php
class PHPNuke {
	function getModuleName($path=null){
		if(!$path)
			$path=__FILE__;
		$module_name=basename(dirname($path));
		if($module_name=="admin"){ //inside admin
			$module_name=explode('/',dirname($path));
			if(count($module_name<=1))
				$module_name=explode('\\',dirname($path));
			$module_name = $module_name[count($module_name)-2];
		}
		return $module_name;
	}
}
?>
Return current item: Top Music module