* @version $id SVN * @access public * @license http://opensource.org/licenses/gpl-3.0.html */ //////////// Check Inclusion de pages //////////// if (!function_exists('AuthenthificationProcess')) { include_once("../lib/lib_common.php"); ReloadIndex('admin'); } //////////// ?>
AddNewsletter($data_table, $sql_object); $link_confirm="confirm.php?rub=".$rub."&todo=".$todo; if(is_numeric($result)) header("Location: ".$link_confirm); else system_error(); } if(isset($_POST['valider'])) { $table[0]=$_POST['newsletter_title']; $table[1]=$_POST['newsletter_body']; $table[2]=GetSessionElement('id'); // ID posteur $table[3]=$_POST['newsletter_statut']; $newsletter_object= new newsletter; $integrity=$newsletter_object->CheckDataIntegrity($table); if(is_string($integrity)) { $text_format='2FIELD'; } else { $text_format='2HTML'; } $form_title=formatText($_POST['newsletter_title'], $text_format); $form_body=formatText($_POST['newsletter_body'], $text_format); if($_POST['newsletter_statut']=='D') $mask_statut_D="checked=\"checked\""; else $mask_statut_D=''; if($_POST['newsletter_statut']=='W') $mask_statut_W="checked=\"checked\""; else $mask_statut_P=''; $table=urlencode(serialize($table)); } include_once(THEME_ADMIN_PATH."quickicons.php"); ?>