Exemplo n.º 1
0
    $error_info = t('Bad domain or volume!');
}
if (!isset($error_info)) {
    if (!fse_try_to_login()) {
        $error_info = t('You are not signed in.');
    } else {
        $project_info = ProjectInfo::getBasicInfo($project_id);
        $doc_lang = substr($project_id, -2);
        if ($project_info == false) {
            $error_info = t('Bad project');
        } else {
            if (substr(ProjectInfo::getUserRights($project_id, $_SESSION['FSEInfo']['fse_id']), 1, 1) != 't') {
                $error_info = t('You have no right to edit content of this project!');
            } else {
                $chapter_name = ProjectInfo::getChapterName($project_id, $domain_handle, $volume_handle, $part_handle, $chapter_handle);
                $chapter_desc = ProjectInfo::getChapterDesc($project_id, $domain_handle, $volume_handle, $part_handle, $chapter_handle);
                if ($chapter_name == false || $chapter_desc == false) {
                    $error_info = t('Not existed chapter!');
                }
            }
        }
    }
}
?>

<div class="modal-header">
	<button type="button" class="close" data-dismiss="modal">
		<span aria-hidden="true">&times;</span>
		<span class="sr-only"><?php 
echo t('Close');
?>