(file) Return to edit-album-exe.php CVS log (file) (dir) Up to [RizwankCVS] / geekymedia_web / photo / sspadmin

 1 rizwank 1.1 <?php
 2             require "./inc/head.php";
 3             
 4             $safety = get_magic_quotes_gpc();
 5             $aid = $_REQUEST['aid'];
 6             $n = ($safety) ? $_REQUEST['aName'] : mysql_real_escape_string($_REQUEST['aName']);
 7             $d = ($safety) ? $_REQUEST['aDesc'] : mysql_real_escape_string($_REQUEST['aDesc']);
 8             $t = $_REQUEST['tn'];
 9             $at = $_REQUEST['atn'];
10             $ad = $_REQUEST['aMp3'];
11             $adc = ($safety) ? $_REQUEST['aMp3Desc'] : mysql_real_escape_string($_REQUEST['aMp3Desc']);
12             $tgt = $_REQUEST['tgt'];
13             
14             if (empty($t))
15             	$t = 0;
16             	
17             if (empty($tgt))
18             	$tgt = 0;
19             
20             mysql_query("UPDATE $atbl SET name='$n', description='$d', tn=$t, aTn='$at', audioFile='$ad', audioCap='$adc', target=$tgt WHERE id = $aid") or die(mysql_error());
21             
22 rizwank 1.1 			
23             header("Location: edit-album.php?aid=$aid&m=1");
24             
25             ?>

Rizwan Kassim
Powered by
ViewCVS 0.9.2