<?php
///////////////////////////////////////////////////////////////////////////////////////////
///Script PHP/MYSQL of management of classifieds ads developed by Script PAG
///Script PAG all rights reserved. Use under license. http://www.script-pag.com
///////////////////////////////////////////////////////////////////////////////////////////

############################################################

require_once __DIR__.'/../all_fns.php';

pool::execute('beforestart');

///////////////////////////////////
//Delete user search
//////////////////////////////////
if(isset($_POST['id']) && isset($_POST['value'])) {
	$conn = db_connect();
	$account = get_info_member($_SESSION['connect_id']);
	if(isset($account)) {
		update_account_search_send_mail($_POST['id'], $_POST['value']);
		echo true;
	}
}
echo false;

