Commit 92a46e53 authored by Mike Sheldon's avatar Mike Sheldon

Add cc-0 license to accepted licenses file

parent 4e4a8b5c
......@@ -11,6 +11,7 @@ define('BYSA25', 9);
define('BYSA3', 10);
define('LAL', 11);
define('PD', 12);
define('CC0', 13);
// Arrays containing regular expressions for each license type
// (so we can support multiple URL formats in the future if needed)
......@@ -26,9 +27,10 @@ $bysa25 = array('http://creativecommons.org/licenses/by-sa/2.5/?.*');
$bysa3 = array('http://creativecommons.org/licenses/by-sa/3.0/?.*');
$lal = array('http://artlibre.org/licence.php/lal.html');
$pd = array('http://creativecommons.org/licenses/publicdomain/?.*');
$cc0 = array('http://creativecommons.org/publicdomain/zero/?.*');
// map licenses to ids by array position
$licenses = array(array(), $by1, $by2, $by21, $by25, $by3, $bysa1, $bysa2, $bysa21, $bysa25, $bysa3, $lal, $pd);
$licenses = array(array(), $by1, $by2, $by21, $by25, $by3, $bysa1, $bysa2, $bysa21, $bysa25, $bysa3, $lal, $pd, $cc0);
function simplify_license($license) {
global $licenses;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment