Make WordPress Core


Ignore:
Timestamp:
10/20/2003 08:53:13 PM (22 years ago)
Author:
emc3
Message:

Cookies are now unique, based on siteurl, allowing multiple installs under a single domain name.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/linkmanager.php

    r296 r458  
    8585}
    8686
    87 $links_show_cat_id = $HTTP_COOKIE_VARS["links_show_cat_id"];
    88 $links_show_order = $HTTP_COOKIE_VARS["links_show_order"];
     87$links_show_cat_id = $HTTP_COOKIE_VARS["links_show_cat_id_".$cookiehash];
     88$links_show_order = $HTTP_COOKIE_VARS["links_show_order_".$cookiehash];
    8989
    9090if ($action2 != '')
     
    264264             " WHERE link_id=$link_id");
    265265    } // end if save
    266     setcookie('links_show_cat_id', $links_show_cat_id, time()+600);
     266    setcookie('links_show_cat_id_'.$cookiehash, $links_show_cat_id, time()+600);
    267267    header('Location: '.$this_file);
    268268    break;
     
    289289    }
    290290    $links_show_cat_id = $cat_id;
    291     setcookie("links_show_cat_id", $links_show_cat_id, time()+600);
     291    setcookie("links_show_cat_id_".$cookiehash, $links_show_cat_id, time()+600);
    292292    header('Location: '.$this_file);
    293293    break;
     
    442442    $links_show_order = $order_by;
    443443
    444     setcookie('links_show_cat_id', $links_show_cat_id, time()+600);
    445     setcookie('links_show_order', $links_show_order, time()+600);
     444    setcookie('links_show_cat_id_'.$cookiehash, $links_show_cat_id, time()+600);
     445    setcookie('links_show_order_'.$cookiehash, $links_show_order, time()+600);
    446446    $standalone=0;
    447447    include_once ("./b2header.php");
Note: See TracChangeset for help on using the changeset viewer.