diff --git a/main/wiki/export_mpdf.php b/main/wiki/export_mpdf.php deleted file mode 100755 index 17c1440418..0000000000 --- a/main/wiki/export_mpdf.php +++ /dev/null @@ -1,68 +0,0 @@ -, initial code, 2009 - * @author Ivan Tcholakov , 2010 - * @deprecated now we use the pdf.lib.php library for all pdf export issues - */ - -require '../inc/global.inc.php'; - -api_protect_course_script(); -api_block_anonymous_users(); - -define('_MPDF_PATH', api_get_path(LIBRARY_PATH).'mpdf/'); -require_once _MPDF_PATH.'mpdf.php'; - -$content_pdf = api_html_entity_decode($_POST['contentPDF'], ENT_QUOTES, api_get_system_encoding()); -$title_pdf = api_html_entity_decode($_POST['titlePDF'], ENT_QUOTES, api_get_system_encoding()); - -$title_pdf = api_utf8_encode($title_pdf, api_get_system_encoding()); -$content_pdf = api_utf8_encode($content_pdf, api_get_system_encoding()); - -$html=' - - - -'.$content_pdf; - - -$css_file = api_get_path(TO_SYS, WEB_CSS_PATH).api_get_setting('stylesheets').'/print.css'; -if (file_exists($css_file)) { - $css = @file_get_contents($css_file); -} else { - $css = ''; -} - -$pdf = new mPDF('UTF-8', 'A4', '', '', 30, 20, 27, 25, 16, 13, 'P'); - -$pdf->directionality = api_get_text_direction(); - -$pdf->useOnlyCoreFonts = true; - -$pdf->SetAuthor('Wiki Chamilo'); -$pdf->SetTitle($title_pdf); -$pdf->SetSubject('Exported from Chamilo Wiki'); -$pdf->SetKeywords('Chamilo Wiki'); - -if (!empty($css)) { - $pdf->WriteHTML($css, 1); - $pdf->WriteHTML($html, 2); -} else { - $pdf->WriteHTML($html); -} - -if (empty($title_pdf)) { - $title_pdf = 'Exported from Chamilo Wiki'; -} -$pdf->Output(replace_dangerous_char($title_pdf.'.pdf'), 'D'); diff --git a/main/wiki/index.php b/main/wiki/index.php index 84db61989f..93fe071019 100755 --- a/main/wiki/index.php +++ b/main/wiki/index.php @@ -1392,7 +1392,7 @@ if ($_GET['action']=='edit') } //comp message - $message_task=''.get_lang('DescriptionOfTheTask').'

'.api_htmlentities($row['task']).'


'; + $message_task=''.get_lang('DescriptionOfTheTask').'

'.$row['task'].'


'; $message_task.='

'.get_lang('StartDate').': '.$message_task_startdate.'

'; $message_task.='

'.get_lang('EndDate').': '.$message_task_enddate; $message_task.=' ('.get_lang('AllowLaterSends').') '.$message_task_delayedsubmit.'

'; @@ -1483,9 +1483,9 @@ if ($_GET['action']=='edit') echo ''.get_lang('Feedback3').''; echo ''; echo ''; - echo ''; - echo ''; - echo ''; + echo ''; + echo ''; + echo ''; echo ''; echo ''; echo ''.get_lang('FProgress').':'; diff --git a/main/wiki/wiki.inc.php b/main/wiki/wiki.inc.php index 66193d8968..bf83ca3edb 100755 --- a/main/wiki/wiki.inc.php +++ b/main/wiki/wiki.inc.php @@ -583,6 +583,8 @@ return true; echo '