From 2b2fb8f2ac250c211e859a1fca40f58efd1e977a Mon Sep 17 00:00:00 2001 From: frostmakk Date: Sat, 28 Oct 2017 14:10:02 +0200 Subject: [PATCH] General update Some layout adjustments to the screen form. (Text running out of their boxes) A couple of things added to post output earlier, now implemented on screen form as well.(Extension enabled/disabled, Multiple instances of version file) Removed unused code. (Bug report assistant, etc.) Trimmed BBCode to keep number of characters in the forum post as low as possible. --- fpa-en.php | 989 ++++++++++++----------------------------------------- 1 file changed, 226 insertions(+), 763 deletions(-) diff --git a/fpa-en.php b/fpa-en.php index d21a7d3..ac123da 100644 --- a/fpa-en.php +++ b/fpa-en.php @@ -7,8 +7,8 @@ /** ** @package Forum Post Assistant / Bug Report Assistant - ** @version 1.3.4 - ** @last updated 30/09/2017 + ** @version 1.3.5 + ** @last updated 28/10/2017 ** @release Beta ** @date 24/06/2011 ** @author RussW @@ -35,7 +35,6 @@ /** SET THE FPA DEFAULTS *****************************************************************/ - # define ( '_FPA_BRA', TRUE ); // bug-report-mode, else it's the standard Forum Post Assistant # define ( '_FPA_DEV', TRUE ); // developer-mode, displays raw array data # define ( '_FPA_DIAG', TRUE ); // diagnostic-mode, turns on PHP logging errors, display errors and logs error to a file. @@ -45,14 +44,10 @@ // Define some basic assistant information - if ( defined ( '_FPA_BRA' ) ) { - define ( '_RES', 'Bug Report Assistant' ); - } else { - define ( '_RES', 'Forum Post Assistant' ); - } - define ( '_RES_VERSION', '1.3.4' ); - define ( '_last_updated', '30/09/2017' ); + define ( '_RES', 'Forum Post Assistant' ); + define ( '_RES_VERSION', '1.3.5' ); + define ( '_last_updated', '28/10/2017' ); define ( '_COPYRIGHT_STMT', ' Copyright (C) 2011, 2012 Russell Winter, Phil DeGruy, Bernard Toplak  ' ); define ( '_LICENSE_LINK', 'http://www.gnu.org/licenses/' ); // link to GPL license define ( '_LICENSE_FOOTER', ' The FPA comes with ABSOLUTELY NO WARRANTY.   This is free software, @@ -106,9 +101,9 @@ define ( '_FPA_SLOWRUNTEST', 'Hang on while we run some tests...' ); // remove script notice content - Phil 4-17-12 - define ( '_FPA_DELNOTE_LN1', '

** SECURITY NOTICE **

Due to the highly sensitive nature of the information displayed by the FPA script,

it should be removed from the server immediately after use.' ); + define ( '_FPA_DELNOTE_LN1', '

** SECURITY NOTICE **

Due to the highly sensitive nature of the information displayed by the FPA script,

it should be removed from the server immediately after use.' ); define ( '_FPA_DELNOTE_LN2', '

If the script is left on the site, it can be used to gather enough information to hack your site.' ); - define ( '_FPA_DELNOTE_LN3', '

After use, Click Here to delete this script.' ); + define ( '_FPA_DELNOTE_LN3', '

After use, Click Here to delete this script.' ); // dev/diag-mode content @@ -307,6 +302,8 @@ define ( '_FPA_SHOW', 'Show' ); define ( '_FPA_HIDE', 'Hide' ); define ( 'act', ''); + define ( '_FPA_MVFW', 'More than one instance of version.php found!' ); + define ( '_FPA_MVFWF', 'Multiple found' ); /* v1.2.7 */ define ( '_FPA_DIR_UNREADABLE', 'A directory is NOT READABLE and cannot be checked!'); @@ -335,9 +332,9 @@ // Something went wrong and the script was not deleted so it must be removed manually so we tell the user to do so - Phil 8-07-12 if (file_exists($filename)) { chmod("fpa-en.php", 0644); // octal; correct value of mode - echo "

Oops!"; - echo "

Something went wrong with the delete process and the file $filename still exists.

"; - echo "

For site security, please remove the file $filename manually using your ftp program.

"; + echo "

Oops!"; + echo "

Something went wrong with the delete process and the file $filename still exists.

"; + echo "

For site security, please remove the file $filename manually using your ftp program.

"; } else { echo "

Thank You for using the FPA.

"; @@ -424,22 +421,7 @@ } else { $showCoreEx = 1; } - - // setup the Post type (Forum=BBCode, GitHUB=markdown or JoomlaCode=plain-text) - // later on, we also remove 'Elevated Permissions' & 'dB Stats' from GitHUb & JoomlaCode outputs based on these settings - if ( @$_POST['postFormat'] == 1 AND defined( '_FPA_BRA' ) ) { - $postFormat = 1; // JoomlaCode - } elseif ( @$_POST['postFormat'] == 2 AND defined( '_FPA_BRA' ) ) { - $postFormat = 2; // GitHUB - } elseif ( @$_POST['postFormat'] == 3 ) { - $postFormat = 3; // Forum - } elseif ( defined( '_FPA_BRA' ) ) { - $postFormat = 2; // GitHUB (default if BRA defined) - } else { - $postFormat = 3; // Forum (default if BRA not defined) - } - - + /** TIMER-POPS ***************************************************************************/ // mt_get: returns the current microtime @@ -468,16 +450,9 @@ function mt_end($len=3){ // build the initial arrays used throughout fpa/bra - if ( defined ( '_FPA_BRA' ) ) { - $fpa['ARRNAME'] = _RES; - $fpa['diagLOG'] = 'bra-Diag.log'; - - } else { - $fpa['ARRNAME'] = _RES; - $fpa['diagLOG'] = 'fpa-Diag.log'; - - } + $fpa['ARRNAME'] = _RES; + $fpa['diagLOG'] = 'fpa-Diag.log'; $snapshot['ARRNAME'] = _FPA_SNAP_TITLE; $instance['ARRNAME'] = _FPA_INST_TITLE; $system['ARRNAME'] = _FPA_SYS_TITLE; @@ -2248,7 +2223,7 @@ function recursive_array_search($needle,$haystack) { margin-top:10px; margin-bottom:10px; padding: 5px; - width:355px; + width:48%; background-color:#E0FFFF; border:1px solid #42AEC2; /** CSS3 **/ @@ -2266,7 +2241,7 @@ function recursive_array_search($needle,$haystack) { margin-top:10px; margin-bottom:10px; padding: 5px; - width:355px; + width:48%; background-color:#E0FFFF; border:1px solid #42AEC2; /** CSS3 **/ @@ -2295,8 +2270,8 @@ function recursive_array_search($needle,$haystack) { .mini-content-container { font-size: 9px !important; float:left; - width: 83px; - height: 75px; + width: 23.7%; + height: 50%; margin: 2px; } @@ -3023,7 +2998,7 @@ function CountCharacters() { } ?> -
:
+
:
@@ -3036,43 +3011,9 @@ function CountCharacters() {
-
Run-Time Options - />Forum - GitHUB'; - echo 'JoomlaCode'; - } - ?>

@@ -3123,15 +3064,9 @@ function CountCharacters() { } ?> - :
- - '. _FPA_SHOWELV .'
'; - echo ''. _FPA_SHOWDBT .'
'; - } - ?> - + :
+ style="font-size:9px;" type="checkbox" name="showElevated" value="1" />
+ style="font-size:9px;" type="checkbox" name="showTables" value="1" />
style="font-size:9px;" type="checkbox" name="showComponents" value="1" />
style="font-size:9px;" type="checkbox" name="showModules" value="1" />
style="font-size:9px;" type="checkbox" name="showPlugins" value="1" />
@@ -3243,522 +3178,8 @@ function CountCharacters() { echo ''; echo '

'; echo ''. _FPA_INS_7 .''; // changed to _FPA_INS_7 from _FPA_INS_6 Phil - 4-21-12 echo '

'; echo '
'; + ?> @@ -4388,6 +3800,11 @@ function CountCharacters() { echo '
'. @$instance['instanceFOUND'] .'
'; } + // Warning if more than one instance of version.php found + if ($vFileSum > 1) { + echo "\r\n"; + echo '' . _FPA_MVFWF . ''; + } echo ''; echo ''; @@ -4647,7 +4064,7 @@ function CountCharacters() { echo '
'; echo '
Debugging
'; echo '
'; - echo '
Error Rep:
'. $instance['configERRORREP'] .'
'; + echo '
ErrorRep:
'. $instance['configERRORREP'] .'
'; echo '
Site Debug:
'. $instance['configSITEDEBUG'] .'
'; echo '
Lang Debug:
'. $instance['configLANGDEBUG'] .'
'; echo '
'; @@ -4754,7 +4171,7 @@ function CountCharacters() { echo '
'; echo '
'; - echo '
'. @$instance['configDBTYPE'] .' '. _FPA_VER .':
'; + echo '
'. @$instance['configDBTYPE'] .' '. _FPA_VER .':
'; if ( @$database['dbHOSTSERV'] ) { echo ''. _FPA_SERV .': '. $database['dbHOSTSERV'] .' '; @@ -4775,7 +4192,7 @@ function CountCharacters() { echo '
'; - echo '
'. @$instance['configDBTYPE'] .' '. _FPA_HNAME .':
'; + echo '
'. @$instance['configDBTYPE'] .' '. _FPA_HNAME .':
'; if ( $showProtected == 1 ) { @@ -4795,7 +4212,7 @@ function CountCharacters() { echo '
'; - echo '
'. _FPA_CONT .':
'; + echo '
'. _FPA_CONT .':
'; echo ''; @@ -4825,7 +4242,7 @@ function CountCharacters() { echo '
'; - echo '
PHP '. _FPA_SUP .':
'; + echo '
PHP '. _FPA_SUP .':
'; if ( @$instance['configDBTYPE'] == 'mysqli' AND $phpenv['phpSUPPORTSMYSQLI'] == _FPA_N ) { echo ''. $instance['configDBTYPE'] .' '. _FPA_IS .' '. _FPA_NSUP .' '. _FPA_BY .' PHP '. $phpenv['phpVERSION'] .' '; @@ -4842,7 +4259,7 @@ function CountCharacters() { echo '
'; - echo '
'. _FPA_CON .' '. _FPA_TO .' '. @$instance['configDBTYPE'] .':
'; + echo '
'. _FPA_CON .' '. _FPA_TO .' '. @$instance['configDBTYPE'] .':
'; if ( $database['dbDOCHECKS'] == _FPA_N ) { echo ' '. _FPA_NOA .', '. _FPA_NC .' '; @@ -4862,7 +4279,7 @@ function CountCharacters() { if ( @$database['dbERROR'] AND @$database['dbERROR'] != _FPA_N ) { echo '
'; - echo '
'. _FPA_ECON .':
'; + echo '
'. _FPA_ECON .':
'; echo '
'. $database['dbERROR'] .'
'; @@ -4873,7 +4290,7 @@ function CountCharacters() { echo '
'; - echo '
'. @$instance['configDBTYPE'] .' '. _FPA_CHARS .':
'; + echo '
'. @$instance['configDBTYPE'] .' '. _FPA_CHARS .':
'; if ( @$database['dbCHARSET'] ) { echo ' '. $database['dbCHARSET'] .' '; @@ -4887,7 +4304,7 @@ function CountCharacters() { echo '
'; - echo '
'. _FPA_DEF .' '. _FPA_CHARS .':
'; + echo '
'. _FPA_DEF .' '. _FPA_CHARS .':
'; if ( @$database['dbHOSTDEFCHSET'] ) { echo ' '. $database['dbHOSTDEFCHSET'] .' '; @@ -4901,7 +4318,7 @@ function CountCharacters() { echo '
'; - echo '
'. _FPA_DB .' '. _FPA_TCOL .':
'; + echo '
'. _FPA_DB .' '. _FPA_TCOL .':
'; if ( @$database['dbCOLLATION'] ) { echo '
 '. $database['dbCOLLATION'] .' 
'; @@ -4918,7 +4335,7 @@ function CountCharacters() { echo '
'; - echo '
'. _FPA_DB .' '. _FPA_TSIZ .':
'; + echo '
'. _FPA_DB .' '. _FPA_TSIZ .':
'; if ( @$database['dbSIZE'] ) { echo ' '. $database['dbSIZE'] .' '; @@ -5526,12 +4943,12 @@ function CountCharacters() { //echo '
'; echo '
'; - echo '
Switch '. _FPA_USR .' '. _FPA_CFG .':
'; + echo '
Switch '. _FPA_USR .' '. _FPA_CFG ; echo '
'; - echo '
suExec
'. $phpenv['phpAPACHESUEXEC'] .'
'; - echo '
PHP suExec
'. $phpenv['phpPHPSUEXEC'] .'
'; - echo '
Custom su
'. $phpenv['phpCUSTOMSU'] .'
'; - echo '
Ownership Probs
'; + echo '
suExec
'. $phpenv['phpAPACHESUEXEC'] .'
'; + echo '
PHP suExec
'. $phpenv['phpPHPSUEXEC'] .'
'; + echo '
Custom su
'. $phpenv['phpCUSTOMSU'] .'
'; + echo '
Ownership Probs
'; if ( $phpenv['phpOWNERPROB'] == _FPA_N ) { $status = 'ok'; @@ -5603,7 +5020,7 @@ function CountCharacters() { } - echo '
'. $key .'
'. $show .'
'; + echo '
'. $key .'
'. $show .'
'; } // endif !arrname @@ -5978,11 +5395,12 @@ function CountCharacters() { echo '
'. $component['ARRNAME'] .' :: '. _FPA_SITE .'
'; echo '
'; - echo '
'. _FPA_TNAM .'
'; - echo '
'. _FPA_VER .'
'; - echo '
'. _FPA_CRE .'
'; - echo '
'. _FPA_AUTH .'
'; - echo '
'. _FPA_ADDR .'
'; + echo '
'. _FPA_TNAM .'
'; + echo '
'. _FPA_VER .'
'; + echo '
'. _FPA_CRE .'
'; + echo '
'. _FPA_AUTH .'
'; + echo '
'. _FPA_ADDR .'
'; + echo '
'. _FPA_EN .'
'; echo '
'. _FPA_TYPE .'
'; echo '
'; echo '
'; @@ -6001,17 +5419,22 @@ function CountCharacters() { // section was redone to only show 3rd party Site components with the idea to cut down on clutter in posts // and make it easier to see what are 3rd party. The old code is marked out below. foreach ( $component['SITE'] as $key => $show ) { - + if (isset($exset[0]['name'])) { + $extarrkey = recursive_array_search($show['name'], $exset); + $extenabled = $exset[$extarrkey]['enabled']; + } else { $extenabled = '' ;} + if ($extenabled <> 0 AND $extenabled <> 1 ){ + $extenabled = ''; + } if ( $show['type'] == _FPA_3PD OR $showCoreEx == 1 AND $showProtected <= 2) { $typeColor = '404040'; - echo '
'. $show['name'] .'
'. $show['version'] .'
'. $show['creationDate'] .'
'. $show['author'] .'
'. $show['authorUrl'] .'
'. $show['type'] .'

'; + echo '
'. $show['name'] .'
'. $show['version'] .'
'. $show['creationDate'] .'
'. $show['author'] .'
'. $show['authorUrl'] .'
'. $extenabled .'
'. $show['type'] .'

'; } elseif ( $showProtected > 2 ) { $typeColor = '000080'; echo '
[ -- '. _FPA_HIDDEN .' -- ]
'. $show['version'] .'
'. $show['creationDate'] .'
'. $show['author'] .'
'. $show['authorUrl'] .'
'. $show['type'] .'

'; - } -} + } // - 8-06-12 - Phil // echo '
'; //show site components @@ -6038,11 +5461,12 @@ function CountCharacters() { echo '
'. $component['ARRNAME'] .' :: '. _FPA_ADMIN .'
'; echo '
'; - echo '
'. _FPA_TNAM .'
'; - echo '
'. _FPA_VER .'
'; - echo '
'. _FPA_CRE .'
'; - echo '
'. _FPA_AUTH .'
'; - echo '
'. _FPA_ADDR .'
'; + echo '
'. _FPA_TNAM .'
'; + echo '
'. _FPA_VER .'
'; + echo '
'. _FPA_CRE .'
'; + echo '
'. _FPA_AUTH .'
'; + echo '
'. _FPA_ADDR .'
'; + echo '
'. _FPA_EN .'
'; echo '
'. _FPA_TYPE .'
'; echo '
'; echo '
'; @@ -6057,17 +5481,23 @@ function CountCharacters() { // section was redone to only show 3rd party Admin components with the idea to cut down on clutter in posts // and make it easier to see what are 3rd party. The old code is marked out below. foreach ( $component['ADMIN'] as $key => $show ) { - + if (isset($exset[0]['name'])) { + $extarrkey = recursive_array_search($show['name'], $exset); + $extenabled = $exset[$extarrkey]['enabled']; + } else { $extenabled = '' ;} + if ($extenabled <> 0 AND $extenabled <> 1 ){ + $extenabled = ''; + } if ( $show['type'] == _FPA_3PD OR $showCoreEx == 1 AND $showProtected <= 2) { $typeColor = '404040'; - echo '
'. $show['name'] .'
'. $show['version'] .'
'. $show['creationDate'] .'
'. $show['author'] .'
'. $show['authorUrl'] .'
'. $show['type'] .'

'; + echo '
'. $show['name'] .'
'. $show['version'] .'
'. $show['creationDate'] .'
'. $show['author'] .'
'. $show['authorUrl'] .'
'. $extenabled .'
'. $show['type'] .'

'; } elseif ( $showProtected > 2 ) { $typeColor = '000080'; echo '
[ -- '. _FPA_HIDDEN .' -- ]
'. $show['version'] .'
'. $show['creationDate'] .'
'. $show['author'] .'
'. $show['authorUrl'] .'
'. $show['type'] .'

'; } -} + } // - 8-06-12 - Phil // echo '
'; //Show admin components @@ -6118,11 +5548,12 @@ function CountCharacters() { echo '
'. $module['ARRNAME'] .' :: '. _FPA_SITE .'
'; echo '
'; - echo '
'. _FPA_TNAM .'
'; - echo '
'. _FPA_VER .'
'; - echo '
'. _FPA_CRE .'
'; - echo '
'. _FPA_AUTH .'
'; - echo '
'. _FPA_ADDR .'
'; + echo '
'. _FPA_TNAM .'
'; + echo '
'. _FPA_VER .'
'; + echo '
'. _FPA_CRE .'
'; + echo '
'. _FPA_AUTH .'
'; + echo '
'. _FPA_ADDR .'
'; + echo '
'. _FPA_EN .'
'; echo '
'. _FPA_TYPE .'
'; echo '
'; echo '
'; @@ -6141,17 +5572,23 @@ function CountCharacters() { // section was redone to only show 3rd party Site modules with the idea to cut down on clutter in posts // and make it easier to see what are 3rd party. The old code is marked out below. foreach ( $module['SITE'] as $key => $show ) { - + if (isset($exset[0]['name'])) { + $extarrkey = recursive_array_search($show['name'], $exset); + $extenabled = $exset[$extarrkey]['enabled']; + } else { $extenabled = '' ;} + if ($extenabled <> 0 AND $extenabled <> 1 ){ + $extenabled = ''; + } if ( $show['type'] == _FPA_3PD OR $showCoreEx == 1 AND $showProtected <= 2) { $typeColor = '404040'; - echo '
'. $show['name'] .'
'. $show['version'] .'
'. $show['creationDate'] .'
'. $show['author'] .'
'. $show['authorUrl'] .'
'. $show['type'] .'

'; + echo '
'. $show['name'] .'
'. $show['version'] .'
'. $show['creationDate'] .'
'. $show['author'] .'
'. $show['authorUrl'] .'
'. $extenabled .'
'. $show['type'] .'

'; } elseif ( $showProtected > 2 ) { $typeColor = '000080'; echo '
[ -- '. _FPA_HIDDEN .' -- ]
'. $show['version'] .'
'. $show['creationDate'] .'
'. $show['author'] .'
'. $show['authorUrl'] .'
'. $show['type'] .'

'; } -} + } //- 8-06-12 - Phil // echo '
'; @@ -6180,11 +5617,12 @@ function CountCharacters() { echo '
'. $module['ARRNAME'] .' :: '. _FPA_ADMIN .'
'; echo '
'; - echo '
'. _FPA_TNAM .'
'; - echo '
'. _FPA_VER .'
'; - echo '
'. _FPA_CRE .'
'; - echo '
'. _FPA_AUTH .'
'; - echo '
'. _FPA_ADDR .'
'; + echo '
'. _FPA_TNAM .'
'; + echo '
'. _FPA_VER .'
'; + echo '
'. _FPA_CRE .'
'; + echo '
'. _FPA_AUTH .'
'; + echo '
'. _FPA_ADDR .'
'; + echo '
'. _FPA_EN .'
'; echo '
'. _FPA_TYPE .'
'; echo '
'; echo '
'; @@ -6199,17 +5637,23 @@ function CountCharacters() { // section was redone to only show 3rd party Admin modules with the idea to cut down on clutter in posts // and make it easier to see what are 3rd party. The old code is marked out below. foreach ( $module['ADMIN'] as $key => $show ) { - + if (isset($exset[0]['name'])) { + $extarrkey = recursive_array_search($show['name'], $exset); + $extenabled = $exset[$extarrkey]['enabled']; + } else { $extenabled = '' ;} + if ($extenabled <> 0 AND $extenabled <> 1 ){ + $extenabled = ''; + } if ( $show['type'] == _FPA_3PD OR $showCoreEx == 1 AND $showProtected <= 2) { $typeColor = '404040'; - echo '
'. $show['name'] .'
'. $show['version'] .'
'. $show['creationDate'] .'
'. $show['author'] .'
'. $show['authorUrl'] .'
'. $show['type'] .'

'; + echo '
'. $show['name'] .'
'. $show['version'] .'
'. $show['creationDate'] .'
'. $show['author'] .'
'. $show['authorUrl'] .'
'. $extenabled .'
'. $show['type'] .'

'; } elseif ( $showProtected > 2 ) { $typeColor = '000080'; echo '
[ -- '. _FPA_HIDDEN .' -- ]
'. $show['version'] .'
'. $show['creationDate'] .'
'. $show['author'] .'
'. $show['authorUrl'] .'
'. $show['type'] .'

'; } -} + } // - 8-06-12 - Phil // echo '
'; @@ -6261,11 +5705,12 @@ function CountCharacters() { echo '
'. $plugin['ARRNAME'] .' :: '. _FPA_SITE .'
'; echo '
'; - echo '
'. _FPA_TNAM .'
'; - echo '
'. _FPA_VER .'
'; - echo '
'. _FPA_CRE .'
'; - echo '
'. _FPA_AUTH .'
'; - echo '
'. _FPA_ADDR .'
'; + echo '
'. _FPA_TNAM .'
'; + echo '
'. _FPA_VER .'
'; + echo '
'. _FPA_CRE .'
'; + echo '
'. _FPA_AUTH .'
'; + echo '
'. _FPA_ADDR .'
'; + echo '
'. _FPA_EN .'
'; echo '
'. _FPA_TYPE .'
'; echo '
'; echo '
'; @@ -6285,17 +5730,23 @@ function CountCharacters() { // section was redone to only show 3rd party site plugins with the idea to cut down on clutter in posts // and make it easier to see what are 3rd party. The old code is marked out below. foreach ( $plugin['SITE'] as $key => $show ) { - + if (isset($exset[0]['name'])) { + $extarrkey = recursive_array_search($show['name'], $exset); + $extenabled = $exset[$extarrkey]['enabled']; + } else { $extenabled = '' ;} + if ($extenabled <> 0 AND $extenabled <> 1 ){ + $extenabled = ''; + } if ( $show['type'] == _FPA_3PD OR $showCoreEx == 1 AND $showProtected <= 2) { $typeColor = '404040'; - echo '
'. $show['name'] .'
'. $show['version'] .'
'. $show['creationDate'] .'
'. $show['author'] .'
'. $show['authorUrl'] .'
'. $show['type'] .'

'; + echo '
'. $show['name'] .'
'. $show['version'] .'
'. $show['creationDate'] .'
'. $show['author'] .'
'. $show['authorUrl'] .'
'. $extenabled .'
'. $show['type'] .'

'; } elseif ( $showProtected > 2 ) { $typeColor = '000080'; echo '
[ -- '. _FPA_HIDDEN .' -- ]
'. $show['version'] .'
'. $show['creationDate'] .'
'. $show['author'] .'
'. $show['authorUrl'] .'
'. $show['type'] .'

'; } -} + } // - 8-06-12 - Phil // echo '
'; @@ -6344,11 +5795,12 @@ function CountCharacters() { echo '
'. $template['ARRNAME'] .' :: '. _FPA_SITE .'
'; echo '
'; - echo '
'. _FPA_TNAM .'
'; - echo '
'. _FPA_VER .'
'; - echo '
'. _FPA_CRE .'
'; - echo '
'. _FPA_AUTH .'
'; - echo '
'. _FPA_ADDR .'
'; + echo '
'. _FPA_TNAM .'
'; + echo '
'. _FPA_VER .'
'; + echo '
'. _FPA_CRE .'
'; + echo '
'. _FPA_AUTH .'
'; + echo '
'. _FPA_ADDR .'
'; + echo '
'. _FPA_EN .'
'; echo '
'. _FPA_TYPE .'
'; echo '
'; echo '
'; @@ -6367,17 +5819,23 @@ function CountCharacters() { // section was redone to only show 3rd party Site templates with the idea to cut down on clutter in posts // and make it easier to see what are 3rd party. The old code is marked out below. foreach ( $template['SITE'] as $key => $show ) { - + if (isset($exset[0]['name'])) { + $extarrkey = recursive_array_search($show['name'], $exset); + $extenabled = $exset[$extarrkey]['enabled']; + } else { $extenabled = '' ;} + if ($extenabled <> 0 AND $extenabled <> 1 ){ + $extenabled = ''; + } if ( $show['type'] == _FPA_3PD OR $showCoreEx == 1 AND $showProtected <= 2) { $typeColor = '404040'; - echo '
'. $show['name'] .'
'. $show['version'] .'
'. $show['creationDate'] .'
'. $show['author'] .'
'. $show['authorUrl'] .'
'. $show['type'] .'

'; + echo '
'. $show['name'] .'
'. $show['version'] .'
'. $show['creationDate'] .'
'. $show['author'] .'
'. $show['authorUrl'] .'
'. $extenabled .'
'. $show['type'] .'

'; } elseif ( $showProtected > 2 ) { $typeColor = '000080'; echo '
[ -- '. _FPA_HIDDEN .' -- ]
'. $show['version'] .'
'. $show['creationDate'] .'
'. $show['author'] .'
'. $show['authorUrl'] .'
'. $show['type'] .'

'; } -} + } // - 8-06-12 - Phil // echo '
'; @@ -6406,11 +5864,12 @@ function CountCharacters() { echo '
'. $template['ARRNAME'] .' :: '. _FPA_ADMIN .'
'; echo '
'; - echo '
'. _FPA_TNAM .'
'; - echo '
'. _FPA_VER .'
'; - echo '
'. _FPA_CRE .'
'; - echo '
'. _FPA_AUTH .'
'; - echo '
'. _FPA_ADDR .'
'; + echo '
'. _FPA_TNAM .'
'; + echo '
'. _FPA_VER .'
'; + echo '
'. _FPA_CRE .'
'; + echo '
'. _FPA_AUTH .'
'; + echo '
'. _FPA_ADDR .'
'; + echo '
'. _FPA_EN .'
'; echo '
'. _FPA_TYPE .'
'; echo '
'; echo '
'; @@ -6425,17 +5884,23 @@ function CountCharacters() { // section was redone to only show 3rd party Admin templates with the idea to cut down on clutter in posts // and make it easier to see what are 3rd party. The old code is marked out below. foreach ( $template['ADMIN'] as $key => $show ) { - + if (isset($exset[0]['name'])) { + $extarrkey = recursive_array_search($show['name'], $exset); + $extenabled = $exset[$extarrkey]['enabled']; + } else { $extenabled = '' ;} + if ($extenabled <> 0 AND $extenabled <> 1 ){ + $extenabled = ''; + } if ( $show['type'] == _FPA_3PD OR $showCoreEx == 1 AND $showProtected <= 2) { $typeColor = '404040'; - echo '
'. $show['name'] .'
'. $show['version'] .'
'. $show['creationDate'] .'
'. $show['author'] .'
'. $show['authorUrl'] .'
'. $show['type'] .'

'; + echo '
'. $show['name'] .'
'. $show['version'] .'
'. $show['creationDate'] .'
'. $show['author'] .'
'. $show['authorUrl'] .'
'. $extenabled .'
'. $show['type'] .'

'; } elseif ( $showProtected > 2 ) { $typeColor = '000080'; echo '
[ -- '. _FPA_HIDDEN .' -- ]
'. $show['version'] .'
'. $show['creationDate'] .'
'. $show['author'] .'
'. $show['authorUrl'] .'
'. $show['type'] .'

'; } -} + } // echo '
'; //blocked core display Origional is: if ( $showProtected <= 2 ) { @@ -6474,8 +5939,6 @@ function CountCharacters() { ?> - -