<?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');

///////////////////////////////////
//Save user search
//////////////////////////////////
if(isset($_POST['search'])) {
	$conn = db_connect();
	$account = get_info_member($_SESSION['connect_id']);
	if(isset($account)) {	
		save_account_search($account['id_acc'], $_POST['search']);
		echo true;
	}
}
echo false;

