<?php
/**
* Privacy policy display page
*
* This page displays the privacy policy of the site
*
* @copyright	The ImpressCMS Project http://www.impresscms.org/
* @license		http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License (GPL)
* @package		core
* @since		1.0
* @author		m0nty_
* @version		$Id: privpolicy.php 8662 2009-05-01 09:04:30Z pesianstranger $
*/

$xoopsOption['pagetype'] = 'privpolicy';
include 'mainfile.php';
if($icmsConfigUser['priv_dpolicy'] == false) {redirect_header('index.php', 2, _US_NOPERMISS);}

$xoopsOption['template_main'] = 'system_privpolicy.html';
include ICMS_ROOT_PATH.'/header.php';

$myts =& MyTextSanitizer::getInstance();

$xoopsTpl->assign('priv_poltype', 'page');
$priv = str_replace('{X_SITEURL}', XOOPS_URL.'/', $icmsConfigUser['priv_policy']); 
$priv = str_replace('{X_SITENAME}', $icmsConfig['sitename'], $priv);
$priv = $myts->displayTarea($priv, 1, 1, 1, 1, 1); 
$xoopsTpl->assign('priv_policy', $priv);
$xoopsTpl->assign('lang_privacy_policy', _PRV_PRIVACY_POLICY);

include ICMS_ROOT_PATH.'/footer.php';
?>