|
From: <chr...@us...> - 2018-11-01 13:07:36
|
Revision: 13395
http://sourceforge.net/p/xoops/svn/13395
Author: chronolabscoop
Date: 2018-11-01 13:07:22 +0000 (Thu, 01 Nov 2018)
Log Message:
-----------
FontSVN+ - Client for Sourceforge.net Web Fonts SVN!
Added Paths:
-----------
XoopsModules/fontsvn/
XoopsModules/fontsvn/trunk/
XoopsModules/fontsvn/trunk/modules/
XoopsModules/fontsvn/trunk/modules/fontsvn/
XoopsModules/fontsvn/trunk/modules/fontsvn/.htaccess
XoopsModules/fontsvn/trunk/modules/fontsvn/admin/
XoopsModules/fontsvn/trunk/modules/fontsvn/admin/.htaccess
XoopsModules/fontsvn/trunk/modules/fontsvn/admin/about.php
XoopsModules/fontsvn/trunk/modules/fontsvn/admin/footer.php
XoopsModules/fontsvn/trunk/modules/fontsvn/admin/header.php
XoopsModules/fontsvn/trunk/modules/fontsvn/admin/identities.php
XoopsModules/fontsvn/trunk/modules/fontsvn/admin/index.html
XoopsModules/fontsvn/trunk/modules/fontsvn/admin/index.php
XoopsModules/fontsvn/trunk/modules/fontsvn/admin/menu.php
XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/
XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/fontier_block_tag.php
XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/index.html
XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/last_downloads_items.php
XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/last_viewed_items.php
XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/new_items.php
XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/popular_downloads_items.php
XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/popular_items.php
XoopsModules/fontsvn/trunk/modules/fontsvn/class/
XoopsModules/fontsvn/trunk/modules/fontsvn/class/identities.php
XoopsModules/fontsvn/trunk/modules/fontsvn/class/identities_indexes.php
XoopsModules/fontsvn/trunk/modules/fontsvn/class/index.html
XoopsModules/fontsvn/trunk/modules/fontsvn/class/indexes.php
XoopsModules/fontsvn/trunk/modules/fontsvn/class/objects.php
XoopsModules/fontsvn/trunk/modules/fontsvn/comment_delete.php
XoopsModules/fontsvn/trunk/modules/fontsvn/comment_edit.php
XoopsModules/fontsvn/trunk/modules/fontsvn/comment_new.php
XoopsModules/fontsvn/trunk/modules/fontsvn/comment_post.php
XoopsModules/fontsvn/trunk/modules/fontsvn/comment_reply.php
XoopsModules/fontsvn/trunk/modules/fontsvn/crons/
XoopsModules/fontsvn/trunk/modules/fontsvn/crons/compare-json.php
XoopsModules/fontsvn/trunk/modules/fontsvn/crons/index.html
XoopsModules/fontsvn/trunk/modules/fontsvn/crons/pair-css.php
XoopsModules/fontsvn/trunk/modules/fontsvn/crons/pair-json.php
XoopsModules/fontsvn/trunk/modules/fontsvn/crons/repair-css.php
XoopsModules/fontsvn/trunk/modules/fontsvn/crons/verify-svn.php
XoopsModules/fontsvn/trunk/modules/fontsvn/download/
XoopsModules/fontsvn/trunk/modules/fontsvn/download/.htaccess
XoopsModules/fontsvn/trunk/modules/fontsvn/download/index.html
XoopsModules/fontsvn/trunk/modules/fontsvn/download.php
XoopsModules/fontsvn/trunk/modules/fontsvn/font/
XoopsModules/fontsvn/trunk/modules/fontsvn/font/.htaccess
XoopsModules/fontsvn/trunk/modules/fontsvn/font/index.html
XoopsModules/fontsvn/trunk/modules/fontsvn/font.php
XoopsModules/fontsvn/trunk/modules/fontsvn/glyph/
XoopsModules/fontsvn/trunk/modules/fontsvn/glyph/.htaccess
XoopsModules/fontsvn/trunk/modules/fontsvn/glyph/index.html
XoopsModules/fontsvn/trunk/modules/fontsvn/glyph.php
XoopsModules/fontsvn/trunk/modules/fontsvn/header.php
XoopsModules/fontsvn/trunk/modules/fontsvn/images/
XoopsModules/fontsvn/trunk/modules/fontsvn/images/assets/
XoopsModules/fontsvn/trunk/modules/fontsvn/images/assets/index.html
XoopsModules/fontsvn/trunk/modules/fontsvn/images/icons/
XoopsModules/fontsvn/trunk/modules/fontsvn/images/icons/16x16/
XoopsModules/fontsvn/trunk/modules/fontsvn/images/icons/16x16/index.html
XoopsModules/fontsvn/trunk/modules/fontsvn/images/icons/24x24/
XoopsModules/fontsvn/trunk/modules/fontsvn/images/icons/24x24/index.html
XoopsModules/fontsvn/trunk/modules/fontsvn/images/icons/32x32/
XoopsModules/fontsvn/trunk/modules/fontsvn/images/icons/32x32/index.html
XoopsModules/fontsvn/trunk/modules/fontsvn/images/icons/48x48/
XoopsModules/fontsvn/trunk/modules/fontsvn/images/icons/48x48/index.html
XoopsModules/fontsvn/trunk/modules/fontsvn/images/icons/index.html
XoopsModules/fontsvn/trunk/modules/fontsvn/images/icons/module_fontsvn+.png
XoopsModules/fontsvn/trunk/modules/fontsvn/images/index.html
XoopsModules/fontsvn/trunk/modules/fontsvn/include/
XoopsModules/fontsvn/trunk/modules/fontsvn/include/comment_functions.php
XoopsModules/fontsvn/trunk/modules/fontsvn/include/functions.php
XoopsModules/fontsvn/trunk/modules/fontsvn/include/index.html
XoopsModules/fontsvn/trunk/modules/fontsvn/include/notification.inc.php
XoopsModules/fontsvn/trunk/modules/fontsvn/index.php
XoopsModules/fontsvn/trunk/modules/fontsvn/language/
XoopsModules/fontsvn/trunk/modules/fontsvn/language/english/
XoopsModules/fontsvn/trunk/modules/fontsvn/language/english/admin.php
XoopsModules/fontsvn/trunk/modules/fontsvn/language/english/blocks.css
XoopsModules/fontsvn/trunk/modules/fontsvn/language/english/blocks.php
XoopsModules/fontsvn/trunk/modules/fontsvn/language/english/errors.php
XoopsModules/fontsvn/trunk/modules/fontsvn/language/english/index.html
XoopsModules/fontsvn/trunk/modules/fontsvn/language/english/mail_template/
XoopsModules/fontsvn/trunk/modules/fontsvn/language/english/mail_template/fontier_newfont_notify.tpl
XoopsModules/fontsvn/trunk/modules/fontsvn/language/english/mail_template/fontier_newindex_notify.tpl
XoopsModules/fontsvn/trunk/modules/fontsvn/language/english/main.php
XoopsModules/fontsvn/trunk/modules/fontsvn/language/english/modinfo.php
XoopsModules/fontsvn/trunk/modules/fontsvn/language/english/style.css
XoopsModules/fontsvn/trunk/modules/fontsvn/language/index.html
XoopsModules/fontsvn/trunk/modules/fontsvn/list.tag.php
XoopsModules/fontsvn/trunk/modules/fontsvn/naming/
XoopsModules/fontsvn/trunk/modules/fontsvn/naming/.htaccess
XoopsModules/fontsvn/trunk/modules/fontsvn/naming/index.html
XoopsModules/fontsvn/trunk/modules/fontsvn/naming.php
XoopsModules/fontsvn/trunk/modules/fontsvn/notification_update.php
XoopsModules/fontsvn/trunk/modules/fontsvn/preloads/
XoopsModules/fontsvn/trunk/modules/fontsvn/preloads/index.html
XoopsModules/fontsvn/trunk/modules/fontsvn/preloads/svn.php
XoopsModules/fontsvn/trunk/modules/fontsvn/preview/
XoopsModules/fontsvn/trunk/modules/fontsvn/preview/.htaccess
XoopsModules/fontsvn/trunk/modules/fontsvn/preview/index.html
XoopsModules/fontsvn/trunk/modules/fontsvn/preview.php
XoopsModules/fontsvn/trunk/modules/fontsvn/releases.php
XoopsModules/fontsvn/trunk/modules/fontsvn/sql/
XoopsModules/fontsvn/trunk/modules/fontsvn/sql/index.html
XoopsModules/fontsvn/trunk/modules/fontsvn/sql/mysql.sql
XoopsModules/fontsvn/trunk/modules/fontsvn/sql/tables.diz
XoopsModules/fontsvn/trunk/modules/fontsvn/templates/
XoopsModules/fontsvn/trunk/modules/fontsvn/templates/admin/
XoopsModules/fontsvn/trunk/modules/fontsvn/templates/admin/fontier_identities.html
XoopsModules/fontsvn/trunk/modules/fontsvn/templates/admin/index.html
XoopsModules/fontsvn/trunk/modules/fontsvn/templates/blocks/
XoopsModules/fontsvn/trunk/modules/fontsvn/templates/blocks/fontier_last_downloads_items.html
XoopsModules/fontsvn/trunk/modules/fontsvn/templates/blocks/fontier_last_viewed_items.html
XoopsModules/fontsvn/trunk/modules/fontsvn/templates/blocks/fontier_new_items.html
XoopsModules/fontsvn/trunk/modules/fontsvn/templates/blocks/fontier_popular_downloads_items.html
XoopsModules/fontsvn/trunk/modules/fontsvn/templates/blocks/fontier_popular_items.html
XoopsModules/fontsvn/trunk/modules/fontsvn/templates/blocks/fontier_tag_block_cloud.html
XoopsModules/fontsvn/trunk/modules/fontsvn/templates/blocks/fontier_tag_block_top.html
XoopsModules/fontsvn/trunk/modules/fontsvn/templates/blocks/index.html
XoopsModules/fontsvn/trunk/modules/fontsvn/templates/fontier_font.html
XoopsModules/fontsvn/trunk/modules/fontsvn/templates/fontier_index.html
XoopsModules/fontsvn/trunk/modules/fontsvn/templates/fontier_index_base.html
XoopsModules/fontsvn/trunk/modules/fontsvn/templates/fontier_releases.html
XoopsModules/fontsvn/trunk/modules/fontsvn/templates/fontier_uploads.html
XoopsModules/fontsvn/trunk/modules/fontsvn/templates/index.html
XoopsModules/fontsvn/trunk/modules/fontsvn/uploads.php
XoopsModules/fontsvn/trunk/modules/fontsvn/uploads.php.save
XoopsModules/fontsvn/trunk/modules/fontsvn/view.tag.php
XoopsModules/fontsvn/trunk/modules/fontsvn/xoops_version.php
Added: XoopsModules/fontsvn/trunk/modules/fontsvn/.htaccess
===================================================================
--- XoopsModules/fontsvn/trunk/modules/fontsvn/.htaccess (rev 0)
+++ XoopsModules/fontsvn/trunk/modules/fontsvn/.htaccess 2018-11-01 13:07:22 UTC (rev 13395)
@@ -0,0 +1,47 @@
+############################################################################################################################
+#
+# Chronolabs Cooperative Fontier+
+#
+# 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://labs.coop
+# @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html)
+# @package fontsvn+
+# @since 1.0.1
+# @author Simon Roberts <wis...@us...>
+# @subpackage fontsvn+
+# @description XOOPS Client for Fonts REST API - http://fonts.labs.coop
+# @link http://fonts.labs.coop
+# @link http://sourceforge.net/projects/chronolabs
+# @link http://cipher.labs.coop
+#
+############################################################################################################################
+php_value memory_limit 360M
+php_value error_reporting 0
+php_value display_errors 0
+
+RewriteEngine On
+RewriteCond %{REQUEST_FILENAME} !-f
+RewriteCond %{REQUEST_FILENAME} !-d
+
+RewriteRule ^bin/(.*?)/(font).ufo/(.*?)$ $2.php?mode=ufo&clause=$1&path=$3 [L,NC,QSA]
+RewriteRule ^bin/(.*?)/(font).(.*?)?(.*?)$ $2.php?mode=$3&clause=$1&$4 [L,NC,QSA]
+RewriteRule ^bin/(.*?)/(font).(.*?)$ $2.php?mode=$3&clause=$1 [L,NC,QSA]
+RewriteRule ^css/(.*?)/(.*?).(css)?(.*?)$ $3.php?clause=$1&$4 [L,NC,QSA]
+RewriteRule ^css/(.*?)/(.*?).(css)$ $3.php?clause=$1 [L,NC,QSA]
+RewriteRule ^api/(.*?)/(callback).api?(.*?)$ $2.php?mode=$1&$3 [L,NC,QSA]
+RewriteRule ^api/(.*?)/(callback).api$ $2.php?mode=$1 [L,NC,QSA]
+RewriteRule ^(download)/([0-9]+)$ $1.php?mode=$1&clause=$2 [L,NC,QSA]
+RewriteRule ^([0-9a-z]+)/upload.html$ index.php?mode=upload&clause=$1 [L,NC,QSA]
+RewriteRule ^([0-9a-z]+)/surveys.html$ index.php?mode=surveys&clause=$1 [L,NC,QSA]
+RewriteRule ^([0-9a-z]+)/survey.html$ index.php?mode=survey&clause=$1 [L,NC,QSA]
+RewriteRule ^([0-9a-z]+)/(.*?)/font.html$ index.php?mode=font&clause=$1&name=$2 [L,NC,QSA]
+RewriteRule ^([0-9a-z]+)/node.html$ index.php?mode=node&clause=$1 [L,NC,QSA]
+RewriteRule ^(keys|fixes|typal)/nodes.html$ index.php?mode=nodes&clause=$1 [L,NC,QSA]
+RewriteRule ^index.html$ index.php?mode=index [L,NC,QSA]
+
Property changes on: XoopsModules/fontsvn/trunk/modules/fontsvn/.htaccess
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Added: XoopsModules/fontsvn/trunk/modules/fontsvn/admin/.htaccess
===================================================================
--- XoopsModules/fontsvn/trunk/modules/fontsvn/admin/.htaccess (rev 0)
+++ XoopsModules/fontsvn/trunk/modules/fontsvn/admin/.htaccess 2018-11-01 13:07:22 UTC (rev 13395)
@@ -0,0 +1,38 @@
+############################################################################################################################
+#
+# Chronolabs Cooperative Fontier+
+#
+# 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://labs.coop
+# @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html)
+# @package fontsvn+
+# @since 1.0.1
+# @author Simon Roberts <wis...@us...>
+# @subpackage fontsvn+
+# @description XOOPS Client for Fonts REST API - http://fonts.labs.coop
+# @link http://fonts.labs.coop
+# @link http://sourceforge.net/projects/chronolabs
+# @link http://cipher.labs.coop
+#
+############################################################################################################################
+php_value memory_limit 360M
+php_value error_reporting 0
+php_value display_errors 0
+
+RewriteEngine On
+RewriteCond %{REQUEST_FILENAME} !-f
+RewriteCond %{REQUEST_FILENAME} !-d
+
+RewriteRule ^([0-9a-z]+)/upload.html$ admin.php?op=upload&clause=$1 [L,NC,QSA]
+RewriteRule ^([0-9a-z]+)/surveys.html$ admin.php?op=surveys&clause=$1 [L,NC,QSA]
+RewriteRule ^([0-9a-z]+)/survey.html$ admin.php?op=survey&clause=$1 [L,NC,QSA]
+RewriteRule ^([0-9a-z]+)/(.*?)/font.html$ admin.php?op=font&clause=$1&name=$2 [L,NC,QSA]
+RewriteRule ^([0-9a-z]+)/node.html$ admin.php?op=node&clause=$1 [L,NC,QSA]
+RewriteRule ^(keys|fixes|typal)/nodes.html$ admin.php?op=nodes&clause=$1 [L,NC,QSA]
+
Property changes on: XoopsModules/fontsvn/trunk/modules/fontsvn/admin/.htaccess
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Added: XoopsModules/fontsvn/trunk/modules/fontsvn/admin/about.php
===================================================================
--- XoopsModules/fontsvn/trunk/modules/fontsvn/admin/about.php (rev 0)
+++ XoopsModules/fontsvn/trunk/modules/fontsvn/admin/about.php 2018-11-01 13:07:22 UTC (rev 13395)
@@ -0,0 +1,33 @@
+<?php
+/**
+ * Font Converter for fonts2web.org.uk
+*
+* 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 The XOOPS Project http://fonts2web.org.uk
+* @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html)
+* @author Simon Roberts (wishcraft) <wis...@us...>
+* @subpackage convert
+* @description Converts fonts to web distributional format in a zip pack stamped
+* @version 1.0.1
+* @link http://fonts2web.org.uk
+* @link http://fonts.labs.coop
+* @link http://internetfounder.wordpress.com
+*/
+include_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php';
+include_once __DIR__ . '/header.php';
+xoops_cp_header();
+
+$module_info = $module_handler->get($xoopsModule->getVar('mid'));
+
+$aboutAdmin = new ModuleAdmin();
+
+echo $aboutAdmin->addNavigation(basename(__FILE__));
+echo $aboutAdmin->renderAbout('XXXXXXXXXXXXX', false);
+
+include_once __DIR__ . '/footer.php';
Property changes on: XoopsModules/fontsvn/trunk/modules/fontsvn/admin/about.php
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Added: XoopsModules/fontsvn/trunk/modules/fontsvn/admin/footer.php
===================================================================
--- XoopsModules/fontsvn/trunk/modules/fontsvn/admin/footer.php (rev 0)
+++ XoopsModules/fontsvn/trunk/modules/fontsvn/admin/footer.php 2018-11-01 13:07:22 UTC (rev 13395)
@@ -0,0 +1,25 @@
+<?php
+/**
+ * Font Converter for fonts2web.org.uk
+*
+* 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 The XOOPS Project http://fonts2web.org.uk
+* @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html)
+* @author Simon Roberts (wishcraft) <wis...@us...>
+* @subpackage convert
+* @description Converts fonts to web distributional format in a zip pack stamped
+* @version 1.0.1
+* @link http://fonts2web.org.uk
+* @link http://fonts.labs.coop
+* @link http://internetfounder.wordpress.com
+*/
+
+echo "<div class='adminfooter'>\n" . " <div style='text-align: center;'>\n" . " <a href='http://au.syd.labs.coop' rel='external'>Chronolabs Cooperative</a>\n" . " </div>\n" . '</div>';
+
+xoops_cp_footer();
Property changes on: XoopsModules/fontsvn/trunk/modules/fontsvn/admin/footer.php
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Added: XoopsModules/fontsvn/trunk/modules/fontsvn/admin/header.php
===================================================================
--- XoopsModules/fontsvn/trunk/modules/fontsvn/admin/header.php (rev 0)
+++ XoopsModules/fontsvn/trunk/modules/fontsvn/admin/header.php 2018-11-01 13:07:22 UTC (rev 13395)
@@ -0,0 +1,57 @@
+<?php
+/**
+ * Font Converter for fonts2web.org.uk
+*
+* 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 The XOOPS Project http://fonts2web.org.uk
+* @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html)
+* @author Simon Roberts (wishcraft) <wis...@us...>
+* @subpackage convert
+* @description Converts fonts to web distributional format in a zip pack stamped
+* @version 1.0.1
+* @link http://fonts2web.org.uk
+* @link http://fonts.labs.coop
+* @link http://internetfounder.wordpress.com
+*/
+
+$path = dirname(dirname(dirname(__DIR__)));
+include_once dirname(__DIR__) . '/header.php';
+include_once $path . '/include/cp_functions.php';
+require_once $path . '/include/cp_header.php';
+
+global $xoopsModule;
+
+$thisModuleDir = $GLOBALS['xoopsModule']->getVar('dirname');
+
+//if functions.php file exist
+//require_once dirname(__DIR__) . '/include/functions.php';
+
+// Load language files
+xoops_loadLanguage('admin', $thisModuleDir);
+xoops_loadLanguage('modinfo', $thisModuleDir);
+xoops_loadLanguage('main', $thisModuleDir);
+
+$pathIcon16 = '../' . $xoopsModule->getInfo('icons16');
+$pathIcon32 = '../' . $xoopsModule->getInfo('icons32');
+$pathModuleAdmin = $xoopsModule->getInfo('dirmoduleadmin');
+
+$myts = MyTextSanitizer::getInstance();
+
+if (!isset($xoopsTpl) || !is_object($xoopsTpl)) {
+ include_once XOOPS_ROOT_PATH . '/class/template.php';
+ $xoopsTpl = new XoopsTpl();
+}
+
+include_once $GLOBALS['xoops']->path($pathModuleAdmin . '/moduleadmin.php');
+
+xoops_loadLanguage('user');
+if (!isset($GLOBALS['xoopsTpl']) || !is_object($GLOBALS['xoopsTpl'])) {
+ include_once $GLOBALS['xoops']->path('/class/template.php');
+ $GLOBALS['xoopsTpl'] = new XoopsTpl();
+}
Property changes on: XoopsModules/fontsvn/trunk/modules/fontsvn/admin/header.php
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Added: XoopsModules/fontsvn/trunk/modules/fontsvn/admin/identities.php
===================================================================
--- XoopsModules/fontsvn/trunk/modules/fontsvn/admin/identities.php (rev 0)
+++ XoopsModules/fontsvn/trunk/modules/fontsvn/admin/identities.php 2018-11-01 13:07:22 UTC (rev 13395)
@@ -0,0 +1,72 @@
+<?php
+/**
+ * Please Email Ticketer of Batch Group & User Emails
+ *
+ * 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 The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html)
+ * @author Simon Roberts (wishcraft) <wis...@us...>
+ * @subpackage please
+ * @description Email Ticking for Support/Faults/Management of Batch Group & User managed emails tickets
+ * @version 1.0.5
+ * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/please
+ * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/please
+ * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/please
+ * @link http://internetfounder.wordpress.com
+ */
+
+ require_once (__DIR__ . DIRECTORY_SEPARATOR . 'header.php');
+
+ xoops_loadLanguage('errors', _MD_FONTSVN_MODULE_DIRNAME);
+
+ if (isset($_REQUEST['start']))
+ $start = intval($_REQUEST['start']);
+ else
+ $start = 0;
+
+ if (isset($_REQUEST['limit']))
+ $limit = intval($_REQUEST['limit']);
+ else
+ $limit = 30;
+
+ $identitiesHandler = xoops_getModuleHandler('identities', _MD_FONTSVN_MODULE_DIRNAME);
+ $criteria = new Criteria('polled',0,">");
+ $total = $identitiesHandler->getCount($criteria);
+ $criteria->setStart($start);
+ $criteria->setLimit($limit);
+ $identities = $identitiesHandler->getObjects($criteria);
+
+ if ($start>0 && count($identities)==0 && $total > 0)
+ {
+ $start = $start - $limit;
+ if ($start<0)
+ $start = 0;
+ header("Location: " . XOOPS_URL . "/modules/" . _MD_FONTSVN_MODULE_DIRNAME . "/admin/identities.php?start=$start&limit=$limit");
+ exit(0);
+ }
+
+ if ($start == 0 && count($identities) == 0)
+ {
+ redirect_header(XOOPS_URL . "/modules/" . _MD_FONTSVN_MODULE_DIRNAME . "/admin/index.php", 4, _ERR_FONTSVN_ADMIN_NOFONTS);
+ exit(0);
+ }
+
+ xoops_cp_header();
+ $identityAdmin = new ModuleAdmin();
+ echo $identityAdmin->addNavigation(basename(__FILE__));
+ foreach($identities as $identity)
+ $GLOBALS['xoopsTpl']->append('identities', $identity->getAdminPanelArray());
+ xoops_load('XoopsPageNav');
+ $nav = new XoopsPageNav($total, $limit, $start, 'start', '&limit='.$limit);
+ $GLOBALS['xoopsTpl']->assign('pagenav', $nav->renderNav(5));
+ echo $GLOBALS['xoopsTpl']->display(dirname(__DIR__) . '/templates/admin/fontsvn_identities.html');
+ xoops_cp_footer();
+ exit(0);
+
+?>
\ No newline at end of file
Property changes on: XoopsModules/fontsvn/trunk/modules/fontsvn/admin/identities.php
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Added: XoopsModules/fontsvn/trunk/modules/fontsvn/admin/index.html
===================================================================
--- XoopsModules/fontsvn/trunk/modules/fontsvn/admin/index.html (rev 0)
+++ XoopsModules/fontsvn/trunk/modules/fontsvn/admin/index.html 2018-11-01 13:07:22 UTC (rev 13395)
@@ -0,0 +1 @@
+<script>history.go(-1);</script>
\ No newline at end of file
Property changes on: XoopsModules/fontsvn/trunk/modules/fontsvn/admin/index.html
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Added: XoopsModules/fontsvn/trunk/modules/fontsvn/admin/index.php
===================================================================
--- XoopsModules/fontsvn/trunk/modules/fontsvn/admin/index.php (rev 0)
+++ XoopsModules/fontsvn/trunk/modules/fontsvn/admin/index.php 2018-11-01 13:07:22 UTC (rev 13395)
@@ -0,0 +1,43 @@
+<?php
+/**
+ * Font Converter for fonts2web.org.uk
+*
+* 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 The XOOPS Project http://fonts2web.org.uk
+* @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html)
+* @author Simon Roberts (wishcraft) <wis...@us...>
+* @subpackage convert
+* @description Converts fonts to web distributional format in a zip pack stamped
+* @version 1.0.1
+* @link http://fonts2web.org.uk
+* @link http://fonts.labs.coop
+* @link http://internetfounder.wordpress.com
+*/
+
+include_once __DIR__ . '/header.php';
+xoops_cp_header();
+
+$indexAdmin = new ModuleAdmin();
+
+$identitiesHandler = xoops_getModuleHandler('identities', _MD_FONTSVN_MODULE_DIRNAME);
+
+$indexAdmin->addInfoBox(_MA_FONTSVN_ADMIN_STATISTICS);
+$indexAdmin->addInfoBoxLine(_MA_FONTSVN_ADMIN_STATISTICS, "<infolabel>" ._MA_FONTSVN_ADMIN_STATS_TOTALIDENTITIES. "</infolabel>", $identitiesHandler->getTotalIdentities(), 'Green');
+$indexAdmin->addInfoBoxLine(_MA_FONTSVN_ADMIN_STATISTICS, "<infolabel>" ._MA_FONTSVN_ADMIN_STATS_TOTALPOLLED. "</infolabel>", $identitiesHandler->getTotalPolled(), 'Green');
+$indexAdmin->addInfoBoxLine(_MA_FONTSVN_ADMIN_STATISTICS, "<infolabel>" ._MA_FONTSVN_ADMIN_STATS_TOTALTOPOLL. "</infolabel>", $identitiesHandler->getTotalToPoll(), 'Blue');
+$indexAdmin->addInfoBoxLine(_MA_FONTSVN_ADMIN_STATISTICS, "<infolabel>" ._MA_FONTSVN_ADMIN_STATS_TOTALVIEWS. "</infolabel>", $identitiesHandler->getTotalViews(), 'Purple');
+$indexAdmin->addInfoBoxLine(_MA_FONTSVN_ADMIN_STATISTICS, "<infolabel>" ._MA_FONTSVN_ADMIN_STATS_TOTALDOWNLOADS. "</infolabel>", $identitiesHandler->getTotalDownloads(), 'Purple');
+$indexAdmin->addInfoBoxLine(_MA_FONTSVN_ADMIN_STATISTICS, "<infolabel>" ._MA_FONTSVN_ADMIN_STATS_FILESINCACHE. "</infolabel>", $identitiesHandler->getTotalFilesInCache(), 'Red');
+$indexAdmin->addInfoBoxLine(_MA_FONTSVN_ADMIN_STATISTICS, "<infolabel>" ._MA_FONTSVN_ADMIN_STATS_MBSINCACHE. "</infolabel>", $identitiesHandler->getTotalMbsInCache(), 'Red');
+
+echo $indexAdmin->addNavigation(basename(__FILE__));
+echo $indexAdmin->renderIndex();
+
+include_once __DIR__ . '/footer.php';
+//xoops_cp_footer();
Property changes on: XoopsModules/fontsvn/trunk/modules/fontsvn/admin/index.php
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Added: XoopsModules/fontsvn/trunk/modules/fontsvn/admin/menu.php
===================================================================
--- XoopsModules/fontsvn/trunk/modules/fontsvn/admin/menu.php (rev 0)
+++ XoopsModules/fontsvn/trunk/modules/fontsvn/admin/menu.php 2018-11-01 13:07:22 UTC (rev 13395)
@@ -0,0 +1,52 @@
+<?php
+/**
+ * Font Converter for fonts2web.org.uk
+*
+* 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 The XOOPS Project http://fonts2web.org.uk
+* @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html)
+* @author Simon Roberts (wishcraft) <wis...@us...>
+* @subpackage convert
+* @description Converts fonts to web distributional format in a zip pack stamped
+* @version 1.0.1
+* @link http://fonts2web.org.uk
+* @link http://fonts.labs.coop
+* @link http://internetfounder.wordpress.com
+*/
+
+$path = dirname(dirname(dirname(__DIR__)));
+include_once $path . '/mainfile.php';
+
+$dirname = basename(dirname(__DIR__));
+$module_handler = xoops_getHandler('module');
+$module = $module_handler->getByDirname($dirname);
+$pathIcon32 = $module->getInfo('icons32');
+$pathModuleAdmin = $module->getInfo('dirmoduleadmin');
+$pathLanguage = $path . $pathModuleAdmin;
+
+if (!file_exists($fileinc = $pathLanguage . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/' . 'modinfo.php')) {
+ $fileinc = $pathLanguage . '/language/english/modinfo.php';
+}
+
+include_once $fileinc;
+
+$adminmenu = array();
+
+$i = 1;
+$adminmenu[$i]['title'] = _MD_FONTSVN_ADMINMENU_HOME;
+$adminmenu[$i]['link'] = 'admin/index.php';
+$adminmenu[$i]['icon'] = $pathIcon32 . '/home.png';
+++$i;
+$adminmenu[$i]['title'] = _MD_FONTSVN_ADMINMENU_FONTS;
+$adminmenu[$i]['link'] = 'admin/identities.php';
+$adminmenu[$i]['icon'] = $pathIcon32 . '/download.png';
+++$i;
+$adminmenu[$i]['title'] = _MD_FONTSVN_ADMINMENU_ABOUT;
+$adminmenu[$i]['link'] = 'admin/about.php';
+$adminmenu[$i]['icon'] = $pathIcon32 . '/about.png';
Property changes on: XoopsModules/fontsvn/trunk/modules/fontsvn/admin/menu.php
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Added: XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/fontier_block_tag.php
===================================================================
--- XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/fontier_block_tag.php (rev 0)
+++ XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/fontier_block_tag.php 2018-11-01 13:07:22 UTC (rev 13395)
@@ -0,0 +1,78 @@
+<?php
+/**
+ * Font Repository Browser for the Chronolabs Cooperative Fonting Repository Services 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 The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html)
+ * @author Simon Roberts (wishcraft) <wis...@us...>
+ * @subpackage fontsvn+
+ * @description Font Repository Browser for the Chronolabs Cooperative Fonting Repository Services API
+ * @version 1.0.1
+ * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/fontsvn
+ * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/fontsvn
+ * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/fontsvn
+ * @link http://internetfounder.wordpress.com
+ */
+
+
+require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . 'header.php';
+
+/**
+ *
+ * @param unknown $options
+ * @return array|string[]|NULL[]|number[][][]|mixed[][][]|unknown[][][]
+ */
+function fontsvn_tag_block_cloud_show($options)
+{
+ include_once XOOPS_ROOT_PATH . "/modules/tag/blocks/block.php";
+ if (file_exists(XOOPS_ROOT_PATH . "/modules/tag/blocks/block.php"))
+ return tag_block_cloud_show($options, _MD_FONTSVN_MODULE_DIRNAME);
+ return array();
+}
+
+/**
+ *
+ * @param unknown $options
+ * @return string
+ */
+function fontsvn_tag_block_cloud_edit($options)
+{
+ include_once XOOPS_ROOT_PATH . "/modules/tag/blocks/block.php";
+ if (file_exists(XOOPS_ROOT_PATH . "/modules/tag/blocks/block.php"))
+ return tag_block_cloud_edit($options);
+ return '';
+}
+
+
+/**
+ *
+ * @param unknown $options
+ * @return array|string[]|NULL[]|unknown[][][]
+ */
+function fontsvn_tag_block_top_show($options)
+{
+ include_once XOOPS_ROOT_PATH . "/modules/tag/blocks/block.php";
+ if (file_exists(XOOPS_ROOT_PATH . "/modules/tag/blocks/block.php"))
+ return tag_block_top_show($options, _MD_FONTSVN_MODULE_DIRNAME);
+ return array();
+}
+
+/**
+ *
+ * @param unknown $options
+ * @return string
+ */
+function fontsvn_tag_block_top_edit($options)
+{
+ include_once XOOPS_ROOT_PATH . "/modules/tag/blocks/block.php";
+ if (file_exists(XOOPS_ROOT_PATH . "/modules/tag/blocks/block.php"))
+ return tag_block_top_edit($options);
+ return '';
+}
\ No newline at end of file
Property changes on: XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/fontier_block_tag.php
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Added: XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/index.html
===================================================================
--- XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/index.html (rev 0)
+++ XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/index.html 2018-11-01 13:07:22 UTC (rev 13395)
@@ -0,0 +1 @@
+<script>history.go(-1);</script>
\ No newline at end of file
Property changes on: XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/index.html
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Added: XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/last_downloads_items.php
===================================================================
--- XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/last_downloads_items.php (rev 0)
+++ XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/last_downloads_items.php 2018-11-01 13:07:22 UTC (rev 13395)
@@ -0,0 +1,72 @@
+<?php
+/**
+ * Font Repository Browser for the Chronolabs Cooperative Fonting Repository Services 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 The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html)
+ * @author Simon Roberts (wishcraft) <wis...@us...>
+ * @subpackage fontsvn+
+ * @description Font Repository Browser for the Chronolabs Cooperative Fonting Repository Services API
+ * @version 1.0.1
+ * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/fontsvn
+ * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/fontsvn
+ * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/fontsvn
+ * @link http://internetfounder.wordpress.com
+ */
+
+require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . 'header.php';
+
+function fontsvn_last_downloads_items_show($options)
+{
+ $GLOBALS['xoTheme']->addStylesheet(XOOPS_URL . "/modules/" . _MD_FONTSVN_MODULE_DIRNAME . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/blocks.css');
+
+ $block = array('display' => $options[1]);
+ $identitiesHandler = xoops_getModuleHandler('identities' ,basename(dirname(__DIR__)));
+ $criteria = new CriteriaCompo(new Criteria('downloaded', '0', '>'));
+ $criteria->setOrder('DESC');
+ $criteria->setSort('downloaded');
+ $criteria->setLimit($options[0]);
+ if ($identities = $identitiesHandler->getObjects($criteria))
+ {
+ $block['items'] = array();
+ foreach($identities as $key => $identity)
+ {
+ $block['items'][$key]['name'] = $identity->getVar('name');
+ $block['items'][$key]['views'] = $identity->getVar('views');
+ $block['items'][$key]['downloads'] = $identity->getVar('downloads');
+ $block['items'][$key]['naming'] = $identity->getNamingURL();
+ $block['items'][$key]['url'] = $identity->getFontURL('id');
+ }
+ return $block;
+ }
+ return false;
+}
+
+
+function fontsvn_last_downloads_items_edit($options)
+{
+ $form = '';
+ // Sort order *************************************************************
+ // (0=older first, 1=newer first)
+ $form .= '<b>'._MB_FONTSVN_NUMBER."</b> <input type='textbox' name='option[]' size='8', maxlen='4' value='".$options[0]."' /><br/>";
+ $form .= '<b>'._MB_FONTSVN_DISPLAY."</b> <select name='options[]'>\n";
+ $form .= "<option value='naming'";
+ if ( $options[1] == 'naming' ) {
+ $form .= " selected='selected'";
+ }
+ $form .= '>'._MB_FONTSVN_NAMING."</option>\n";
+ $form .= "<option value='text'";
+ if($options[1] == 'text'){
+ $form .= " selected='selected'";
+ }
+ $form .= '>'._MB_FONTSVN_TEXT.'</option>';
+ $form .= "</select>\n";
+ return $form;
+}
Property changes on: XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/last_downloads_items.php
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Added: XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/last_viewed_items.php
===================================================================
--- XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/last_viewed_items.php (rev 0)
+++ XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/last_viewed_items.php 2018-11-01 13:07:22 UTC (rev 13395)
@@ -0,0 +1,72 @@
+<?php
+/**
+ * Font Repository Browser for the Chronolabs Cooperative Fonting Repository Services 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 The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html)
+ * @author Simon Roberts (wishcraft) <wis...@us...>
+ * @subpackage fontsvn+
+ * @description Font Repository Browser for the Chronolabs Cooperative Fonting Repository Services API
+ * @version 1.0.1
+ * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/fontsvn
+ * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/fontsvn
+ * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/fontsvn
+ * @link http://internetfounder.wordpress.com
+ */
+
+require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . 'header.php';
+
+function fontsvn_last_viewed_items_show($options)
+{
+ $GLOBALS['xoTheme']->addStylesheet(XOOPS_URL . "/modules/" . _MD_FONTSVN_MODULE_DIRNAME . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/blocks.css');
+
+ $block = array('display' => $options[1]);
+ $identitiesHandler = xoops_getModuleHandler('identities' ,basename(dirname(__DIR__)));
+ $criteria = new CriteriaCompo(new Criteria('last', '0', '>'));
+ $criteria->setOrder('DESC');
+ $criteria->setSort('last');
+ $criteria->setLimit($options[0]);
+ if ($identities = $identitiesHandler->getObjects($criteria))
+ {
+ $block['items'] = array();
+ foreach($identities as $key => $identity)
+ {
+ $block['items'][$key]['name'] = $identity->getVar('name');
+ $block['items'][$key]['views'] = $identity->getVar('views');
+ $block['items'][$key]['downloads'] = $identity->getVar('downloads');
+ $block['items'][$key]['naming'] = $identity->getNamingURL();
+ $block['items'][$key]['url'] = $identity->getFontURL('id');
+ }
+ return $block;
+ }
+ return false;
+}
+
+
+function fontsvn_last_viewed_items_edit($options)
+{
+ $form = '';
+ // Sort order *************************************************************
+ // (0=older first, 1=newer first)
+ $form .= '<b>'._MB_FONTSVN_NUMBER."</b> <input type='textbox' name='option[]' size='8', maxlen='4' value='".$options[0]."' /><br/>";
+ $form .= '<b>'._MB_FONTSVN_DISPLAY."</b> <select name='options[]'>\n";
+ $form .= "<option value='naming'";
+ if ( $options[1] == 'naming' ) {
+ $form .= " selected='selected'";
+ }
+ $form .= '>'._MB_FONTSVN_NAMING."</option>\n";
+ $form .= "<option value='text'";
+ if($options[1] == 'text'){
+ $form .= " selected='selected'";
+ }
+ $form .= '>'._MB_FONTSVN_TEXT.'</option>';
+ $form .= "</select>\n";
+ return $form;
+}
Property changes on: XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/last_viewed_items.php
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Added: XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/new_items.php
===================================================================
--- XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/new_items.php (rev 0)
+++ XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/new_items.php 2018-11-01 13:07:22 UTC (rev 13395)
@@ -0,0 +1,72 @@
+<?php
+/**
+ * Font Repository Browser for the Chronolabs Cooperative Fonting Repository Services 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 The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html)
+ * @author Simon Roberts (wishcraft) <wis...@us...>
+ * @subpackage fontsvn+
+ * @description Font Repository Browser for the Chronolabs Cooperative Fonting Repository Services API
+ * @version 1.0.1
+ * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/fontsvn
+ * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/fontsvn
+ * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/fontsvn
+ * @link http://internetfounder.wordpress.com
+ */
+
+require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . 'header.php';
+
+function fontsvn_new_items_show($options)
+{
+ $GLOBALS['xoTheme']->addStylesheet(XOOPS_URL . "/modules/" . _MD_FONTSVN_MODULE_DIRNAME . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/blocks.css');
+
+ $block = array('display' => $options[1]);
+ $identitiesHandler = xoops_getModuleHandler('identities' ,basename(dirname(__DIR__)));
+ $criteria = new CriteriaCompo(new Criteria('polling', '0', '>'));
+ $criteria->setOrder('DESC');
+ $criteria->setSort('polled');
+ $criteria->setLimit($options[0]);
+ if ($identities = $identitiesHandler->getObjects($criteria))
+ {
+ $block['items'] = array();
+ foreach($identities as $key => $identity)
+ {
+ $block['items'][$key]['name'] = $identity->getVar('name');
+ $block['items'][$key]['views'] = $identity->getVar('views');
+ $block['items'][$key]['downloads'] = $identity->getVar('downloads');
+ $block['items'][$key]['naming'] = $identity->getNamingURL();
+ $block['items'][$key]['url'] = $identity->getFontURL('id');
+ }
+ return $block;
+ }
+ return false;
+}
+
+
+function fontsvn_new_items_edit($options)
+{
+ $form = '';
+ // Sort order *************************************************************
+ // (0=older first, 1=newer first)
+ $form .= '<b>'._MB_FONTSVN_NUMBER."</b> <input type='textbox' name='option[]' size='8', maxlen='4' value='".$options[0]."' /><br/>";
+ $form .= '<b>'._MB_FONTSVN_DISPLAY."</b> <select name='options[]'>\n";
+ $form .= "<option value='naming'";
+ if ( $options[1] == 'naming' ) {
+ $form .= " selected='selected'";
+ }
+ $form .= '>'._MB_FONTSVN_NAMING."</option>\n";
+ $form .= "<option value='text'";
+ if($options[1] == 'text'){
+ $form .= " selected='selected'";
+ }
+ $form .= '>'._MB_FONTSVN_TEXT.'</option>';
+ $form .= "</select>\n";
+ return $form;
+}
Property changes on: XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/new_items.php
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Added: XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/popular_downloads_items.php
===================================================================
--- XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/popular_downloads_items.php (rev 0)
+++ XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/popular_downloads_items.php 2018-11-01 13:07:22 UTC (rev 13395)
@@ -0,0 +1,72 @@
+<?php
+/**
+ * Font Repository Browser for the Chronolabs Cooperative Fonting Repository Services 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 The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html)
+ * @author Simon Roberts (wishcraft) <wis...@us...>
+ * @subpackage fontsvn+
+ * @description Font Repository Browser for the Chronolabs Cooperative Fonting Repository Services API
+ * @version 1.0.1
+ * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/fontsvn
+ * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/fontsvn
+ * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/fontsvn
+ * @link http://internetfounder.wordpress.com
+ */
+
+require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . 'header.php';
+
+function fontsvn_popular_downloads_items_show($options)
+{
+ $GLOBALS['xoTheme']->addStylesheet(XOOPS_URL . "/modules/" . _MD_FONTSVN_MODULE_DIRNAME . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/blocks.css');
+
+ $block = array('display' => $options[1]);
+ $identitiesHandler = xoops_getModuleHandler('identities' ,basename(dirname(__DIR__)));
+ $criteria = new CriteriaCompo(new Criteria('downloads', '0', '>'));
+ $criteria->setOrder('DESC');
+ $criteria->setSort('downloads');
+ $criteria->setLimit($options[0]);
+ if ($identities = $identitiesHandler->getObjects($criteria))
+ {
+ $block['items'] = array();
+ foreach($identities as $key => $identity)
+ {
+ $block['items'][$key]['name'] = $identity->getVar('name');
+ $block['items'][$key]['views'] = $identity->getVar('views');
+ $block['items'][$key]['downloads'] = $identity->getVar('downloads');
+ $block['items'][$key]['naming'] = $identity->getNamingURL();
+ $block['items'][$key]['url'] = $identity->getFontURL('id');
+ }
+ return $block;
+ }
+ return false;
+}
+
+
+function fontsvn_popular_downloads_items_edit($options)
+{
+ $form = '';
+ // Sort order *************************************************************
+ // (0=older first, 1=newer first)
+ $form .= '<b>'._MB_FONTSVN_NUMBER."</b> <input type='textbox' name='option[]' size='8', maxlen='4' value='".$options[0]."' /><br/>";
+ $form .= '<b>'._MB_FONTSVN_DISPLAY."</b> <select name='options[]'>\n";
+ $form .= "<option value='naming'";
+ if ( $options[1] == 'naming' ) {
+ $form .= " selected='selected'";
+ }
+ $form .= '>'._MB_FONTSVN_NAMING."</option>\n";
+ $form .= "<option value='text'";
+ if($options[1] == 'text'){
+ $form .= " selected='selected'";
+ }
+ $form .= '>'._MB_FONTSVN_TEXT.'</option>';
+ $form .= "</select>\n";
+ return $form;
+}
Property changes on: XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/popular_downloads_items.php
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Added: XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/popular_items.php
===================================================================
--- XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/popular_items.php (rev 0)
+++ XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/popular_items.php 2018-11-01 13:07:22 UTC (rev 13395)
@@ -0,0 +1,72 @@
+<?php
+/**
+ * Font Repository Browser for the Chronolabs Cooperative Fonting Repository Services 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 The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html)
+ * @author Simon Roberts (wishcraft) <wis...@us...>
+ * @subpackage fontsvn+
+ * @description Font Repository Browser for the Chronolabs Cooperative Fonting Repository Services API
+ * @version 1.0.1
+ * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/fontsvn
+ * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/fontsvn
+ * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/fontsvn
+ * @link http://internetfounder.wordpress.com
+ */
+
+require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . 'header.php';
+
+function fontsvn_popular_items_show($options)
+{
+ $GLOBALS['xoTheme']->addStylesheet(XOOPS_URL . "/modules/" . _MD_FONTSVN_MODULE_DIRNAME . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/blocks.css');
+
+ $block = array('display' => $options[1]);
+ $identitiesHandler = xoops_getModuleHandler('identities' ,basename(dirname(__DIR__)));
+ $criteria = new CriteriaCompo(new Criteria('views', '0', '>'));
+ $criteria->setOrder('DESC');
+ $criteria->setSort('views');
+ $criteria->setLimit($options[0]);
+ if ($identities = $identitiesHandler->getObjects($criteria))
+ {
+ $block['items'] = array();
+ foreach($identities as $key => $identity)
+ {
+ $block['items'][$key]['name'] = $identity->getVar('name');
+ $block['items'][$key]['views'] = $identity->getVar('views');
+ $block['items'][$key]['downloads'] = $identity->getVar('downloads');
+ $block['items'][$key]['naming'] = $identity->getNamingURL();
+ $block['items'][$key]['url'] = $identity->getFontURL('id');
+ }
+ return $block;
+ }
+ return false;
+}
+
+
+function fontsvn_popular_items_edit($options)
+{
+ $form = '';
+ // Sort order *************************************************************
+ // (0=older first, 1=newer first)
+ $form .= '<b>'._MB_FONTSVN_NUMBER."</b> <input type='textbox' name='option[]' size='8', maxlen='4' value='".$options[0]."' /><br/>";
+ $form .= '<b>'._MB_FONTSVN_DISPLAY."</b> <select name='options[]'>\n";
+ $form .= "<option value='naming'";
+ if ( $options[1] == 'naming' ) {
+ $form .= " selected='selected'";
+ }
+ $form .= '>'._MB_FONTSVN_NAMING."</option>\n";
+ $form .= "<option value='text'";
+ if($options[1] == 'text'){
+ $form .= " selected='selected'";
+ }
+ $form .= '>'._MB_FONTSVN_TEXT.'</option>';
+ $form .= "</select>\n";
+ return $form;
+}
Property changes on: XoopsModules/fontsvn/trunk/modules/fontsvn/blocks/popular_items.php
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Added: XoopsModules/fontsvn/trunk/modules/fontsvn/class/identities.php
===================================================================
--- XoopsModules/fontsvn/trunk/modules/fontsvn/class/identities.php (rev 0)
+++ XoopsModules/fontsvn/trunk/modules/fontsvn/class/identities.php 2018-11-01 13:07:22 UTC (rev 13395)
@@ -0,0 +1,576 @@
+<?php
+/**
+ * Font Repository Browser for the Chronolabs Cooperative Fonting Repository Services 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 The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html)
+ * @author Simon Roberts (wishcraft) <wis...@us...>
+ * @subpackage fontsvn+
+ * @description Font Repository Browser for the Chronolabs Cooperative Fonting Repository Services API
+ * @version 1.0.1
+ * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/fontsvn
+ * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/fontsvn
+ * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/fontsvn
+ * @link http://internetfounder.wordpress.com
+ */
+
+
+if (!defined('_MD_FONTSVN_MODULE_DIRNAME')) {
+ return false;
+}
+
+//*
+require_once (__DIR__ . DIRECTORY_SEPARATOR . 'objects.php');
+
+/**
+ * Class for Glyphs in Fonts2Web.org.uk Font Converter
+ *
+ * For Table:-
+ * <code>
+ * CREATE TABLE `fontsvn_identities` (
+ * `id` mediumint(24) NOT NULL AUTO_INCREMENT,
+ * `identity` varchar(45) DEFAULT '',
+ * `base` varchar(1) DEFAULT '',
+ * `second` varchar(2) DEFAULT '',
+ * `thirds` varchar(3) DEFAULT '',
+ * `downloads` int(13) DEFAULT '0',
+ * `views` int(13) DEFAULT '0',
+ * `glyphs` tinytext,
+ * `name` varchar(255) DEFAULT '',
+ * `tags` varchar(255) DEFAULT '',
+ * `barcode` varchar(32) DEFAULT '',
+ * `referee` varchar(128) DEFAULT '',
+ * `filename` varchar(128) DEFAULT '',
+ * `preview` varchar(255) DEFAULT '',
+ * `naming` varchar(255) DEFAULT '',
+ * `css` varchar(255) DEFAULT '',
+ * `created` int(13) DEFAULT '0',
+ * `verify` int(13) DEFAULT '0',
+ * `last` int(13) DEFAULT '0',
+ * `downloaded` int(13) DEFAULT '0',
+ * `glyphed` int(13) DEFAULT '0',
+ * `notified` int(13) DEFAULT '0',
+ * `articleid` int(13) DEFAULT '0',
+ * PRIMARY KEY (`id`)
+ * ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+ * </code>
+ * @author Simon Roberts (wis...@us...)
+ * @copyright copyright (c) 2015 labs.coop
+ */
+class fontsvnIdentities extends fontsvnXoopsObject
+{
+
+ var $handler = '';
+
+ function __construct($id = null)
+ {
+
+ self::initVar('id', XOBJ_DTYPE_INT, 0, false);
+ self::initVar('identity', XOBJ_DTYPE_TXTBOX, md5(null), false, 45);
+ self::initVar('base', XOBJ_DTYPE_TXTBOX, '', false, 1);
+ self::initVar('second', XOBJ_DTYPE_TXTBOX, '', false, 2);
+ self::initVar('thirds', XOBJ_DTYPE_TXTBOX, '', false, 3);
+ self::initVar('downloads', XOBJ_DTYPE_INT, 0, false);
+ self::initVar('views', XOBJ_DTYPE_INT, 0, false);
+ self::initVar('glyphs', XOBJ_DTYPE_ARRAY, array(), false);
+ self::initVar('name', XOBJ_DTYPE_TXTBOX, '', false, 255);
+ self::initVar('tags', XOBJ_DTYPE_TXTBOX, '', false, 255);
+ self::initVar('barcode', XOBJ_DTYPE_TXTBOX, '', false, 32);
+ self::initVar('referee', XOBJ_DTYPE_TXTBOX, '', false, 128);
+ self::initVar('filename', XOBJ_DTYPE_TXTBOX, '', false, 128);
+ self::initVar('preview', XOBJ_DTYPE_TXTBOX, '', false, 255);
+ self::initVar('naming', XOBJ_DTYPE_TXTBOX, '', false, 255);
+ self::initVar('css', XOBJ_DTYPE_TXTBOX, '', false, 255);
+ self::initVar('created', XOBJ_DTYPE_INT, 0, false);
+ self::initVar('verify', XOBJ_DTYPE_INT, 0, false);
+ self::initVar('verified', XOBJ_DTYPE_INT, 0, false);
+ self::initVar('files', XOBJ_DTYPE_INT, 0, false);
+ self::initVar('missing', XOBJ_DTYPE_INT, 0, false);
+ self::initVar('last', XOBJ_DTYPE_INT, 0, false);
+ self::initVar('downloaded', XOBJ_DTYPE_INT, 0, false);
+ self::initVar('glyphed', XOBJ_DTYPE_INT, 0, false);
+ self::initVar('notified', XOBJ_DTYPE_INT, 0, false);
+ self::initVar('articleid', XOBJ_DTYPE_INT, 0, false);
+ self::initVar('validation', XOBJ_DTYPE_ARRAY, array(), false);
+
+ $this->handler = __CLASS__ . 'Handler';
+ if (!empty($id) && !is_null($id))
+ {
+ $handler = new $this->handler;
+ self::assignVars($handler->get($id)->getValues(array_keys($this->vars)));
+ }
+
+ }
+
+ /**
+ *
+ * @return boolean[]|string[]|mixed[]|NULL[]|array[]
+ */
+ function getAdminPanelArray()
+ {
+ global $fontsvnConfigsList;
+ return array( 'name' => $this->getVar('name'),
+ 'views' => $this->getVar('views'),
+ 'downloads' => $this->getVar('downloads'),
+ 'url' => $this->getFontURL('id'),
+ 'naming' => $this->getNamingURL($fontsvnConfigsList['images']) );
+ }
+
+ /**
+ *
+ * @return string
+ */
+ function getDescriptionTile()
+ {
+ global $fontsvnConfigsList;
+ $GLOBALS['xoTheme']->addStylesheet(XOOPS_URL . "/modules/" . _MD_FONTSVN_MODULE_DIRNAME . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/style.css');
+ xoops_loadLanguage('main', _MD_FONTSVN_MODULE_DIRNAME);
+ $html = "<div style=\"margin: 8px; padding: 3px; text-align: center;\">\n
+ <img id=\"fontsvnfontnaming\" src=\"".$this->getNamingURL($fontsvnConfigsList['images']) ."\" title=\"" . $this->getVar('name') ."\" alt=\"" . $this->getVar('name') ."\" width='89%' />\n
+ <br />\n
+ <span id=\"fontsvnviewsdownloads\">"._MN_FONTSVN_FONT_VIEWS.": ".$this->getVar('views')...
[truncated message content] |