File size: 5.68Kb
<?php
/**********************************
* @package: PerfCMS *
* @year: 2012 *
* @author: Artas *
* @link: http://perfcms.pp.ua *
**********************************/
$locate = 'in_padmin';
if(isset($user) && $user['level'] >= 6) {
$title = $lang->word('padmin_tags');
require_once(SYS.'/view/header.php');
$tpl->div('title', $lang->word('padmin_tags'));
if(isset($_POST['save']) && $_GET['act']== 'save') {
$b = input($_POST['b']);
$s = input($_POST['s']);
$i = input($_POST['i']);
$u = input($_POST['u']);
$big = input($_POST['big']);
$small = input($_POST['small']);
$green = input($_POST['green']);
$blue = input($_POST['blue']);
$red = input($_POST['red']);
$yellow = input($_POST['yellow']);
$color = input($_POST['color']);
$quote = input($_POST['quote']);
$size = input($_POST['size']);
$db->query("UPDATE `system` SET `bb_b` = '". $b."', `bb_i` = '". $i."', `bb_s` = '". $s."', `bb_u` = '". $u."', `bb_big` = '". $big."', `bb_small` = '". $small."', `bb_green` = '". $green."', `bb_blue` = '". $blue."', `bb_red` = '". $red."', `bb_yellow` = '". $yellow."', `bb_color` = '". $color."', `bb_quote` = '". $quote."', `bb_size` = '". $size."'");
$tpl->div('menu', $lang->word('succ_save'));
$tpl->div('block', img('tags.png') . '<a href="/padmin/tags/">'.$lang->word('padmin_tags').'</a><br/>'. img('admin.png') .'<a href="/padmin/">'. $lang->word('padmin') .'</a><br/>'. HICO .'<a href="/">'. $lang->word('home') .'</a>');
require_once(SYS.'/view/footer.php');
exit;
}
echo '<div class="post">
<form action="/padmin/tags/?act=save" method="post">
<b>Bold</b>:<br />
<input type="radio" name="b" value="on"'. ($system['bb_b'] == 'on'?' checked="checked"':NULL) .' />'. $lang->word('ons') .'
<input type="radio" name="b" value="off"'. ($system['bb_b'] == 'off'?' checked="checked"':NULL) .' />'. $lang->word('offs') .'<br />
<u>Underline</u>:<br />
<input type="radio" name="u" value="on"'. ($system['bb_u'] == 'on'?' checked="checked"':NULL) .' />'. $lang->word('ons') .'
<input type="radio" name="u" value="off"'. ($system['bb_u'] == 'off'?' checked="checked"':NULL) .' />'. $lang->word('offs') .'<br />
<s>Strike</s>:<br />
<input type="radio" name="s" value="on"'. ($system['bb_s'] == 'on'?' checked="checked"':NULL) .' />'. $lang->word('ons') .'
<input type="radio" name="s" value="off"'. ($system['bb_s'] == 'off'?' checked="checked"':NULL) .' />'. $lang->word('offs') .'<br />
<i>Italics</i>:<br />
<input type="radio" name="i" value="on"'. ($system['bb_i'] == 'on'?' checked="checked"':NULL) .' />'. $lang->word('ons') .'
<input type="radio" name="i" value="off"'. ($system['bb_i'] == 'off'?' checked="checked"':NULL) .' />'. $lang->word('offs') .'<br />
<big>Big</big>:<br />
<input type="radio" name="big" value="on"'. ($system['bb_big'] == 'on'?' checked="checked"':NULL) .' />'. $lang->word('ons') .'
<input type="radio" name="big" value="off"'. ($system['bb_big'] == 'off'?' checked="checked"':NULL) .' />'. $lang->word('offs') .'<br />
<small>Small</small>:<br />
<input type="radio" name="small" value="on"'. ($system['bb_small'] == 'on'?' checked="checked"':NULL) .' />'. $lang->word('ons') .'
<input type="radio" name="small" value="off"'. ($system['bb_small'] == 'off'?' checked="checked"':NULL) .' />'. $lang->word('offs') .'<br />
'.output('[green]Green[/green]') .':<br />
<input type="radio" name="green" value="on"'. ($system['bb_green'] == 'on'?' checked="checked"':NULL) .' />'. $lang->word('ons') .'
<input type="radio" name="green" value="off"'. ($system['bb_green'] == 'off'?' checked="checked"':NULL) .' />'. $lang->word('offs') .'<br />
<span style="color:#ffff22;">Yellow</span>:<br />
<input type="radio" name="yellow" value="on"'. ($system['bb_yellow'] == 'on'?' checked="checked"':NULL) .' />'. $lang->word('ons') .'
<input type="radio" name="yellow" value="off"'. ($system['bb_yellow'] == 'off'?' checked="checked"':NULL) .' />'. $lang->word('offs') .'<br />
'.output('[red]Red[/red]') .':<br />
<input type="radio" name="red" value="on"'. ($system['bb_red'] == 'on'?' checked="checked"':NULL) .' />'. $lang->word('ons') .'
<input type="radio" name="red" value="off"'. ($system['bb_red'] == 'off'?' checked="checked"':NULL) .' />'. $lang->word('offs') .'<br />
<span style="color:#0000bb;">Blue</span>:<br />
<input type="radio" name="blue" value="on"'. ($system['bb_blue'] == 'on'?' checked="checked"':NULL) .' />'. $lang->word('ons') .'
<input type="radio" name="blue" value="off"'. ($system['bb_blue'] == 'off'?' checked="checked"':NULL) .' />'. $lang->word('offs') .'<br />
Any Color:<br />
<input type="radio" name="color" value="on"'. ($system['bb_color'] == 'on'?' checked="checked"':NULL) .' />'. $lang->word('ons') .'
<input type="radio" name="color" value="off"'. ($system['bb_color'] == 'off'?' checked="checked"':NULL) .' />'. $lang->word('offs') .'<br />
'.output('[quote]Quote:[/quote]') .'
<input type="radio" name="quote" value="on"'. ($system['bb_quote'] == 'on'?' checked="checked"':NULL) .' />'. $lang->word('ons') .'
<input type="radio" name="quote" value="off"'. ($system['bb_quote'] == 'off'?' checked="checked"':NULL) .' />'. $lang->word('offs') .'<br />
Any size (1-9):<br />
<input type="radio" name="size" value="on"'. ($system['bb_size'] == 'on'?' checked="checked"':NULL) .' />'. $lang->word('ons') .'
<input type="radio" name="size" value="off"'. ($system['bb_size'] == 'off'?' checked="checked"':NULL) .' />'. $lang->word('offs') .'<br />
<input type="submit" name="save" value="'. $lang->word('save') .'" />
</form>
</div>';
$tpl->div('block', img('admin.png') .'<a href="/padmin/">'. $lang->word('padmin') .'</a><br/>'. HICO .'<a href="/">'. $lang->word('home') .'</a>');
require_once(SYS.'/view/footer.php');
} else { header('Location: /'); }
?>