Added kyberia.sk transport - not working yet...
authorHarvie <tomas@mudrunka.cz>
Fri, 24 Dec 2010 00:01:41 +0000 (01:01 +0100)
committerHarvie <tomas@mudrunka.cz>
Fri, 24 Dec 2010 00:01:41 +0000 (01:01 +0100)
wwwroot/config/config_default.inc
wwwroot/inc/transports/kyberia.sk.inc [new file with mode: 0644]

index d00cba624b2f5014d2eb3696de1e44412de01cac..7845ec87b97ddf644fc15575e2cdecf9d11ed0cc 100644 (file)
@@ -27,6 +27,7 @@ define('TMP',                 SYSTEM_DATA . 'tmp/');
 define('FILE_DIR',             SYSTEM_DATA . 'files/');
 define('CLASS_DIR',            INCLUDE_DIR . 'class/');
 define('EVENT_DIR',            INCLUDE_DIR . 'eventz/');
+define('TRANSPORT_DIR',                INCLUDE_DIR . 'transports/');
 define('SYSTEM_URL',           'kyberia.cz:8023');
 
 define('SYSTEM_SMTP',          'molly.kyberia.cz');
diff --git a/wwwroot/inc/transports/kyberia.sk.inc b/wwwroot/inc/transports/kyberia.sk.inc
new file mode 100644 (file)
index 0000000..23e40d2
--- /dev/null
@@ -0,0 +1,12 @@
+<?php
+$transport_name='kyberia.sk';
+
+global $transports;
+
+$transports[$transport_name]['get_node_content']=function($id, $protocol='http', $domain='kyberia.sk', $content_template='2019721') {
+       return file_get_contents("$protocol://$domain/id/$id/$content_template");
+};
+
+//echo $transports[$transport_name]['get_node_content'](2019721); //Example
+
+unset($transport_name);
This page took 0.110306 seconds and 4 git commands to generate.