Location: PHPKode > projects > Local Lyric Displayer > lyrics/ADDSONG.PHP
<? include ('functions.php'); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
	<title>Untitled</title>
	<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-9">
</head>
<link rel="stylesheet" type="text/css" href="lyrics.css">
<? include ('javascripts.php'); ?>
<body onload="closewindow()">
<?
//echo "Username : " . $username . "<br>Password : " . $password . "<br>";
$user_kontrol_arrays = userkontrol($username,$password,hashed);
if ($user_kontrol_arrays <> "") {
	$login_correct = "1";
}

if ($login_correct) {
	$band_info = get_band($bandname,"bandname");
	if ($band_info == "") {
	//	echo "Bandname bulunamadý ekliyeyim hemencecik";
		add_band($bandname);
		$band_info = get_band($bandname,"bandname");
	}
	$bandid = $band_info["bandid"];
	//echo "BandID : " . $bandid . "<br>";
	$album_info = get_album($bandid,$albumname);
	if ($album_info == "") {
		add_album($bandid,$albumname);
		$album_info = get_album($bandid,$albumname);
		print_r ($album_info);
	}
	$albumid = $album_info["album_id"];
	//echo "AlbümID : " . $albumid . "<br>";
	add_lyric($songname, $bandid, $albumid, $lyrics, $user_kontrol_arrays[0])
?>
<span class="lyrics">Þarký Eklendi Bu Pencere 2 Saniye Ýçinde Kapanacak</span>
<?
} else {
?>
<span class="text">Login Olmadan Olmaz Anacým</span>
<?
}
?>
</body>
</html>
Return current item: Local Lyric Displayer