Location: PHPKode > projects > JLI! - Just Learn It! > modules.php
<?

if($JLI_LDAP_PREFIX == "") {
	$JLI_LDAP_PREFIX = "CN";
}

if($JLI_JAVA_HTML_EDITOR) {
	$JLI_HTML_EDITOR = "KAFENIO";
}
elseif($JLI_USE_HTMLAREA) {
	$JLI_HTML_EDITOR = "HTMLAREA";
}
if($JLI_HTML_EDITOR == "") {
	$JLI_HTML_EDITOR = "HTMLAREA";
}

$JLI_MIN_IMPORT_VERSION = "0.8.00017";

$movie_types = array(
	"realvideo" => "RealVideo",
	"quicktime" => "QuickTime"
);

$module_icons = array(
	1 => "../img/multifile.gif",
	2 => "../img/hdan.gif",
	4 => "../img/teach.gif",
	7 => "../img/teach.gif",
	8 => "../img/multifile.gif",
	9 => "../img/multifile.gif",
	10 => "../img/multifile.gif",
	11 => "../img/teach.gif",
	51 => "../img/survey.gif",
	52 => "../img/survey.gif",
	55 => "../img/survey.gif",
	101 => "../img/qstn.gif",
	102 => "../img/qstn.gif",
	106 => "../img/qstn.gif",
	107 => "../img/qstn.gif",
	109 => "../img/qstn.gif"
);

$mtypa_eval = array(
	1 => "none",
	2 => "none",
	4 => "vote",
	7 => "vote",
	8 => "none",
	9 => "none",
	10 => "none",
	11 => "vote",
	51 => "survey",
	52 => "survey",
	55 => "survey",
	101 => "perc",
	102 => "perc",
	106 => "perc",
	107 => "perc",
	109 => "perc"
);

reset($mtypa_eval);
while(list($k, $v) = each($mtypa_eval)) {
	switch($v) {
		case "perc":
			$eval_perc_type .= $k.",";
			break;
		case "vote":
			$eval_vote_type .= $k.",";
			break;
	}
}

$eval_perc_type = substr($eval_perc_type, 0, -1);
$eval_vote_type = substr($eval_vote_type, 0, -1);
$eval_type = $eval_perc_type.",".$eval_vote_type;
$teorical_modules = "1,8,9";

$ws_functions = array(
	"rpc_add_user" => "rpc.add_user",
	"rpc_edit_user" => "rpc.edit_user",
	"rpc_delete_user" => "rpc.delete_user",
	"rpc_give_user_a_course" => "rpc.give_user_a_course",
	"rpc_remove_user_from_course" => "rpc.remove_user_from_course",
	"rpc_get_userinfo" => "rpc.get_userinfo",
	"rpc_get_courseinfo" => "rpc.get_courseinfo",
	"rpc_get_systeminfo" => "rpc.get_systeminfo",
	"rpc_get_coursereport" => "rpc.get_coursereport",
	"rpc_get_coursereport2" => "rpc.get_coursereport2"
);

umask(0007);

$JLI_EVALUATION_RATE = (int) $JLI_EVALUATION_RATE;
if($JLI_EVALUATION_RATE < 1 || $JLI_EVALUATION_RATE > 100) { $JLI_EVALUATION_RATE = 100; }

// PATHS & URLS
$system_url = $JLI_SYSTEM_URL;
$kurs_home_path = $system_root."/coursehome";
$kurs_home_url = $JLI_SYSTEM_URL."/coursehome";
$user_home_path = $system_root."/home";
$user_home_url = $JLI_SYSTEM_URL."/home";
$certificate_home_path = $system_root."/certificates";
$certificate_home_url = $JLI_SYSTEM_URL."/certificates";
$personal_path = $system_root."/personal";
$jli_tmp_path = $system_root."/coursehome/tmp";

define(LOG_MODULE_BEGIN, 101);
define(LOG_MODULE_OPEN, 102);
define(LOG_MODULE_CLOSED_BY_TEACHER, 103);
define(LOG_MODULE_READY, 104);
define(LOG_MODULE_SHOW_ANSWER, 105);
define(LOG_MODULE_FILE_UPLOAD, 106);
define(LOG_MODULE_MODIFIED_BY_TEACHER, 107);
define(LOG_MODULE_SAVED, 108);
define(LOG_MODULE_TIMEOUT, 109);
define(LOG_MODULE_CORRECTED_AGAIN, 110);
define(LOG_MODULE_CORRECTED, 111);
define(LOG_MODULE_REOPENED_BY_TEACHER, 112);
define(LOG_MODULE_CORRECTION_SAVED, 113);
define(LOG_MODULE_SAME_EVALUATION, 114);
define(LOG_RESULTS_DELETED_BY_TEACHER, 115);
define(LOG_GRADE_ADDED_BY_TEACHER, 116);

?>
Return current item: JLI! - Just Learn It!