Hoi ik heb een code verkregen waar de editor niet in werkt, ik wil deze eigenlijk hebben naar
inc/pgeditor
welke in de root staat.
Hoe doe ik dat, de code die de editor oproept is deze
De als tweede opgevraagde include is deze, en hier zit ook de verwijzing in die ik wil veranderen.Code:<?php /* Csiopen Plugin is GPL Copyright (C) 2006 - 2008 by Nicolas Alves Web site = http://www.guppytop.com/ */ header('Pragma: no-cache'); define('DIR', '../../'); include_once(DIR.'inc/includes.inc'); include_once(DIR.'plugins/csiopen/inc/funccsiopen.php'); $headinc.='<script language="javascript" type="text/javascript" src="'.DIR.'inc/pgeditor/jscript/wysiwyg_editor.js"></script>'; include(DIR.'inc/hpage.inc'); $csiopentype = strip_tags($csiopentype); $view = strip_tags($view); $form = strip_tags($form); $dbwork=ReadDBFields(DBCSIOPEN); if(isset($contuid)){ ReadDoc(DBBASECSIOPEN.$id); if ($fieldweb == $contuid) { $form=2; $csiopentype=$type; }else{ $form=4; } } if(isset($deluid)){ ReadDoc(DBBASECSIOPEN.$id); if ($fieldweb == $deluid) { if (file_exists(DBBASECSIOPEN.$id.INCEXT)) { DestroyDBFile(DBBASECSIOPEN.$id.INCEXT); } for ($i = 0; $i < count($dbwork); $i++) { if ($dbwork[$i][1] != $id) { $newdb[] = $dbwork[$i]; } } WriteDBFields(DBCSIOPEN,$newdb); RedirPlugNico('redac.php?lng='.$lng); } else{$form=5;} } if($csiopentype==TYP_AGENDA){ $btitre = 0;$bcontenu = 1;$bnouveau = 0; $qtitle = $csiopenweb19; $qintro = $csiopenweb20.' '.$csiopenweb21.' '.$csiopenweb22.'</b>'; $qcat = $csiopenweb32; $qtitre = ''; $qcontenu = $web56; $qnouveau = ''; $qmerci=$csiopenweb34; } if($csiopentype==TYP_ART){ $btitre = 1;$bcontenu = 1; if ($serviz[3] == 'on' && $serviz[22] == 'on') { $bnouveau = 1; } else { $bnouveau = 0; } $qtitle = $csiopenweb7; $qintro = $csiopenweb20.' '.$csiopenweb25.' '.$csiopenweb22.'</b>'; $qcat = $csiopenweb36; $qtitre = $csiopenweb37; $qcontenu = $csiopenweb38; $qnouveau = ''; $qmerci=$csiopenweb35; } if($csiopentype==TYP_NEWS){ $btitre = 1;$bcontenu = 1;$bnouveau = 2; $qtitle = $csiopenweb5; $qintro = $csiopenweb20.' '.$csiopenweb6.' '.$csiopenweb24.'</b>'; $qcat = ''; $qtitre = $csiopenweb86; $qcontenu = $csiopenweb17; $qnouveau = ''; $qmerci=$csiopenweb152; } if($csiopentype==TYP_BANNER){ $btitre = 1;$bcontenu = 0;$bnouveau = 0; $qtitle = $csiopenweb13; $qintro = $csiopenweb20.' '.$csiopenweb26.' '.$csiopenweb24.' '.$csiopenweb159.' '.$config_csiopen[9].' ko</b>'; $qcat = $csiopenweb39; $qtitre = $csiopenweb40; $qcontenu = ''; $qnouveau = ''; $qmerci=$csiopenweb41; } if($csiopentype==TYP_DNLOAD){ $btitre = 1;$bcontenu = 1;$bnouveau = 1; $qtitle = $csiopenweb8; $qintro = $csiopenweb20.' '.$csiopenweb23.' '.$csiopenweb22.'<br />'.$csiopenweb161.' '.$config_csiopen[10].' ko</b>'; $qcat = $csiopenweb42; $qtitre = $csiopenweb43; $qcontenu = $csiopenweb44; $qnouveau = $csiopenweb45; $qmerci=$csiopenweb46; } if($csiopentype==TYP_FAQ){ $btitre = 2;$bcontenu = 1;$bnouveau = 0; $qtitle = $csiopenweb11; $qintro = $csiopenweb20.' '.$csiopenweb27.' '.$csiopenweb24.'</b>'; $qtitre = $csiopenweb47; $qcontenu = $csiopenweb48; $qnouveau = ''; $qmerci=$csiopenweb49; } if($csiopentype==TYP_LINKS){ $btitre = 1;$bcontenu = 1;$bnouveau = 1; $qtitle = $csiopenweb9; $qintro = $csiopenweb20.' '.$csiopenweb28.' '.$csiopenweb24.'</b>'; $qcat = $csiopenweb50; $qtitre = $csiopenweb51; $qcontenu = $csiopenweb52; $qnouveau = $csiopenweb53; $qmerci=$csiopenweb54; } if($csiopentype==TYP_PHOTO){ $btitre = 1;$bcontenu = 1;$bnouveau = 1; $qtitle = $csiopenweb10; $qintro = $csiopenweb20.' '.$csiopenweb29.' '.$csiopenweb24.' <br />'.$csiopenweb162.' '.$config_csiopen[9].' ko</b>'; $qcat = $csiopenweb55; $qtitre = $csiopenweb56; $qcontenu = $csiopenweb57; $qnouveau = $csiopenweb58; $qmerci=$csiopenweb59; } if($csiopentype==TYP_RSS){ $btitre = 1;$bcontenu = 0;$bnouveau = 0; $qtitle = $csiopenweb14; $qintro = $csiopenweb20.' '.$csiopenweb30.' '.$csiopenweb24.'</b>'; $qcat = $csiopenweb60; $qtitre = $csiopenweb61; $qcontenu = ''; $qnouveau = ''; $qmerci=$csiopenweb62; } if($csiopentype==TYP_THINK){ $btitre = 1;$bcontenu = 1;$bnouveau = 0; $qtitle = $csiopenweb12; $qintro = $csiopenweb20.' '.$csiopenweb31.' '.$csiopenweb24.'</b>'; $qcat = ''; $qtitre = $csiopenweb63; $qcontenu = $csiopenweb64; $qnouveau = ''; $qmerci=$csiopenweb65; } htable($csiopenweb160.' - '.$qtitle, '100%'); include_once(DIR.'inc/pgeditor/pgeditor.php'); if (!empty($userprefs[1])) { $pseudo1 = $userprefs[1]; $email1 = $userprefs[2]; } ?> <script language="javascript"> function ConfirmDelCsiOPen(url) { if (confirm("<?php echo $csiopenweb125; ?>")) location.href=url; } </script> <script language="javascript" type="text/javascript"> var clic = 0; function VerifyForm() { var sto = ''; var erreur = false; var largeur = 300; var progbar = '<?php echo $site[28]; ?>'; regexp = /^[a-zA-Z0-9_]{2,20}$/; if (!regexp.test(document.redaction.pseudo1.value)) { sto += ' - <?php echo addslashes($web266); ?>\n'; erreur = true; } if ((document.redaction.email1.value.indexOf("@")<1) || (document.redaction.email1.value.indexOf("@")!=document.redaction.email1.value.lastIndexOf("@")) || (document.redaction.email1.value.lastIndexOf(".")<document.redaction.email1.value.indexOf("@")+2)) { sto += ' - <?php echo addslashes($web42); ?>\n'; erreur = true; } <?php if($csiopentype==TYP_BANNER){ ?> if (document.redaction.cat1.value.search(/\w/) == -1) { sto += ' - <?php echo addslashes($csiopenweb96); ?>\n'; Erreur = true; } if (document.redaction.titre1.value.search(/\w/) == -1) { sto += ' - <?php echo addslashes($csiopenweb90); ?>\n'; erreur = true; } <?php } if($csiopentype==TYP_RSS){ ?> if (document.redaction.cat1.value.search(/\w/) == -1) { sto += ' - <?php echo addslashes($csiopenweb95); ?>\n'; Erreur = true; } if (document.redaction.titre1.value.search(/\w/) == -1) { sto += ' - <?php echo addslashes($csiopenweb94); ?>\n'; erreur = true; } <?php } if ($csiopentype==TYP_ART or $csiopentype==TYP_LINKS) { ?> if (document.redaction.cat1.value.search(/\w/) == -1) { sto += ' - <?php echo addslashes($csiopenweb85); ?>\n'; Erreur = true; } if (document.redaction.titre1.value.search(/\w/) == -1) { sto += ' - <?php echo addslashes($csiopenweb87); ?>\n'; erreur = true; } <?php } if ($csiopentype==TYP_THINK) { ?> if (document.redaction.titre1.value.search(/\w/) == -1) { sto += ' - <?php echo addslashes($csiopenweb93); ?>\n'; erreur = true; } <?php } if ($csiopentype==TYP_NEWS) { ?> if (document.redaction.titre1.value.search(/\w/) == -1) { sto += ' - <?php echo addslashes($csiopenweb150); ?>\n'; erreur = true; } <?php } if ($csiopentype==TYP_FAQ) { ?> if (document.redaction.titre1.value.search(/\w/) == -1) { sto += ' - <?php echo addslashes($csiopenweb92); ?>\n'; erreur = true; } <?php } if ($csiopentype==TYP_DNLOAD) { ?> if (document.redaction.cat1.value.search(/\w/) == -1) { sto += ' - <?php echo addslashes($csiopenweb85); ?>\n'; Erreur = true; } if (document.redaction.titre1.value.search(/\w/) == -1) { sto += ' - <?php echo addslashes($csiopenweb98); ?>\n'; erreur = true; } if (document.redaction.nouveau1.value.search(/\w/) == -1) { sto += ' - <?php echo addslashes($csiopenweb89); ?>\n'; erreur = true; } <?php } if ($csiopentype==TYP_LINKS) { ?> if (document.redaction.nouveau1.value.search(/\w/) == -1) { sto += ' - <?php echo addslashes($csiopenweb90); ?>\n'; erreur = true; } <?php } if ($csiopentype==TYP_PHOTO) { ?> if (document.redaction.cat1.value.search(/\w/) == -1) { sto += ' - <?php echo addslashes($csiopenweb85); ?>\n'; Erreur = true; } if (document.redaction.titre1.value.search(/\w/) == -1) { sto += ' - <?php echo addslashes($csiopenweb97); ?>\n'; erreur = true; } if (document.redaction.nouveau1.value.search(/\w/) == -1) { sto += ' - <?php echo addslashes($csiopenweb91); ?>\n'; erreur = true; } <?php } if ($bcontenu == 1) { ?> if (document.redaction.contenu1.value.search(/\w/) == -1) { sto += ' - <?php echo addslashes($csiopenweb169); ?>\n'; Erreur = true; } <?php } ?> if (erreur == true) { sto = '<?php echo addslashes($web44); ?>\n' + sto; alert(sto); } else { clic++; var messok = '<?php echo $site[27]; ?>'; if (clic == 1) { document.redaction.submit(); } else { sto = '<?php echo addslashes($web220); ?>\n' + sto; alert(sto); } } } </script> <?php $langue0 = $lang[0]; $langue1 = $lang[1]; if ($config_csiopen[2]=='on' && $userprefs[1]=='') { echo '<p align="center">'.$web342.'</p><br />'; echo '<p align="center">[ <a href="'.DIR.'user.php?lng='.$lng.'">'.$web343.'</a> ]</p><br />'; } else { if ($modif == 1) { if ($csiopentype==TYP_PHOTO) { $errors = ''; $data_post_name = $HTTP_POST_FILES['nouveau1']['name']; $data_post_size = $HTTP_POST_FILES['nouveau1']['size']; $data_post_temp = $HTTP_POST_FILES['nouveau1']['tmp_name']; if(($data_post_size/1024) > $config_csiopen[9]) { $errors.='<br />'.$csiopenweb156.' '.$config_csiopen[9].' ko'; }else{ $ext = strtolower(substr(strrchr($data_post_name,'.'), 1)); if ($ext == 'gif' || $ext == 'jpg' || $ext == 'jpeg' || $ext == 'png' || $ext == 'bmp') { $i = 1; while (file_exists(DIR.'photo/'.$data_post_name)) { $data_post_name = ereg_replace('(.*)(\.[a-zA-Z]+)$', '\1_'.$i.'\2', $data_post_name); $i++; } if (!move_uploaded_file($data_post_temp, DIR.'photo/'.$data_post_name)) { $errors.= $csiopenweb18; } else{ $nouveau1 = $data_post_name; } } else { $errors.= $csiopenweb132; } } } if ($csiopentype==TYP_BANNER) { $errors = ''; $data_post_name = $HTTP_POST_FILES['cat1']['name']; $data_post_size = $HTTP_POST_FILES['cat1']['size']; $data_post_temp = $HTTP_POST_FILES['cat1']['tmp_name']; $whimg_ann = getimagesize($data_post_temp); if($whimg_ann[0]!='468' and $whimg_ann[1]!='60'){ $errors.= '<br />'.$csiopenweb155; } if(($data_post_size/1024) > $config_csiopen[9]) { $errors.='<br />'.$csiopenweb156.' '.$config_csiopen[9].' ko'; } else{ $ext = strtolower(substr(strrchr($data_post_name,'.'), 1)); if ($ext == 'gif' || $ext == 'jpg' || $ext == 'jpeg' || $ext == 'png' || $ext == 'bmp'|| $ext == 'swf') { $i = 1; while (file_exists(DIR.'img/'.$data_post_name)) { $data_post_name = ereg_replace('(.*)(\.[a-zA-Z]+)$', '\1_'.$i.'\2', $data_post_name); $i++; } if (!move_uploaded_file($data_post_temp, DIR.'img/'.$data_post_name)) { $errors.= '<br />'.$csiopenweb18; } else{ $cat1 = $data_post_name; } } else { $errors.= '<br />'.$csiopenweb132; } } } if ($csiopentype==TYP_DNLOAD) { $errors = ''; $data_post_name = $HTTP_POST_FILES['nouveau1']['name']; $data_post_size = $HTTP_POST_FILES['nouveau1']['size']; $data_post_temp = $HTTP_POST_FILES['nouveau1']['tmp_name']; if(($data_post_size/1024) > $config_csiopen[10]) { $errors.=$csiopenweb157.' '.$config_csiopen[10].' ko'; }else{ $ext = strtolower(substr(strrchr($data_post_name,'.'), 1)); if ($ext == 'zip' || $ext == 'tar' || $ext == 'rar') { $i = 1; while (file_exists(DIR.'file/'.$data_post_name)) { $data_post_name = ereg_replace('(.*)(\.[a-zA-Z]+)$', '\1_'.$i.'\2', $data_post_name); $i++; } if (!move_uploaded_file($data_post_temp, DIR.'file/'.$data_post_name)) { $errors.= $csiopenweb18; } else{ $nouveau1 = 'file/'.$data_post_name; } } else { $errors.= $csiopenwebb168; } } } if(empty($errors)){ $data[0] = $csiopentype; $data[1] = ''; $data[2] = 'a'; $data[3] = ''; $data[4] = ''; $data[5] = $pseudo1; $data[6] = $email1; $data[7] = $cat1; $data[8] = $cat2; $data[9] = $titre1; $data[10] = $titre2; $data[11] = $contenu1; $data[12] = $contenu2; $data[13] = $nouveau1; $data[14] = $nouveau2; $data[15] = $contuid; $status = $data[2]; $creadate = GetCurrentDateTime(); $moddate = $creadate; $author = addslashes(stripslashes($data[5])); $email = addslashes(stripslashes($data[6])); $fielda1 = addslashes(stripslashes($data[7])); $fielda2 = addslashes(stripslashes($data[8])); $fieldb1 = addslashes(stripslashes($data[9])); $fieldb2 = addslashes(stripslashes($data[10])); $fieldc1 = addslashes(stripslashes(souriez(PutHR(PutBR($data[11]))))); $fieldc2 = addslashes(stripslashes(souriez(PutHR(PutBR($data[12]))))); $fieldd1 = addslashes(stripslashes($data[13])); $fieldd2 = addslashes(stripslashes($data[14])); $fieldweb = addslashes(stripslashes($data[15])); $rec = "<?php \$type = \"$csiopentype\"; \$fileid = \"$id\"; \$status = \"$status\"; \$creadate = \"$creadate\"; \$moddate = \"$moddate\"; \$author = stripslashes(\"$author\"); \$email = stripslashes(\"$email\"); \$fielda1 = stripslashes(\"$fielda1\"); \$fielda2 = stripslashes(\"$fielda2\"); \$fieldb1 = stripslashes(\"$fieldb1\"); \$fieldb2 = stripslashes(\"$fieldb2\"); \$fieldc1 = stripslashes(\"$fieldc1\"); \$fieldc2 = stripslashes(\"$fieldc2\"); \$fieldd1 = stripslashes(\"$fieldd1\"); \$fieldd2 = stripslashes(\"$fieldd2\"); \$fieldweb = stripslashes(\"$fieldweb\"); ?>"; WriteFullDB(DBBASECSIOPEN.$id.INCEXT,$rec); ?> <p align="center"><b><?php echo $csiopenweb100." ".$qmerci; ?></b> </p> <form name="suite" action="redac.php?lng=<?php echo $lng; ?>" method="post"> <input type="hidden" name="csiopentype" value="<?php echo $csiopentype; ?>" /> <input type="hidden" name="uid" value="<?php echo $data[15]; ?>" /> <input type="hidden" name="id" value="<?php echo $id; ?>" /> </form> <script language="javascript"> setTimeout("document.suite.submit();",3000); </script> <?php } else{ echo '<p align="center"><img src="img/warning.gif" alt="warning" title="warning" /><b> '.$csiopenweb158.'</b><br />'.$errors.'</p>'; } } elseif ($add == 1) { if ($csiopentype==TYP_PHOTO) { $errors = ''; $data_post_name = $HTTP_POST_FILES['nouveau1']['name']; $data_post_size = $HTTP_POST_FILES['nouveau1']['size']; $data_post_temp = $HTTP_POST_FILES['nouveau1']['tmp_name']; if(($data_post_size/1024) > $config_csiopen[9]) { $errors.='<br />'.$csiopenweb156.' '.$config_csiopen[9].' ko'; }else{ $ext = strtolower(substr(strrchr($data_post_name,'.'), 1)); if ($ext == 'gif' || $ext == 'jpg' || $ext == 'jpeg' || $ext == 'png' || $ext == 'bmp') { $i = 1; while (file_exists(DIR.'photo/'.$data_post_name)) { $data_post_name = ereg_replace('(.*)(\.[a-zA-Z]+)$', '\1_'.$i.'\2', $data_post_name); $i++; } if (!move_uploaded_file($data_post_temp, DIR.'photo/'.$data_post_name)) { $errors.= $csiopenweb18; } else{ $nouveau1 = $data_post_name; } } else { $errors.= $csiopenweb132; } } } if ($csiopentype==TYP_BANNER) { $errors = ''; $data_post_name = $HTTP_POST_FILES['cat1']['name']; $data_post_size = $HTTP_POST_FILES['cat1']['size']; $data_post_temp = $HTTP_POST_FILES['cat1']['tmp_name']; $whimg_ann = getimagesize($data_post_temp); if($whimg_ann[0]!='468' and $whimg_ann[1]!='60'){ $errors.= '<br />'.$csiopenweb155; } if(($data_post_size/1024) > $config_csiopen[9]) { $errors.='<br />'.$csiopenweb156.' '.$config_csiopen[9].' ko'; } else{ $ext = strtolower(substr(strrchr($data_post_name,'.'), 1)); if ($ext == 'gif' || $ext == 'jpg' || $ext == 'jpeg' || $ext == 'png' || $ext == 'bmp'|| $ext == 'swf') { $i = 1; while (file_exists(DIR.'img/'.$data_post_name)) { $data_post_name = ereg_replace('(.*)(\.[a-zA-Z]+)$', '\1_'.$i.'\2', $data_post_name); $i++; } if (!move_uploaded_file($data_post_temp, DIR.'img/'.$data_post_name)) { $errors.= '<br />'.$csiopenweb18; } else{ $cat1 = $data_post_name; } } else { $errors.= '<br />'.$csiopenweb132; } } } if ($csiopentype==TYP_DNLOAD) { $errors = ''; $data_post_name = $HTTP_POST_FILES['nouveau1']['name']; $data_post_size = $HTTP_POST_FILES['nouveau1']['size']; $data_post_temp = $HTTP_POST_FILES['nouveau1']['tmp_name']; if(($data_post_size/1024) > $config_csiopen[10]) { $errors.=$csiopenweb157.' '.$config_csiopen[10].' ko'; }else{ $ext = strtolower(substr(strrchr($data_post_name,'.'), 1)); if ($ext == 'zip' || $ext == 'tar' || $ext == 'rar') { $i = 1; while (file_exists(DIR.'file/'.$data_post_name)) { $data_post_name = ereg_replace('(.*)(\.[a-zA-Z]+)$', '\1_'.$i.'\2', $data_post_name); $i++; } if (!move_uploaded_file($data_post_temp, DIR.'file/'.$data_post_name)) { $errors.= $csiopenweb18; } else{ $nouveau1 = 'file/'.$data_post_name; } } else { $errors.= $csiopenweb132; } } } if(empty($errors)){ $id = ReadCounter(NEXTCSIOPEN); $id = $id+1; WriteCounter(NEXTCSIOPEN,$id); $data[0] = $csiopentype; $data[1] = ''; $data[2] = 'a'; $data[3] = ''; $data[4] = ''; $data[5] = $pseudo1; $data[6] = $email1; $data[7] = $cat1; $data[8] = $cat2; $data[9] = $titre1; $data[10] = $titre2; $data[11] = $contenu1; $data[12] = $contenu2; $data[13] = $nouveau1; $data[14] = $nouveau2; $data[15] = GenerateUID(); $status = $data[2]; $creadate = GetCurrentDateTime(); $moddate = $creadate; $author = addslashes(stripslashes($data[5])); $email = addslashes(stripslashes($data[6])); $fielda1 = addslashes(stripslashes($data[7])); $fielda2 = addslashes(stripslashes($data[8])); $fieldb1 = addslashes(stripslashes($data[9])); $fieldb2 = addslashes(stripslashes($data[10])); $fieldc1 = addslashes(stripslashes(souriez(PutHR(PutBR($data[11]))))); $fieldc2 = addslashes(stripslashes(souriez(PutHR(PutBR($data[12]))))); $fieldd1 = addslashes(stripslashes($data[13])); $fieldd2 = addslashes(stripslashes($data[14])); $fieldweb = addslashes(stripslashes($data[15])); $db = array(); $db[0] = $data[0]; $db[1] = $id; $db[2] = $data[2]; AppendDBFields(DBCSIOPEN,$db); $rec = "<?php \$type = \"$csiopentype\"; \$fileid = \"$id\"; \$status = \"$status\"; \$creadate = \"$creadate\"; \$moddate = \"$moddate\"; \$author = stripslashes(\"$author\"); \$email = stripslashes(\"$email\"); \$fielda1 = stripslashes(\"$fielda1\"); \$fielda2 = stripslashes(\"$fielda2\"); \$fieldb1 = stripslashes(\"$fieldb1\"); \$fieldb2 = stripslashes(\"$fieldb2\"); \$fieldc1 = stripslashes(\"$fieldc1\"); \$fieldc2 = stripslashes(\"$fieldc2\"); \$fieldd1 = stripslashes(\"$fieldd1\"); \$fieldd2 = stripslashes(\"$fieldd2\"); \$fieldweb = stripslashes(\"$fieldweb\"); ?>"; WriteFullDB(DBBASECSIOPEN.$id.INCEXT,$rec); ?> <p align="center"><b><?php echo $csiopenweb33." ".$qmerci; ?></b> </p> <form name="suite" action="redac.php?lng=<?php echo $lng; ?>" method="post"> <input type="hidden" name="csiopentype" value="<?php echo $csiopentype; ?>" /> <input type="hidden" name="uid" value="<?php echo $data[15]; ?>" /> <input type="hidden" name="id" value="<?php echo $id; ?>" /> </form> <script language="javascript"> setTimeout("document.suite.submit();",3000); </script> <?php } else{ echo '<p align="center"><img src="img/warning.gif" alt="warning" title="warning" /><b> '.$csiopenweb158.'</b><br />'.$errors.'</p>'; } } elseif ($form == 1 or $form == 2) { ?> <div align="center"><?php echo $qintro; ?><br /> <hr /> <form name="redaction" enctype="multipart/form-data" action="redac.php?lng=<?php echo $lng; ?>" method="post" onSubmit="<?php if ($bcontenu == 1) {?>ProcessInfo();<?}?>VerifyForm();return false;"> <?php if($form == 1){ ?> <input type="hidden" name="add" value="1" /> <input type="hidden" name="csiopentype" value="<?php echo $csiopentype; ?>" /> <?php } if($form == 2){ ReadDoc(DBBASECSIOPEN.$id); $pseudo1=$author; $email1=$email; $c6text1=$fieldc1; $c6text2=$fieldc2; $c6text3=$fielda1; $c6text4=$fielda2; $c6text5=$fieldb1; $c6text6=$fieldb2; $c6text7=$fieldd1; $c6text8=$fieldd2; ?> <input type="hidden" name="modif" value="1" /> <input type="hidden" name="id" value="<?php echo $id; ?>" /> <input type="hidden" name="contuid" value="<?php echo $contuid; ?>" /> <input type="hidden" name="csiopentype" value="<?php echo $type; ?>" /> <?php } ?> <table cellspacing="0" cellpadding="0" align="center" border="0"> <tr><td align="center"><p align="center"><?php echo $csiopenweb126; ?></p></td></tr> <tr><td align="center"><input class="texte" type="text" name="pseudo1" size="40" value="<?php echo $pseudo1; ?>" /></td></tr> <tr><td align="center"><p align="center"><?php echo $csiopenweb127; ?></p></td></tr> <tr><td align="center"><input class="texte" type="text" name="email1" size="40" value="<?php echo $email1; ?>" /></td></tr> <?php if ($csiopentype != TYP_AGENDA && $csiopentype!=TYP_THINK && $csiopentype!=TYP_NEWS) { ?> <tr><td align="center"><p align="center"><?php echo $qcat; ?></p></td></tr> <?php if ($csiopentype == TYP_BANNER) { ?> <tr><td align="center"><input class="texte" type="file" name="cat1" size="36" value="<?php echo $c6text3; ?>" /></td></tr> <?php } elseif ($csiopentype != TYP_FAQ) { ?> <tr><td align="center"><input class="texte" type="text" name="cat1" size="40" value="<?php echo $c6text3; ?>" /></td></tr> <?php } } elseif ($csiopentype == TYP_AGENDA) { ?> <tr><td align="center"><p align="center"><?php echo $qtitre; ?><br /><?php echo $qcat; ?><br /> <input class="texte" type="text" name="cat1" size="45" value="<?php echo substr(FormatDate($annee.$mois.$day."00000"), 0, 10); ?>" readonly /> <input type="hidden" name="titre1" size="45" value="<?php echo $mois.$annee; ?>" /></td></tr> <?php } if ($btitre >= 1 and $csiopentype != TYP_BANNER) { ?> <tr><td align="center"><p align="center"><?php echo $qtitre; ?></p></td></tr> <tr><td align="center"><input class="texte" type="text" name="titre1" size="45" value="<?php echo $c6text5; ?>" /></td></tr> <?php } elseif($btitre == 0){ } else{ ?> <tr><td align="center"><p align="center"><?php echo $qtitre; ?></p></td></tr> <tr><td align="center"><input class="texte" type="text" name="titre1" size="45" value="<?php echo $c6text5; ?>" /></td></tr> <?php } if ($bnouveau == 1) { if ($csiopentype == TYP_PHOTO) { ?> <tr><td align="center"><p align="center"><?php echo $qnouveau; ?></p></td></tr> <tr><td align="center"><input class="texte" type="file" name="nouveau1" size="36" value="<?php echo $c6text7; ?>" /></td></tr> <?php } elseif ($csiopentype == TYP_DNLOAD) { ?> <tr><td align="center"><p align="center"><?php echo $qnouveau; ?></p></td></tr> <tr><td align="center"><input class="texte" type="file" name="nouveau1" size="36" value="<?php echo $c6text7; ?>" /></td></tr> <?php } elseif ($csiopentype == TYP_ART) { ?> <tr><td align="center"><p><?php echo $csiopenweb75; ?></p><select name="nouveau1"> <option value="left" <?php if ($fieldd1 == "left" || $fieldd1 == "") { echo "selected"; } ?>><?php echo $csiopenweb76; ?></option> <option value="right" <?php if ($fieldd1 == "right") { echo "selected"; } ?>><?php echo $csiopenweb77; ?></option> </select></td></tr> <?php } else { ?> <tr><td align="center"><p align="center"><?php echo $qnouveau; ?></p></td></tr> <tr><td align="center"><input class="texte" type="text" name="nouveau1" size="45" value="<?php echo $c6text7; ?>" /></td></tr> <?php } } if ($bcontenu == 1) { ?> <script language="JavaScript" type="text/javascript"> function AddSmiley(zoop) { document.getElementById('texteditor_WYSIWYG_Editor').contentWindow.focus(); texteditor.addImage('<?php echo $sito; ?>'+zoop); document.getElementById('texteditor_WYSIWYG_Editor').contentWindow.focus(); } </script> <tr><td align="center"><p align="center"><?php echo $qcontenu; ?></p><br /></td></tr> </table> <table cellspacing="0" cellpadding="0"> <tr><td align="center"> <script type="text/javascript"> texteditor = new WYSIWYG_Editor('texteditor', '', '<?php echo DIR; ?>inc/pgeditor', 400, 200,'<?php echo DIR; ?>inc/pgeditor','pj','ajoutimg'); texteditor.lang = ["<?php echo $lng; ?>","<?php echo $editor_web1; ?>","<?php echo $editor_web2; ?>","<?php echo $editor_web3; ?>","<?php echo $editor_web4; ?>","<?php echo $editor_web5; ?>","<?php echo $editor_web6; ?>","<?php echo $editor_web7; ?>","<?php echo $editor_web8; ?>","<?php echo $editor_web9; ?>","<?php echo $editor_web10; ?>","<?php echo $editor_web11; ?>","<?php echo $editor_web12; ?>","<?php echo $editor_web13; ?>","<?php echo $editor_web14; ?>","<?php echo $editor_web15; ?>","<?php echo $editor_web16; ?>","<?php echo $editor_web17; ?>"]; texteditor.display(); </script> <noscript> <p style="notSupported"> Your browser does not support Javascript with your current settings. I am unable to display the editor to you. Check your settings and enable Javascript, or use one of the supported web browsers (listed in the right column) to view this page for a demonstration. </p> </noscript> </td></tr> <tr><td align="center" valign="middle"> <?php AfficheSmileys(""); ?> </td></tr> </table> <?php } ?> <table cellspacing="0" cellpadding="0" align="center" border="0"> <tr><td> </td></tr> <tr><td align="center"><?php echo $boutonleft; ?><input class="bouton" type="submit" value="<?php echo $csiopenweb16; ?>" /><?php echo $boutonright; ?></td></tr> </table> </form></div> <?php } elseif ($form == 3) { ?> <p align="center"><?php echo $qintro; ?></p><hr /><br /> <?php include('inc/cal.inc'); } elseif ($form == 4) { ?> <p align="center"><?php echo $csiopenweb79; ?></p><hr /><br /> <form name="controle" action="redac.php?lng=<?php echo $lng; ?>" method="post"> <input type="hidden" name="id" value="<?php echo $id; ?>" /> <table cellspacing="5" cellpadding="5" border="0" align="center"> <tr><td><input class="texte" type="text" name="contuid" size="45" /></td></tr> <tr><td align="center" colspan="2"><?php echo $boutonleft; ?><input class="bouton" type="submit" value="<?php echo $csiopenweb82; ?>" /><?php echo $boutonright; ?></td></tr> </table></form> <?php } elseif ($form == 5) { ?> <p align="center"><?php echo $csiopenweb81; ?></p><hr /><br /> <form name="controle" action="redac.php?lng=<?php echo $lng; ?>" method="post"> <input type="hidden" name="id" value="<?php echo $id; ?>" /> <table cellspacing="5" cellpadding="5" border="0" align="center"> <tr><td><input class="texte" type="text" name="deluid" size="45" /></td></tr> <tr><td align="center" colspan="2"><?php echo $boutonleft; ?><input class="bouton" type="submit" value="<?php echo $csiopenweb82; ?>" /><?php echo $boutonright; ?></td></tr> </table></form> <?php } else{ ?> <p align="center"><?php echo $csiopenweb78." <b>".$uid; ?></b></p><hr /> <table cellspacing="5" cellpadding="5" border="0" align="center"> <tr><td><?php echo $csiopenweb131; ?></td><td><?php echo $csiopenweb128; ?></td><td><?php echo $csiopenweb129; ?></td><td><?php echo $csiopenweb130; ?></td></tr> <?php $dbwork=ReadDBFields(DBCSIOPEN); for ($i = 0; $i < count($dbwork); $i++) { ReadDoc(DBBASECSIOPEN.$dbwork[$i][1]); $datecsiopen = FormatDate($creadate); if($type==TYP_AGENDA){ $catcsiopen=$csiopenweb74; $urlcsiopen='agenda.gif'; } if($type==TYP_ART){ $catcsiopen=$csiopenweb66; $urlcsiopen='article.gif'; } if($type==TYP_BANNER){ $catcsiopen=$csiopenweb67; $urlcsiopen='ban.gif'; } if($type==TYP_DNLOAD){ $catcsiopen=$csiopenweb68; $urlcsiopen='dwnld.gif'; } if($type==TYP_FAQ){ $catcsiopen=$csiopenweb69; $urlcsiopen='faq.gif'; } if($type==TYP_LINKS){ $catcsiopen=$csiopenweb70; $urlcsiopen='liens.gif'; } if($type==TYP_PHOTO){ $catcsiopen=$csiopenweb71; $urlcsiopen='photo.gif'; } if($type==TYP_RSS){ $catcsiopen=$csiopenweb72; } if($type==TYP_THINK){ $catcsiopen=$csiopenweb73; $urlcsiopen='citation.gif'; } if($type==TYP_NEWS){ $catcsiopen=$csiopenweb141; $urlcsiopen='news.gif'; } ?> <tr> <td><b><?php echo $catcsiopen; ?></b></td> <td><?php echo $author; ?></td> <td><?php echo $datecsiopen; ?></td> <td> <?php if($type==TYP_RSS){ echo '<a href="'.DIR.'plugins/csiopen/newsrss.php?lng='.$lng.'&pg='.$fileid.'"><img src="'.DIR.'plugins/csiopen/img/rss.gif" alt="rss" border="0" /></a>'; } else{ echo '<a href="view.php?lng='.$lng.'&pg='.$fileid.'"><img src="'.DIR.'plugins/csiopen/img/'.$urlcsiopen.'" alt="'.$urlcsiopen.'" border="0" /></a>'; } ?> <a href="redac.php?lng=<?php echo $lng; ?>&form=4&id=<?php echo $fileid; ?>"><img src="<?php echo DIR; ?>plugins/csiopen/img/edit.gif" border="0" alt="<?php echo $csiopenweb80; ?>" title="<?php echo $csiopenweb80; ?>" /></a> <img src="<?php echo DIR; ?>plugins/csiopen/img/sup.gif" border="0" alt="<?php echo $csiopenweb124; ?>" title="<?php echo $csiopenweb124; ?>" onclick="ConfirmDelCsiOPen('redac.php?lng=<?php echo $lng; ?>&form=5&id=<?php echo $fileid; ?>')" style="cursor: pointer;" /> </td></tr> <?php } ?> </table> <?php } } btable(); include(DIR.'inc/bpage.inc'); ?>
Heb al een beetje lopen klooien maar als ik het doe dan zie ik geen editor in beeld, wel met de oude verwijzingen alleen die schrijft niks weg als ik op save klik, zie wel de naam,email,onderwerp maar geen inhoud.Code:<?php /* Csiopen Plugin is GPL Copyright (C) 2006 - 2008 by Nicolas Alves Web site = http://www.guppytop.com/ */ if (stristr($_SERVER['SCRIPT_NAME'], 'funccsiopen.php')) { header('location:../index.php'); die(); } include_once(DIR.'plugnico/func_plug_nico.php'); $headinc.='<script language="javascript" type="text/javascript" src="'.DIR.'plugnico/js/highslide.js"></script>'; $headinc.='<script language="javascript" type="text/javascript" src="'.DIR.'plugnico/js/highslide-html.js"></script>'; $headinc.='<script type="text/javascript"> hs.graphicsDir = "'.DIR.'plugnico/img/highslide/"; hs.outlineType = "beveled"; hs.outlineWhileAnimating = true; window.onload = function() { hs.preloadImages(); } </script>'; $headinc.='<link rel="stylesheet" type="text/css" href="'.DIR.'plugnico/img/highslide/style.css" />'; $headinc.='<link rel="stylesheet" type="text/css" href="'.DIR.'plugnico/editor/editor.css" />'; if (strpos($endurl, '/admin/') !== false) { include_once(DIR.'plugins/csiopen/lang/'.$lng.'-csiopenadmin.inc'); } include_once(DIR.'plugins/csiopen/lang/'.$lng.'-csiopenweb.inc'); define('PATHCSIOPEN', DIR.'plugins/csiopen/data/'); define('PATHSTANDBY', PATHCSIOPEN.'standby/'); define('DBCSIOPEN', PATHCSIOPEN.'dbcsiopen'.DBEXT); define('CONFIGCSIOPEN', PATHCSIOPEN.'config'.INCEXT); define('NEXTCSIOPEN', PATHCSIOPEN.'nextcsiopen'.DBEXT); define('DBBASECSIOPEN', PATHCSIOPEN.'doc'); if (file_exists(CONFIGCSIOPEN)) { include_once(CONFIGCSIOPEN); } function CsiopenRetablir($chaine) { $chaine = str_replace("src=\"../csiopen_img/", "src=\"../../csiopen_img/", $chaine); $chaine = str_replace("src=\"../inc/img/smileys/", "src=\"../../inc/img/smileys/", $chaine); return $chaine; } function CsiopenImgExterne($imgexterne) { $imgexterne = str_replace("src=\"../../csiopen_img/", "src=\"../csiopen_img/", $imgexterne); $imgexterne = str_replace("src=\"../../inc/img/smileys/", "src=\"../inc/img/smileys/", $imgexterne); return $imgexterne; } function CsiopenAccImg($accimg) { $accimg = str_replace("src=\"../../csiopen_img/", "src=\"csiopen_img/", $accimg); $accimg = str_replace("src=\"../../inc/img/smileys/", "src=\"inc/img/smileys/", $accimg); return $accimg; } function csiopensouriez($chaine) { $traite = str_replace("<IMG title=cool alt=cool src=\"inc/img/smileys/cool.gif\">", "<img title=\"cool\" alt=\"cool\" src=\"../../inc/img/smileys/cool.gif\" />", $chaine); $traite = str_replace("<IMG title=wink alt=wink src=\"inc/img/smileys/wink.gif\">", "<img title=\"wink\" alt=\"wink\" src=\"../../inc/img/smileys/wink.gif\" />", $traite); $traite = str_replace("<IMG title=cool alt=cool src=\"inc/img/smileys/biggrin.gif\">", "<img title=\"biggrin\" alt=\"biggrin\" src=\"../../inc/img/smileys/biggrin.gif\" />", $traite); $traite = str_replace("<IMG title=smile alt=smile src=\"inc/img/smileys/smile.gif\">", "<img title=\"smile\" alt=\"smile\" src=\"../../inc/img/smileys/smile.gif\" />", $traite); $traite = str_replace("<IMG title=frown alt=frown src=\"inc/img/smileys/frown.gif\">", "<img title=\"frown\" alt=\"frown\" src=\"../../inc/img/smileys/frown.gif\" />", $traite); $traite = str_replace("<IMG title=eek alt=eek src=\"inc/img/smileys/eek.gif\">", "<img title=\"eek\" alt=\"eek\" src=\"../../inc/img/smileys/eek.gif\" />", $traite); $traite = str_replace("<IMG title=mad alt=mad src=\"inc/img/smileys/mad.gif\">", "<img title=\"mad\" alt=\"mad\" src=\"../../inc/img/smileys/mad.gif\" />", $traite); $traite = str_replace("<IMG title=confused alt=confused src=\"inc/img/smileys/confused.gif\">", "<img title=\"confused\" alt=\"confused\" src=\"../../inc/img/smileys/confused.gif\" />", $traite); $traite = str_replace("<IMG title=rolleyes alt=rolleyes src=\"inc/img/smileys/rolleyes.gif\">", "<img title=\"rolleyes\" alt=\"rolleyes\" src=\"../../inc/img/smileys/rolleyes.gif\" />", $traite); $traite = str_replace("<IMG title=tongue alt=tongue src=\"inc/img/smileys/tongue.gif\">", "<img title=\"tongue\" alt=\"tongue\" src=\"../../inc/img/smileys/tongue.gif\" />", $traite); $traite = str_replace("<IMG title=cry alt=cry src=\"inc/img/smileys/cry.gif\">", "<img title=\"cry\" alt=\"cry\" src=\"../../inc/img/smileys/cry.gif\" />", $traite); return $traite; } // Fonction permettant d'afficher les liens dans la boîte du plug-in // $var_config : variable de configuration permettant de contrôler que le lien doive bien être visible // $var_type : variable du type de fichier à autoriser // $var_link nom du lien figurant dans la boîte du plugin function CsiopenViewLink($var_config,$var_type,$var_link) { global $lng; if ($var_config=='on') { echo '<a href="'.DIR.'plugins/csiopen/redac.php?lng='.$lng.'&form=1&csiopentype='.$var_type.'" class="box">'.$var_link.'</a><br />'; } } ?>
wat gaat er fout
- editor veranderen
-
04-07-2011, 21:31 #1Particulier
- Berichten
- 159
- Lid sinds
- 15 Jaar
editor veranderen
Plaats een
- + Advertentie
- + Onderwerp
Marktplaats
Webmasterforum
- Websites algemeen
- Sitechecks
- Marketing
- Domeinen algemeen
- Waardebepaling
- CMS
- Wordpress
- Joomla
- Magento
- Google algemeen
- SEO
- Analytics
- Adsense
- Adwords
- HTML / XHTML
- CSS
- Programmeren
- PHP
- Javascript
- JQuery
- MySQL
- Ondernemen algemeen
- Belastingen
- Juridisch
- Grafisch ontwerp
- Hosting Algemeen
- Hardware Info
- Offtopic