<?php


require_once( "_inc.php" );
util::auth( );
$applyId = !empty( $_GET['aId'] ) ? trim( $_GET['aId'] ) : "";
$backUrl = !empty( $_GET['back'] ) ? trim( $_GET['back'] ) : base64_encode( "site_list.php" );
if ( empty( $applyId ) )
{
	$tpl->assign( "msg", "缺少参数" );
	$tpl->display( "_msg.tpl" );
	exit( );
}
$sql = "DELETE FROM ".$gDb['prefix'].( "applies WHERE (f_id='".$applyId."')" );
$db->query( $sql );
header( "location: ".base64_decode( $backUrl ) );
?>
