Example #1
0
     $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"]);
     @header("location: index.php?iid=profile&op=showCookies");
     exit;
     //******************************************************************************
     // updateProfile -- update profile
     //******************************************************************************
 //******************************************************************************
 // updateProfile -- update profile
 //******************************************************************************
 case "updateProfile":
     $tmpl->setvar('updateProfile', 1);
     $pass1 = tfb_getRequestVar('pass1');
     $pass2 = tfb_getRequestVar('pass2');
     $hideOffline = tfb_getRequestVar('hideOffline');
     $theme = tfb_getRequestVar('theme');
Example #2
0
function modCookie($cid, $newCookie)
{
    global $cfg;
    modCookieInfo($cid, $newCookie);
    AuditAction($cfg["constants"]["admin"], "Modified Cookie: " . $newCookie["host"] . " | " . $newCookie["data"]);
    header("location: profile.php?op=showCookies");
}