curriculum_config = array( 'default_curriculum_id' => 2, 'default_curriculum' => 'http://koolielu.ee/curriculum/11', 'supported_curriculas' => array('http://koolielu.ee/curriculum/09', 'http://koolielu.ee/curriculum/11'), 'taxonomymappers' => array( 'http://koolielu.ee/curriculum/09' => array(1, 'http://test.koolielu.ee/refre/taxes/2/'), 'http://koolielu.ee/curriculum/11' => array(2, 'http://test.koolielu.ee/refre/taxes/41/'), ), 'default_upload_index' => 1, 'uploadpaths' => array( array( 'extensions' => array('.avi', '.mov', '.jpg', '.mp4', '.mp3', '.mpg', '.wmv', '.png', '.tiff', '.tif', '.gif', '.bmp', '.wma', '.wav', '.ogg', '.flv', '.flac', '.aac', '.mpeg'), 'path' => 'http://mms.eenet.ee/mmos', // TODO: replace this with url to mms upload path 'tokenizer' => 'mms_token', 'schema' => 'http://koolielu.ee/schemas/Media'), array( 'extensions' => array(), 'path' => xxy(), 'tokenizer' => 'waramu_token', 'schema' => 'http://koolielu.ee/schemas/Material' ) ), 'filters' => array( 'Material' => array( /*translation:Material*/ 'title' => elgg_echo('koolielu:Material'), 'schema' => 'http://koolielu.ee/schemas/Material', 'active' => true, 'code' => 'A' ), 'MMedia' => array( /*translation:Media*/ 'title' => elgg_echo('koolielu:Media'), 'schema' => 'http://koolielu.ee/schemas/Media', 'active' => true, 'code' => 'B' ), 'Collection' => array( /*translation:Collection*/ 'title' => elgg_echo('koolielu:Collection'), 'schema' => 'http://trac.htk.tlu.ee/waramu/Collection', 'active' => true, 'code' => 'C' ), 'Reference' => array( /*translation:Reference*/ 'title' => elgg_echo('koolielu:Reference'), 'schema' => 'http://koolielu.ee/schemas/Reference', 'active' => true, 'code' => 'D' ) ), 'annotations' => array( 'thsupport' => array( 'search' => true, /*translation:Search only supported by Tiigrihype*/ 'title' => elgg_echo("koolielu:only_supported_by_tiigrihype"), /*translation:Only supported by Tigerleap foundation helptext*/ 'help' => elgg_echo("koolielu:only_supported_by_tiigrihype_search_helptext") ), 'keecm' => array( 'search' => true, /*translation:Search only competition material*/ 'title' => elgg_echo("koolielu:only_competition_material"), /*translation:Only competition material helptext*/ 'help' => elgg_echo("koolielu:only_competition_material_search_helptext") ), 'indpwork' => array( 'search' => true, /*translation:Search only suitable for independent work*/ 'title' => elgg_echo("koolielu:only_suitable_for_independent_work"), /*translation:Only suitable for independent work helptext*/ 'help' => elgg_echo("koolielu:only_suitable_for_independent_work_search_helptext") ), 'keeq' => array( 'search' => true, 'editable' => false, /*translation:Search only with Koolielu quality marks*/ 'title' => elgg_echo("koolielu:only_with_koolielu_quality"), /*translation:Only with koolielu qualitymarks helptext*/ 'help' => elgg_echo("koolielu:only_with_koolielu_quality_search_helptext") ), ), 'licenses' => array( 'http://en.wikipedia.org/wiki/Copyright' => 'copyright', 'http://creativecommons.org/licenses/by-sa/3.0/' => 'license:by_sa', 'http://creativecommons.org/licenses/by/3.0/' => 'license:by', 'http://creativecommons.org/licenses/by-nc-sa/3.0/' => 'license:by_nc_sa', 'http://creativecommons.org/licenses/by-nc/3.0/' => 'license:by_nc', 'http://creativecommons.org/licenses/by-nd/3.0/' => 'license:by_nd', 'http://creativecommons.org/licenses/by-nc-nd/3.0/' => 'license:by_nc_nd', 'http://www.gnu.org/copyleft/fdl.html' => 'license:gnufree', 'http://en.wikipedia.org/wiki/Public_domain' => 'license:publicdomain', 'http://en.wikipedia.org/wiki/Licence' => 'license:other' ) ); function xxy($a = False) { if (function_exists('waramu_get')) { $w = waramu_get(); $idef = $w->Identify(); if ( $idef['status'][0][0] != '0') { unset($_SESSION['waramu_session']); return xxy(True); } $bu = $idef['identity'][0]['baseweburl'][0][0]; return $bu.'uploader'; } else { return "wrongupload"; } } function waramu_token($rid) { $w = waramu_get(); $ut = $w->getUploadToken(buildAppUser(get_loggedin_user()), $rid); $tok = $ut['id'][0][0]; return $tok; } function mms_token($rid) { global $CONFIG; if (!get_loggedin_user()) return; $guid = get_loggedin_user()->getGUID(); $k = get_data("SELECT mmskey FROM {$CONFIG->dbprefix}mms_keystore WHERE guid={$guid}"); if ($k && sizeof($k)>0) { return $k[0]->mmskey; } $k = download('http://mms.eenet.ee/get_key/'.get_loggedin_user()->username); $k = trim($k); insert_data("INSERT INTO {$CONFIG->dbprefix}mms_keystore (guid, mmskey) VALUES ({$guid}, '{$k}')"); return $k; } ?>