diff -r d2d4e40ecd29 -r 935f3799b654 plugins/SpecialAdmin.php
--- a/plugins/SpecialAdmin.php Mon Jul 07 02:50:17 2008 -0400
+++ b/plugins/SpecialAdmin.php Mon Jul 07 18:12:30 2008 -0400
@@ -2166,6 +2166,7 @@
{
global $db, $session, $paths, $template, $plugins; // Common objects
global $lang;
+ global $cache;
if($session->auth_level < USER_LEVEL_ADMIN)
{
@@ -2227,6 +2228,7 @@
exit;
}
}
+ $cache->purge('anon_sidebar');
echo '
' . $lang->get('sbedit_msg_order_update_success') . '
';
}
elseif(isset($_POST['create']))
@@ -2279,7 +2281,8 @@
$template->footer();
exit;
}
-
+
+ $cache->purge('anon_sidebar');
echo '' . $lang->get('sbedit_msg_item_added') . '
';
}
@@ -2385,7 +2388,7 @@
plugin_blocks as $k => $c)
{
- echo '';
+ echo '';
}
?>
@@ -2414,6 +2417,7 @@
return;
break;
case 'move':
+ $cache->purge('anon_sidebar');
if( !isset($_GET['side']) || ( isset($_GET['side']) && !preg_match('#^([0-9]+)$#', $_GET['side']) ) )
{
echo '$_GET[\'side\'] contained an SQL injection attempt
';
@@ -2436,6 +2440,7 @@
$template->footer();
exit;
}
+ $cache->purge('anon_sidebar');
if(isset($_GET['ajax']))
{
ob_end_clean();
@@ -2493,6 +2498,8 @@
ob_end_clean();
$r = $db->fetchrow();
$db->free_result();
+ $cache->purge('anon_sidebar');
+
if($r['block_type'] == BLOCK_PLUGIN) die('HOUSTON_WE_HAVE_A_PLUGIN');
die($r['block_content']);
break;
@@ -2555,6 +2562,7 @@
break;
}
$c = preg_replace('/\{(restrict|hideif) ([a-z0-9_\(\)\|&! ]+)\}/', '', $c);
+ $cache->purge('anon_sidebar');
die('var status = \'GOOD\'; var content = unescape(\''.hexencode($c).'\');');
break;
}