# Does not include 'cp', which isn't present on the CP landing page. # The SCRIPT_NAME will output 'mysystemdir/index.php' when in the control panel. # I always set the system folder as a variable at the top of our config, because # it is used in a few places. $system_folder = 'mysystemdir'; $config['show_profiler'] = (strpos($_SERVER['SCRIPT_NAME'], $system_folder) !== false) ? 'n' : 'y';