Maybe you checked if DB_FULL_VISUAL_PROCESSING is on or off now... but perhaps you have others doing coding for you, or adding modifications, or whatever, and you are concerned they may turn it on, and not tell you, or forget to turn it back off again when they are done.
You can add (the code below, is for Dolphin 7.0.1), a indicator to your administrator panel Dashboard. I stuck it in the first block (with the admin info) rather than making a new block.
You can check the screen shots if you wish, attached to this post.
It is easy to add.
Edit inc/classes/BxDolAdminDashboard.php
Find, around line 88, function getAdminBlock()
Replace that function with the modified one below, or compare and edit your existing function (your choice!)
Code:
function getAdminBlock() {
global $oAdmTemplate;
$aInfo = $GLOBALS['MySQL']->getRow("SELECT `NickName` AS `username`, `Password` AS `Password`, DATE_FORMAT(`DateLastLogin`, '" . getLocaleFormat(BX_DOL_LOCALE_DATE, BX_DOL_LOCALE_DB) . "') AS `last_login` FROM `Profiles` WHERE `ID`='" . $_COOKIE['memberID'] . "' LIMIT 1");
if( DB_FULL_VISUAL_PROCESSING ){
$vp_alert = '<font color="red">Enabled - Insecure!</font>';}
else {
$vp_alert = '<font color="green">Disabled</font>';}
return array(
'icon' => $oAdmTemplate->getIconUrl('dashboard_admin.png'),
'title' => ucfirst($aInfo['username']),
'url' => '',
'content' => _t('_adm_txt_dashboard_last_login') . ': ' . $aInfo['last_login'] . '<br /><a href="' . $GLOBALS['site']['url_admin'] . 'settings.php?cat=ap">' . _t('_adm_txt_dashboard_change_password') . '</a>' . '<br>' . 'Visual Processing: ' . $vp_alert
);
}
My changes, broken out...
Added this:
Code:
if( DB_FULL_VISUAL_PROCESSING ){
$vp_alert = '<font color="red">Enabled - Insecure!</font>';}
else {
$vp_alert = '<font color="green">Disabled</font>';}
and appended this to the 'content'
Code:
. '<br>' . 'Visual Processing: ' . $vp_alert
Have fun!
Smoge
Bookmarks