getPath( 'admin_html' ) ); switch ($task) { case 'clean_cache': mosCache::cleanCache( 'com_content' ); mosRedirect( 'index2.php', 'Content caches cleaned' ); break; case 'clean_all_cache': mosCache::cleanCache(); mosRedirect( 'index2.php', 'All caches cleaned' ); break; case 'redirect': $goto = strval( strtolower( mosGetParam( $_REQUEST, 'link' ) ) ); if ($goto == 'null') { $msg = 'There is no link associated with this item'; mosRedirect( 'index2.php?option=com_admin&task=listcomponents', $msg ); exit(); } $goto = str_replace( "'", '', $goto ); mosRedirect( $goto ); break; case 'listcomponents': HTML_admin_misc::ListComponents(); break; case 'sysinfo': HTML_admin_misc::system_info( $version, $option ); break; case 'changelog': HTML_admin_misc::changelog(); break; case 'help': HTML_admin_misc::help(); break; case 'version': HTML_admin_misc::version(); break; case 'preview': HTML_admin_misc::preview(); break; case 'preview2': HTML_admin_misc::preview( 1 ); break; case 'cpanel': default: HTML_admin_misc::controlPanel(); break; } ?>