示例#1
0
function mozillaSecondEmailAdd()
{
    if (!isset($_GET["uidUser"])) {
        $ct = new contacts($_SESSION["uid"], $_GET["employeeNumber"]);
    } else {
        $ct = new contacts($_SESSION["uid"], null, $_GET["uidUser"]);
    }
    $tpl = new templates();
    if (!$ct->mozillaSecondEmailAdd($_GET["mozillaSecondEmail"])) {
        echo $tpl->_ENGINE_parse_body("{$_GET["mozillaSecondEmail"]} {failed}\n");
    } else {
        echo $tpl->_ENGINE_parse_body("{$_GET["mozillaSecondEmail"]} {success}\n");
    }
}