$Date: 2006-10-05 11:04:08 -0500 (Thu, 05 Oct 2006) $ | > $Revision: 609 $ | > $Author: matt $ +--------------------------------------------------------------------------- | | > ACP Prefs functions | > Module written by Matt Mecham | > Date started: 22nd May 2003 | | > Module Version Number: 1.0.0 +-------------------------------------------------------------------------- */ if ( ! defined( 'IN_ACP' ) ) { print "

Некорректный адрес

Вы не имеете доступа к этому файлу напрямую. Если вы недавно обновляли форум, вы должны обновить все соответствующие файлы."; exit(); } class ad_prefs { var $base_url; function auto_run() { //----------------------------------------- // Show the wee form //----------------------------------------- if ( $this->ipsclass->input['set'] == 1 ) { $this->msg = 'Savings set'; if ( $this->ipsclass->input['tx'] == "" or $this->ipsclass->input['ty'] == "" ) { $this->msg = 'Пожалуйста, заполните форму'; print $this->get_html(); } else { $this->ipsclass->my_setcookie( 'acpprefs', $this->ipsclass->input['menu'] .','. $this->ipsclass->input['tx'] .','. $this->ipsclass->input['ty'] .','. $this->ipsclass->input['preview']); $this->msg = 'Настройки сохранены '; $this->tx = $this->ipsclass->input['tx']; $this->ty = $this->ipsclass->input['ty']; if ( $this->ipsclass->input['menu'] ) { $this->s_yes = 'selected'; $this->s_no = ''; } else { $this->s_yes = ''; $this->s_no = 'selected'; } if ( $this->ipsclass->input['preview'] ) { $this->p_yes = 'selected'; $this->p_no = ''; } else { $this->p_yes = ''; $this->p_no = 'selected'; } print $this->get_html(); } } else { $state = 0; $tx = 80; $ty = 40; if ( $cookie = $this->ipsclass->my_getcookie('acpprefs') ) { list( $state, $tx, $ty, $prev_show ) = explode( ",", $cookie ); } $this->tx = $tx; $this->ty = $ty; if ( $state ) { $this->s_yes = 'selected'; $this->s_no = ''; } else { $this->s_yes = ''; $this->s_no = 'selected'; } if ( $prev_show ) { $this->p_yes = 'selected'; $this->p_no = ''; } else { $this->p_yes = ''; $this->p_no = 'selected'; } print $this->get_html(); } } function get_html() { global $SKIN; $hit_muhl = << IPB-ваши предпочтения
Ваши предпочтения в админцентре Сохранить расположение меню админцентра      

Размер шрифта в текстбоксах  X

Показывать предпросмотрт макроса     

EOF; return $hit_muhl; } } ?>