From: <wis...@us...> - 2017-08-09 23:12:44
|
Revision: 13268 http://sourceforge.net/p/xoops/svn/13268 Author: wishcraft Date: 2017-08-09 23:12:41 +0000 (Wed, 09 Aug 2017) Log Message: ----------- fonts.xoops.org ~ now with CSS Calling! Modified Paths: -------------- *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/.htaccess *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/class/fonts.php *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/font.php *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/glyph.php *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/header.php *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/history.php *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/images/font-preview-extra.png *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/images/font-preview.png *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/include/data/preview-texts.diz *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/include/functions.php *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/index.php *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/language/english/main.php *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/naming.php *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/preview.php *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/templates/convert_history.html *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/templates/convert_index.html *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/upload.php Added Paths: ----------- *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/ACADEMIC *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/LICENSE *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/css/ *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/css/.htaccess *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/css/font/ *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/css/font/.htaccess *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/css-font.php *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/css.php *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/include/data/default-useragent-v1.diz *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/include/data/default-useragent-v2.diz Modified: *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/.htaccess =================================================================== --- *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/.htaccess 2017-07-30 18:43:52 UTC (rev 13267) +++ *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/.htaccess 2017-08-09 23:12:41 UTC (rev 13268) @@ -1,197 +1,35 @@ -<IfModule mod_headers.c> - Header set Origin * - Header set Access-Control-Allow-Origin * -</IfModule> -php_value display_errors 1 -php_value log_errors 1 -php_value error_reporting 1 - - -# Font Coverter Mod Rewrite RewriteEngine On -RewriteRule ^convert/(.*?)$ modules/convert/$1 -RewriteRule ^convert/naming/(.*?).png modules/convert/naming.php?id=$1 [L,NC,QSA] +RewriteRule ^fontier/index.html ./modules/fontier/index.php [L,NC,QSA] +RewriteRule ^fontier/([0-9]+)/([0-9]+)/(.*?)/index.html ./modules/fontier/index.php?start=$1&limit=$2&base=$3 [L,NC,QSA] +RewriteRule ^fontier/uploads.html$ ./modules/convert/uploads.php [L,NC,QSA] +RewriteRule ^fontier/releases.html$ ./modules/convert/releases.php [L,NC,QSA] +RewriteRule ^fontier/(.*?) ./modules/fontier/$1 [L,NC,QSA] -# XNews RewriteEngine On -RewriteRule ^news/([0-9]+)/([0-9]+)/([0-9]+)/index.html$ modules/xnews/index.php?topic_id=$1&storynum=$2&start=$3 -RewriteRule ^news/([0-9]+)/(.*?).html$ modules/xnews/article.php?storyid=$1 -RewriteRule ^backend.php$ modules/xnews/backendt.php +RewriteRule ^briefs/(.*?)/(.*?)/([0-9]+),([0-9]+).html ./modules/xcenter/index.php?storyid=$3&catid=$4 [L,NC,QSA] +RewriteRule ^convert/preview/(.*?).png ./modules/convert/preview.php?id=$1 [L,NC,QSA] +RewriteRule ^convert/naming/(.*?).png ./modules/convert/naming.php?id=$1 [L,NC,QSA] +RewriteRule ^convert/glyph/(.*?)-([0-9]+).png ./modules/convert/glyph.php?id=$1&char=$2 [L,NC,QSA] +RewriteRule ^convert/font/(.*?)/(.*?).html ./modules/convert/font.php?id=$2 [L,NC,QSA] +RewriteRule ^convert/([0-9]+)/([0-9]+)/history.html$ ./modules/convert/history.php?start=$1&limit=$2 [L,NC,QSA] +RewriteRule ^convert/css/font/(.*?).([a-z0-9]+)$ ./modules/convert/css-font.php?id=$1&format=$2 [L,NC,QSA] +RewriteRule ^convert/css/(.*?).css$ ./modules/convert/css.php?id=$1 [L,NC,QSA] -# X-REST API Client Signature Service Mod Rewrite -RewriteEngine On -RewriteRule ^api(.*?)$ modules/xrest/$1.php +RewriteRule ^convert/index.html$ ./modules/convert/index.php [L,NC,QSA] +RewriteRule ^convert/upload.html$ ./modules/convert/upload.php [L,NC,QSA] +RewriteRule ^news/([0-9]+)/([0-9]+)/([0-9]+)/index.html ./modules/xnews/index.php?topic_id=$1&storynum=$2&start=$3 [L,NC,QSA] +RewriteRule ^news/([0-9]+)/(.*?).html ./modules/xnews/article.php?storyid=$1 [L,NC,QSA] RewriteEngine On -# Client Signature Service Mod Rewrite -RewriteRule ^signing/=([a-zA-Z0-9]+)=/?(.*?)$ modules/signed/$1.php?$2 -RewriteRule ^signing/index.html modules/signed/index.php -RewriteRule ^signing/=([a-zA-Z0-9]+)=/?(.*?)$ modules/signed/$1.php?$2 -RewriteRule ^signing/=([a-zA-Z0-9]+)=/index(.*?)?(.*?)$ modules/signed/$1.php?$3 -RewriteRule ^signing/=([a-zA-Z0-9]+)=/index(.*?)$ modules/signed/$1.php -RewriteRule ^signing modules/signed/index.php [L=301] +RewriteCond %{HTTP_HOST} ^fonts.labs.coop$ +RewriteRule ^([a-z0-9]{2})/(.*?) http://api.fonts.labs.coop/$1/$2 [L,NC,QSA] -# API Service Mod Rewrite -RewriteRule ^signer/(.*?)/(.*?)?(.*?)$ modules/signed/api/$1/$2.php?$3 -RewriteRule ^signer/(.*?)/(.*?)$ modules/signed/api/$1/$2.php -RewriteRule ^signer/(.*?)/$ modules/signed/api/$1/index.php -RewriteRule ^signer modules/signed/api/index.php [L=301] - RewriteEngine On -RewriteCond %{REQUEST_FILENAME} !-f -RewriteCond %{REQUEST_FILENAME} !-d +RewriteCond %{HTTP_HOST} ^fonts.snails.email$ +RewriteRule ^([a-z0-9]{2})/(.*?) http://api.fonts.snails.email/$1/$2 [L,NC,QSA] -RewriteRule ^noticer/(.*?).html$ modules/noticer/index.php?op=$1&extra=$1 - -RewriteRule ^communique/email.html /modules/contact/index.php - -# Tags/Nodes API Service Mod Rewrite RewriteEngine On -RewriteRule ^nodes/view/([0-9]+)/([0-9]+).html modules/tag/view.tag.php?tag=$2&start=$1 [L,NC,QSA] -RewriteRule ^nodes/view/([0-9]+)/(.*?).html modules/tag/view.tag.php?term=$2&start=$1 [L,NC,QSA] -RewriteRule ^nodes/list.html modules/tag/list.tag.php [L,NC,QSA] -RewriteRule ^nodes/index.html modules/tag/index.php [L,NC,QSA] - -# Email noticer Service Mod Rewrite -RewriteEngine On -RewriteRule ^noticer/(.*?).html$ modules/noticer/index.php?op=$1&extra=$1 - -# Publish Service Mod Rewrite -RewriteEngine On -RewriteRule ^publications/category/([\-0-9]+)/(.*?)/([\-0-9]+).html$ modules/publisher/category.php?title=$2&categoryid=$1&start=$3 -RewriteRule ^publications/rss/(.*?)/([\-0-9]+).html$ modules/publisher/backend.php?title=$1&categoryid=$2 -RewriteRule ^publications/file/([\-0-9]+)/(.*?)/download$ modules/publisher/visit.php?fileid=$1&filename=$2 -RewriteRule ^publications/([\-0-9]+)/(.*?)/([0-9]+)-([0-9]+).html$ modules/publisher/item.php?page=$1&title=$2&categoryid=$3&itemid=$4 -RewriteRule ^publications/([\-0-9]+)/(.*?)/([0-9]+)-([0-9]+).pdf$ modules/publisher/makepdf.php?page=$1&title=$2&categoryid=$3&itemid=$4 -RewriteRule ^publications/([\-0-9]+)/(.*?)/([0-9]+)-([0-9]+)/print$ modules/publisher/print.php?page=$1&title=$2&categoryid=$3&itemid=$4 -RewriteRule ^publications/(.*?)/view.tag.php$ modules/publisher/view.tag.php -RewriteRule ^publications/(.*?)/list.tag.php$ modules/publisher/list.tag.php -RewriteRule ^publications/rss.xml$ modules/publisher/backend.php -RewriteRule ^publications/view.tag.php$ modules/publisher/view.tag.php -RewriteRule ^publications/list.tag.php$ modules/publisher/list.tag.php -RewriteRule ^publications/index.html$ modules/publisher/index.php$1 -RewriteRule ^publications/search.html$ modules/publisher/search.php$1 -RewriteRule ^publications/([0-9]+)-([0-9]+).html$ modules/publisher/index.php?catstart=$1&start=$2 -RewriteRule ^publications$ modules/publisher/index.php$1 - - -# XCenter Service Mod Rewrite -RewriteEngine On -RewriteRule ^public/(.*?)/(.*?)/([0-9]+),([0-9]+).html$ modules/xcenter/index.php?cat_title=$1&cont_title=$2&storyid=$3&catid=$4 -RewriteRule ^public/(.*?)/(.*?)/view.tag.php$ modules/xcenter/view.tag.php -RewriteRule ^public/(.*?)/(.*?)/list.tag.php$ modules/xcenter/list.tag.php -RewriteRule ^public/(.*?)/([0-9]+),([0-9]+).html$ modules/xcenter/index.php?cont_title=$1&storyid=$2&catid=$3 -RewriteRule ^public/(.*?)/feed,([0-9]+).rss$ modules/xcenter/rss.php?cat_title=$1&catid=$3 -RewriteRule ^public/(.*?)/pdf,([0-9]+).pdf$ modules/xcenter/pdf.php?cat_title=$1&storyid=$2 -RewriteRule ^public/(.*?)/view.tag.php$ modules/xcenter/view.tag.php -RewriteRule ^public/(.*?)/list.tag.php$ modules/xcenter/list.tag.php -RewriteRule ^public/feed,([0-9]+).rss$ modules/xcenter/rss.php?catid=$1 -RewriteRule ^public/pdf,([0-9]+).pdf$ modules/xcenter/pdf.php?storyid=$1 -RewriteRule ^public/view.tag.php$ modules/xcenter/view.tag.php -RewriteRule ^public/list.tag.php$ modules/xcenter/list.tag.php -RewriteRule ^public/$ modules/xcenter/index.php$1 -RewriteRule ^public$ modules/xcenter/index.php$1 -RewriteRule ^briefs/(.*?)/(.*?)/([0-9]+),([0-9]+).html$ modules/xcenter/index.php?cat_title=$1&cont_title=$2&storyid=$3&catid=$4 -RewriteRule ^briefs/(.*?)/(.*?)/view.tag.php$ modules/xcenter/view.tag.php -RewriteRule ^briefs/(.*?)/(.*?)/list.tag.php$ modules/xcenter/list.tag.php -RewriteRule ^briefs/(.*?)/([0-9]+),([0-9]+).html$ modules/xcenter/index.php?cont_title=$1&storyid=$2&catid=$3 -RewriteRule ^briefs/(.*?)/feed,([0-9]+).rss$ modules/xcenter/rss.php?cat_title=$1&catid=$3 -RewriteRule ^briefs/(.*?)/pdf,([0-9]+).pdf$ modules/xcenter/pdf.php?cat_title=$1&storyid=$2 -RewriteRule ^briefs/(.*?)/view.tag.php$ modules/xcenter/view.tag.php -RewriteRule ^briefs/(.*?)/list.tag.php$ modules/xcenter/list.tag.php -RewriteRule ^briefs/feed,([0-9]+).rss$ modules/xcenter/rss.php?catid=$1 -RewriteRule ^briefs/pdf,([0-9]+).pdf$ modules/xcenter/pdf.php?storyid=$1 -RewriteRule ^briefs/view.tag.php$ modules/xcenter/view.tag.php -RewriteRule ^briefs/list.tag.php$ modules/xcenter/list.tag.php -RewriteRule ^briefs/$ modules/xcenter/index.php$1 -RewriteRule ^briefs$ modules/xcenter/index.php$1 - -# Smart partners Mod Rewrite -RewriteEngine On -RewriteCond %{REQUEST_FILENAME} !-f -RewriteCond %{REQUEST_FILENAME} !-d -RewriteRule ^partners(.*?)vpartner.php?id=([0-9]+)$ modules/smartpartner/vpartner.php?id=$2 [L,NC,QSA] -RewriteRule ^partners/(.*?)/(.*?)/comment_(.*?) modules/smartpartner/comment_$3 [L,NC,QSA] -RewriteRule ^partners/(.*?)/(.*?)/([0-9]+)(.*?)$ modules/smartpartner/partner.php?contact_phone=$1&title=$2&id=$3 [L,NC,QSA] -RewriteRule ^partners/([0-9]+)/([0-9]+)/index(.*?)$ modules/smartpartner/index.php?start=$1&view_category_id=$2 [L,NC,QSA] -RewriteRule ^partners/([0-9]+)/index(.*?)$ modules/smartpartner/index.php?start=$1 [L,NC,QSA] -RewriteRule ^partners/index(.*?)$ modules/smartpartner/index.php?start=$1 [L,NC,QSA] -RewriteRule ^partners/join(.*?)$ modules/smartpartner/join.php [L,NC,QSA] - -# Profile Service Mod Rewrite -RewriteEngine On -RewriteCond %{REQUEST_FILENAME} !-f -RewriteCond %{REQUEST_FILENAME} !-d -RewriteRule ^chronauts/(.*?)/(.*?)/edituser.php$ modules/profile/edituser.php [L,NC,QSA] -RewriteRule ^chronauts/(.*?)/(.*?)/([0-9]+).html modules/profile/userinfo.php?uid=$3&dataa=$2&datab=$1 [L,NC,QSA] -RewriteRule ^chronauts/(.*?)/(.*?)/comment_(.*?).php /modules/profile/comment_$3.php [L,NC,QSA] -RewriteRule ^chronauts/changemail.html /modules/profile/changemail.php [L,NC,QSA] -RewriteRule ^chronauts/changepassword.html /modules/profile/changepass.php [L,NC,QSA] -RewriteRule ^chronauts/directory,(.*?),(.*?),([0-9]+).html modules/profile/directory.php?op=$1&fct=$2&groupid=$3 [L,NC,QSA] -RewriteRule ^chronauts/edit,(.*?).html modules/profile/edituser.php?op=$1 [L,NC,QSA] -RewriteRule ^chronauts/lostpassword,(.*?),(.*?).html modules/profile/lostpass.php?email=$1&code=$2 [L,NC,QSA] -RewriteRule ^chronauts/register,(.*?),(.*?),(.*?).html modules/profile/register.php [L,NC,QSA] -RewriteRule ^chronauts/search,(.*?).html modules/profile/search.php?op=$1 [L,NC,QSA] -RewriteRule ^chronauts/control,([a-zA-Z0-9]+).html modules/profile/user.php?op=$1 [L,NC,QSA] -RewriteRule ^chronauts/(.*?).php$ modules/profile/$1.php [L,NC,QSA] -RewriteRule ^register.php?op=actv&(.*?)$ /issuer.php?op=actv&$1 [L,NC,QSA] -RewriteRule ^lostpass.php(.*?)$ modules/profile/lostpass.php$1 [L,NC,QSA] -RewriteRule ^edituser.php(.*?)$ modules/profile/edituser.php$1 [L,NC,QSA] -RewriteRule ^userinfo.php(.*?)$ modules/profile/userinfo.php$1 [L,NC,QSA] -RewriteRule ^user.php(.*?)$ modules/profile/user.php$1 [L,NC,QSA] -RewriteRule ^register.php$ modules/profile/register.php [L,NC,QSA] - - - -# XForum Service Mod Rewrite -RewriteEngine On -RewriteCond %{REQUEST_FILENAME} !-f -RewriteCond %{REQUEST_FILENAME} !-d -RewriteRule ^discussion(.*?)/(.*?)/(.*?)/images/(.*?)/(.*?)/(.*?)/(.*) modules/xforum/images/$4/$5/$6/$7 -RewriteRule ^discussion(.*?)/(.*?)/(.*?)/images/(.*?)/(.*?)/(.*) modules/xforum/images/$4/$5/$6 -RewriteRule ^discussion(.*?)/(.*?)/(.*?)/images/(.*?)/(.*) modules/xforum/images/$4/$5 -RewriteRule ^discussion(.*?)/(.*?)/(.*?)/images/(.*) modules/xforum/images/$4 -RewriteRule ^discussion(.*?)/(.*?)/images/(.*?)/(.*?)/(.*?)/(.*) modules/xforum/images/$3/$4/$5/$6 -RewriteRule ^discussion(.*?)/(.*?)/images/(.*?)/(.*?)/(.*) modules/xforum/images/$3/$4/$5 -RewriteRule ^discussion(.*?)/(.*?)/images/(.*?)/(.*) modules/xforum/images/$3/$4 -RewriteRule ^discussion(.*?)/(.*?)/images/(.*) modules/xforum/images/$3 -RewriteRule ^discussion(.*?)/images/(.*?)/(.*?)/(.*?)/(.*) modules/xforum/images/$2/$3/$4/$5 -RewriteRule ^discussion(.*?)/images/(.*?)/(.*?)/(.*) modules/xforum/images/$2/$3/$4 -RewriteRule ^discussion(.*?)/images/(.*?)/(.*) modules/xforum/images/$2/$3 -RewriteRule ^discussion(.*?)/images/(.*) modules/xforum/images/$2 -RewriteRule ^discussionimages/(.*?)/(.*?)/(.*?)/(.*) modules/xforum/images/$1/$2/$3/$4 -RewriteRule ^discussionimages/(.*?)/(.*?)/(.*) modules/xforum/images/$1/$2/$3 -RewriteRule ^discussionimages/(.*?)/(.*) modules/xforum/images/$1/$2 -RewriteRule ^discussionimages/(.*) modules/xforum/images/$1 -RewriteRule ^discussion(.*?)/(.*?)/([0-9]+),([0-9]+),([0-9]+),(.*?),(.*?),([0-9]+),([0-9]+).html$ modules/xforum/viewforum.php?forum=$3&since=$4&start=$5&sortorder=$6&sortname=$7&mode=$8&type=$9 [L,NC,QSA] -RewriteRule ^discussion(.*?)/(.*?)/(.*?)/([0-9]+),([0-9]+),([0-9]+),([0-9]+),(.*?),(.*?).html$ modules/xforum/viewtopic.php?forum=$4&topic_id=$5&post_id=$6&start=$7&since=$8&order=$9 [L,NC,QSA] -RewriteRule ^discussion(.*?)/(.*?)/(.*?)/([0-9]+),([0-9]+),([0-9]+).html$ modules/xforum/viewtopic.php?forum=$4&topic_id=$5&post_id=$6 [L,NC,QSA] -RewriteRule ^discussion(.*?)/(.*?)/(.*?)/([0-9]+),([0-9]+),([a-zA-Z0-9]+).html$ modules/xforum/viewtopic.php?forum=$4&topic_id=$5&viewmode=$6 [L,NC,QSA] -RewriteRule ^discussion(.*?)/(.*?)/(.*?)/([0-9]+),([0-9]+).html$ modules/xforum/viewtopic.php?forum=$4&topic_id=$5 [L,NC,QSA] -RewriteRule ^discussion(.*?)/(.*?)/(.*?)/(.*?).php$ modules/xforum/$4.php [L,NC,QSA] -RewriteRule ^discussion(.*?)/(.*?)/newtopic,(.*?),([0-9]+).html$ modules/xforum/newtopic.php?op=$3&forum=$4 [L,NC,QSA] -RewriteRule ^discussion(.*?)/(.*?)/newtopic,([0-9]+).html$ modules/xforum/newtopic.php?forum=$3 [L,NC,QSA] -RewriteRule ^discussion(.*?)/(.*?)/reply,([0-9]+),([0-9]+),([0-9]+).html$ modules/xforum/reply.php?forum=$3&topic_id=$4&post_id=$5 [L,NC,QSA] -RewriteRule ^discussion(.*?)/(.*?)/poll,([a-zA-Z0-9]+),([0-9]+),([0-9]+).html$ modules/xforum/poll.php?op=$3&topic_id=$4&poll_id=$5 [L,NC,QSA] -RewriteRule ^discussion(.*?)/(.*?)/edit,([0-9]+),([0-9]+).html$ modules/xforum/edit.php?forum=$3&post_id=$4 [L,NC,QSA] -RewriteRule ^discussion(.*?)/(.*?)/archive,([0-9]+).html$ modules/xforum/archive.php?forum=$3 [L,NC,QSA] -RewriteRule ^discussion(.*?)/(.*?)/archive,([0-9]+),([0-9]+).html$ modules/xforum/archive.php?forum=$3&topic_id=$4 [L,NC,QSA] -RewriteRule ^discussion(.*?)/(.*?)/(.*?).php$ modules/xforum/$3.php [L,NC,QSA] -RewriteRule ^discussion/rss,([0-9]+),(.*?).rss$ modules/xforum/rss.php?c=$1&f=$2 [L,NC,QSA] -RewriteRule ^discussion/viewall,(.*?),([0-9]+),([0-9]+),([0-9]+),(.*?),(.*?).html$ modules/xforum/viewall.php?type=$1&mode=$2&start=$3&since=$4&sortname=$5&sortorder=$6 [L,NC,QSA] -RewriteRule ^discussion/viewpost,([0-9]+),([0-9]+),(.*?),([0-9]+),(.*?)html$ modules/xforum/viewpost.php?forum=$1&start=$2&order=$3&uid=$4&mode=$5&type=$6 [L,NC,QSA] -RewriteRule ^discussion/cat,([0-9]+).html$ modules/xforum/index.php?cat=$1 [L,NC,QSA] -RewriteRule ^discussion/(.*?).php$ modules/xforum/$1.php [L,NC,QSA] -RewriteRule ^discussion/search.html$ modules/xforum/search.php [L,NC,QSA] -RewriteRule ^discussion/index.html$ modules/xforum/index.php [L,NC,QSA] - -RewriteRule ^polls/(.*?)/([0-9]+) /modules/xoopspoll/index.php?question=$1&poll_id=$2 [L,NC,QSA] -RewriteRule ^polls/(.*?)/results,([0-9]+) /modules/xoopspoll/pollresults.php?question=$1&poll_id=$2 [L,NC,QSA] -RewriteRule ^polls/(.*?)/(.*?)/comment_(.*?) /modules/xoopspoll/comment_$3 [L,NC,QSA] -RewriteRule ^polls/(.*?)/comment_(.*?) /modules/xoopspoll/comment_$2 [L,NC,QSA] -RewriteRule ^polls/comment_(.*?) /modules/xoopspoll/comment_$1 [L,NC,QSA] -RewriteRule ^polls/ /modules/xoopspoll/index.php [L,NC,QSA] -RewriteRule ^polls/index.php$ /modules/xoopspoll/index.php [L,NC,QSA] -RewriteRule ^polls/pollresults.php$ /modules/xoopspoll/pollresults.php [L,NC,QSA] +RewriteCond %{HTTP_HOST} ^fonts4web.org.uk$ +RewriteRule ^([a-z0-9]{2})/(.*?) http://api.fonts4web.org.uk/$1/$2 [L,NC,QSA] Added: *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/ACADEMIC =================================================================== --- *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/ACADEMIC (rev 0) +++ *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/ACADEMIC 2017-08-09 23:12:41 UTC (rev 13268) @@ -0,0 +1,3 @@ +The Academic Licensing is provisioned by the educational facity using this product! + +Fri 09 Dec 2016 16:12:30 AEDT Property changes on: *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/ACADEMIC ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/LICENSE =================================================================== --- *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/LICENSE (rev 0) +++ *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/LICENSE 2017-08-09 23:12:41 UTC (rev 13268) @@ -0,0 +1,115 @@ +Creative Commons Corporation (“Creative Commons”) is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an “as-is” basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible. + +Using Creative Commons Public Licenses + +Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses. + +Considerations for licensors: Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC-licensed material, or material used under an exception or limitation to copyright. More considerations for licensors. +Considerations for the public: By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensor’s permission is not necessary for any reason–for example, because of any applicable exception or limitation to copyright–then that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described. Although not required by our licenses, you are encouraged to respect those requests where reasonable. More considerations for the public. +Creative Commons Attribution-ShareAlike 4.0 International Public License + +By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution-ShareAlike 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions. + +Section 1 – Definitions. + +Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image. +Adapter's License means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License. +BY-SA Compatible License means a license listed at creativecommons.org/compatiblelicenses, approved by Creative Commons as essentially the equivalent of this Public License. +Copyright and Similar Rights means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights. +Effective Technological Measures means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements. +Exceptions and Limitations means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material. +License Elements means the license attributes listed in the name of a Creative Commons Public License. The License Elements of this Public License are Attribution and ShareAlike. +Licensed Material means the artistic or literary work, database, or other material to which the Licensor applied this Public License. +Licensed Rights means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license. +Licensor means the individual(s) or entity(ies) granting rights under this Public License. +Share means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them. +Sui Generis Database Rights means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world. +You means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning. + +Section 2 – Scope. + +License grant. +Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to: +reproduce and Share the Licensed Material, in whole or in part; and +produce, reproduce, and Share Adapted Material. +Exceptions and Limitations. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions. +Term. The term of this Public License is specified in Section 6(a). +Media and formats; technical modifications allowed. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material. +Downstream recipients. +Offer from the Licensor – Licensed Material. Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License. +Additional offer from the Licensor – Adapted Material. Every recipient of Adapted Material from You automatically receives an offer from the Licensor to exercise the Licensed Rights in the Adapted Material under the conditions of the Adapter’s License You apply. +No downstream restrictions. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material. +No endorsement. Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i). +Other rights. + +Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise. +Patent and trademark rights are not licensed under this Public License. +To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties. + +Section 3 – License Conditions. + +Your exercise of the Licensed Rights is expressly made subject to the following conditions. + +Attribution. + +If You Share the Licensed Material (including in modified form), You must: + +retain the following if it is supplied by the Licensor with the Licensed Material: +identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated); +a copyright notice; +a notice that refers to this Public License; +a notice that refers to the disclaimer of warranties; +a URI or hyperlink to the Licensed Material to the extent reasonably practicable; +indicate if You modified the Licensed Material and retain an indication of any previous modifications; and +indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License. +You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information. +If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable. + +ShareAlike. + +In addition to the conditions in Section 3(a), if You Share Adapted Material You produce, the following conditions also apply. + +The Adapter’s License You apply must be a Creative Commons license with the same License Elements, this version or later, or a BY-SA Compatible License. +You must include the text of, or the URI or hyperlink to, the Adapter's License You apply. You may satisfy this condition in any reasonable manner based on the medium, means, and context in which You Share Adapted Material. +You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, Adapted Material that restrict exercise of the rights granted under the Adapter's License You apply. + +Section 4 – Sui Generis Database Rights. + +Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material: + +for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database; +if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material, including for purposes of Section 3(b); and +You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database. +For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights. + +Section 5 – Disclaimer of Warranties and Limitation of Liability. + +Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You. +To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You. +The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability. + +Section 6 – Term and Termination. + +This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically. +Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates: + +automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or +upon express reinstatement by the Licensor. +For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License. +For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License. +Sections 1, 5, 6, 7, and 8 survive termination of this Public License. + +Section 7 – Other Terms and Conditions. + +The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed. +Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License. + +Section 8 – Interpretation. + +For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License. +To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions. +No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor. +Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority. +Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” The text of the Creative Commons public licenses is dedicated to the public domain under the CC0 Public Domain Dedication. Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at creativecommons.org/policies, Creative Commons does not authorize the use of the trademark “Creative Commons” or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses. + +Creative Commons may be contacted at creativecommons.org. \ No newline at end of file Property changes on: *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/LICENSE ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Modified: *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/class/fonts.php =================================================================== --- *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/class/fonts.php 2017-07-30 18:43:52 UTC (rev 13267) +++ *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/class/fonts.php 2017-08-09 23:12:41 UTC (rev 13268) @@ -276,9 +276,63 @@ return $url; } - - /** + * + * @param string $format + * @return string[]|unknown[] + */ + function getFontFile($format = 'eot') + { + require (dirname(__DIR__) . DIRECTORY_SEPARATOR . 'header.php'); + mkdir($dir = constant("_MD_CONVERT_PATH_UPLOADS") . DIRECTORY_SEPARATOR . sha1(microtime(true)), 0777, true); + copy(self::getCachedFile(), $file = $dir . DIRECTORY_SEPARATOR . self::getVar('fontfile')); + $scripts = file(dirname(__DIR__) . DIRECTORY_SEPARATOR . "include" . DIRECTORY_SEPARATOR . "data" . DIRECTORY_SEPARATOR . "convert-fonts-distribution.pe"); + foreach($scripts as $key => $value) + if ($key>0) + if (!strpos($value, $format)) + unset($scripts[$key]); + file_put_contents($script = $dir . DIRECTORY_SEPARATOR . $this->getVar('referee') . '.pe', implode('',$scripts)); + $outt = array(); + exec($exe = sprintf(DIRECTORY_SEPARATOR . "usr" . DIRECTORY_SEPARATOR . "bin" . DIRECTORY_SEPARATOR . "fontforge -script \"%s\" \"%s\"", $script, $file), $outt, $return); + foreach(getCompleteFontsListAsArray($dir) as $typal => $files) + { + if ($typal == $format) + { + foreach($files as $fl) + { + $data = file_get_contents($fl); + $mime = mime_content_type($fl); + continue; + continue; + } + } + } + $outt = array(); + exec("rm -Rf $dir", $outt, $return); + if (!empty($data) && !empty($mime)) + { + return array('data' => $data, 'mime' => $mime); + } + } + + /** + * + * @param string $type + * @return string + */ + function getFontURL($type='referee', $format = 'eot') + { + require (dirname(__DIR__) . DIRECTORY_SEPARATOR . 'header.php'); + if ($GLOBALS['convertConfigsList']['htaccess']) { + $url = XOOPS_URL . '/' . $GLOBALS['convertConfigsList']['base'] . '/css/font/'.$this->getVar($type).'.'.$format; + } else { + $url = XOOPS_URL . '/modules/' . _MD_CONVERT_MODULE_DIRNAME . '/css-font.php?id='.$this->getVar($type).'&format='.$format; + } + return $url; + } + + + /** * * @param string $type * @return string @@ -293,13 +347,99 @@ } return $url; } + /** + * + * @param string $type + * @return string + */ + function getCSSURL($type='referee') + { + require (dirname(__DIR__) . DIRECTORY_SEPARATOR . 'header.php'); + if ($GLOBALS['convertConfigsList']['htaccess']) { + $url = XOOPS_URL . '/' . $GLOBALS['convertConfigsList']['base'] . '/css/'.$this->getVar($type).'.css'; + } else { + $url = XOOPS_URL . '/modules/' . _MD_CONVERT_MODULE_DIRNAME . '/css.php?id='.$this->getVar($type); + } + return $url; + } + + /** * + * @param string $type + * @return string[] + */ + function getCSSURLs($type='referee') + { + require (dirname(__DIR__) . DIRECTORY_SEPARATOR . 'header.php'); + static $fonts = array(); + if (empty($fonts)) + { + foreach(array_keys(fontsUseragentSupportedArray()) as $fonttype) + { + $fonts[$fonttype] = $this->getFontURL($type, $fonttype); + } + } + return $fonts; + } + + /** + * + * @param string $type * @return string */ + function getCSS($type = 'referee') + { + require (dirname(__DIR__) . DIRECTORY_SEPARATOR . 'header.php'); + static $names = array(); + static $css = array(); + if (empty($names)) + { + $names[] = $this->getvar('name'); + $names[] = str_replace(" ", "-", strtolower($this->getvar('name'))); + $tags = explode(",", str_replace(" ", "", $this->getvar('tags'))); + sort($tags); + if (count($tags)>1) + $names[] = ucwords(strtolower(implode(' ', $tags))); + $names[] = $this->getvar('barcode'); + $names[] = $this->getvar('referee'); + } + + foreach($names as $name) + { + if (empty($css[$name])) + { + $buff = array("local('||')"); + foreach($fonts = self::getCSSURLs($type) as $typal => $url) + { + $buff[] = "url('".$url."') format('".$typal."')"; + + } + $css[$name]= array(); + $css[$name][] = ""; + $css[$name][] = "/** Font: ".$this->getvar('name')." **/"; + $css[$name][] = "@font-face {"; + $css[$name][] = "\tfont-family: '$name';"; + $css[$name][] = "\tsrc: url('".$fonts['eot']."');"; + $css[$name][] = "\tsrc: ".implode(", ", $buff) .";"; + $css[$name][] = "}"; + } + } + $sheet = "/**\n * @see " . self::getFontDisplayURL($type) . "\n * @see " . self::getDownloadURL($type) . "\n**/"; + foreach($css as $name => $styles) + $sheet .= "\n\n" . implode("\n", $styles); + return $sheet; + } + + /** + * + * @return string + */ function getCachedFile() { + require (dirname(__DIR__) . DIRECTORY_SEPARATOR . 'header.php'); + if (!is_dir(_MD_CONVERT_PATH_CACHE)) mkdir(_MD_CONVERT_PATH_CACHE, 0777, true); @@ -693,6 +833,8 @@ { if (strlen($object->getVar('name'))>0) { + if (is_object($GLOBALS['xoTheme'])) + $GLOBALS['xoTheme']->addStylesheet($object->getCSSURL()); if ($first == 0) { $html[] = "\t\t<div style='width: 100%; padding: 3px; height: 65px; margin-bottom: 7px; clear: both;' class='".($odd!='odd'?$odd='odd':$odd='even')."'>"; @@ -699,7 +841,7 @@ } $first++; $html[] = "\t\t\t<div style='width: 45.49%; clear: none; border: 2px dotted #823497; margin: 7px; postion: relative; display: block; padding: 7px; float: ".($float!='left'?$float='left':$odd='right').";'>"; - $html[] = "\t\t\t\t<a href='".$object->getFontDisplayURL()."' target='_blank'><img src='" . $object->getNamingCueURL() . "' width='100%' style='max-height: 45px; min-height: 32px; left: -36px; position: relative;' alt='".$object->getVar('name')."' /?></a>"; + $html[] = "\t\t\t\t<a href='".$object->getFontDisplayURL()."' target='_blank'><span style=\"font-family: '" . $object->getVar('name') . "' !important; font-size: 1.99em\">".$object->getVar('name')."</span></a>"; $html[] = "\t\t\t</div>"; if ($first == 2) { Added: *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/css/.htaccess =================================================================== --- *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/css/.htaccess (rev 0) +++ *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/css/.htaccess 2017-08-09 23:12:41 UTC (rev 13268) @@ -0,0 +1,13 @@ +php_value memory_limit 256M +php_value upload_max_filesize 29M +php_value post_max_size 50M +php_value display_errors 1 +php_value log_errors 1 +php_value error_reporting 1 + + +RewriteEngine On +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d + +RewriteRule ^(.*?).css ../css.php?id=$1 [L,NC,QSA] Property changes on: *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/css/.htaccess ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/css/font/.htaccess =================================================================== --- *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/css/font/.htaccess (rev 0) +++ *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/css/font/.htaccess 2017-08-09 23:12:41 UTC (rev 13268) @@ -0,0 +1,13 @@ +php_value memory_limit 256M +php_value upload_max_filesize 29M +php_value post_max_size 50M +php_value display_errors 1 +php_value log_errors 1 +php_value error_reporting 1 + + +RewriteEngine On +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d + +RewriteRule ^(.*?).(bdf|bin|cefcff|dfont|eot|fnt|gai|gsf|hqx|ik|mf|otb|otf|pcf|pdb|pf3|pfa|pfb|pmf|pt3|sfd|svg|t42|ttc|ttf|woff|fon) ../../css-font.php?id=$1&format=$2 [L,NC,QSA] Property changes on: *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/css/font/.htaccess ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/css-font.php =================================================================== --- *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/css-font.php (rev 0) +++ *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/css-font.php 2017-08-09 23:12:41 UTC (rev 13268) @@ -0,0 +1,58 @@ +<?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'); + + if (!isset($_GET['id'])) + { + redirect_header(XOOPS_URL . '/modules/convert/index.php', 4, _ERR_CONVERT_GLYPH_NOIDSPECIFIED); + exit(0); + } + + if (!isset($_GET['format']) && !in_array($_GET['format'], array('bdf', 'bin', 'cef', 'cff', 'dfont', 'eot', 'fnt', 'gai', 'gsf', 'hqx', 'ik', 'mf', 'otb', 'otf', 'pcf', 'pdb', 'pf3', 'pfa', 'pfb', 'pmf', 'pt3', 'sfd', 'svg', 't42', 'ttc', 'ttf', 'woff', 'fon'))) + { + redirect_header(XOOPS_URL . '/modules/convert/index.php', 4, _ERR_CONVERT_FONT_NOFORMATSPECIFIED); + exit(0); + } + + $fontHandler = xoops_getModuleHandler('fonts',_MD_CONVERT_MODULE_DIRNAME); + + if (!$font = $fontHandler->getByHash($_GET['id'])) + { + redirect_header(XOOPS_URL . '/modules/convert/index.php', 4, _ERR_CONVERT_GLYPH_IDNOTFOUND); + exit(0); + } + + if ($GLOBALS['convertConfigsList']['htaccess']) { + if (!strpos(sprintf($font->getFontURL('referee'), $_GET['format']), $_SERVER['REQUEST_URI']) && !strpos(sprintf($font->getFontURL('barcode'), $_GET['format']), $_SERVER['REQUEST_URI'])) { + header('Location: ' . sprintf($font->getFontURL('referee'), $_GET['format'])); + exit(0); + } + } + + $data = $font->getFontFile($_GET['format']); + header('Context-type: '. $data['mime']); + die($data['data']); + exit(0); + +?> \ No newline at end of file Added: *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/css.php =================================================================== --- *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/css.php (rev 0) +++ *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/css.php 2017-08-09 23:12:41 UTC (rev 13268) @@ -0,0 +1,51 @@ +<?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'); + + if (!isset($_GET['id'])) + { + redirect_header(XOOPS_URL . '/modules/convert/index.php', 4, _ERR_CONVERT_GLYPH_NOIDSPECIFIED); + exit(0); + } + + $fontHandler = xoops_getModuleHandler('fonts',_MD_CONVERT_MODULE_DIRNAME); + + if (!$font = $fontHandler->getByHash($_GET['id'])) + { + redirect_header(XOOPS_URL . '/modules/convert/index.php', 4, _ERR_CONVERT_GLYPH_IDNOTFOUND); + exit(0); + } + + if ($GLOBALS['convertConfigsList']['htaccess']) { + if (!strpos($font->getCSSURL('referee'), $_SERVER['REQUEST_URI']) && !strpos($font->getCSSURL('barcode'), $_SERVER['REQUEST_URI'])) { + header('Location: ' . $font->getCSSURL('referee')); + exit(0); + } + } + + header('Context-type: css/text'); + die($font->getCSS()); + exit(0); + +?> \ No newline at end of file Modified: *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/font.php =================================================================== --- *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/font.php 2017-07-30 18:43:52 UTC (rev 13267) +++ *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/font.php 2017-08-09 23:12:41 UTC (rev 13268) @@ -58,20 +58,18 @@ $(\"#tabs\" ).tabs(); } );"); $GLOBALS['xoTheme']->addStylesheet(XOOPS_URL . "/modules/' . basename(__DIR__) . '/language/" . $GLOBALS['xoopsConfig']['language'] . "/style.css"); + $GLOBALS['xoTheme']->addStylesheet($font->getCSSURL()); $upload = $uploadsHandler->get($font->getVar('uploadid')); - if (strlen($font->getVar('identity'))) + xoops_load("XoopsCache"); + if (!$cssdata = XoopsCache::read($cache = "convert_css_".md5($font->getVar('referee')))) { - xoops_load("XoopsCache"); - if (!$cssdata = XoopsCache::read($cache = "convert_css_".md5($font->getVar('identity')))) - { - $cssdata = array(); - $cssdata['url']="http://fonts.labs.coop/v2/font/".$font->getVar('identity')."/css.api"; - $cssdata['code'] = getURIData($cssdata['url'], 65, 65); - XoopsCache::write($cache, $cssdata, 3600 * 24 * 7 * 4 * 48); - } - $GLOBALS['xoopsTpl']->assign('cssdata', $cssdata,0); + $cssdata = array(); + $cssdata['url'] = $font->getCSSURL(); + $cssdata['code'] = getURIData($cssdata['url'], 65, 65); + XoopsCache::write($cache, $cssdata, 3600 * 24 * 7 * 4 * 48); } + $GLOBALS['xoopsTpl']->assign('cssdata', $cssdata,0); $GLOBALS['xoopsTpl']->assign('xoops_meta_description', $keywords = 'Font: '.$font->getVar('name') . ' ~ Licensing Name: ' ._MD_CONVERT_LICENSE_NAME. ' ~ Licensing Code: ' . _MD_CONVERT_LICENSE_CODE . ' ~ Licensed Name: ' . $upload->getVar('name') . ' ~ Licensed Organisation: ' . $upload->getVar('company') . ' ~ Download Size: '.number_format($font->getvar('zip-bytes'),0).' bytes ~ Number of Files: '.number_format($font->getvar('zip-files'),0)); $GLOBALS['xoopsTpl']->assign('xoops_meta_keywords', implode(',',explode('-',sef($keywords)))); $GLOBALS['xoopsTpl']->assign('xoops_pagetitle', 'Font: ' . $font->getVar('name') . ' by ' . $upload->getVar('name') . ' ('.$upload->getVar('company').')'); Modified: *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/glyph.php =================================================================== --- *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/glyph.php 2017-07-30 18:43:52 UTC (rev 13267) +++ *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/glyph.php 2017-08-09 23:12:41 UTC (rev 13268) @@ -50,8 +50,21 @@ } } + xoops_load("XoopsCache"); + if (!$image = XoopsCache::read(md5(__FILE__.$_GET['id'].$_GET['char']))) + { + sleep(mt_rand(1,9)); + $image = array('data' => $font->getGlyphPreview($_GET['char'])); + XoopsCache::write(md5(__FILE__.$_GET['id'].$_GET['char']), $image, 8444); + } elseif (isset($image['data']) && !empty($image['data'])) { + XoopsCache::write(md5(__FILE__.$_GET['id'].$_GET['char']), $image, 8444); + } else { + sleep(mt_rand(1,9)); + $image = array('data' => $font->getGlyphPreview($_GET['char'])); + XoopsCache::write(md5(__FILE__.$_GET['id'].$_GET['char']), $image, 8444); + } header('Context-type: image/png'); - die($font->getGlyphPreview($_GET['char'])); + die($image['data']); exit(0); ?> \ No newline at end of file Modified: *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/header.php =================================================================== --- *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/header.php 2017-07-30 18:43:52 UTC (rev 13267) +++ *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/header.php 2017-08-09 23:12:41 UTC (rev 13268) @@ -21,14 +21,15 @@ * @link http://internetfounder.wordpress.com */ + if (!defined(_MD_CONVERT_MODULE_DIRNAME)) + define('_MD_CONVERT_MODULE_DIRNAME', basename(__DIR__)); + include_once (dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'mainfile.php'); ini_set('display_errors', true); - ini_set('log_errors', true); - error_reporting(E_ERROR); + error_reporting(E_ALL); - if (!defined(_MD_CONVERT_MODULE_DIRNAME)) - define('_MD_CONVERT_MODULE_DIRNAME', basename(__DIR__)); + set_time_limit(8444); xoops_loadLanguage('modinfo', _MD_CONVERT_MODULE_DIRNAME); xoops_loadLanguage('errors', _MD_CONVERT_MODULE_DIRNAME); Modified: *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/history.php =================================================================== --- *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/history.php 2017-07-30 18:43:52 UTC (rev 13267) +++ *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/history.php 2017-08-09 23:12:41 UTC (rev 13268) @@ -69,8 +69,13 @@ $xoopsOption['template_main'] = 'convert_history.html'; include $GLOBALS['xoops']->path('/header.php'); $xoTheme->addStylesheet(XOOPS_URL . "/modules/" . _MD_CONVERT_MODULE_DIRNAME . "/language/" . $GLOBALS['xoopsConfig']['language'] . "/style.css"); - foreach($fonts as $font) - $GLOBALS['xoopsTpl']->append('fonts', $font->getHistoryTile()); + $result = array(); + foreach($fonts as $keys => $font) + { + $result[$keys] = $font->getHistoryTile(); + $GLOBALS['xoTheme']->addStylesheet($font->getCSSURL()); + } + $GLOBALS['xoopsTpl']->assign('fonts', $result); xoops_load('XoopsPageNav'); $nav = new XoopsPageNav($total, $limit, $start, 'start', '&limit='.$limit); $GLOBALS['xoopsTpl']->assign('pagenav', $nav->renderNav(5)); Modified: *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/images/font-preview-extra.png =================================================================== (Binary files differ) Modified: *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/images/font-preview.png =================================================================== (Binary files differ) Added: *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/include/data/default-useragent-v1.diz =================================================================== --- *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/include/data/default-useragent-v1.diz (rev 0) +++ *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/include/data/default-useragent-v1.diz 2017-08-09 23:12:41 UTC (rev 13268) @@ -0,0 +1,29 @@ +pfa||pfa +pfb||pfb +pt3||pt3 +t42||t42 +ttf||ttf +bdf||bdf +otf||oft +otb||otb +cff||cff +cef||cef +gai||gai +woff||woff +svg||svg +ufo||ufo +pf3||pf3 +ttc||ttc +gsf||gsf +bin||bin +hqx||hqx +dfont||dfont +mf||mf +ik||ik +fon||fon +fnt||fnt +pcf||pcf +pmf||pmf +pdb||pdb +eot||eot +afm||afm \ No newline at end of file Property changes on: *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/include/data/default-useragent-v1.diz ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/include/data/default-useragent-v2.diz =================================================================== --- *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/include/data/default-useragent-v2.diz (rev 0) +++ *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/include/data/default-useragent-v2.diz 2017-08-09 23:12:41 UTC (rev 13268) @@ -0,0 +1,29 @@ +pfa||pfa +pfb||pfb +pt3||pt3 +t42||t42 +ttf||ttf +bdf||bdf +otf||oft +otb||otb +cff||cff +cef||cef +gai||gai +woff||woff +svg||svg +ufo||ufo +pf3||pf3 +ttc||ttc +gsf||gsf +bin||bin +hqx||hqx +dfont||dfont +mf||mf +ik||ik +fon||fon +fnt||fnt +pcf||pcf +pmf||pmf +pdb||pdb +eot||eot +afm||afm \ No newline at end of file Property changes on: *.xoops.org (Subdomain APIs & Sites)/fonts.xoops.org/modules/convert/include/data/default-useragent-v2.diz ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of propert... [truncated message content] |