Пример #1
0
 /**
  * Add a specific header string to the store.
  *
  * @param string $header
  */
 public static function add_header($header)
 {
     if (!is_array(self::$_headers)) {
         self::$_headers = array();
     }
     self::$_headers[] = $header;
 }
# in any Non GPL version of CMS Made simple, or in any version of CMS
# Made simple that does not indicate clearly and obviously in its admin
# section that the site was built with CMS Made simple.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Or read it online: http://www.gnu.org/licenses/licenses.html#GPL
#
#-------------------------------------------------------------------------
#END_LICENSE
cge_headers::output_headers();
$config = \CmsApp::get_instance()->GetConfig();
if ($config['debug']) {
    return;
}
$pretty_html = \cge_param::get_bool($config, 'cge_prettyhtml', false);
$min_html = \cge_param::get_bool($config, 'cge_minhtml', false);
if (!$pretty_html && !$min_html) {
    return;
}
// do nothin
$in = $params['content'];
if (strpos('</body>', $in) === FALSE) {
    $in = str_replace('</html>', '</body></html>', $in);
}
$the_head_parm = -1;