$settings = processSettingsParams(true, true); saveUserSettings($cfg["uid"], $settings); AuditAction($cfg["constants"]["admin"], "updated personal settings for " . $cfg["user"]); @header("location: index.php?iid=profile"); exit; //****************************************************************************** // addCookie -- adding a Cookie Host Information //****************************************************************************** //****************************************************************************** // addCookie -- adding a Cookie Host Information //****************************************************************************** case "addCookie": $newCookie["host"] = tfb_getRequestVar('host'); $newCookie["data"] = tfb_getRequestVar('data'); if (!empty($newCookie)) { AddCookieInfo($newCookie); AuditAction($cfg["constants"]["admin"], "New Cookie: " . $newCookie["host"] . " | " . $newCookie["data"]); } @header("location: index.php?iid=profile&op=showCookies"); exit; //****************************************************************************** // deleteCookie -- delete a Cookie Host Information //****************************************************************************** //****************************************************************************** // deleteCookie -- delete a Cookie Host Information //****************************************************************************** case "deleteCookie": $cid = tfb_getRequestVar('cid'); $cookie = getCookie($cid); deleteCookieInfo($cid); AuditAction($cfg["constants"]["admin"], $cfg['_DELETE'] . " Cookie: " . $cookie["host"]);
function addCookie($newCookie) { if (!empty($newCookie)) { global $cfg; AddCookieInfo($newCookie); AuditAction($cfg["constants"]["admin"], "New Cookie: " . $newCookie["host"] . " | " . $newCookie["data"]); } header("location: profile.php?op=showCookies"); }