Вход Регистрация
Файл: modules/padmin/tags.php
Строк: 162
<?php
/**
 * Licensed under The MIT License
 * For full copyright and license information, please see the LICENSE.txt
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright (c) 2013, Taras Chornyi, Sergiy Mazurenko, Ivan Kotliar
 * @link          http://perf-engine.net
 * @package       PerfEngine
 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
 */
$locate 'in_padmin';
if(isset(
$user) && $user['level'] >= 6) {

$title _t('padmin_tags');
include_header($title);
$tpl->div('title',  _t('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']);

    
$ini = new Ini(SYS.'/ini/core.ini');
    
$ini->write('bb_u'$u);
    
$ini->write('bb_s'$s);
    
$ini->write('bb_i'$i);
    
$ini->write('bb_b'$b);
    
$ini->write('bb_big'$big);
    
$ini->write('bb_small'$small);
    
$ini->write('bb_green'$title);
    
$ini->write('bb_blue'$blue);
    
$ini->write('bb_red'$red);
    
$ini->write('bb_yellow'$yellow);
    
$ini->write('bb_color'$color);
    
$ini->write('bb_quote'$quote);
    
$ini->write('bb_size'$size);
    
$ini->updateFile();

    
$tpl->div('menu'_t('succ_save'));
    
$tpl->div('block'img('tags.png') . '<a href="/padmin/tags/">'._t('padmin_tags').'</a><br/>'img('admin.png') .'<a href="/padmin/">'_t('padmin') .'</a><br/>'HICO .'<a href="/">'_t('home') .'</a>');
    
include_footer();
    exit;
}
echo 
'<div class="post">
<form acti1="/padmin/tags/?act=save" method="post">
<b>Bold</b>:<br />
<input type="radio" name="b" value="1"'
. ($system['bb_b'] == '1'?' checked="checked"':NULL) .' />'_t('yes') .'
<input type="radio" name="b" value="0"'
. ($system['bb_b'] == '0'?' checked="checked"':NULL) .' />'_t('no') .'<br />
<u>Underline</u>:<br />
<input type="radio" name="u" value="1"'
. ($system['bb_u'] == '1'?' checked="checked"':NULL) .' />'_t('yes') .'
<input type="radio" name="u" value="0"'
. ($system['bb_u'] == '0'?' checked="checked"':NULL) .' />'_t('no') .'<br />
<s>Strike</s>:<br />
<input type="radio" name="s" value="1"'
. ($system['bb_s'] == '1'?' checked="checked"':NULL) .' />'_t('yes') .'
<input type="radio" name="s" value="0"'
. ($system['bb_s'] == '0'?' checked="checked"':NULL) .' />'_t('no') .'<br />
<i>Italics</i>:<br />
<input type="radio" name="i" value="1"'
. ($system['bb_i'] == '1'?' checked="checked"':NULL) .' />'_t('yes') .'
<input type="radio" name="i" value="0"'
. ($system['bb_i'] == '0'?' checked="checked"':NULL) .' />'_t('no') .'<br />
<big>Big</big>:<br />
<input type="radio" name="big" value="1"'
. ($system['bb_big'] == '1'?' checked="checked"':NULL) .' />'_t('yes') .'
<input type="radio" name="big" value="0"'
. ($system['bb_big'] == '0'?' checked="checked"':NULL) .' />'_t('no') .'<br />
<small>Small</small>:<br />
<input type="radio" name="small" value="1"'
. ($system['bb_small'] == '1'?' checked="checked"':NULL) .' />'_t('yes') .'
<input type="radio" name="small" value="0"'
. ($system['bb_small'] == '0'?' checked="checked"':NULL) .' />'_t('no') .'<br />
'
.output('[green]Green[/green]') .':<br />
<input type="radio" name="green" value="1"'
. ($system['bb_green'] == '1'?' checked="checked"':NULL) .' />'_t('yes') .'
<input type="radio" name="green" value="0"'
. ($system['bb_green'] == '0'?' checked="checked"':NULL) .' />'_t('no') .'<br />
<span style="color:#ffff22;">Yellow</span>:<br />
<input type="radio" name="yellow" value="1"'
. ($system['bb_yellow'] == '1'?' checked="checked"':NULL) .' />'_t('yes') .'
<input type="radio" name="yellow" value="0"'
. ($system['bb_yellow'] == '0'?' checked="checked"':NULL) .' />'_t('no') .'<br />
'
.output('[red]Red[/red]') .':<br />
<input type="radio" name="red" value="1"'
. ($system['bb_red'] == '1'?' checked="checked"':NULL) .' />'_t('yes') .'
<input type="radio" name="red" value="0"'
. ($system['bb_red'] == '0'?' checked="checked"':NULL) .' />'_t('no') .'<br />
<span style="color:#0000bb;">Blue</span>:<br />
<input type="radio" name="blue" value="1"'
. ($system['bb_blue'] == '1'?' checked="checked"':NULL) .' />'_t('yes') .'
<input type="radio" name="blue" value="0"'
. ($system['bb_blue'] == '0'?' checked="checked"':NULL) .' />'_t('no') .'<br />
Any Color:<br />
<input type="radio" name="color" value="1"'
. ($system['bb_color'] == '1'?' checked="checked"':NULL) .' />'_t('yes') .'
<input type="radio" name="color" value="0"'
. ($system['bb_color'] == '0'?' checked="checked"':NULL) .' />'_t('no') .'<br />
'
.output('[quote]Quote:[/quote]') .'
<input type="radio" name="quote" value="1"'
. ($system['bb_quote'] == '1'?' checked="checked"':NULL) .' />'_t('yes') .'
<input type="radio" name="quote" value="0"'
. ($system['bb_quote'] == '0'?' checked="checked"':NULL) .' />'_t('no') .'<br />
Any size (1-9):<br />
<input type="radio" name="size" value="1"'
. ($system['bb_size'] == '1'?' checked="checked"':NULL) .' />'_t('yes') .'
<input type="radio" name="size" value="0"'
. ($system['bb_size'] == '0'?' checked="checked"':NULL) .' />'_t('no') .'<br />
<input type="submit" name="save" value="'
_t('save') .'" />
</form>
</div>'
;
$tpl->div('block'img('admin.png') .'<a href="/padmin/">'_t('padmin') .'</a><br/>'HICO .'<a href="/">'_t('home') .'</a>');
include_footer();
} else { 
header('Locati1: /'); }
?>
Онлайн: 0
Реклама