public static function getObjectHeight()
 {
     return ModalBoxHelper::getModalHeight() - 20;
 }
示例#2
0
require_once 'include/pclzip/pclzip.lib.php';
require_once 'include/lib/modalboxhelper.class.php';
require_once 'include/lib/multimediahelper.class.php';
require_once 'include/lib/mediaresource.factory.php';
require_once 'modules/search/indexer.class.php';
require_once 'include/log.php';
if ($is_in_tinymce) {
    $_SESSION['embedonce'] = true;
    // necessary for baseTheme
    $docsfilter = isset($_REQUEST['docsfilter']) ? 'docsfilter=' . $_REQUEST['docsfilter'] . '&' : '';
    $base_url .= 'embedtype=tinymce&' . $docsfilter;
    load_js('jquery-' . JQUERY_VERSION . '.min');
    load_js('tinymce.popup.urlgrabber.min.js');
}
load_js('tools.js');
ModalBoxHelper::loadModalBox(true);
copyright_info_init();
$require_help = TRUE;
$helpTopic = 'Doc';
$toolName = $langDoc;
$pageName = '';
// check for quotas
$diskUsed = dir_total_space($basedir);
if (defined('COMMON_DOCUMENTS')) {
    $diskQuotaDocument = $diskUsed + ini_get('upload_max_filesize') * 1024 * 1024;
} else {
    $type = $subsystem == GROUP ? 'group_quota' : 'doc_quota';
    $d = Database::get()->querySingle("SELECT {$type} as quotatype FROM course WHERE id = ?d", $course_id);
    $diskQuotaDocument = $d->quotatype;
}
if (isset($_GET['showQuota'])) {
示例#3
0
// displaying needs of the learning path tool. The core
// application logic remains the same.
// Ta objects prepei na ginoun include prin thn init
// gia logous pou sxetizontai me to object loading
// apo to session
require_once '../../exercise/exercise.class.php';
require_once '../../exercise/question.class.php';
require_once '../../exercise/answer.class.php';

$require_current_course = true;
require_once '../../../include/init.php';
require_once 'include/lib/learnPathLib.inc.php';
require_once 'include/lib/textLib.inc.php';
require_once 'include/lib/modalboxhelper.class.php';
require_once 'include/lib/multimediahelper.class.php';
ModalBoxHelper::loadModalBox();

// Ksekiname to diko mas html output giati probaloume mesa se iframe
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">'
 . "\n<html>\n"
 . '<head>' . "\n"
 . '<meta http-equiv="Content-Type" content="text/html; charset=' . $charset . '">' . "\n"
 . "<link href='{$urlAppend}template/$theme/CSS/lp.css' rel='stylesheet'>\n"
 . "<link href='{$urlAppend}template/$theme/CSS/bootstrap-custom.css' rel='stylesheet'>\n"
 . '<title>' . $langExercicesResult . '</title>' . "\n"
 . $head_content
 . '</head>' . "\n"
 . '<body style="margin: 0px; padding-left: 0px; height: 100%!important; height: auto; background-color: #ffffff;">' . "\n"
 . '<div id="content"  style="padding:20px;">';

$pageName = $langExercicesResult;