<?php include_once 'CheckLogOut.php'; require_once 'Connection.php'; require_once 'ContactPhone.php'; // para atualizar a lista require_once 'User.php'; require_once 'CacheArquivo.php'; //////////////////////////// require_once 'Log.php'; $con = new Connection(); $c = new ContactPhone(); $c->ContactId($_GET['contactId']); $c->PhoneType($_GET['phoneType']); $c->CountryId($_GET['countryId']); $c->Ddd($_GET['ddd']); $c->PhoneNumber($_GET['phoneNumber']); $c->InsertContactPhone(); // para atualizar a lista $u = new User(); $cacheArquivo = new CacheArquivo(); $Contacts = $u->GetAllContacts($USERID); $valor = json_encode($Contacts); $cacheArquivo->set_valor($USERID, $valor); //////////////////////////// $Log = new Log(1); // log de inserção, conforme a tabela Actions $Log->UserId($USERID); // $Log->InsertLog(); echo '<html>'; echo '<script language="JavaScript">';