From: <wis...@us...> - 2015-12-01 11:20:58
|
Revision: 13169 http://sourceforge.net/p/xoops/svn/13169 Author: wishcraft Date: 2015-12-01 11:20:55 +0000 (Tue, 01 Dec 2015) Log Message: ----------- Pingtrax -- the Pinglist and Trackback Automated module -- Pre-alpha 1.01 -- Planning Added Paths: ----------- XoopsModules/pingtrax/ XoopsModules/pingtrax/branches/ XoopsModules/pingtrax/releases/ XoopsModules/pingtrax/trunk/ XoopsModules/pingtrax/trunk/admin/ XoopsModules/pingtrax/trunk/admin/index.html XoopsModules/pingtrax/trunk/api/ XoopsModules/pingtrax/trunk/blocks/ XoopsModules/pingtrax/trunk/blocks/index.html XoopsModules/pingtrax/trunk/class/ XoopsModules/pingtrax/trunk/class/index.html XoopsModules/pingtrax/trunk/class/items.php XoopsModules/pingtrax/trunk/class/items_pings.php XoopsModules/pingtrax/trunk/class/items_sitemaps.php XoopsModules/pingtrax/trunk/class/pings.php XoopsModules/pingtrax/trunk/class/pings_sitemaps.php XoopsModules/pingtrax/trunk/class/plugins.php XoopsModules/pingtrax/trunk/class/sitemaps.php XoopsModules/pingtrax/trunk/class/trackback.php XoopsModules/pingtrax/trunk/images/ XoopsModules/pingtrax/trunk/images/logo.png XoopsModules/pingtrax/trunk/include/ XoopsModules/pingtrax/trunk/include/index.html XoopsModules/pingtrax/trunk/language/ XoopsModules/pingtrax/trunk/language/english/ XoopsModules/pingtrax/trunk/language/english/help/ XoopsModules/pingtrax/trunk/language/english/help/help.html XoopsModules/pingtrax/trunk/language/english/help/index.html XoopsModules/pingtrax/trunk/language/english/index.html XoopsModules/pingtrax/trunk/language/english/modinfo.php XoopsModules/pingtrax/trunk/language/index.html XoopsModules/pingtrax/trunk/plugins/ XoopsModules/pingtrax/trunk/plugins/default.php XoopsModules/pingtrax/trunk/plugins/index.html XoopsModules/pingtrax/trunk/preloads/ XoopsModules/pingtrax/trunk/preloads/index.html XoopsModules/pingtrax/trunk/preloads/ping.php XoopsModules/pingtrax/trunk/preloads/sitemap.php XoopsModules/pingtrax/trunk/preloads/trackback.php XoopsModules/pingtrax/trunk/sql/ XoopsModules/pingtrax/trunk/sql/index.html XoopsModules/pingtrax/trunk/sql/mysql.sql XoopsModules/pingtrax/trunk/sql/tables.json XoopsModules/pingtrax/trunk/templates/ XoopsModules/pingtrax/trunk/templates/admin/ XoopsModules/pingtrax/trunk/templates/admin/index.html XoopsModules/pingtrax/trunk/templates/blocks/ XoopsModules/pingtrax/trunk/templates/blocks/index.html XoopsModules/pingtrax/trunk/templates/index.html XoopsModules/pingtrax/trunk/xoops_version.php Added: XoopsModules/pingtrax/trunk/admin/index.html =================================================================== --- XoopsModules/pingtrax/trunk/admin/index.html (rev 0) +++ XoopsModules/pingtrax/trunk/admin/index.html 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/pingtrax/trunk/admin/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/pingtrax/trunk/blocks/index.html =================================================================== --- XoopsModules/pingtrax/trunk/blocks/index.html (rev 0) +++ XoopsModules/pingtrax/trunk/blocks/index.html 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/pingtrax/trunk/blocks/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/pingtrax/trunk/class/index.html =================================================================== --- XoopsModules/pingtrax/trunk/class/index.html (rev 0) +++ XoopsModules/pingtrax/trunk/class/index.html 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/pingtrax/trunk/class/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/pingtrax/trunk/class/items.php =================================================================== --- XoopsModules/pingtrax/trunk/class/items.php (rev 0) +++ XoopsModules/pingtrax/trunk/class/items.php 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1,114 @@ +<?php +/** + * Pintrax Database Class Handler module + * + * 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://sourceforge.net/projects/chronolabs/ + * @license GNU GPL 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Antony Roberts <wis...@us...> + * @see http://sourceforge.net/projects/xoops/ + * @see http://sourceforge.net/projects/chronolabs/ + * @see http://sourceforge.net/projects/chronolabsapi/ + * @see http://labs.coop + * @version 1.0.1 + * @since 1.0.1 + */ + + +/** + * Class PintraxItems + * + * @subpackage pingtrax + * + * Database MySQL Table:- + * + * CREATE TABLE `pingtrax_items` ( + * `id` mediumint(20) NOT NULL AUTO_INCREMENT, + * `referer` varchar(44) NOT NULL DEFAULT '', + * `type` enum('local','remote','unknown') NOT NULL DEFAULT 'unknown', + * `module-dirname` varchar(30) NOT NULL DEFAULT '', + * `module-class` varchar(100) NOT NULL DEFAULT '', + * `module-item-id` mediumint(30) NOT NULL DEFAULT '0', + * `module-php-self` varchar(150) NOT NULL DEFAULT '', + * `module-get` tinytext, + * `item-author-uid` int(13) NOT NULL DEFAULT '0', + * `item-author-name` varchar(64) NOT NULL DEFAULT '', + * `item-category-id` int(20) NOT NULL DEFAULT '0', + * `item-title` varchar(180) NOT NULL DEFAULT '', + * `item-description` varchar(250) NOT NULL DEFAULT '', + * `item-protocol` enum('https://','http://') NOT NULL DEFAULT 'http://', + * `item-domain` varchar(150) NOT NULL DEFAULT '', + * `item-referer-uri` varchar(250) NOT NULL DEFAULT '', + * `item-php-self` varchar(250) NOT NULL DEFAULT '', + * `feed-protocol` enum('https://','http://') NOT NULL DEFAULT 'http://', + * `feed-domain` varchar(150) NOT NULL DEFAULT '', + * `feed-referer-uri` varchar(250) NOT NULL DEFAULT '', + * `discovery-hook` enum('php','preloader','smarty','combination','unknown') NOT NULL DEFAULT 'unknown', + * `user-session` enum('admin','user','guest','unknown') NOT NULL DEFAULT 'unknown', + * `created` int(12) NOT NULL DEFAULT '0', + * `updated` int(12) NOT NULL DEFAULT '0', + * `offlined` int(12) NOT NULL DEFAULT '0', + * PRIMARY KEY (`id`), + * KEY `SEARCH` (`referer`,`item-author-uid`,`item-author-name`,`module-dirname`,`item-protocol`,`item-domain`,`item-referer-uri`,`module-php-self`,`item-php-self`,`discovery-hook`,`id`) KEY_BLOCK_SIZE=128, + * KEY `CHRONOLOGISTICS` (`id`,`referer`,`created`,`updated`,`offlined`) USING BTREE KEY_BLOCK_SIZE=64 + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8 PACK_KEYS=1 DELAY_KEY_WRITE=1 ROW_FORMAT=DYNAMIC KEY_BLOCK_SIZE=16; + */ +class PingtraxItems extends XoopsObject +{ + /** + * + */ + function __construct() + { + $this->XoopsObject(); + $this->initVar('id', XOBJ_DTYPE_INT, null, false); + $this->initVar('referer', XOBJ_DTYPE_OTHER, sha1(NULL), false, 44); + $this->initVar('type', XOBJ_DTYPE_ENUM, 'unknown', true, false, false, false, array('local','remote','unknown')); + $this->initVar('module-dirname', XOBJ_DTYPE_OTHER, '', false, 30); + $this->initVar('module-class', XOBJ_DTYPE_OTHER, '', false, 100); + $this->initVar('module-item-id', XOBJ_DTYPE_INT, 0, false); + $this->initVar('module-php-self', XOBJ_DTYPE_OTHER, '', false, 150); + $this->initVar('module-get', XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar('item-author-uid', XOBJ_DTYPE_INT, 0, false); + $this->initVar('item-author-name', XOBJ_DTYPE_TXTBOX, 0, false, 64); + $this->initVar('item-title', XOBJ_DTYPE_TXTBOX, 0, false, 180); + $this->initVar('item-description', XOBJ_DTYPE_TXTBOX, 0, false, 250); + $this->initVar('item-protocol', XOBJ_DTYPE_ENUM, XOOPS_PROT, true, false, false, false, array('https://','http://')); + $this->initVar('item-domain', XOBJ_DTYPE_TXTBOX, parse_url(XOOPS_URL, PHP_URL_HOST), true, 150); + $this->initVar('item-referer-uri', XOBJ_DTYPE_TXTBOX, $_SERVER["REQUEST_URI"], true, 250); + $this->initVar('item-php-self', XOBJ_DTYPE_TXTBOX, str_replace(XOOPS_ROOT_PATH, "", $_SERVER["PHP_SELF"]), true, 250); + $this->initVar('feed-protocol', XOBJ_DTYPE_ENUM, XOOPS_PROT, true, false, false, false, array('https://','http://')); + $this->initVar('feed-domain', XOBJ_DTYPE_TXTBOX, parse_url(XOOPS_URL, PHP_URL_HOST), true, 150); + $this->initVar('feed-referer-uri', XOBJ_DTYPE_TXTBOX, parse_url(XOOPS_URL, PHP_URL_PATH) . '/backend.php', true, 250); + $this->initVar('discovery-hook', XOBJ_DTYPE_ENUM, 'unknown', true, false, false, false, array('php','preloader','smarty','combination','unknown')); + $this->initVar('user-session', XOBJ_DTYPE_ENUM, 'unknown', true, false, false, false, array('admin','user','guest','unknown')); + $this->initVar('written', XOBJ_DTYPE_INT, 0, false); + $this->initVar('created', XOBJ_DTYPE_INT, 0, false); + $this->initVar('updated', XOBJ_DTYPE_INT, 0, false); + $this->initVar('offline', XOBJ_DTYPE_INT, 0, false); + } + +} + +/** + * Class PintraxItemsHandler + */ +class PintraxItemsHandler extends XoopsPersistableObjectHandler +{ + + /** + * @param null|object $db + */ + function __construct(&$db) + { + parent::__construct($db, "pingtrax_items", 'PingtraxItems', 'id', 'referer'); + } + + +} Added: XoopsModules/pingtrax/trunk/class/items_pings.php =================================================================== --- XoopsModules/pingtrax/trunk/class/items_pings.php (rev 0) +++ XoopsModules/pingtrax/trunk/class/items_pings.php 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1,73 @@ +<?php +/** + * Pintrax Database Class Handler module + * + * 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://sourceforge.net/projects/chronolabs/ + * @license GNU GPL 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Antony Roberts <wis...@us...> + * @see http://sourceforge.net/projects/xoops/ + * @see http://sourceforge.net/projects/chronolabs/ + * @see http://sourceforge.net/projects/chronolabsapi/ + * @see http://labs.coop + * @version 1.0.1 + * @since 1.0.1 + */ + + +/** + * Class PintraxItems_pings + * + * @subpackage itemtrax + * + * Database MySQL Table:- + * + * CREATE TABLE `pingtrax_items_pings` ( + * `id` mediumint(32) NOT NULL AUTO_INCREMENT, + * `ping-referer` varchar(44) NOT NULL DEFAULT '', + * `item-referer` varchar(44) NOT NULL DEFAULT '', + * `when` int(12) NOT NULL DEFAULT '0', + * PRIMARY KEY (`id`), + * KEY `SEARCH` (`id`,`ping-referer`,`item-referer`) USING BTREE, + * KEY `CHRONOLOGISTICS` (`ping-referer`,`item-referer`,`when`) USING BTREE KEY_BLOCK_SIZE=64 + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8 PACK_KEYS=1 CHECKSUM=1 DELAY_KEY_WRITE=1 ROW_FORMAT=DYNAMIC KEY_BLOCK_SIZE=8; + * + */ +class PingtraxItems_pings extends XoopsObject +{ + /** + * + */ + function __construct() + { + $this->XoopsObject(); + $this->initVar('id', XOBJ_DTYPE_INT, null, false); + $this->initVar('ping-referer', XOBJ_DTYPE_TXTBOX, null, true, 44); + $this->initVar('item-referer', XOBJ_DTYPE_TXTBOX, null, true, 44); + $this->initVar('when', XOBJ_DTYPE_INT, 0, false); + } + +} + +/** + * Class PintraxItems_pingsHandler + */ +class PintraxItems_pingsHandler extends XoopsPersistableObjectHandler +{ + + /** + * @param null|object $db + */ + function __construct(&$db) + { + parent::__construct($db, "pingtrax_items_pings", 'PingtraxItems_pings', 'id', 'ping-referer'); + } + + +} Added: XoopsModules/pingtrax/trunk/class/items_sitemaps.php =================================================================== --- XoopsModules/pingtrax/trunk/class/items_sitemaps.php (rev 0) +++ XoopsModules/pingtrax/trunk/class/items_sitemaps.php 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1,73 @@ +<?php +/** + * Pintrax Database Class Handler module + * + * 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://sourceforge.net/projects/chronolabs/ + * @license GNU GPL 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Antony Roberts <wis...@us...> + * @see http://sourceforge.net/projects/xoops/ + * @see http://sourceforge.net/projects/chronolabs/ + * @see http://sourceforge.net/projects/chronolabsapi/ + * @see http://labs.coop + * @version 1.0.1 + * @since 1.0.1 + */ + + +/** + * Class PintraxItems_sitemaps + * + * @subpackage itemtrax + * + * Database MySQL Table:- + * + * CREATE TABLE `itemtrax_items_sitemaps` ( + * `id` mediumint(32) NOT NULL AUTO_INCREMENT, + * `map-referer` varchar(44) NOT NULL DEFAULT '', + * `item-referer` varchar(44) NOT NULL DEFAULT '', + * `when` int(12) NOT NULL DEFAULT '0', + * PRIMARY KEY (`id`), + * KEY `SEARCH` (`id`,`map-referer`,`item-referer`) USING BTREE, + * KEY `CHRONOLOGISTICS` (`map-referer`,`item-referer`,`when`) USING BTREE KEY_BLOCK_SIZE=64 + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8 PACK_KEYS=1 CHECKSUM=1 DELAY_KEY_WRITE=1 ROW_FORMAT=DYNAMIC KEY_BLOCK_SIZE=8; + * + */ +class PingtraxItems_sitemaps extends XoopsObject +{ + /** + * + */ + function __construct() + { + $this->XoopsObject(); + $this->initVar('id', XOBJ_DTYPE_INT, null, false); + $this->initVar('map-referer', XOBJ_DTYPE_TXTBOX, null, true, 44); + $this->initVar('item-referer', XOBJ_DTYPE_TXTBOX, null, true, 44); + $this->initVar('when', XOBJ_DTYPE_INT, 0, false); + } + +} + +/** + * Class PintraxItems_sitemapsHandler + */ +class PintraxItems_sitemapsHandler extends XoopsPersistableObjectHandler +{ + + /** + * @param null|object $db + */ + function __construct(&$db) + { + parent::__construct($db, "itemtrax_items_sitemaps", 'PingtraxItems_sitemaps', 'id', 'map-referer'); + } + + +} Added: XoopsModules/pingtrax/trunk/class/pings.php =================================================================== --- XoopsModules/pingtrax/trunk/class/pings.php (rev 0) +++ XoopsModules/pingtrax/trunk/class/pings.php 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1,92 @@ +<?php +/** + * Pintrax Database Class Handler module + * + * 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://sourceforge.net/projects/chronolabs/ + * @license GNU GPL 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Antony Roberts <wis...@us...> + * @see http://sourceforge.net/projects/xoops/ + * @see http://sourceforge.net/projects/chronolabs/ + * @see http://sourceforge.net/projects/chronolabsapi/ + * @see http://labs.coop + * @version 1.0.1 + * @since 1.0.1 + */ + + +/** + * Class PintraxPings + * + * @subpackage pingtrax + * + * Database MySQL Table:- + * + * CREATE TABLE `pingtrax_pings` ( + * `id` int(14) NOT NULL AUTO_INCREMENT, + * `referer` varchar(44) NOT NULL DEFAULT '', + * `type` enum('XML-RPC','SITEMAPS') NOT NULL DEFAULT 'XML-RPC', + * `uri` varchar(250) NOT NULL DEFAULT '', + * `last-item-referer` varchar(44) NOT NULL DEFAULT '', + * `successful-pings` int(18) NOT NULL DEFAULT '0', + * `failed-pings` int(18) NOT NULL DEFAULT '0', + * `sleep-till` int(12) NOT NULL DEFAULT '0', + * `success-time` int(12) NOT NULL DEFAULT '0', + * `failure-time` int(12) NOT NULL DEFAULT '0', + * `created` int(12) NOT NULL DEFAULT '0', + * `updated` int(12) NOT NULL DEFAULT '0', + * `offlined` int(12) NOT NULL DEFAULT '0', + * PRIMARY KEY (`id`,`referer`,`type`,`uri`), + * KEY `SEARCH` (`referer`,`type`,`uri`,`last-item-referer`,`successful-pings`,`failed-pings`,`id`) USING BTREE, + * KEY `CHRONOLOGISTICS` (`id`,`referer`,`created`,`updated`,`offlined`,`failure-time`,`success-time`,`sleep-till`) USING BTREE KEY_BLOCK_SIZE=128 + * ) ENGINE=InnoDB AUTO_INCREMENT=150 DEFAULT CHARSET=utf8 PACK_KEYS=1 CHECKSUM=1 DELAY_KEY_WRITE=1 ROW_FORMAT=DYNAMIC KEY_BLOCK_SIZE=16; + * + */ +class PingtraxPings extends XoopsObject +{ + /** + * + */ + function __construct() + { + $this->XoopsObject(); + $this->initVar('id', XOBJ_DTYPE_INT, null, false); + $this->initVar('referer', XOBJ_DTYPE_OTHER, sha1(NULL), false, 44); + $this->initVar('type', XOBJ_DTYPE_ENUM, 'XML-RPC', true, false, false, false, array('XML-RPC','SITEMAPS')); + $this->initVar('uri', XOBJ_DTYPE_TXTBOX, null, true, 250); + $this->initVar('last-item-referer', XOBJ_DTYPE_OTHER, sha1(NULL), false, 44); + $this->initVar('successful-pings', XOBJ_DTYPE_INT, 0, false); + $this->initVar('failed-pings', XOBJ_DTYPE_INT, 0, false); + $this->initVar('sleep-till', XOBJ_DTYPE_INT, 0, false); + $this->initVar('success-time', XOBJ_DTYPE_INT, 0, false); + $this->initVar('failure-time', XOBJ_DTYPE_INT, 0, false); + $this->initVar('written', XOBJ_DTYPE_INT, 0, false); + $this->initVar('created', XOBJ_DTYPE_INT, 0, false); + $this->initVar('updated', XOBJ_DTYPE_INT, 0, false); + $this->initVar('offline', XOBJ_DTYPE_INT, 0, false); + } + +} + +/** + * Class PintraxPingsHandler + */ +class PintraxPingsHandler extends XoopsPersistableObjectHandler +{ + + /** + * @param null|object $db + */ + function __construct(&$db) + { + parent::__construct($db, "pingtrax_pings", 'PingtraxPings', 'id', 'referer'); + } + + +} Added: XoopsModules/pingtrax/trunk/class/pings_sitemaps.php =================================================================== --- XoopsModules/pingtrax/trunk/class/pings_sitemaps.php (rev 0) +++ XoopsModules/pingtrax/trunk/class/pings_sitemaps.php 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1,73 @@ +<?php +/** + * Pintrax Database Class Handler module + * + * 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://sourceforge.net/projects/chronolabs/ + * @license GNU GPL 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Antony Roberts <wis...@us...> + * @see http://sourceforge.net/projects/xoops/ + * @see http://sourceforge.net/projects/chronolabs/ + * @see http://sourceforge.net/projects/chronolabsapi/ + * @see http://labs.coop + * @version 1.0.1 + * @since 1.0.1 + */ + + +/** + * Class PintraxPings_sitemaps + * + * @subpackage pingtrax + * + * Database MySQL Table:- + * + * CREATE TABLE `pingtrax_pings_sitemaps` ( + * `id` mediumint(32) NOT NULL AUTO_INCREMENT, + * `map-referer` varchar(44) NOT NULL DEFAULT '', + * `ping-referer` varchar(44) NOT NULL DEFAULT '', + * `when` int(12) NOT NULL DEFAULT '0', + * PRIMARY KEY (`id`), + * KEY `SEARCH` (`id`,`map-referer`,`ping-referer`) USING BTREE, + * KEY `CHRONOLOGISTICS` (`map-referer`,`ping-referer`,`when`) USING BTREE KEY_BLOCK_SIZE=64 + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8 PACK_KEYS=1 CHECKSUM=1 DELAY_KEY_WRITE=1 ROW_FORMAT=DYNAMIC KEY_BLOCK_SIZE=8; + * + */ +class PingtraxPings_sitemaps extends XoopsObject +{ + /** + * + */ + function __construct() + { + $this->XoopsObject(); + $this->initVar('id', XOBJ_DTYPE_INT, null, false); + $this->initVar('map-referer', XOBJ_DTYPE_TXTBOX, null, true, 44); + $this->initVar('ping-referer', XOBJ_DTYPE_TXTBOX, null, true, 44); + $this->initVar('when', XOBJ_DTYPE_INT, 0, false); + } + +} + +/** + * Class PintraxPings_sitemapsHandler + */ +class PintraxPings_sitemapsHandler extends XoopsPersistableObjectHandler +{ + + /** + * @param null|object $db + */ + function __construct(&$db) + { + parent::__construct($db, "pingtrax_pings_sitemaps", 'PingtraxPings_sitemaps', 'id', 'map-referer'); + } + + +} Added: XoopsModules/pingtrax/trunk/class/plugins.php =================================================================== --- XoopsModules/pingtrax/trunk/class/plugins.php (rev 0) +++ XoopsModules/pingtrax/trunk/class/plugins.php 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1,51 @@ +<?php +/** + * PingTrax Constructor for Plugin's + * + * 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://sourceforge.net/projects/chronolabs/ + * @license GNU GPL 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Antony Roberts <wis...@us...> + * @see http://sourceforge.net/projects/xoops/ + * @see http://sourceforge.net/projects/chronolabs/ + * @see http://sourceforge.net/projects/chronolabsapi/ + * @see http://labs.coop + * @version 1.0.1 + * @since 1.0.1 + */ + +defined('XOOPS_ROOT_PATH') || die('XOOPS root path not defined'); + +/** + * Class PingtraxPluginsDefault + */ +class PingtraxPlugins +{ + /** + * @param $args + + function eventCoreIncludeFunctionsRedirectheader($args) + { + $context = stream_context_create(array('http' => array( + 'method' => "POST", + 'header' => "Content-Type: text/xml\r\n", + 'content' => $xml + ))); + $file = @file_get_contents($post_to, false, $context); + if ($file === false) { echo '<p>Couldn\'t connect!</p>'; } + elseif ($file) { + echo '<p>The following response was returned:</p>'; + echo '<pre>'.htmlspecialchars($file).'</pre>'; + } else { + echo '<p>Empty response!</p>'; + } + } + */ + +} Added: XoopsModules/pingtrax/trunk/class/sitemaps.php =================================================================== --- XoopsModules/pingtrax/trunk/class/sitemaps.php (rev 0) +++ XoopsModules/pingtrax/trunk/class/sitemaps.php 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1,98 @@ +<?php +/** + * Pintrax Database Class Handler module + * + * 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://sourceforge.net/projects/chronolabs/ + * @license GNU GPL 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Antony Roberts <wis...@us...> + * @see http://sourceforge.net/projects/xoops/ + * @see http://sourceforge.net/projects/chronolabs/ + * @see http://sourceforge.net/projects/chronolabsapi/ + * @see http://labs.coop + * @version 1.0.1 + * @since 1.0.1 + */ + + +/** + * Class PintraxSitemaps + * + * Database MySQL Table:- + * + * CREATE TABLE `pingtrax_sitemaps` ( + * `id` int(10) NOT NULL AUTO_INCREMENT, + * `referer` varchar(44) NOT NULL DEFAULT '', + * `protocol` enum('https://','http://') NOT NULL DEFAULT 'http://', + * `domain` varchar(100) NOT NULL DEFAULT '', + * `baseurl` varchar(100) NOT NULL DEFAULT '', + * `filename` varchar(65) NOT NULL DEFAULT '', + * `items` int(18) NOT NULL DEFAULT '0', + * `bytes` int(18) NOT NULL DEFAULT '0', + * `successful-pings` int(18) NOT NULL DEFAULT '0', + * `failed-pings` int(18) NOT NULL DEFAULT '0', + * `sleep-till` int(12) NOT NULL DEFAULT '0', + * `success-time` int(12) NOT NULL DEFAULT '0', + * `failure-time` int(12) NOT NULL DEFAULT '0', + * `written` int(12) NOT NULL DEFAULT '0', + * `created` int(12) NOT NULL DEFAULT '0', + * `updated` int(12) NOT NULL DEFAULT '0', + * `offlined` int(12) NOT NULL DEFAULT '0', + * PRIMARY KEY (`id`), + * KEY `SEARCH` (`id`,`referer`,`protocol`,`filename`,`domain`,`baseurl`) USING BTREE, + * KEY `CHRONOLOGISTICS` (`id`,`written`,`created`,`updated`,`offlined`,`referer`) USING BTREE KEY_BLOCK_SIZE=64 + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8 PACK_KEYS=1 CHECKSUM=1 DELAY_KEY_WRITE=1 ROW_FORMAT=DYNAMIC KEY_BLOCK_SIZE=16; + * + * @subpackage pingtrax + */ +class PingtraxSitemaps extends XoopsObject +{ + /** + * + */ + function __construct() + { + $this->XoopsObject(); + $this->initVar('id', XOBJ_DTYPE_INT, null, false); + $this->initVar('referer', XOBJ_DTYPE_OTHER, sha1(NULL), true, 44); + $this->initVar('protocol', XOBJ_DTYPE_ENUM, 'http://', true, false, false, false, array('https://','http://')); + $this->initVar('domain', XOBJ_DTYPE_TXTBOX, parse_url(XOOPS_URL, PHP_URL_HOST), true, 100); + $this->initVar('baseurl', XOBJ_DTYPE_TXTBOX, parse_url(XOOPS_URL, PHP_URL_PATH), true, 100); + $this->initVar('filename', XOBJ_DTYPE_TXTBOX, 'sitemap.'.parse_url(XOOPS_URL, PHP_URL_HOST).'.xml', true, 64); + $this->initVar('items', XOBJ_DTYPE_INT, 0, false); + $this->initVar('bytes', XOBJ_DTYPE_INT, 0, false); + $this->initVar('successful-pings', XOBJ_DTYPE_INT, 0, false); + $this->initVar('failed-pings', XOBJ_DTYPE_INT, 0, false); + $this->initVar('sleep-till', XOBJ_DTYPE_INT, 0, false); + $this->initVar('success-time', XOBJ_DTYPE_INT, 0, false); + $this->initVar('failure-time', XOBJ_DTYPE_INT, 0, false); + $this->initVar('written', XOBJ_DTYPE_INT, 0, false); + $this->initVar('created', XOBJ_DTYPE_INT, 0, false); + $this->initVar('updated', XOBJ_DTYPE_INT, 0, false); + $this->initVar('offline', XOBJ_DTYPE_INT, 0, false); + } + +} + +/** + * Class PintraxSitemapsHandler + */ +class PintraxSitemapsHandler extends XoopsPersistableObjectHandler +{ + + /** + * @param null|object $db + */ + function __construct(&$db) + { + parent::__construct($db, "pingtrax_sitemaps", 'PingtraxSitemaps', 'id', 'referer'); + } + + +} Added: XoopsModules/pingtrax/trunk/class/trackback.php =================================================================== --- XoopsModules/pingtrax/trunk/class/trackback.php (rev 0) +++ XoopsModules/pingtrax/trunk/class/trackback.php 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1,442 @@ +<?php +/** + * PingTrax Constructor for Plugin's + * + * 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://sourceforge.net/projects/chronolabs/ + * @license GNU GPL 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Antony Roberts <wis...@us...> + * @see http://sourceforge.net/projects/xoops/ + * @see http://sourceforge.net/projects/chronolabs/ + * @see http://sourceforge.net/projects/chronolabsapi/ + * @see http://labs.coop + * @version 1.0.1 + * @since 1.0.1 + */ + +defined('XOOPS_ROOT_PATH') || die('XOOPS root path not defined'); + +/** + * Class PingtraxTrackback + * + * @param string $blog_name + * @param string $author + * @param string $encoding + */ +class PingtraxTrackback { + + var $blog_name = ''; // Default blog name used throughout the class (ie. Chronolabs Cooperative) + var $author = ''; // Default author name used throughout the class (ie. Simon Antony Roberts) + var $encoding = ''; // Default encoding used throughout the class (ie. UTF-8) + var $get_id = ''; // Retreives and holds $_GET['id'] (if not empty) + var $post_id = ''; // Retreives and holds $_POST['id'] (if not empty) + var $url = ''; // Retreives and holds $_POST['url'] (if not empty) + var $title = ''; // Retreives and holds $_POST['title'] (if not empty) + var $expert = ''; // Retreives and holds $_POST['expert'] (if not empty) + /** + * Class Constructure + * + * @param string $blog_name + * @param string $author + * @param string $encoding + * @return + */ + function PingtraxTrackback($blog_name, $author, $encoding = "UTF-8") + { + $this->blog_name = $blog_name; + $this->author = $author; + $this->encoding = $encoding; + + // Gather $_POST information + if (isset($_GET['id'])) { + $this->get_id = $_GET['id']; + } + if (isset($_POST['id'])) { + $this->post_id = $_POST['id']; + } + if (isset($_POST['url'])) { + $this->url = $_POST['url']; + } + if (isset($_POST['title'])) { + $this->title = $_POST['url']; + } + if (isset($_POST['expert'])) { + $this->expert = $_POST['expert']; + } + } + + /** + * Sends a trackback ping to a specified trackback URL. + * allowing clients to auto-discover the TrackBack Ping URL. + * + * <code><?php + * include('trackback.php'); + * $trackback = new PingtraxTrackback('Chronolabs Cooperative', 'Simon Antony Roberts', 'UTF-8'); + * if ($trackback->ping('http://example.com/modules/pingtrax/api/', 'http://your-url.com', 'Your entry title')) { + * echo "PingtraxTrackback sent successfully..."; + * } else { + * echo "Error sending trackback...."; + * } + * ?></code> + * + * @param string $trackback + * @param string $url + * @param string $title + * @param string $excerpt + * @return boolean + */ + function ping($trackback, $url, $title = "", $excerpt = "") + { + $response = ""; + $reason = ""; + // Set default values + if (empty($title)) { + $title = "PingtraxTrackbacking your entry..."; + } + if (empty($excerpt)) { + $excerpt = "I found your entry interesting do I've added a PingtraxTrackback to it on my weblog :)"; + } + // Parse the target + $target = parse_url($trackback); + + if ((isset($target["query"])) && ($target["query"] != "")) { + $target["query"] = "?" . $target["query"]; + } else { + $target["query"] = ""; + } + + if ((isset($target["port"]) && !is_numeric($target["port"])) || (!isset($target["port"]))) { + $target["port"] = 80; + } + // Open the socket + $trackback_sock = fsockopen($target["host"], $target["port"]); + // Something didn't work out, return + if (!is_resource($trackback_sock)) { + return '$trackback->ping: can\'t connect to: ' . $trackback . '.'; + exit; + } + // Put together the things we want to send + $trackback_send = "url=" . rawurlencode($url) . "&title=" . rawurlencode($title) . "&blog_name=" . rawurlencode($this->blog_name) . "&excerpt=" . rawurlencode($excerpt); + // Send the trackback + fputs($trackback_sock, "POST " . $target["path"] . $target["query"] . " HTTP/1.1\r\n"); + fputs($trackback_sock, "Host: " . $target["host"] . "\r\n"); + fputs($trackback_sock, "Content-type: application/x-www-form-urlencoded\r\n"); + fputs($trackback_sock, "Content-length: " . strlen($trackback_send) . "\r\n"); + fputs($trackback_sock, "Connection: close\r\n\r\n"); + fputs($trackback_sock, $trackback_send); + // Gather result + while (!feof($trackback_sock)) { + $response .= fgets($trackback_sock, 128); + } + // Close socket + fclose($trackback_sock); + // Did the trackback ping work + strpos($response, '<error>0</error>') ? $return = true : $return = false; + // send result + return $return; + } + + /** + * Produces XML response for trackbackers with ok/error message. + * + * <code><?php + * // Set page header to XML + * header('Content-Type: text/xml'); // MUST be the 1st line + * // + * // Instantiate the class + * // + * include('trackback.php'); + * $trackback = new PingtraxTrackback('Chronolabs Cooperative', 'Simon Antony Roberts', 'UTF-8'); + * // + * // Get trackback information + * // + * $trackback_id = $trackback->post_id; // The id of the item being trackbacked + * $trackback_url = $trackback->url; // The URL from which we got the trackback + * $trackback_title = $trackback->title; // Subject/title send by trackback + * $trackback_expert = $trackback->expert; // Short text send by trackback + * // + * // Do whatever to log the trackback (save in DB, flatfile, etc...) + * // + * if (TRACKBACK_LOGGED_SUCCESSFULLY) { + * // Logged successfully... + * echo $trackback->recieve(true); + * } else { + * // Something went wrong... + * echo $trackback->recieve(false, 'Explain why you return error'); + * } + * ?></code> + * + * @param boolean $success + * @param string $err_response + * @return boolean + */ + function recieve($success = false, $err_response = "") + { + // Default error response in case of problems... + if (!$success && empty($err_response)) { + $err_response = "An error occured while tring to log your trackback..."; + } + // Start response to trackbacker... + $return = '<?xml version="1.0" encoding="' . $this->encoding . '"?>' . "\n"; + $return .= "<response> \n"; + // Send back response... + if ($success) { + // PingtraxTrackback received successfully... + $return .= " <error>0</error> \n"; + } else { + // Something went wrong... + $return .= " <error>1</error> \n"; + $return .= " <message>" . $this->xml_safe($err_response) . "</message>\n"; + } + // End response to trackbacker... + $return .= "</response>"; + + return $return; + } + + /** + * Feteched trackback information and produces an RSS-0.91 feed. + * + * <code><?php + * // 1 + * header('Content-Type: text/xml'); // MUST be the 1st line + * // 2 + * include('trackback.php'); + * $trackback = new PingtraxTrackback('Chronolabs Cooperative', 'Simon Antony Roberts', 'UTF-8'); + * // 3 + * $trackback_id = $trackback->get_id; + * // 4 + * Do whatever to get trackback information by ID (search db, etc...) + * if (GOT_TRACKBACK_INFO) { + * // Successful - pass trackback info as array()... + * $trackback_info = array('title' => string TRACKBACK_TITLE, + * 'expert' => string TRACKBACK_EXPERT, + * 'permalink' => string PERMALINK_URL, + * 'trackback' => string TRACKBACK_URL + * ); + * echo $trackback->fetch(true, $trackback_info); + * } else { + * // Something went wrong - tell my why... + * echo $trackback->fetch(false, string RESPONSE); + * } + * ?></code> + * + * @param boolean $success + * @param string $response + * @return string XML response to the caller + */ + function fetch($success = false, $response = "") + { + if (!$success && empty($response)) { + $response = "An error occured while tring to retreive trackback information..."; + } + // Start response to caller + $return = '<?xml version="1.0" encoding="' . $this->encoding . '"?>' . "\n"; + $return .= "<response> \n"; + // Send back response... + if ($success) { + // PingtraxTrackback retreived successfully... + // Sending back an RSS (0.91) - trackback information from $response (array)... + $return .= " <error>0</error> \n"; + $return .= " <rss version=\"0.91\"> \n"; + $return .= " <channel> \n"; + $return .= " <title>" . $this->xml_safe($response['title']) . "</title> \n"; + $return .= " <link>" . $this->xml_safe($response['trackback']) . "</link> \n"; + $return .= " <description>" . $this->xml_safe($response['expert']) . "</description> \n"; + $return .= " <item> \n"; + $return .= " <title>" . $this->xml_safe($response['title']) . "</title> \n"; + $return .= " <link>" . $this->xml_safe($response['permalink']) . "</link> \n"; + $return .= " <description>" . $this->xml_safe($response['expert']) . "</description> \n"; + $return .= " </item> \n"; + $return .= " </channel> \n"; + $return .= " </rss> \n"; + } else { + // Something went wrong - provide reason from $response (string)... + $return .= " <error>1</error> \n"; + $return .= " <message>" . $this->xml_safe($response) . "</message>\n"; + } + // End response to trackbacker + $return .= "</response>"; + + return $return; + } + + /** + * Produces embedded RDF representing metadata about the entry, + * allowing clients to auto-discover the TrackBack Ping URL. + * + * NOTE: DATE should be string in RFC822 Format - Use RFC822_from_datetime(). + * + * <code><?php + * include('trackback.php'); + * $trackback = new PingtraxTrackback('Chronolabs Cooperative', 'Simon Antony Roberts', 'UTF-8'); + * + * echo $trackback->rdf_autodiscover(string DATE, string TITLE, string EXPERT, string PERMALINK, string TRACKBACK [, string AUTHOR]); + * ?></code> + * + * @param string $RFC822_date + * @param string $title + * @param string $expert + * @param string $permalink + * @param string $trackback + * @param string $author + * @return string + */ + function rdf_autodiscover($RFC822_date, $title, $expert, $permalink, $trackback, $author = "") + { + if (!$author) { + $author = $this->author; + } + + $return = "<!-- \n"; + $return .= "<rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" \n"; + $return .= " xmlns:dc=\"http://purl.org/dc/elements/1.1/\" \n"; + $return .= " xmlns:trackback=\"http://madskills.com/public/xml/rss/module/trackback/\"> \n"; + $return .= "<rdf:Description \n"; + $return .= " rdf:about=\"" . $this->xml_safe($permalink) . "\" \n"; + $return .= " dc:identifier=\"" . $this->xml_safe($permalink) . "\" \n"; + $return .= " trackback:ping=\"" . $this->xml_safe($trackback) . "\" \n"; + $return .= " dc:title=\"" . $this->xml_safe($title) . "\" \n"; + $return .= " dc:subject=\"TrackBack\" \n"; + $return .= " dc:description=\"" . $this->xml_safe($this->cut_short($expert)) . "\" \n"; + $return .= " dc:creator=\"" . $this->xml_safe($author) . "\" \n"; + $return .= " dc:date=\"" . $RFC822_date . "\" /> \n"; + $return .= "</rdf:RDF> \n"; + $return .= "--> \n"; + + return $return; + } + + /** + * Search text for links, and searches links for trackback URLs. + * + * <code><?php + * + * include('trackback.php'); + * $trackback = new PingtraxTrackback('Chronolabs Cooperative', 'Simon Antony Roberts', 'UTF-8'); + * + * if ($trackback_array = $trackback->auto_discovery(string TEXT)) { + * // Found trackbacks in TEXT. Looping... + * foreach($trackback_array as $trackback_key => $trackback_url) { + * // Attempt to ping each one... + * if ($trackback->ping($trackback_url, string URL, [string TITLE], [string EXPERT])) { + * // Successful ping... + * echo "PingtraxTrackback sent to <i>$trackback_url</i>...\n"; + * } else { + * // Error pinging... + * echo "PingtraxTrackback to <i>$trackback_url</i> failed....\n"; + * } + * } + * } else { + * // No trackbacks in TEXT... + * echo "No trackbacks were auto-discover...\n" + * } + * ?></code> + * + * @param string $text + * @return array PingtraxTrackback URLs. + */ + function auto_discovery($text) + { + // Get a list of UNIQUE links from text... + // --------------------------------------- + // RegExp to look for (0=>link, 4=>host in 'replace') + $reg_exp = "/(http)+(s)?:(\\/\\/)((\\w|\\.)+)(\\/)?(\\S+)?/i"; + // Make sure each link ends with [sapce] + $text = eregi_replace("www.", "http://www.", $text); + $text = eregi_replace("http://http://", "http://", $text); + $text = eregi_replace("\"", " \"", $text); + $text = eregi_replace("'", " '", $text); + $text = eregi_replace(">", " >", $text); + // Create an array with unique links + $uri_array = array(); + if (preg_match_all($reg_exp, strip_tags($text, "<a>"), $array, PREG_PATTERN_ORDER)) { + foreach($array[0] as $key => $link) { + foreach((array(",", ".", ":", ";")) as $t_key => $t_value) { + $link = trim($link, $t_value); + } + $uri_array[] = ($link); + } + $uri_array = array_unique($uri_array); + } + // Get the trackback URIs from those links... + // ------------------------------------------ + // Loop through the URIs array and extract RDF segments + $rdf_array = array(); // <- holds list of RDF segments + foreach($uri_array as $key => $link) { + if ($link_content = implode("", @file($link))) { + preg_match_all('/(<rdf:RDF.*?<\/rdf:RDF>)/sm', $link_content, $link_rdf, PREG_SET_ORDER); + for ($i = 0; $i < count($link_rdf); $i++) { + if (preg_match('|dc:identifier="' . preg_quote($link) . '"|ms', $link_rdf[$i][1])) { + $rdf_array[] = trim($link_rdf[$i][1]); + } + } + } + } + // Loop through the RDFs array and extract trackback URIs + $trackback_array = array(); // <- holds list of trackback URIs + if (!empty($rdf_array)) { + for ($i = 0; $i < count($rdf_array); $i++) { + if (preg_match('/trackback:ping="([^"]+)"/', $rdf_array[$i], $array)) { + $trackback_array[] = trim($array[1]); + } + } + } + // Return Trackbacks + return $trackback_array; + } + + /** + * Other Useful functions used in this class + */ + + /** + * Converts MySQL datetime to a standart RFC 822 date format + * + * @param string $datetime + * @return string RFC 822 date + */ + function RFC822_from_datetime($datetime) + { + $timestamp = mktime( + substr($datetime, 8, 2), substr($datetime, 10, 2), substr($datetime, 12, 2), + substr($datetime, 4, 2), substr($datetime, 6, 2), substr($datetime, 0, 4) + ); + return date("r", $timestamp); + } + + /** + * Converts a string into an XML-safe string (replaces &, <, >, " and ') + * + * @param string $string + * @return string + */ + function xml_safe($string) + { + return htmlspecialchars($string, ENT_QUOTES); + } + + /** + * Cuts a string short (with "...") accroding to $max_length... + * + * @param string $string + * @param integer $max_length + * @return string + */ + function cut_short($string, $max_length = 255) + { + if (strlen($string) > $max_length) { + $string = substr($string, 0, $max_length) . '...'; + } + + return $string; + } +} + +?> \ No newline at end of file Added: XoopsModules/pingtrax/trunk/images/logo.png =================================================================== (Binary files differ) Index: XoopsModules/pingtrax/trunk/images/logo.png =================================================================== --- XoopsModules/pingtrax/trunk/images/logo.png 2015-11-24 16:41:43 UTC (rev 13168) +++ XoopsModules/pingtrax/trunk/images/logo.png 2015-12-01 11:20:55 UTC (rev 13169) Property changes on: XoopsModules/pingtrax/trunk/images/logo.png ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Added: XoopsModules/pingtrax/trunk/include/index.html =================================================================== --- XoopsModules/pingtrax/trunk/include/index.html (rev 0) +++ XoopsModules/pingtrax/trunk/include/index.html 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/pingtrax/trunk/include/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/pingtrax/trunk/language/english/help/help.html =================================================================== --- XoopsModules/pingtrax/trunk/language/english/help/help.html (rev 0) +++ XoopsModules/pingtrax/trunk/language/english/help/help.html 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1,19 @@ +<div id="help-template" class="outer"> + <h1 class="head">Help: <a class="ui-corner-all tooltip" href="<{$xoops_url}>/modules/pm/admin/admin.php" title="Back to the administration of PM"> Private Messaging <img src="<{xoAdminIcons home.png}>" alt="Back to the administration of PM"/></a></h1> + <!-- -----Help Content ---------- --> + <h4 class="odd">Description</h4> + <p class="even">The PM module is for private messaging between users</p> + <h4 class="odd">Install/uninstall</h4> + <p>No special measures necessary, follow the standard installation process – extract the /pm folder into the ../modules directory. Install the module through Admin -> System Module -> Modules.</p> + <p>Detailed instructions on installing modules are available in the <a href="http://goo.gl/adT2i" title="XOOPS Operations Manual">XOOPS Operations Manual</a> </p> + <h4 class="odd">Operating instructions</h4> + <p class="even">To set up this module you need to:</p> + <ul> + <li>You enter your Inbox directly from the front page, or by clicking on the top link “Go to module” in the PM's Admin area.</li> + <li>Configure your preferences for the module (see “Preferences”) and optionally the PM block if you intend to use it (see “Blocks”).</li> + <li>You can do mass deleting of your messages by using the “Prune” Messages" tab.</li> + </ul> + <h4 class="odd">Tutorial</h4> + <p class="even">Tutorial coming soon.</p> + <!-- -----Help Content ---------- --> +</div> \ No newline at end of file Property changes on: XoopsModules/pingtrax/trunk/language/english/help/help.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/pingtrax/trunk/language/english/help/index.html =================================================================== --- XoopsModules/pingtrax/trunk/language/english/help/index.html (rev 0) +++ XoopsModules/pingtrax/trunk/language/english/help/index.html 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1 @@ +<script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/pingtrax/trunk/language/english/help/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/pingtrax/trunk/language/english/index.html =================================================================== --- XoopsModules/pingtrax/trunk/language/english/index.html (rev 0) +++ XoopsModules/pingtrax/trunk/language/english/index.html 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/pingtrax/trunk/language/english/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/pingtrax/trunk/language/english/modinfo.php =================================================================== --- XoopsModules/pingtrax/trunk/language/english/modinfo.php (rev 0) +++ XoopsModules/pingtrax/trunk/language/english/modinfo.php 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1,14 @@ +<?php +// $Id: modinfo.php 12363 2014-03-08 10:39:06Z beckmi $ +// _LANGCODE: en +// _CHARSET : UTF-8 +// Translator: XOOPS Translation Team +define('_IPV4_MI_NAME',"IPv4 Debt"); +define('_IPV4_MI_DESC',"Module for displaying the IPv4 debt to Chronolabs Cooperative"); +define('_IPV4_MI_HTACCESS',"Support HTACCESS"); +define('_IPV4_MI_HTACCESS_DESC',"This will enable support for htaccess"); +define('_IPV4_MI_BASEURL',"Base URL for htaccess"); +define('_IPV4_MI_BASEURL_DESC',"This is the base URL of htaccess"); +define('_IPV4_MI_ENDURL',"End of URL"); +define('_IPV4_MI_ENDURL_DESC',""); + Property changes on: XoopsModules/pingtrax/trunk/language/english/modinfo.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/pingtrax/trunk/language/index.html =================================================================== --- XoopsModules/pingtrax/trunk/language/index.html (rev 0) +++ XoopsModules/pingtrax/trunk/language/index.html 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/pingtrax/trunk/language/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/pingtrax/trunk/plugins/default.php =================================================================== --- XoopsModules/pingtrax/trunk/plugins/default.php (rev 0) +++ XoopsModules/pingtrax/trunk/plugins/default.php 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1,51 @@ +<?php +/** + * PingTrax Default Plugin + * + * 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://sourceforge.net/projects/chronolabs/ + * @license GNU GPL 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Antony Roberts <wis...@us...> + * @see http://sourceforge.net/projects/xoops/ + * @see http://sourceforge.net/projects/chronolabs/ + * @see http://sourceforge.net/projects/chronolabsapi/ + * @see http://labs.coop + * @version 1.0.1 + * @since 1.0.1 + */ + +defined('XOOPS_ROOT_PATH') || die('XOOPS root path not defined'); + +/** + * Class PingtraxPluginsDefault + */ +class PingtraxPluginsDefault extends PingtraxPlugins +{ + /** + * @param $args + + function eventCoreIncludeFunctionsRedirectheader($args) + { + $context = stream_context_create(array('http' => array( + 'method' => "POST", + 'header' => "Content-Type: text/xml\r\n", + 'content' => $xml + ))); + $file = @file_get_contents($post_to, false, $context); + if ($file === false) { echo '<p>Couldn\'t connect!</p>'; } + elseif ($file) { + echo '<p>The following response was returned:</p>'; + echo '<pre>'.htmlspecialchars($file).'</pre>'; + } else { + echo '<p>Empty response!</p>'; + } + } + */ + +} Added: XoopsModules/pingtrax/trunk/plugins/index.html =================================================================== --- XoopsModules/pingtrax/trunk/plugins/index.html (rev 0) +++ XoopsModules/pingtrax/trunk/plugins/index.html 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/pingtrax/trunk/plugins/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/pingtrax/trunk/preloads/index.html =================================================================== --- XoopsModules/pingtrax/trunk/preloads/index.html (rev 0) +++ XoopsModules/pingtrax/trunk/preloads/index.html 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/pingtrax/trunk/preloads/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/pingtrax/trunk/preloads/ping.php =================================================================== --- XoopsModules/pingtrax/trunk/preloads/ping.php (rev 0) +++ XoopsModules/pingtrax/trunk/preloads/ping.php 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1,51 @@ +<?php +/** + * PingTrax Preloads + * + * 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://sourceforge.net/projects/chronolabs/ + * @license GNU GPL 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Antony Roberts <wis...@us...> + * @see http://sourceforge.net/projects/xoops/ + * @see http://sourceforge.net/projects/chronolabs/ + * @see http://sourceforge.net/projects/chronolabsapi/ + * @see http://labs.coop + * @version 1.0.1 + * @since 1.0.1 + */ + +defined('XOOPS_ROOT_PATH') || die('XOOPS root path not defined'); + +/** + * Class PingtraxPingPreload + */ +class PingtraxPingPreload extends XoopsPreloadItem +{ + /** + * @param $args + + function eventCoreIncludeFunctionsRedirectheader($args) + { + $context = stream_context_create(array('http' => array( + 'method' => "POST", + 'header' => "Content-Type: text/xml\r\n", + 'content' => $xml + ))); + $file = @file_get_contents($post_to, false, $context); + if ($file === false) { echo '<p>Couldn\'t connect!</p>'; } + elseif ($file) { + echo '<p>The following response was returned:</p>'; + echo '<pre>'.htmlspecialchars($file).'</pre>'; + } else { + echo '<p>Empty response!</p>'; + } + } + */ + +} Property changes on: XoopsModules/pingtrax/trunk/preloads/ping.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/pingtrax/trunk/preloads/sitemap.php =================================================================== --- XoopsModules/pingtrax/trunk/preloads/sitemap.php (rev 0) +++ XoopsModules/pingtrax/trunk/preloads/sitemap.php 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1,51 @@ +<?php +/** + * PingTrax Preloads + * + * 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://sourceforge.net/projects/chronolabs/ + * @license GNU GPL 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Antony Roberts <wis...@us...> + * @see http://sourceforge.net/projects/xoops/ + * @see http://sourceforge.net/projects/chronolabs/ + * @see http://sourceforge.net/projects/chronolabsapi/ + * @see http://labs.coop + * @version 1.0.1 + * @since 1.0.1 + */ + +defined('XOOPS_ROOT_PATH') || die('XOOPS root path not defined'); + +/** + * Class PingtraxSitemapPreload + */ +class PingtraxSitemapPreload extends XoopsPreloadItem +{ + /** + * @param $args + + function eventCoreIncludeFunctionsRedirectheader($args) + { + $context = stream_context_create(array('http' => array( + 'method' => "POST", + 'header' => "Content-Type: text/xml\r\n", + 'content' => $xm... [truncated message content] |