<?php
include "includes/config.php";
include "includes/session.php";
include "includes/functions.php";

$sellerststus=$_GET['status'];
$userid=$_GET['aid'];

if(empty($userid))
{ // check userid exists or not 
	header("Location:".SITE_URL."/index.php");
}
if(!empty($userid))
{ // check userid exists or not 
	$userid=base64_decode($userid);
			
	$sql="UPDATE ".$tableprefix."artists SET vapproved='Y' where artist_id ='".$userid."' ";
	$rs=mysql_query($sql) or die (mysql_error());
	session_destroy();
	
		header("Location:".SITE_URL."/sellers/login.php?stat=Y");
		exit();

}	
	
?>