-
Notifications
You must be signed in to change notification settings - Fork 0
/
protocols.php
executable file
·37 lines (34 loc) · 1.36 KB
/
protocols.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
<?php
/**
* Chronolabs REST Short Link URIs 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://au.syd.labs.coop
* @license Academic + GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
* @package api
* @since 2.2.1
* @author Simon Roberts <[email protected]>
* @version 2.2.1
* @subpackage shortening-url
* @description Short Link URIs API
* @link http://internetfounder.wordpress.com
* @link http://sourceoforge.net/projects/chronolabsapis/files/jump.labs.coop
* @link https://github.com/Chronolabs-Cooperative/Jump-API-PHP
*/
/**
*
* @var constants
*/
define("API_ROOT_PROTOCOL", API_PROTOCOL);
define("API_SUBS_PROTOCOL", API_PROTOCOL);
define("API_OPENPGP_MINBITS", 1024);
define("API_OPENPGP_MACBITS", 4096);
$parts = explode('.', basename(__DIR__));
define("API_ALIAS_ADDRESS_PREFIX", '');
define("API_ALIAS_ADDRESS_SUFFIX", $parts[0].'.'.$parts[1]);