hello,
Sorry for my bad english, I'm French and I'll try to summerize my problem
I'm not an expert with ckeditor; and I want to update the editor of my website, so I change it with ckeditor I read all the infomation on it, the editor is OK with writting, but it don't work when I upload photos or links, my browser blocks, am I clear enough?
I just send a part of my page, peruhups can you see where is my mistake
Thanks for your help,
Bernard
Sorry for my bad english, I'm French and I'll try to summerize my problem
I'm not an expert with ckeditor; and I want to update the editor of my website, so I change it with ckeditor I read all the infomation on it, the editor is OK with writting, but it don't work when I upload photos or links, my browser blocks, am I clear enough?
I just send a part of my page, peruhups can you see where is my mistake
Thanks for your help,
Bernard
<?php is_admin(); // Confiruration du HTMLArea if (@$_GET['action']=="ajouter" || @$_GET['action']=="editer") { $header='<script type="text/javascript" src="include/ckeditor/ckeditor.js"></script><script type="text/javascript" src="/ckfinder/ckfinder.js"></script>'; } switch (@$_GET['action']) { default: $topic="Administration des Articles"; $contenu="Administration des articles :<br><br> <a href='?page=admin/articles&action=ajouter' class='nobord'><div class='admin_mbre_lien'>Ajouter un article</div></a> <a href='?page=admin/articles&action=gerer' class='nobord'><div class='admin_mbre_lien'>Gérer un article</div></a>"; design(); break; ########################################################################################## ########################################################################################## case "ajouter": $topic="Ajouter un article :"; if (isset($_SESSION['message'])) { $contenu.= "<font color=red><center>".stripslashes($_SESSION['message'])."</center></font>"; unset($_SESSION['message']); } $contenu.='<br><form name="form1" method="post" action="?page=admin/articles&action=ajouter2"> <div class="edit_news"><p>Sujet de l\'article : <br> <input name="sujet" type="text" id="sujet" size="40" maxlength="255" value="'.$_SESSION['temp_sujet'].'" class="sujet_news" onMouseOver="this.style.border=\'1px solid #000000\'; this.style.borderLeft=\'4px solid #0073FF\'" onMouseOut="this.style.border=\'1px solid #666666\'; this.style.borderLeft=\'4px solid #0053B8\'"></p> Texte de l\'article :<br> <center><textarea id="MyTextarea" class="ckeditor" name="texte"> <script type="text/javascript" src="/ckeditor/ckeditor.js"></script>'.$_SESSION['temp_texte'].'</textarea></center> <p><input type="submit" name="Submit" value=" Valider " class="input_inscript" onMouseOver="this.style.border=\'1px solid #000000\'; this.style.borderLeft=\'4px solid #0073FF\'" onMouseOut="this.style.border=\'1px solid #666666\'; this.style.borderLeft=\'4px solid #0053B8\'"> </p></div> </form><br><center>- <a href="?page=admin/articles">Retour à l\'administration des Articles</a> -</center><br><br>'; unset ($_SESSION['temp_sujet']); unset ($_SESSION['temp_texte']); design(); break; ########################################################################################## ########################################################################################## case "ajouter2": if (empty($_POST['sujet']) || empty($_POST['texte'])) { @$_SESSION['message'] .= ">> Les champs Sujet et/ou Texte n'ont pas été renseignés.<br>"; @$erreur++; } if (@$erreur != 0) { $_SESSION['temp_sujet']=$_POST['sujet']; $_SESSION['temp_texte']=$_POST['texte']; rediriger("?page=admin/articles&action=ajouter"); } else { $sujet=addslashes($_POST['sujet']); $texte=addslashes($_POST['texte']); $idaut=$_SESSION['sess_id']; $date = date("Y-m-d"); $sql = mysql_query("INSERT INTO articles ( `sujet` , `texte` , `date`, `auteur`) VALUES ('$sujet','$texte','$date','$idaut')"); rediriger("?page=admin/articles"); } break;