. */ /** * @brief Modify the contact in the database after the form * * * @file * @author Claire Figueras * @date $date$ * @version $Revision$ * @ingroup admin */ $core_tools = new core_tools(); $core_tools->load_lang(); $return = $core_tools->test_admin('admin_contacts', 'apps', false); if (!$return) { $return = $core_tools->test_admin('create_contacts', 'apps', false); } if (!$return) { $return = $core_tools->test_admin('my_contacts', 'apps', false); } if (!$return) { $return = $core_tools->test_admin('update_contacts', 'apps', false); } if (!$return) { $return = $core_tools->test_admin('my_contacts_menu', 'apps', false); } if (!$return) { $_SESSION['error'] = _SERVICE . ' ' . _UNKNOWN; ?> ''){ $admin = false; if($_GET['mycontact'] == 'iframe'){ $iframe = 1; } else if ($_GET['mycontact'] == 'iframe_add_up') { $iframe = 2; } else if ($_GET['mycontact'] == 'fromContactIframe') { $iframe = 3; } } else { $admin = true; } if (isset($_REQUEST['fromContactAddressesList'])) { $_SESSION['contact_address']['fromContactAddressesList'] = "yes"; } $contact->addupaddress($_POST['mode'], $admin, $iframe); ?>