# HG changeset patch # User Dan # Date 1250876928 14400 # Node ID 3b25a59dacd1b8c0a6b6150b13cc4acec770851c # Parent c3db5e44f8f340b75a7f8e3d5ebc642937b43dcf Common: removed cookie_destroy hack diff -r c3db5e44f8f3 -r 3b25a59dacd1 includes/common.php --- a/includes/common.php Fri Aug 21 13:48:27 2009 -0400 +++ b/includes/common.php Fri Aug 21 13:48:48 2009 -0400 @@ -226,21 +226,6 @@ define('urlSeparator', $sep); unset($sep); // save 10 bytes of memory... -// Sometimes there are critical failures triggered by initialization functions in the Enano API that are recurring -// and cannot be fixed except for manual intervention. This is where that code should go. -if ( isset($_GET['do']) && $_GET['do'] == 'diag' && isset($_GET['sub']) ) -{ - switch($_GET['sub']) - { - case 'cookie_destroy': - unset($_COOKIE['sid']); - setcookie('sid', '', time()-3600*24, scriptPath); - setcookie('sid', '', time()-3600*24, scriptPath.'/'); - die('Session cookie cleared. Continue'); - break; - } -} - // Build the list of system tables (this is mostly done in constants.php, but that's before table_prefix is known) if ( defined('table_prefix') && !defined('ENANO_TABLELIST_PREFIXED') ) {