Moving files into main/inc/lib

skala
Julio Montoya 13 years ago
parent fecd1e0674
commit 90b459de35
  1. 4
      main/inc/global.inc.php
  2. 0
      main/inc/lib/email_editor.inc.php
  3. 0
      main/inc/lib/fck_course_document.inc.php
  4. 4
      main/inc/lib/fckeditor/editor/plugins/MP3/fck_mp3.php
  5. 0
      main/inc/lib/latex.inc.php
  6. 2
      main/inc/lib/text.lib.php
  7. 4
      main/template/default/mail_editor/email_link.js.tpl

@ -604,12 +604,12 @@ if ($alreadyInstalled) {
//Adding web profiler
if (is_writable($app['cache.path'])) {
//if ($app['debug']) {
if (api_get_setting('allow_web_profiler') == 'true') {
//if (api_get_setting('allow_web_profiler') == 'true') {
$app->register($p = new Silex\Provider\WebProfilerServiceProvider(), array(
'profiler.cache_dir' => $app['profiler.cache_dir'],
));
$app->mount('/_profiler', $p);
}
//}
//}
}

@ -46,8 +46,8 @@ include('../../../../../../inc/global.inc.php');
<tr>
<td>
<?php
$sType = "MP3";
include(api_get_path(INCLUDE_PATH).'course_document.inc.php');
$sType = "MP3";
include api_get_path(LIBRARY_PATH).'fck_course_document.inc.php';
?>
</td>

@ -493,7 +493,7 @@ function latex_gif_renderer($latex_code) {
//echo 'volgende shell commando werd uitgevoerd:<br /><pre>'.$mimetex_command.'</pre><hr>';
}
$return = "<a href=\"\" onclick=\"javascript: newWindow=window.open('" . api_get_path(WEB_CODE_PATH) . "inc/latex.php?code=" . urlencode($latex_code) . "&amp;filename=$latex_filename','latexCode','toolbar=no,location=no,scrollbars=yes,resizable=yes,status=yes,width=375,height=250,left=200,top=100');\">";
$return = "<a href=\"\" onclick=\"javascript: newWindow=window.open('" . api_get_path(WEB_CODE_PATH) . "inc/lib/latex.inc.php?code=" . urlencode($latex_code) . "&amp;filename=$latex_filename','latexCode','toolbar=no,location=no,scrollbars=yes,resizable=yes,status=yes,width=375,height=250,left=200,top=100');\">";
$return .= '<img src="' . api_get_path(WEB_COURSE_PATH) . $_course['path'] . '/temp/' . $latex_filename . '" alt="' . $latex_code . '" border="0" /></a>';
return $return;
}

@ -32,7 +32,7 @@ function addEvent(elm, evType, fn, useCapture) {
* Adds the event listener
*/
function addListeners(e) {
var my_links = $('.clickable_email_link');
var my_links = $('.clickable_email_link');
for(var i=0;i < my_links.length;i++) {
addEvent(my_links[i],'click',loadEmailEditor,false);
}
@ -54,7 +54,7 @@ function loadEmailEditor(e) {
}
//el is now my link object, so I can get el.href here to load the new window
var link = el.href.replace('mailto:','');
document.location = "{{ _p.web_main }}inc/email_editor.php?dest=" + link;
document.location = "{{ _p.web_main }}inc/lib/email_editor.php?dest=" + link;
//cancel default link action
if (window.event && window.event.returnValue){
window.event.returnValue = false;

Loading…
Cancel
Save