-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconstants.php
61 lines (50 loc) · 2.17 KB
/
constants.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* constants.php
*
* @package plagiarism_unplag
* @subpackage plagiarism
* @author Vadim Titov <v.titov@p1k.co.uk>
* @copyright UKU Group, LTD, https://www.unicheck.com
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
if (!defined('MOODLE_INTERNAL')) {
die('Direct access to this script is forbidden.');
}
define('UNPLAG_PLAGIN_NAME', 'plagiarism_unplag');
define('UNPLAG_DOMAIN', 'https://corp.unicheck.com/');
define('UNPLAG_API_URL', 'https://corpapi.unicheck.com/api/v2/');
define('UNPLAG_CALLBACK_URL', '/plagiarism/unplag/callback.php');
define('UNPLAG_PROJECT_PATH', dirname(__FILE__) . '/');
define('UNPLAG_DEFAULT_FILES_AREA', 'assign_submission');
define('UNPLAG_WORKSHOP_FILES_AREA', 'workshop_submissions');
define('UNPLAG_FORUM_FILES_AREA', 'forum_posts');
/** TABLES **/
define('UNPLAG_FILES_TABLE', 'plagiarism_unplag_files');
define('UNPLAG_USER_DATA_TABLE', 'plagiarism_unplag_user_data');
define('UNPLAG_CONFIG_TABLE', 'plagiarism_unplag_config');
define('UNPLAG_CHECK_TYPE_WEB', 'web');
define('UNPLAG_CHECK_TYPE_MY_LIBRARY', 'my_library');
define('UNPLAG_CHECK_TYPE_WEB__LIBRARY', 'web_and_my_library');
define('UNPLAG_WORKSHOP_SETUP_PHASE', 10);
define('UNPLAG_WORKSHOP_SUBMISSION_PHASE', 20);
define('UNPLAG_WORKSHOP_ASSESSMENT_PHASE', 30);
define('UNPLAG_WORKSHOP_GRADING_PHASE', 40);
define('UNPLAG_MODNAME_WORKSHOP', 'workshop');
define('UNPLAG_MODNAME_FORUM', 'forum');
define('UNPLAG_MODNAME_ASSIGN', 'assign');
define('UNPLAG_DEBUG_MODE', true);