Permalink
Browse files

Adds a parameter in website configuration to hide CMS signature in HT…

…ML headers.
  • Loading branch information...
JB Lebrun
JB Lebrun committed Nov 30, 2018
1 parent 5f3b2b3 commit b4692306ae57cc42cfacc784af56165a82a5d5c5
Showing with 8 additions and 4 deletions.
  1. +4 −3 engine/lib/object/HTMLPage.php.inc
  2. +4 −1 plugin/module/Admin_Site/Admin_Site.php.inc
@@ -4,9 +4,9 @@
* @details Engine / Object Library
* @file engine/lib/object/HTMLPage.php.inc
* @author CaMykS Team <camyks.contact@gmail.com>
* @version 1.0.2
* @version 1.0.3
* @date Creation: Jun 2005
* @date Modification: Oct 2018
* @date Modification: Nov 2018
* @copyright 2005 - 2018 CaMykS Team
* @note This program is distributed as is - WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
@@ -204,7 +204,8 @@ final class HTMLPage {
}
/* add generator meta as CaMykS */
$this->add_meta('generator', $camyks->name.' '.$camyks->version);
if (!$camyks->get_confValue('cms_hideSignature'))
$this->add_meta('generator', $camyks->name.' '.$camyks->version);
}
/*********** INPUT METHODS **************/
@@ -5,7 +5,7 @@
* @details Plugin, Module Engine
* @file plugin/module/Admin_Site/Admin_Site.php.inc
* @author CaMykS Team <camyks.contact@gmail.com>
* @version 1.0.1
* @version 1.0.2
* @date Creation: Jun 2005
* @date Modification: Nov 2018
* @copyright 2005 - 2018 CaMykS Team
@@ -25,6 +25,7 @@ final class Admin_Site extends Module {
private $conf_elements = array(
'cms', /* CaMykS */
'cms_version', /* CaMykS version */
'cms_hideSignature', /* Hide CaMykS Signature */
'engine_path', /* CaMykS path */
'site_name', /* site name ( folder name ) */
'site_title', /* site title */
@@ -371,6 +372,8 @@ final class Admin_Site extends Module {
global $camyks;
switch ($confName) {
case 'cms_hideSignature':
return 0;
case 'site_title':
return '';
case 'url':

0 comments on commit b469230

Please sign in to comment.