'",); $replace = array("<", ">",); $subscription_text = preg_replace($find,$replace, $db->safesql($_POST['subscription_text'])); $db->query("UPDATE " . PREFIX . "_forum_email set template='$subscription_text' where name='subscription_text'"); $frend_text = preg_replace($find,$replace, $db->safesql($_POST['frend_text'])); $db->query("UPDATE " . PREFIX . "_forum_email set template='$frend_text' where name='frend_text'"); $report_text = preg_replace($find,$replace, $db->safesql($_POST['report_text'])); $db->query("UPDATE " . PREFIX . "_forum_email set template='$report_text' where name='report_text'"); $new_topic = preg_replace($find,$replace, $db->safesql($_POST['new_topic'])); $db->query("UPDATE " . PREFIX . "_forum_email set template='$new_topic' where name='new_topic'"); msg("info",$f_lg['email_ok'], $f_lg['email_ok2'], "?mod=forum"); } else { $db->query("SELECT name, template FROM " . PREFIX . "_forum_email"); while($row = $db->get_row()) { $$row['name'] = stripslashes($row['template']); } $db->free(); echo_top(); echo "
"; echo_bottom(); } ?>