Location: PHPKode > projects > Top Music module > Top Music 3.0.7/html/modules/topMusic/admin/musicmoz_insertalbum.php
<?php
define('FORUM_ADMIN','1');
define(INCLUDE_PATH,"../../../");
$tm_include='';

require_once(INCLUDE_PATH."config.php");
require_once(INCLUDE_PATH."db/db.php");

require_once("../../../modules/topMusic/admin/lib/com/sergids/topmusic/model/MusicMozAdminDAO.php");
require_once("../../../modules/topMusic/admin/lib/com/sergids/topmusic/view/MusicMozAdminView.php");
global $prefix,$db,$language;

$musicDAO = new MusicMozAdminDAO($db,$prefix);
$album=$musicDAO->getAlbum(stripslashes($_GET['path']));
//print_r($album);
$album->idartist=$_GET['idartist'];
$musicDAO->insertAlbum($album);
if($musicDAO->error!="")
	print "Error: ".$musicDAO->error;
else{ ?>
	Album successfully created.
	
<?php } ?>
Return current item: Top Music module