function CONTACT_INDEX() { if (!isset($_GET["uidUser"])) { if (trim($_GET["employeeNumber"]) == null) { $_GET["employeeNumber"] = time() . "-" . rand(0, 10000); } $contact = $_GET["employeeNumber"]; $ct = new contacts($_SESSION["uid"], $contact); $button = "<input type='button' OnClick=\"javascript:EditContact('FFM_CONTACT_PAGE');\" value='{edit} »»'>"; } if ($_GET["uidUser"] != null) { writelogs("Loading {$_GET["uidUser"]} uid", __FUNCTION__, __FILE__); $ct = new contacts($_SESSION["uid"], null, $_GET["uidUser"]); } $tab = CONTACT_TABS(); $test = CONTACT_PAGE(); $html = "\n\t<div id='tabs'>{$tab}</div>\n\t\n\t<div id='contact_section' class='contact'>{$test}</div>'\n\t"; $tpl = new templates(); echo $tpl->_parse_body($html); }
exit; } if (isset($_GET["contact-index"])) { CONTACT_PAGE(); exit; } if (isset($_GET["completeName"])) { CONTACT_COMPLETE_NAME(); exit; } if (isset($_POST["xEditSave"])) { CONTACT_SAVE(); exit; } if (isset($_GET["showtab"])) { echo CONTACT_TABS(); exit; } if (isset($_GET["section"])) { CONTACT_SWITCH(); exit; } if (isset($_GET["delete-contact"])) { CONTACT_DELETE(); exit; } if (isset($_GET["mozillaSecondEmailList"])) { echo mozillaSecondEmailList(); exit; } if (isset($_GET["mozillaSecondEmail"])) {