Exemplo n.º 1
0
     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"]);
     @header("location: index.php?iid=profile&op=showCookies");
     exit;
     //******************************************************************************
     // modCookie -- edit a Cookie Host Information
     //******************************************************************************
 //******************************************************************************
 // modCookie -- edit a Cookie Host Information
 //******************************************************************************
 case "modCookie":
     $newCookie["host"] = tfb_getRequestVar('host');
     $newCookie["data"] = tfb_getRequestVar('data');
     $cid = tfb_getRequestVar('cid');
     modCookieInfo($cid, $newCookie);
     AuditAction($cfg["constants"]["admin"], "Modified Cookie: " . $newCookie["host"] . " | " . $newCookie["data"]);
Exemplo n.º 2
0
function deleteCookie($cid)
{
    global $cfg;
    $cookie = getCookie($cid);
    deleteCookieInfo($cid);
    AuditAction($cfg["constants"]["admin"], _DELETE . " Cookie: " . $cookie["host"]);
    header("location: profile.php?op=showCookies");
}