'../group/group_space.php?gidReq='.$_SESSION['_gid'], 'name' => get_lang('GroupSpace')); $group_document = true; $noPHP_SELF = true; } $my_cur_dir_path = Security::remove_XSS($_GET['curdirpath']); if (!$is_certificate_mode) $interbreadcrumb[]=array("url"=>"./document.php?curdirpath=".urlencode($my_cur_dir_path).$req_gid, "name"=> get_lang('Documents')); else $interbreadcrumb[]= array ( 'url' => '../gradebook/'.$_SESSION['gradebook_dest'], 'name' => get_lang('Gradebook')); $is_allowedToEdit = is_allowed_to_edit() || $_SESSION['group_member_with_upload_rights'] || is_my_shared_folder($_user['user_id'], $my_cur_dir_path, $current_session_id); if (!$is_allowedToEdit) { api_not_allowed(true); } event_access_tool(TOOL_DOCUMENT); Display :: display_header($nameTools, 'Doc'); echo '
'; ///pixlr // max size 1 Mb $title=$file;//disk name. No sql name because pixlr return this when save $image=urlencode(api_get_path(WEB_COURSE_PATH).$courseDir.$dir.$file);//TODO: only work with public courses // $pixlr_code_translation_table = array('' => 'en', 'pt' => 'pt-Pt', 'sr' => 'sr_latn'); $langpixlr = api_get_language_isocode(); $langpixlr = isset($pixlr_code_translation_table[$langpixlr]) ? $pixlredit_code_translation_table[$langpixlr] : $langpixlr; $loc=$langpixlr;// deprecated ?? TODO:check pixlr read user browser $exit_path=api_get_path(WEB_CODE_PATH).'document/exit_pixlr.php'; $_SESSION['exit_pixlr']= Security::remove_XSS($_GET['curdirpath']); $exit=$exit_path; $referrer="Chamilo"; $target_path=api_get_path(WEB_CODE_PATH).'document/save_pixlr.php'; $target=$target_path; $locktarget="true"; $locktitle="false"; echo ''; Display::display_footer(); ?>