'" ); $replace = array ("<", ">" ); $reg_mail_text = preg_replace( $find, $replace, $db->safesql( $_POST['reg_mail_text'] ) ); $feed_mail_text = preg_replace( $find, $replace, $db->safesql( $_POST['feed_mail_text'] ) ); $lost_mail_text = preg_replace( $find, $replace, $db->safesql( $_POST['lost_mail_text'] ) ); $new_news_text = preg_replace( $find, $replace, $db->safesql( $_POST['new_news_text'] ) ); $news_mailv_text = preg_replace( $find,$replace, $db->safesql( $_POST['news_mailv_text'] ) ); $news_mailn_text = preg_replace( $find,$replace, $db->safesql( $_POST['news_mailn_text'] ) ); $new_comments_text = preg_replace( $find, $replace, $db->safesql( $_POST['new_comments_text'] ) ); $db->query( "UPDATE " . PREFIX . "_email set template='$reg_mail_text' where name='reg_mail'" ); $db->query( "UPDATE " . PREFIX . "_email set template='$feed_mail_text' where name='feed_mail'" ); $db->query( "UPDATE " . PREFIX . "_email set template='$lost_mail_text' where name='lost_mail'" ); $db->query( "UPDATE " . PREFIX . "_email set template='$new_news_text' where name='new_news'" ); $db->query( "UPDATE " . PREFIX . "_email set template='$news_mailv_text' where name='news_mailv'" ); $db->query( "UPDATE " . PREFIX . "_email set template='$news_mailn_text' where name='news_mailn'" ); $db->query( "UPDATE " . PREFIX . "_email set template='$new_comments_text' where name='comments'" ); $db->query( "UPDATE " . PREFIX . "_email set template='$new_pm_text' where name='pm'" ); msg( "info", $lang['mail_addok'], $lang['mail_addok_1'], "?mod=email" ); } else { echoheader( "home", $lang['db_info'] ); $db->query( "SELECT name, template FROM " . PREFIX . "_email" ); while ( $row = $db->get_row() ) { $$row['name'] = stripslashes( $row['template'] ); } $db->free(); echo <<
{$lang['mail_reg_info']}
{$lang['mail_feed_info']}
{$lang['mail_lost_info']}
Можно использовать BB - коды и HTML
Можно использовать BB - коды и HTML
{$lang['mail_comm_info']}
{$lang['mail_pm_info']}


  
HTML; echofooter(); } ?>