-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.php
executable file
·56 lines (52 loc) · 2.25 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
<?php
/**
* Chronolabs Spam/Ham tester+training REST API
*
* You may not change or alter any portion of this comment or credits
* of supporting developers from this source code or any supporting source code
* which is considered copyrighted (c) material of the original comment or credit authors.
* This program 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.
*
* @copyright Chronolabs Cooperative http://labs.coop
* @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html)
* @package spam-apis
* @since 2.0.1
* @author Simon Roberts <[email protected]>
* @subpackage api
* @description Spam/Ham tester+training REST API
* @see http://sourceforge.net/projects/chronolabsapis
* @see http://wammy.labs.coop
* @see http://cipher.labs.coop
*/
/**
* @var integer
*/
define('API_CACHE_SECONDS', 844);
define('API_DELAY_SECONDS', floor(6.543 * 60));
/**
*
* @var string
*/
define('API_URL_CALLBACK', API_URL . '/v4/%s/callback.api');
define('API_URL_FORGET', API_URL . '/v4/forget/training.api');
define('API_URL_SPAM', API_URL . '/v4/spam/training.api');
define('API_URL_HAM', API_URL . '/v4/ham/training.api');
define('API_URL_IMAGE_FORGET', API_URL . '/v4/forget/training/image.api');
define('API_URL_IMAGE_SPAM', API_URL . '/v4/spam/training/image.api');
define('API_URL_IMAGE_HAM', API_URL . '/v4/ham/training/image.api');
/**
*
* @var string
*/
define('DIR_SPAM_TESTING', API_VAR_PATH . DIRECTORY_SEPARATOR . 'spam-testing');
define('DIR_TRAINING_DATA', API_PATH . DIRECTORY_SEPARATOR . 'training' . DIRECTORY_SEPARATOR . 'resource');
define('DIR_TRAINING_FORGET', API_PATH . DIRECTORY_SEPARATOR . 'training' . DIRECTORY_SEPARATOR . 'forget');
define('DIR_TRAINING_SPAM', API_PATH . DIRECTORY_SEPARATOR . 'training' . DIRECTORY_SEPARATOR . 'spam');
define('DIR_TRAINING_HAM', API_PATH . DIRECTORY_SEPARATOR . 'training' . DIRECTORY_SEPARATOR . 'ham');
/******* DO NOT CHANGE THIS VARIABLE ****
* @var string
*/
define('API_ROOT_NODE', 'http://wammy.snails.email');
?>