Location: PHPKode > projects > Top Music module > Top Music 3.0.7/html/modules/topMusic/admin/musicmoz_insertsong.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->id=$_GET['idalbum'];
$musicDAO->insertSong($album,$_GET['song']);
if($musicDAO->error!="")
	print "Error: ".$musicDAO->error;
else{ ?>
	Song successfully created.<br><br>
	<center><a href="javascript: history.back()">Back</a>&nbsp;||&nbsp;<a href="javascript: window.close()">Close</a></center>
	
<?php } ?>
Return current item: Top Music module