Common: removed cookie_destroy hack
authorDan
Fri, 21 Aug 2009 13:48:48 -0400
changeset 1088 3b25a59dacd1
parent 1087 c3db5e44f8f3
child 1089 16a1e8626dd9
Common: removed cookie_destroy hack
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. <a href="'.htmlspecialchars($_SERVER['PHP_SELF']).'">Continue</a>');
-      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') )
 {