From 4f293d76f8de1735196e50335fcefce5e98c8db1 Mon Sep 17 00:00:00 2001 From: gigamaster <1905497+gigamaster@users.noreply.github.com> Date: Sun, 1 May 2022 23:38:20 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=20=F0=9F=94=A8=20=F0=9F=8E=A8=20Sitem?= =?UTF-8?q?ap=20v2.3.1.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/index.php | 10 +++ blocks/sitemap_blocks.php | 10 +++ images/module_icon.svg | 1 + images/sitemap1.svg | 4 + include/sitemap.php | 13 +++ language/english/admin.php | 8 +- language/english/blocks.php | 6 +- language/english/help/help.html | 10 +-- language/english/main.php | 2 +- language/english/modinfo.php | 32 +++---- language/fr_utf8/admin.php | 9 +- language/fr_utf8/blocks.php | 7 +- language/fr_utf8/help/help.html | 115 ++++++++++++++++++++++++ language/fr_utf8/help/images/index.html | 1 + language/fr_utf8/help/index.html | 1 + language/fr_utf8/main.php | 2 +- language/fr_utf8/modinfo.php | 32 +++---- language/ja_utf8/admin.php | 8 +- language/ja_utf8/blocks.php | 6 +- language/ja_utf8/help/help.html | 8 +- language/ja_utf8/main.php | 2 +- language/ja_utf8/modinfo.php | 32 +++---- language/pt_utf8/admin.php | 7 ++ language/pt_utf8/blocks.php | 8 ++ language/pt_utf8/help/help.html | 115 ++++++++++++++++++++++++ language/pt_utf8/help/images/index.html | 1 + language/pt_utf8/help/index.html | 1 + language/pt_utf8/index.html | 1 + language/pt_utf8/main.php | 4 + language/pt_utf8/modinfo.php | 29 ++++++ language/pt_utf8/readme.html | 65 ++++++++++++++ plugins/soapbox.php | 2 +- plugins/xoopspoll.php | 1 - templates/sitemap_inc_eachmodule.html | 2 + xml_google.php | 13 ++- xoops_version.php | 40 ++++++--- 36 files changed, 510 insertions(+), 98 deletions(-) create mode 100644 images/module_icon.svg create mode 100644 images/sitemap1.svg create mode 100644 language/fr_utf8/help/help.html create mode 100644 language/fr_utf8/help/images/index.html create mode 100644 language/fr_utf8/help/index.html create mode 100644 language/pt_utf8/admin.php create mode 100644 language/pt_utf8/blocks.php create mode 100644 language/pt_utf8/help/help.html create mode 100644 language/pt_utf8/help/images/index.html create mode 100644 language/pt_utf8/help/index.html create mode 100644 language/pt_utf8/index.html create mode 100644 language/pt_utf8/main.php create mode 100644 language/pt_utf8/modinfo.php create mode 100644 language/pt_utf8/readme.html diff --git a/admin/index.php b/admin/index.php index 79510fb..f3c0467 100644 --- a/admin/index.php +++ b/admin/index.php @@ -1,4 +1,14 @@ \ No newline at end of file diff --git a/images/sitemap1.svg b/images/sitemap1.svg new file mode 100644 index 0000000..02d92e1 --- /dev/null +++ b/images/sitemap1.svg @@ -0,0 +1,4 @@ + + + \ No newline at end of file diff --git a/include/sitemap.php b/include/sitemap.php index ca72642..99b7f3e 100644 --- a/include/sitemap.php +++ b/include/sitemap.php @@ -1,4 +1,15 @@ getVar('name'); $block['modules'][$i]['directory'] = $modules[$i]->getVar('dirname'); + $old_error_reporting = error_reporting() ; error_reporting( $old_error_reporting & (~E_NOTICE) ) ; $sublinks =& $modules[$i]->subLink(); error_reporting( $old_error_reporting ) ; + if (count($sublinks) > 0) { foreach($sublinks as $sublink){ $block['modules'][$i]['sublinks'][] = ['name' => $sublink['name'], 'url' => XOOPS_URL.'/modules/'.$modules[$i]->getVar('dirname').'/'.$sublink['url']]; diff --git a/language/english/admin.php b/language/english/admin.php index 143b778..db4321f 100644 --- a/language/english/admin.php +++ b/language/english/admin.php @@ -1,6 +1,6 @@ @@ -14,7 +14,7 @@
-
+

Sitemap

Automated HTML Sitemap and XML file for search engines

developed by Chanoir, and several developers have contributed with plugins. diff --git a/language/english/main.php b/language/english/main.php index 834ec16..77e220c 100644 --- a/language/english/main.php +++ b/language/english/main.php @@ -1,3 +1,3 @@ Dirnames must be separated by commas, eg: downloads,widget"); +define( '_MI_INVISIBLE_DIRNAMES' , 'Hide directory names from Sitemap'); +define( '_MI_INVISIBLE_DIRNAMESDSC' , "Specify the directory name of modules to hide from Sitemap.
Dirnames must be separated by commas, eg: downloads,widget"); diff --git a/language/fr_utf8/admin.php b/language/fr_utf8/admin.php index 2273846..0b5f15b 100644 --- a/language/fr_utf8/admin.php +++ b/language/fr_utf8/admin.php @@ -1,7 +1,6 @@ + + +

+ + +
+ + +
+

Sitemap

+

Automated HTML Sitemap and XML file for search engines +

developed by Chanoir, and several developers have contributed with plugins. +

From the module preferences you can customize your Sitemap message, select to show sub-categories, +

use Module Management's field "order" to exclude a module (invisible, private). +

and specify the directory name of modules that should be hide from Sitemap. +

If it's not already installed, copy modules/sitemap/xml_google.php to your public root (public_html/xml_google.php). +

and edit the file "robots.txt" to add your sitemap: https://siteurl.com/xml_google.php +

+ + + + + +
+ + +
+

Sitemap plugins

+
    +
  • AMS: jseymour +
  • articles: PsyDoc +
  • bluesbb: StingBlue +
  • booklists:noisia +
  • catads: HMN +
  • debaser: proshack +
  • extcal: bonnaudet eric +
  • formulaire: philou +
  • liaise:monsuke +
  • myAds:Tom_G3X +
  • myalbum-P: suin, GIJOE +
  • mybbs: suin +
  • mydownloads: Ryuji +
  • mylinks: Ryuji +
  • mymovie: t_sakurai +
  • newbb: Ryuji +
  • newbb2: D.J. +
  • news: chanoir +
  • pages: philou +
  • pbboard: karedokx +
  • piCal-0.6x: GIJOE +
  • popnupblog: dashboard +
  • sections: onego +
  • smartfaq: HMN +
  • smartsection: karedokx +
  • soapbox: domifara +
  • sora_typethree: morisoba +
  • tutorials: HMN +
  • utype_bbs: morisoba +
  • weblinks: Ryuji +
  • weblog: fugafuga +
  • wfdownloads: HMN +
  • wfsection: onego +
  • wordbook: onego +
  • wordpress: Ryuji +
  • xcGallery: t_sakurai, karedokx +
  • xfsection: onego +
  • xoopsfaq: onego +
  • xoopsheadline: GIJOE +
  • xoopspoll: suin, bananas +
  • xwords: onego +
  • yybbs: suin +
+ +
  • PLUGIN in module's directory +
  • amaxoop +
  • piCal-0.7x +
  • xhld +
+
+ + +
+ + + + + +
+ + +
+

The Sitemap block

+

This block displays a tree-like sitemap that can be expanded +

The block can be displayed to selected user groups +

and cached as well to improve performance.

+
+ + + diff --git a/language/fr_utf8/help/images/index.html b/language/fr_utf8/help/images/index.html new file mode 100644 index 0000000..990cbd6 --- /dev/null +++ b/language/fr_utf8/help/images/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/language/fr_utf8/help/index.html b/language/fr_utf8/help/index.html new file mode 100644 index 0000000..990cbd6 --- /dev/null +++ b/language/fr_utf8/help/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/language/fr_utf8/main.php b/language/fr_utf8/main.php index 1ce7799..71a011e 100644 --- a/language/fr_utf8/main.php +++ b/language/fr_utf8/main.php @@ -1,3 +1,3 @@ (Normalement 0 ou à blanc)"); +define( '_MI_INVISIBLE_WEIGHTS' , 'Poids des modules sur cacher'); +define( '_MI_INVISIBLE_WEIGHTSDSC' , "Les modules qui ont ce numéro d'ordre dans l'administration des modules seront invisibles. Les nombres doivent être séparées par une virgule.
(Normalement 0 ou à blanc)"); -define('_MI_INVISIBLE_DIRNAMES','Nom du répertoire des modules à cacher'); -define('_MI_INVISIBLE_DIRNAMESDSC',"Spécifier le nom des modules qui doivent être cachés.
Les noms des répertoires doivent être séparés par une virgule.
ex: xoopsheadline,newbb "); +define( '_MI_INVISIBLE_DIRNAMES' , 'Nom du répertoire des modules à cacher'); +define( '_MI_INVISIBLE_DIRNAMESDSC' , "Spécifier le nom des modules qui doivent être cachés.
Les noms des répertoires doivent être séparés par une virgule.
ex: xoopsheadline,newbb "); diff --git a/language/ja_utf8/admin.php b/language/ja_utf8/admin.php index d392255..33aa59f 100644 --- a/language/ja_utf8/admin.php +++ b/language/ja_utf8/admin.php @@ -1,6 +1,6 @@ diff --git a/language/ja_utf8/main.php b/language/ja_utf8/main.php index 834ec16..77e220c 100644 --- a/language/ja_utf8/main.php +++ b/language/ja_utf8/main.php @@ -1,3 +1,3 @@ 例) xoopsheadline,newbb"); +define( '_MI_INVISIBLE_DIRNAMES' , '「ディレクトリ名」による非表示指定'); +define( '_MI_INVISIBLE_DIRNAMESDSC' , "サイトマップで非表示としたいモジュールを、ディレクトリ名で指定してください。複数指定する場合は、カンマで区切ります。
例) xoopsheadline,newbb"); diff --git a/language/pt_utf8/admin.php b/language/pt_utf8/admin.php new file mode 100644 index 0000000..f22b761 --- /dev/null +++ b/language/pt_utf8/admin.php @@ -0,0 +1,7 @@ + + + + + + +
+ + +
+

Sitemap

+

Automated HTML Sitemap and XML file for search engines +

developed by Chanoir, and several developers have contributed with plugins. +

From the module preferences you can customize your Sitemap message, select to show sub-categories, +

use Module Management's field "order" to exclude a module (invisible, private). +

and specify the directory name of modules that should be hide from Sitemap. +

If it's not already installed, copy modules/sitemap/xml_google.php to your public root (public_html/xml_google.php). +

and edit the file "robots.txt" to add your sitemap: https://siteurl.com/xml_google.php +

+ + + + + +
+ + +
+

Sitemap plugins

+
    +
  • AMS: jseymour +
  • articles: PsyDoc +
  • bluesbb: StingBlue +
  • booklists:noisia +
  • catads: HMN +
  • debaser: proshack +
  • extcal: bonnaudet eric +
  • formulaire: philou +
  • liaise:monsuke +
  • myAds:Tom_G3X +
  • myalbum-P: suin, GIJOE +
  • mybbs: suin +
  • mydownloads: Ryuji +
  • mylinks: Ryuji +
  • mymovie: t_sakurai +
  • newbb: Ryuji +
  • newbb2: D.J. +
  • news: chanoir +
  • pages: philou +
  • pbboard: karedokx +
  • piCal-0.6x: GIJOE +
  • popnupblog: dashboard +
  • sections: onego +
  • smartfaq: HMN +
  • smartsection: karedokx +
  • soapbox: domifara +
  • sora_typethree: morisoba +
  • tutorials: HMN +
  • utype_bbs: morisoba +
  • weblinks: Ryuji +
  • weblog: fugafuga +
  • wfdownloads: HMN +
  • wfsection: onego +
  • wordbook: onego +
  • wordpress: Ryuji +
  • xcGallery: t_sakurai, karedokx +
  • xfsection: onego +
  • xoopsfaq: onego +
  • xoopsheadline: GIJOE +
  • xoopspoll: suin, bananas +
  • xwords: onego +
  • yybbs: suin +
+ +
  • PLUGIN in module's directory +
  • amaxoop +
  • piCal-0.7x +
  • xhld +
+
+ + +
+ + + + + +
+ + +
+

The Sitemap block

+

This block displays a tree-like sitemap that can be expanded +

The block can be displayed to selected user groups +

and cached as well to improve performance.

+
+ + + diff --git a/language/pt_utf8/help/images/index.html b/language/pt_utf8/help/images/index.html new file mode 100644 index 0000000..990cbd6 --- /dev/null +++ b/language/pt_utf8/help/images/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/language/pt_utf8/help/index.html b/language/pt_utf8/help/index.html new file mode 100644 index 0000000..990cbd6 --- /dev/null +++ b/language/pt_utf8/help/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/language/pt_utf8/index.html b/language/pt_utf8/index.html new file mode 100644 index 0000000..990cbd6 --- /dev/null +++ b/language/pt_utf8/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/language/pt_utf8/main.php b/language/pt_utf8/main.php new file mode 100644 index 0000000..0fdade2 --- /dev/null +++ b/language/pt_utf8/main.php @@ -0,0 +1,4 @@ + */ + +// Appended by Xoops Language Checker -GIJOE- in 2006-10-28 05:37:02 +define( '_MI_SITEMAP_ADMENU_TOP' , 'TOP'); + +define( '_MI_SITEMAP_NAME' , 'Mapa do site'); +define( '_MI_SITEMAP_MESSAGE' , 'Mensagem. Edite na administração! ;)'); + +define( '_MI_SITEMAP_ADMENU_MYBLOCKSADMIN' , 'Administração de blocos/grupos'); + +define( '_MI_SITEMAP_BLOCKNAME' , 'Mapa do site'); +define( '_MI_SITEMAP_BLOCKDESC' , 'Exibe o mapa do site em um bloco.'); + +define( '_MI_MESSAGE' , 'Mensagem'); +define( '_MI_MESSAGEEDSC' , ''); +// add by Ryuji +define( '_MI_SHOW_SUBCATEGORIES' , 'Exibir subcategorias?'); +define( '_MI_SHOW_SUBCATEGORIESDSC' , ''); + +define( '_MI_ALLTIME_GUEST' , 'Exibir sempre com permissões de anonimo?'); +define( '_MI_ALLTIME_GUESTDSC' , 'Caso o cache para este modulo esteja ativado, selecione "Sim".'); + +define( '_MI_INVISIBLE_WEIGHTS' , 'Configuração de "Ordem de exibição" para ocultar'); +define( '_MI_INVISIBLE_WEIGHTSDSC' , 'Modulos a serem ocultos no mapa no site serão determinados de acordo com o valor da "Ordem de exibição" na tela de administração de modulos. (Normalmente "0" ou em branco)'); + +define( '_MI_INVISIBLE_DIRNAMES' , 'Configuração de nome de diretorio a serem ocultos'); +define( '_MI_INVISIBLE_DIRNAMESDSC' , 'Defina os modulos a serem ocultos no mapa do site pelo nome do diretorio. Separe-os por virgulas para indicar mais de um.
Ex.: xoopsheadline,newbb'); diff --git a/language/pt_utf8/readme.html b/language/pt_utf8/readme.html new file mode 100644 index 0000000..3f0923d --- /dev/null +++ b/language/pt_utf8/readme.html @@ -0,0 +1,65 @@ + + + + + + + +
READ ME
+Thank you for using this chanoir's KIMAGURE module. +
    +
  • After installing this, edit messages in preferences
  • +
  • Use with your own risk.
  • +
+
THANKS ...
+plugins (2005/02/18) +
    +
  • news
  • +
  • newbb:by Ryuji
  • +
  • weblinks:by Ryuji
  • +
  • wordpress:by Ryuji
  • +
  • mybbs:by tmstms
  • +
  • myalbum-P:by tmstms and GIJOE
  • +
  • xoopsheadline:by GIJOE
  • +
  • xhld0(2.83 and upper):by GIJOE
  • +
  • mylinks:by Ryuji
  • +
  • mydownloads:by Ryuji
  • +
  • myAds:by Tom_G3X
  • +
  • piCal:by GIJOE
  • +
  • yybbs:by tmstms
  • +
  • weblog:by fugafuga
  • +
  • U Type BBS:by morisoba
  • +
  • smartfaq: by HMN
  • +
  • wfdownloads: by HMN
  • +
  • tutorials: by HMN
  • +
  • catads: by HMN
  • +
  • sora_typethree: by morisoba
  • +
  • BluesBB: by blues
  • +
  • PopnupBlog: by dashboard
  • +
  • xoopsfaq: by onego
  • +
  • sections: by onego
  • +
  • xoopspoll: by tmstms , bananas
  • +
  • wfsection: by onego
  • +
  • xfsection: by onego
  • +
  • articles: by PsyDoc
  • +
  • mymovie: by t_sakurai
  • +
  • xcGallery: by t_sakurai
  • +
  • newbb2: by D.J.
  • +
  • SoapBox: by domifara
  • +
  • wordbook: by onego
  • +
  • xwords: by onego
  • +
  • amaxoop: by taquino
  • +
+
+ +Another thanks to chiron.
+Many more thanks to Ryuji
+
+And my name is chanoir as a module developper, hence chatnoir as a theme developper. +
+
+ +
+ +
I LOVE YOU ALL ++ PetitOOps ++ chanoir
+
diff --git a/plugins/soapbox.php b/plugins/soapbox.php index 8d3439c..861edba 100644 --- a/plugins/soapbox.php +++ b/plugins/soapbox.php @@ -5,7 +5,7 @@ function b_sitemap_soapbox(){ global $xoopsUser ; $ret = []; - $db =& Database::getInstance(); + $db = &XoopsDatabaseFactory::getDatabaseConnection(); $myts =& MyTextSanitizer::getInstance(); //get soapbox module object for readable columnIDs check diff --git a/plugins/xoopspoll.php b/plugins/xoopspoll.php index 9f556cf..9cbccb9 100644 --- a/plugins/xoopspoll.php +++ b/plugins/xoopspoll.php @@ -1,7 +1,6 @@ "><{$sublink.name}> <{/foreach}> + <{/if}> + diff --git a/xml_google.php b/xml_google.php index ee25342..6b30774 100644 --- a/xml_google.php +++ b/xml_google.php @@ -1,4 +1,14 @@ getUser( $backup_uid ) ; // $xoopsUserIsAdmin = $xoopsUser->isAdmin(); //} - +// Identical to the date() function except that the time returned is Greenwich Mean Time (GMT) +// simple UTC timestamp : gmdate("Y-m-d\TH:i:s\Z"); $xoopsTpl->assign('lastmod', gmdate( 'Y-m-d\TH:i:s\Z' ) ); // TODO $xoopsTpl->assign('sitemap', $sitemap); $xoopsTpl->assign('msgs', $myts->displayTarea($msgs,1)); diff --git a/xoops_version.php b/xoops_version.php index c89c9cf..bc81981 100644 --- a/xoops_version.php +++ b/xoops_version.php @@ -1,32 +1,47 @@