View file includes/modules/rules.php

File size: 938B
<?php
$template_vars['header'] = array(
'TITLE' => $lang['RULES'],
'CSS' => $css
);

$template->set_vars('header', $template_vars['header']);

$rules = file_get_contents( ROOTPATH . '/language/' . $_SESSION['language'] . '/lang_rules.txt' );
$rules = output( $rules );
$rules = nl2br( $rules );

$template_vars['body'] = array(
'RULES' => $rules,
'RULES_QUES' => isset( $_GET['registration'] ) ? '<br />' . $lang['RULES_QUES'] : '',
'LINKS' => isset( $_GET['registration'] ) ? "<a href='" . gen_uri('registration') . "'>" . $lang['Y'] . "</a> <a href='" . gen_uri('index') . "'>" . $lang['N'] . "</a>" : "<a href='" . gen_uri('index') . "'>" . $lang['BACK'] . "</a>"
);

$template_vars['footer'] = array('SWITCH_VERSION' => switch_version($m, '', isset( $_GET['registration'] ) ? 'registration' : ''));

$template->set_vars('body', $template_vars['body']);
$template->set_vars('footer', $template_vars['footer']);
?>