コード例 #1
0
ファイル: user_work.php プロジェクト: rhertzog/lcs
$tbl_wrk_submission = $tbl_cdb_names['wrk_submission'];
$tbl_group_team = $tbl_cdb_names['group_team'];
$tbl_group_rel_team_user = $tbl_cdb_names['group_rel_team_user'];
// use viewMode
claro_set_display_mode_available(true);
/*============================================================================
                     BASIC VARIABLES DEFINITION
  =============================================================================*/
$fileAllowedSize = get_conf('max_file_size_per_works');
//file size in bytes
$maxFilledSpace = get_conf('maxFilledSpace', 100000000);
// use with strip_tags function when strip_tags is used to check if a text is empty
// but a 'text' with only an image don't have to be considered as empty
$allowedTags = '<img>';
// initialise a html sanitizer authorizing the style attribute
$san = new Claro_Html_Sanitizer();
$san->allowStyle();
// initialise dialog box to an empty string, all dialog will be concat to it
$dialogBox = new DialogBox();
// initialise default view mode (values will be overwritten if needed)
$dispWrkLst = true;
// view list is default
$dispWrkForm = false;
$dispWrkDet = false;
$is_feedback = false;
/*============================================================================
                     CLEAN INFORMATIONS SENT BY USER
  =============================================================================*/
$cmd = isset($_REQUEST['cmd']) ? $_REQUEST['cmd'] : '';
$assignmentId = isset($_REQUEST['assigId']) && !empty($_REQUEST['assigId']) && ctype_digit($_REQUEST['assigId']) ? (int) $_REQUEST['assigId'] : false;
$authId = isset($_REQUEST['authId']) ? (int) $_REQUEST['authId'] : '';
コード例 #2
0
ファイル: htmlsanitizer.lib.php プロジェクト: rhertzog/lcs
function claro_html_sanitize_editor($str)
{
    static $san = null;
    if (empty($san)) {
        $san = new Claro_Html_Sanitizer();
        $san->allowObjects();
    }
    return $san->sanitize($str);
}