You can subscribe to this list here.
2012 |
Jan
|
Feb
(214) |
Mar
(139) |
Apr
(198) |
May
(187) |
Jun
(151) |
Jul
(210) |
Aug
(169) |
Sep
(58) |
Oct
(53) |
Nov
(54) |
Dec
(301) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2013 |
Jan
(348) |
Feb
(178) |
Mar
(219) |
Apr
(154) |
May
(117) |
Jun
(194) |
Jul
(61) |
Aug
(132) |
Sep
(121) |
Oct
(110) |
Nov
(11) |
Dec
(18) |
2014 |
Jan
(34) |
Feb
(50) |
Mar
(82) |
Apr
(98) |
May
(39) |
Jun
(111) |
Jul
(67) |
Aug
(36) |
Sep
(33) |
Oct
(26) |
Nov
(53) |
Dec
(44) |
2015 |
Jan
(29) |
Feb
(47) |
Mar
(25) |
Apr
(19) |
May
(23) |
Jun
(20) |
Jul
(49) |
Aug
(7) |
Sep
(10) |
Oct
(10) |
Nov
(4) |
Dec
(25) |
2016 |
Jan
(8) |
Feb
(7) |
Mar
(1) |
Apr
|
May
(3) |
Jun
|
Jul
(1) |
Aug
(2) |
Sep
|
Oct
|
Nov
(7) |
Dec
(5) |
2017 |
Jan
(4) |
Feb
|
Mar
|
Apr
|
May
(15) |
Jun
|
Jul
(18) |
Aug
(24) |
Sep
|
Oct
(14) |
Nov
|
Dec
|
2018 |
Jan
|
Feb
(22) |
Mar
|
Apr
(11) |
May
(1) |
Jun
(17) |
Jul
(2) |
Aug
(2) |
Sep
|
Oct
(6) |
Nov
(5) |
Dec
|
2019 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(2) |
2025 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
From: <ce...@us...> - 2012-05-31 03:49:39
|
Revision: 9602 http://xoops.svn.sourceforge.net/xoops/?rev=9602&view=rev Author: cesag Date: 2012-05-31 03:49:31 +0000 (Thu, 31 May 2012) Log Message: ----------- add of french translation of mysearch 1.2 Added Paths: ----------- XoopsLanguages/french/modules/mysearch/ XoopsLanguages/french/modules/mysearch/mysearch 1.2/ XoopsLanguages/french/modules/mysearch/mysearch 1.2/french/ XoopsLanguages/french/modules/mysearch/mysearch 1.2/french/admin.php XoopsLanguages/french/modules/mysearch/mysearch 1.2/french/blocks.php XoopsLanguages/french/modules/mysearch/mysearch 1.2/french/help/ XoopsLanguages/french/modules/mysearch/mysearch 1.2/french/help/help.html XoopsLanguages/french/modules/mysearch/mysearch 1.2/french/help/index.html XoopsLanguages/french/modules/mysearch/mysearch 1.2/french/index.html XoopsLanguages/french/modules/mysearch/mysearch 1.2/french/main.php XoopsLanguages/french/modules/mysearch/mysearch 1.2/french/modinfo.php XoopsLanguages/french/modules/mysearch/mysearch 1.2/french_iso/ XoopsLanguages/french/modules/mysearch/mysearch 1.2/french_iso/admin.php XoopsLanguages/french/modules/mysearch/mysearch 1.2/french_iso/blocks.php XoopsLanguages/french/modules/mysearch/mysearch 1.2/french_iso/help/ XoopsLanguages/french/modules/mysearch/mysearch 1.2/french_iso/help/help.html XoopsLanguages/french/modules/mysearch/mysearch 1.2/french_iso/help/index.html XoopsLanguages/french/modules/mysearch/mysearch 1.2/french_iso/index.html XoopsLanguages/french/modules/mysearch/mysearch 1.2/french_iso/main.php XoopsLanguages/french/modules/mysearch/mysearch 1.2/french_iso/modinfo.php Added: XoopsLanguages/french/modules/mysearch/mysearch 1.2/french/admin.php =================================================================== --- XoopsLanguages/french/modules/mysearch/mysearch 1.2/french/admin.php (rev 0) +++ XoopsLanguages/french/modules/mysearch/mysearch 1.2/french/admin.php 2012-05-31 03:49:31 UTC (rev 9602) @@ -0,0 +1,84 @@ +<?php +// ------------------------------------------------------------------------ // +// mysearch - MODULE FOR XOOPS 2 // +// Copyright (c) 2005-2006 Instant Zero // +// <http://xoops.instant-zero.com/> // +// ------------------------------------------------------------------------- // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // + +define("_AM_MYSEARCH_DBUPDATED","La base de données a été mise à jour avec succès"); +define("_AM_MYSEARCH_GENERALSET", "Options du module" ); +define("_AM_MYSEARCH_GOTOMOD","Aller au module"); +define("_AM_MYSEARCH_MODULEADMIN","Administration du module"); +define("_AM_MYSEARCH_STATS","Recherches statistiques (%d mots enregistrés)"); + +define("_AM_MYSEARCH_ID","ID"); +define("_AM_MYSEARCH_KEYWORD","Mots recherchés"); +define("_AM_MYSEARCH_KEYWORDS","Mots recherchés par jour"); +define("_AM_MYSEARCH_USER","Utilisateur"); +define("_AM_MYSEARCH_DATE","Date"); +define("_AM_MYSEARCH_MOST_SEARCH","Mots les plus recherchés"); +define("_AM_MYSEARCH_HITS","Demandes"); +define("_AM_MYSEARCH_BIGGEST_USERS","Plus grands utilisateurs de la recherche"); +define("_AM_MYSEARCH_DAY_STATS","Statistiques quotidiennes"); +define("_AM_MYSEARCH_USE","Demandes"); + +define("_AM_MYSEARCH_PRUNE","Trier"); +define("_AM_MYSEARCH_PRUNE_DATE","Trier les mots-clés avant : "); +define("_AM_MYSEARCH_PRUNE_KEYONLY","ou retirer seulement ce mot : "); +define("_AM_MYSEARCH_PRUNE_DESC","Si vous ne tapez pas de mot, le script triera par date"); +define("_AM_MYSEARCH_PRUNE_CONFIRM","Confirmez-vous la suppression des %u éléments ?"); +define("_AM_MYSEARCH_NOTHING_PRUNE","Rien à supprimer"); +define("_AM_MYSEARCH_EXPORT","Exportation"); +define('_AM_MYSEARCH_EXPORT_BETWEEN', 'Recherches exportées entre'); +define('_AM_MYSEARCH_EXPORT_AND'," et "); +define("_AM_MYSEARCH_DATE_FORMAT","Format de date (au format PHP)"); +define("_AM_MYSEARCH_DELIMITER","Délimiteur de champs"); +define("_AM_MYSEARCH_EXPORT_ERROR","Erreur, impossible de créer le fichier d'exportation %s"); +define('_AM_MYSEARCH_EXPORT_READY', "Votre fichier d'exportation est disponible. <br /> <a href='%s'> cliquez ici pour le télécharger</a>. < br / > n'oubliez pas de <a href='%s'> le supprimer</a> une fois que vous avez terminé."); +define('_AM_MYSEARCH_DELETED_OK',"Le fichier a été supprimé"); +define('_AM_MYSEARCH_DELETED_PB',"Erreur, impossible de supprimer le fichier"); +define("_AM_MYSEARCH_NOTHING_TO_EXPORT","Rien à exporter !"); +define("_AM_MYSEARCH_DELETE","Supprimer"); +define("_AM_MYSEARCH_BLACKLIST","Liste noire"); +define("_AM_MYSEARCH_ACTION","Action"); +define("_AM_MYSEARCH_AREYOUSURE","En êtes-vous sûr?"); +define('_AM_MYSEARCH_BLACKLIST_DESC',"Les mots dans cette liste ne seront pas enregistrés pendant la recherche"); +define('_AM_MYSEARCH_BLACKLIST_ADD',"Ajouter"); +define('_AM_MYSEARCH_BLACKLIST_ADD_DSC',"Entrez les mots à ajouter dans la liste <br />(un mot par ligne)"); +define('_AM_MYSEARCH_IP',"IP"); +define('_AM_MYSEARCH_FILTER_BY',"Filtrer par"); + +define("_AM_MYSEARCH_BY","Par"); +define("_AM_MYSEARCH_DESC","Description"); +define("_AM_MYSEARCH_CREDITS","Remerciements"); +define("_AM_MYSEARCH_CONTRIBUTORS","Contributeurs"); +define("_AM_MYSEARCH_DEVELOPERS","Développeurs"); +define("_AM_MYSEARCH_TESTERS","Testeurs"); +define("_AM_MYSEARCH_TRANSLATIONS","Traducteurs"); +define("_AM_MYSEARCH_EMAIL","Messagerie"); +define("_AM_MYSEARCH_MODDEVDET","Détails"); +define("_AM_MYSEARCH_RELEASEDATE","Date de sortie"); +define("_AM_MYSEARCH_STATUS","Statut"); +define("_AM_MYSEARCH_OFCSUPORTSITE","Site de support"); + +// Traduction faite par Cesag le 31 Mai 2012 pour frxoops.org +?> Added: XoopsLanguages/french/modules/mysearch/mysearch 1.2/french/blocks.php =================================================================== --- XoopsLanguages/french/modules/mysearch/mysearch 1.2/french/blocks.php (rev 0) +++ XoopsLanguages/french/modules/mysearch/mysearch 1.2/french/blocks.php 2012-05-31 03:49:31 UTC (rev 9602) @@ -0,0 +1,30 @@ +<?php +// ------------------------------------------------------------------------ // +// mysearch - MODULE FOR XOOPS 2 // +// Copyright (c) 2005-2006 Instant Zero // +// <http://xoops.instant-zero.com/> // +// ------------------------------------------------------------------------- // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +define('_MB_MYSEARCH_SEARCH','Recherche'); +define('_MB_MYSEARCH_ADVS','Recherche avancée'); +define('_MB_MYSEARCH_AJAX_WORKING','Patientez...'); +// Traduction faite par Cesag le 31 Mai 2012 pour frxoops.org +?> Added: XoopsLanguages/french/modules/mysearch/mysearch 1.2/french/help/help.html =================================================================== --- XoopsLanguages/french/modules/mysearch/mysearch 1.2/french/help/help.html (rev 0) +++ XoopsLanguages/french/modules/mysearch/mysearch 1.2/french/help/help.html 2012-05-31 03:49:31 UTC (rev 9602) @@ -0,0 +1,23 @@ +<div id="help-template" class="outer"> + <h1 class="head">Help: + <a class="ui-corner-all tooltip" href="<{$xoops_url}>/modules/mysearch/admin/index.php" title="Retour à l'administration de MySearch"> + MySearch <img src="<{xoAdminIcons home.png}>" alt="Retour à l'administration de MySearch"/></a></h1> + <!-- -----Help Content ---------- --> + <h4 class="odd">Description</h4> + + <p class="even">Avec ce module, vous pouvez apprendre ce que cherchent les personnes qui consultent votre site Web.</p> + <h4 class="odd">Installation/désinstallation</h4> + + <p>Aucune mesure spéciale n'est nécessaire, suivez la procédure d'installation standard - envoyez le dossier /mysearch dans + ../modules . Installez le module via Admin -> Système -> Modules.</p> + + <p>Des instructions détaillées sur l'installation du module sont disponibles dans le + <a href="http://goo.gl/adT2i" title="Manuel des opérations de XOOPS">Manuel des opérations de XOOPS</a></p> + + + <h4 class="odd">Tutoriel</h4> + + <p class="even">Aucun tutoriel n'est actuellement disponible.</p> + <!-- -----Help Content ---------- --> + <!-- -----Traduction faite par Cesag pour frxoops.org le 31 Mai 2012 ---------- --> +</div> \ No newline at end of file Added: XoopsLanguages/french/modules/mysearch/mysearch 1.2/french/help/index.html =================================================================== --- XoopsLanguages/french/modules/mysearch/mysearch 1.2/french/help/index.html (rev 0) +++ XoopsLanguages/french/modules/mysearch/mysearch 1.2/french/help/index.html 2012-05-31 03:49:31 UTC (rev 9602) @@ -0,0 +1 @@ +<script>history.go(-1);</script> \ No newline at end of file Added: XoopsLanguages/french/modules/mysearch/mysearch 1.2/french/index.html =================================================================== --- XoopsLanguages/french/modules/mysearch/mysearch 1.2/french/index.html (rev 0) +++ XoopsLanguages/french/modules/mysearch/mysearch 1.2/french/index.html 2012-05-31 03:49:31 UTC (rev 9602) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsLanguages/french/modules/mysearch/mysearch 1.2/french/main.php =================================================================== --- XoopsLanguages/french/modules/mysearch/mysearch 1.2/french/main.php (rev 0) +++ XoopsLanguages/french/modules/mysearch/mysearch 1.2/french/main.php 2012-05-31 03:49:31 UTC (rev 9602) @@ -0,0 +1,51 @@ +<?php +// ------------------------------------------------------------------------ // +// mysearch - MODULE FOR XOOPS 2 // +// Copyright (c) 2005-2006 Instant Zero // +// <http://xoops.instant-zero.com/> // +// ------------------------------------------------------------------------- // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // + +define('_MA_MYSEARCH_DATE',"Date"); +define('_MA_MYSEARCH_KEYWORD',"Mots recherchés"); +define('_MA_MYSEARCH_PAGE',"Page"); + +define("_MA_MYSEARCH_SEARCH","Recherche"); +define("_MA_MYSEARCH_PLZENTER","Veuillez entrer toutes les données requises !"); +define("_MA_MYSEARCH_SEARCHRESULTS","Résultats de la recherche"); +define("_MA_MYSEARCH_NOMATCH","Aucune correspondance trouvée pour votre requête"); +define("_MA_MYSEARCH_FOUND","<b>%s</b> correspondance(s) trouvée(s)"); +define("_MA_MYSEARCH_SHOWING","(%d -%d affichés)"); +define("_MA_MYSEARCH_ANY","Quelques uns (OU)"); +define("_MA_MYSEARCH_ALL","Tous (ET)"); +define("_MA_MYSEARCH_EXACT","Correspondance exacte"); +define("_MA_MYSEARCH_SHOWALLR","Afficher tous les résultats"); +define("_MA_MYSEARCH_NEXT","Suivant >>"); +define("_MA_MYSEARCH_PREVIOUS","<< Précédent"); +define("_MA_MYSEARCH_KEYWORDS","Mots clés"); +define("_MA_MYSEARCH_TYPE","Type"); +define("_MA_MYSEARCH_SEARCHIN","Rechercher dans"); +define('_MA_MYSEARCH_KEYTOOSHORT', 'Les mots clés doivent avoir au moins <b>%s</b> caractères'); +define('_MA_MYSEARCH_KEYIGNORE', 'Les mots clés plus courts que <b>%s</b> caractères seront ignorés'); +define('_MA_MYSEARCH_SEARCHRULE', 'Mode de recherche'); +define('_MA_MYSEARCH_IGNOREDWORDS', 'Les mots suivants sont plus courts que le minimum de la longueur permise (%u signes) et n\'étaient pas inclus dans votre recherche :'); +// Traduction faite par Cesag le 31 Mai 2012 pour frxoops.org +?> Added: XoopsLanguages/french/modules/mysearch/mysearch 1.2/french/modinfo.php =================================================================== --- XoopsLanguages/french/modules/mysearch/mysearch 1.2/french/modinfo.php (rev 0) +++ XoopsLanguages/french/modules/mysearch/mysearch 1.2/french/modinfo.php 2012-05-31 03:49:31 UTC (rev 9602) @@ -0,0 +1,64 @@ +<?php +// ------------------------------------------------------------------------ // +// mysearch - MODULE FOR XOOPS 2 // +// Copyright (c) 2005-2006 Instant Zero // +// <http://xoops.instant-zero.com/> // +// ------------------------------------------------------------------------- // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // + +define('_MI_MYSEARCH_NAME',"Ma recherche"); +define('_MI_MYSEARCH_DESC',"Avec ce module, vous pouvez apprendre ce que cherchent les personnes sur votre site Web."); + + +define('_MI_MYSEARCH_ADMMENU1',"Statistiques"); +define('_MI_MYSEARCH_ADMMENU2',"Trier"); +define('_MI_MYSEARCH_ADMMENU3',"Exportation"); +define('_MI_MYSEARCH_ADMMENU4',"Liste noire"); +define('_MI_MYSEARCH_ADMMENU5',"À propos"); + +define('_MI_MYSEARCH_OPT0',"Nombre de recherches à afficher sur la page d'index du module"); +define('_MI_MYSEARCH_OPT0_DSC',"Sélectionnez le nombre de recherches que les utilisateurs peuvent voir sur la page d'index du module (0 = montrer rien)"); + +define('_MI_MYSEARCH_OPT1',"Groupes que vous ne souhaitez pas enregistrer"); +define('_MI_MYSEARCH_OPT1_DSC',"Toutes les recherches faites par les personnes qui sont dans ces groupes ne seront pas enregistrées"); + +define('_MI_MYSEARCH_OPT2',"Nombre de mots clés visibles dans l'administration"); +define('_MI_MYSEARCH_OPT2_DSC',""); + +define('_MI_MYSEARCH_BNAME1',"Dernières recherches"); +define('_MI_MYSEARCH_BNAME2',"Plus grands utilisateurs de la recherche"); +define('_MI_MYSEARCH_BNAME3',"Statistiques"); +define('_MI_MYSEARCH_BNAME4',"Recherche Ajax"); + +// Added by Lankford on 2007/8/15 +define('_MI_MYSEARCH_DO_DEEP_SEARCH', "Activer la recherche « appronfondie » ?"); +define('_MI_MYSEARCH_DO_DEEP_SEARCH_DSC', "Vous désirez que votre page de résultats de recherche initiale indique combien de résultats ont été trouvés dans chaque module ? Note : cette activation peut ralentir le processus de recherche !"); +define('_MI_MYSEARCH_INIT_SRCH_RSLTS', "Nombre de résultats de recherche initial : (pour la recherche « simple »)"); +define('_MI_MYSEARCH_INIT_SRCH_RSLTS_DSC', "Les recherches « simples » sont faites plus rapidement en limitant les résultats qui sont retournés pour chaque module sur la page de recherche initiale."); +define('_MI_MYSEARCH_MDL_SRCH_RESULTS', "Nombre de résultats par page :"); +define('_MI_MYSEARCH_MDL_SRCH_RESULTS_DSC', "Cela détermine le nombre de visites par page qui sont apparues après l'exploration dans les résultats de la recherche d'un module particulier."); + +define('_MI_MYSEARCH_MIN_SEARCH', 'Longueur minimum du mot-clé'); +define('_MI_MYSEARCH_MIN_SEARCH_DSC', 'Entrer la longueur de mot-clé minimum que les utilisateurs sont tenus d\'entrer pour effectuer la recherche'); + +define('_MI_MYSEARCH_ADMIN0',"Accueil"); +// Traduction faite par Cesag le 31 Mai 2012 pour frxoops.org +?> Added: XoopsLanguages/french/modules/mysearch/mysearch 1.2/french_iso/admin.php =================================================================== --- XoopsLanguages/french/modules/mysearch/mysearch 1.2/french_iso/admin.php (rev 0) +++ XoopsLanguages/french/modules/mysearch/mysearch 1.2/french_iso/admin.php 2012-05-31 03:49:31 UTC (rev 9602) @@ -0,0 +1,84 @@ +<?php +// ------------------------------------------------------------------------ // +// mysearch - MODULE FOR XOOPS 2 // +// Copyright (c) 2005-2006 Instant Zero // +// <http://xoops.instant-zero.com/> // +// ------------------------------------------------------------------------- // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // + +define("_AM_MYSEARCH_DBUPDATED","La base de donn\xE9es a \xE9t\xE9 mise \xE0 jour avec succ\xE8s"); +define("_AM_MYSEARCH_GENERALSET", "Options du module" ); +define("_AM_MYSEARCH_GOTOMOD","Aller au module"); +define("_AM_MYSEARCH_MODULEADMIN","Administration du module"); +define("_AM_MYSEARCH_STATS","Recherches statistiques (%d mots enregistr\xE9s)"); + +define("_AM_MYSEARCH_ID","ID"); +define("_AM_MYSEARCH_KEYWORD","Mots recherch\xE9s"); +define("_AM_MYSEARCH_KEYWORDS","Mots recherch\xE9s par jour"); +define("_AM_MYSEARCH_USER","Utilisateur"); +define("_AM_MYSEARCH_DATE","Date"); +define("_AM_MYSEARCH_MOST_SEARCH","Mots les plus recherch\xE9s"); +define("_AM_MYSEARCH_HITS","Demandes"); +define("_AM_MYSEARCH_BIGGEST_USERS","Plus grands utilisateurs de la recherche"); +define("_AM_MYSEARCH_DAY_STATS","Statistiques quotidiennes"); +define("_AM_MYSEARCH_USE","Demandes"); + +define("_AM_MYSEARCH_PRUNE","Trier"); +define("_AM_MYSEARCH_PRUNE_DATE","Trier les mots-cl\xE9s avant : "); +define("_AM_MYSEARCH_PRUNE_KEYONLY","ou retirer seulement ce mot : "); +define("_AM_MYSEARCH_PRUNE_DESC","Si vous ne tapez pas de mot, le script triera par date"); +define("_AM_MYSEARCH_PRUNE_CONFIRM","Confirmez-vous la suppression des %u \xE9l\xE9ments ?"); +define("_AM_MYSEARCH_NOTHING_PRUNE","Rien \xE0 supprimer"); +define("_AM_MYSEARCH_EXPORT","Exportation"); +define('_AM_MYSEARCH_EXPORT_BETWEEN', 'Recherches export\xE9es entre'); +define('_AM_MYSEARCH_EXPORT_AND'," et "); +define("_AM_MYSEARCH_DATE_FORMAT","Format de date (au format PHP)"); +define("_AM_MYSEARCH_DELIMITER","D\xE9limiteur de champs"); +define("_AM_MYSEARCH_EXPORT_ERROR","Erreur, impossible de cr\xE9er le fichier d'exportation %s"); +define('_AM_MYSEARCH_EXPORT_READY', "Votre fichier d'exportation est disponible. <br /> <a href='%s'> cliquez ici pour le t\xE9l\xE9charger</a>. < br / > n'oubliez pas de <a href='%s'> le supprimer</a> une fois que vous avez termin\xE9."); +define('_AM_MYSEARCH_DELETED_OK',"Le fichier a \xE9t\xE9 supprim\xE9"); +define('_AM_MYSEARCH_DELETED_PB',"Erreur, impossible de supprimer le fichier"); +define("_AM_MYSEARCH_NOTHING_TO_EXPORT","Rien \xE0 exporter !"); +define("_AM_MYSEARCH_DELETE","Supprimer"); +define("_AM_MYSEARCH_BLACKLIST","Liste noire"); +define("_AM_MYSEARCH_ACTION","Action"); +define("_AM_MYSEARCH_AREYOUSURE","En \xEAtes-vous s\xFBr?"); +define('_AM_MYSEARCH_BLACKLIST_DESC',"Les mots dans cette liste ne seront pas enregistr\xE9s pendant la recherche"); +define('_AM_MYSEARCH_BLACKLIST_ADD',"Ajouter"); +define('_AM_MYSEARCH_BLACKLIST_ADD_DSC',"Entrez les mots \xE0 ajouter dans la liste <br />(un mot par ligne)"); +define('_AM_MYSEARCH_IP',"IP"); +define('_AM_MYSEARCH_FILTER_BY',"Filtrer par"); + +define("_AM_MYSEARCH_BY","Par"); +define("_AM_MYSEARCH_DESC","Description"); +define("_AM_MYSEARCH_CREDITS","Remerciements"); +define("_AM_MYSEARCH_CONTRIBUTORS","Contributeurs"); +define("_AM_MYSEARCH_DEVELOPERS","D\xE9veloppeurs"); +define("_AM_MYSEARCH_TESTERS","Testeurs"); +define("_AM_MYSEARCH_TRANSLATIONS","Traducteurs"); +define("_AM_MYSEARCH_EMAIL","Messagerie"); +define("_AM_MYSEARCH_MODDEVDET","D\xE9tails"); +define("_AM_MYSEARCH_RELEASEDATE","Date de sortie"); +define("_AM_MYSEARCH_STATUS","Statut"); +define("_AM_MYSEARCH_OFCSUPORTSITE","Site de support"); + +// Traduction faite par Cesag le 31 Mai 2012 pour frxoops.org +?> \ No newline at end of file Added: XoopsLanguages/french/modules/mysearch/mysearch 1.2/french_iso/blocks.php =================================================================== --- XoopsLanguages/french/modules/mysearch/mysearch 1.2/french_iso/blocks.php (rev 0) +++ XoopsLanguages/french/modules/mysearch/mysearch 1.2/french_iso/blocks.php 2012-05-31 03:49:31 UTC (rev 9602) @@ -0,0 +1,30 @@ +<?php +// ------------------------------------------------------------------------ // +// mysearch - MODULE FOR XOOPS 2 // +// Copyright (c) 2005-2006 Instant Zero // +// <http://xoops.instant-zero.com/> // +// ------------------------------------------------------------------------- // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +define('_MB_MYSEARCH_SEARCH','Recherche'); +define('_MB_MYSEARCH_ADVS','Recherche avanc\xE9e'); +define('_MB_MYSEARCH_AJAX_WORKING','Patientez...'); +// Traduction faite par Cesag le 31 Mai 2012 pour frxoops.org +?> \ No newline at end of file Added: XoopsLanguages/french/modules/mysearch/mysearch 1.2/french_iso/help/help.html =================================================================== --- XoopsLanguages/french/modules/mysearch/mysearch 1.2/french_iso/help/help.html (rev 0) +++ XoopsLanguages/french/modules/mysearch/mysearch 1.2/french_iso/help/help.html 2012-05-31 03:49:31 UTC (rev 9602) @@ -0,0 +1,23 @@ +<div id="help-template" class="outer"> + <h1 class="head">Help: + <a class="ui-corner-all tooltip" href="<{$xoops_url}>/modules/mysearch/admin/index.php" title="Retour \xE0 l'administration de MySearch"> + MySearch <img src="<{xoAdminIcons home.png}>" alt="Retour \xE0 l'administration de MySearch"/></a></h1> + <!-- -----Help Content ---------- --> + <h4 class="odd">Description</h4> + + <p class="even">Avec ce module, vous pouvez apprendre ce que cherchent les personnes qui consultent votre site Web.</p> + <h4 class="odd">Installation/désinstallation</h4> + + <p>Aucune mesure spéciale n'est nécessaire, suivez la procédure d'installation standard - envoyez le dossier /mysearch dans + ../modules . Installez le module via Admin -> Système -> Modules.</p> + + <p>Des instructions détaillées sur l'installation du module sont disponibles dans le + <a href="http://goo.gl/adT2i" title="Manuel des opérations de XOOPS">Manuel des opérations de XOOPS</a></p> + + + <h4 class="odd">Tutoriel</h4> + + <p class="even">Aucun tutoriel n'est actuellement disponible.</p> + <!-- -----Help Content ---------- --> + <!-- -----Traduction faite par Cesag pour frxoops.org le 31 Mai 2012 ---------- --> +</div> \ No newline at end of file Added: XoopsLanguages/french/modules/mysearch/mysearch 1.2/french_iso/help/index.html =================================================================== --- XoopsLanguages/french/modules/mysearch/mysearch 1.2/french_iso/help/index.html (rev 0) +++ XoopsLanguages/french/modules/mysearch/mysearch 1.2/french_iso/help/index.html 2012-05-31 03:49:31 UTC (rev 9602) @@ -0,0 +1 @@ +<script>history.go(-1);</script> \ No newline at end of file Added: XoopsLanguages/french/modules/mysearch/mysearch 1.2/french_iso/index.html =================================================================== --- XoopsLanguages/french/modules/mysearch/mysearch 1.2/french_iso/index.html (rev 0) +++ XoopsLanguages/french/modules/mysearch/mysearch 1.2/french_iso/index.html 2012-05-31 03:49:31 UTC (rev 9602) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsLanguages/french/modules/mysearch/mysearch 1.2/french_iso/main.php =================================================================== --- XoopsLanguages/french/modules/mysearch/mysearch 1.2/french_iso/main.php (rev 0) +++ XoopsLanguages/french/modules/mysearch/mysearch 1.2/french_iso/main.php 2012-05-31 03:49:31 UTC (rev 9602) @@ -0,0 +1,51 @@ +<?php +// ------------------------------------------------------------------------ // +// mysearch - MODULE FOR XOOPS 2 // +// Copyright (c) 2005-2006 Instant Zero // +// <http://xoops.instant-zero.com/> // +// ------------------------------------------------------------------------- // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // + +define('_MA_MYSEARCH_DATE',"Date"); +define('_MA_MYSEARCH_KEYWORD',"Mots recherch\xE9s"); +define('_MA_MYSEARCH_PAGE',"Page"); + +define("_MA_MYSEARCH_SEARCH","Recherche"); +define("_MA_MYSEARCH_PLZENTER","Veuillez entrer toutes les donn\xE9es requises !"); +define("_MA_MYSEARCH_SEARCHRESULTS","R\xE9sultats de la recherche"); +define("_MA_MYSEARCH_NOMATCH","Aucune correspondance trouv\xE9e pour votre requ\xEAte"); +define("_MA_MYSEARCH_FOUND","<b>%s</b> correspondance(s) trouv\xE9e(s)"); +define("_MA_MYSEARCH_SHOWING","(%d -%d affich\xE9s)"); +define("_MA_MYSEARCH_ANY","Quelques uns (OU)"); +define("_MA_MYSEARCH_ALL","Tous (ET)"); +define("_MA_MYSEARCH_EXACT","Correspondance exacte"); +define("_MA_MYSEARCH_SHOWALLR","Afficher tous les r\xE9sultats"); +define("_MA_MYSEARCH_NEXT","Suivant >>"); +define("_MA_MYSEARCH_PREVIOUS","<< Pr\xE9c\xE9dent"); +define("_MA_MYSEARCH_KEYWORDS","Mots cl\xE9s"); +define("_MA_MYSEARCH_TYPE","Type"); +define("_MA_MYSEARCH_SEARCHIN","Rechercher dans"); +define('_MA_MYSEARCH_KEYTOOSHORT', 'Les mots cl\xE9s doivent avoir au moins <b>%s</b> caract\xE8res'); +define('_MA_MYSEARCH_KEYIGNORE', 'Les mots cl\xE9s plus courts que <b>%s</b> caract\xE8res seront ignor\xE9s'); +define('_MA_MYSEARCH_SEARCHRULE', 'Mode de recherche'); +define('_MA_MYSEARCH_IGNOREDWORDS', 'Les mots suivants sont plus courts que le minimum de la longueur permise (%u signes) et n\'\xE9taient pas inclus dans votre recherche :'); +// Traduction faite par Cesag le 31 Mai 2012 pour frxoops.org +?> \ No newline at end of file Added: XoopsLanguages/french/modules/mysearch/mysearch 1.2/french_iso/modinfo.php =================================================================== --- XoopsLanguages/french/modules/mysearch/mysearch 1.2/french_iso/modinfo.php (rev 0) +++ XoopsLanguages/french/modules/mysearch/mysearch 1.2/french_iso/modinfo.php 2012-05-31 03:49:31 UTC (rev 9602) @@ -0,0 +1,64 @@ +<?php +// ------------------------------------------------------------------------ // +// mysearch - MODULE FOR XOOPS 2 // +// Copyright (c) 2005-2006 Instant Zero // +// <http://xoops.instant-zero.com/> // +// ------------------------------------------------------------------------- // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // + +define('_MI_MYSEARCH_NAME',"Ma recherche"); +define('_MI_MYSEARCH_DESC',"Avec ce module, vous pouvez apprendre ce que cherchent les personnes sur votre site Web."); + + +define('_MI_MYSEARCH_ADMMENU1',"Statistiques"); +define('_MI_MYSEARCH_ADMMENU2',"Trier"); +define('_MI_MYSEARCH_ADMMENU3',"Exportation"); +define('_MI_MYSEARCH_ADMMENU4',"Liste noire"); +define('_MI_MYSEARCH_ADMMENU5',"\xC0 propos"); + +define('_MI_MYSEARCH_OPT0',"Nombre de recherches \xE0 afficher sur la page d'index du module"); +define('_MI_MYSEARCH_OPT0_DSC',"S\xE9lectionnez le nombre de recherches que les utilisateurs peuvent voir sur la page d'index du module (0 = montrer rien)"); + +define('_MI_MYSEARCH_OPT1',"Groupes que vous ne souhaitez pas enregistrer"); +define('_MI_MYSEARCH_OPT1_DSC',"Toutes les recherches faites par les personnes qui sont dans ces groupes ne seront pas enregistr\xE9es"); + +define('_MI_MYSEARCH_OPT2',"Nombre de mots cl\xE9s visibles dans l'administration"); +define('_MI_MYSEARCH_OPT2_DSC',""); + +define('_MI_MYSEARCH_BNAME1',"Derni\xE8res recherches"); +define('_MI_MYSEARCH_BNAME2',"Plus grands utilisateurs de la recherche"); +define('_MI_MYSEARCH_BNAME3',"Statistiques"); +define('_MI_MYSEARCH_BNAME4',"Recherche Ajax"); + +// Added by Lankford on 2007/8/15 +define('_MI_MYSEARCH_DO_DEEP_SEARCH', "Activer la recherche \xAB appronfondie \xBB ?"); +define('_MI_MYSEARCH_DO_DEEP_SEARCH_DSC', "Vous d\xE9sirez que votre page de r\xE9sultats de recherche initiale indique combien de r\xE9sultats ont \xE9t\xE9 trouv\xE9s dans chaque module ? Note : cette activation peut ralentir le processus de recherche !"); +define('_MI_MYSEARCH_INIT_SRCH_RSLTS', "Nombre de r\xE9sultats de recherche initial : (pour la recherche \xAB simple \xBB)"); +define('_MI_MYSEARCH_INIT_SRCH_RSLTS_DSC', "Les recherches \xAB simples \xBB sont faites plus rapidement en limitant les r\xE9sultats qui sont retourn\xE9s pour chaque module sur la page de recherche initiale."); +define('_MI_MYSEARCH_MDL_SRCH_RESULTS', "Nombre de r\xE9sultats par page :"); +define('_MI_MYSEARCH_MDL_SRCH_RESULTS_DSC', "Cela d\xE9termine le nombre de visites par page qui sont apparues apr\xE8s l'exploration dans les r\xE9sultats de la recherche d'un module particulier."); + +define('_MI_MYSEARCH_MIN_SEARCH', 'Longueur minimum du mot-cl\xE9'); +define('_MI_MYSEARCH_MIN_SEARCH_DSC', 'Entrer la longueur de mot-cl\xE9 minimum que les utilisateurs sont tenus d\'entrer pour effectuer la recherche'); + +define('_MI_MYSEARCH_ADMIN0',"Accueil"); +// Traduction faite par Cesag le 31 Mai 2012 pour frxoops.org +?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2012-05-30 08:57:34
|
Revision: 9601 http://xoops.svn.sourceforge.net/xoops/?rev=9601&view=rev Author: beckmi Date: 2012-05-30 08:57:28 +0000 (Wed, 30 May 2012) Log Message: ----------- fixing bugs, replacing Buzz with Gooogle Plus Modified Paths: -------------- XoopsModules/newbb/branches/alfred/newbb/admin/index.php XoopsModules/newbb/branches/alfred/newbb/class/post.php XoopsModules/newbb/branches/alfred/newbb/class/user.php XoopsModules/newbb/branches/alfred/newbb/docs/changelog.txt XoopsModules/newbb/branches/alfred/newbb/include/images.php XoopsModules/newbb/branches/alfred/newbb/language/english/admin.php XoopsModules/newbb/branches/alfred/newbb/language/english/main.php XoopsModules/newbb/branches/alfred/newbb/language/german/main.php XoopsModules/newbb/branches/alfred/newbb/language/italian/main.php XoopsModules/newbb/branches/alfred/newbb/templates/newbb_thread.html XoopsModules/newbb/branches/alfred/newbb/viewtopic.php Added Paths: ----------- XoopsModules/newbb/branches/alfred/newbb/templates/images/icon/googleplus.png Removed Paths: ------------- XoopsModules/newbb/branches/alfred/newbb/templates/images/icon/buzz.png Modified: XoopsModules/newbb/branches/alfred/newbb/admin/index.php =================================================================== --- XoopsModules/newbb/branches/alfred/newbb/admin/index.php 2012-05-29 12:27:50 UTC (rev 9600) +++ XoopsModules/newbb/branches/alfred/newbb/admin/index.php 2012-05-30 08:57:28 UTC (rev 9601) @@ -39,7 +39,7 @@ { if (empty($path)) return false; if (@is_writable($path)) { - $path_status = _AM_NEWBB_AVAILABLE; + $path_status = '';// directory available; } elseif (!@is_dir($path)) { $path_status = _AM_NEWBB_NOTAVAILABLE." <a href=index.php?op=createdir&path=$path>"._AM_NEWBB_CREATETHEDIR.'</a>'; } else { @@ -168,25 +168,21 @@ $indexAdmin->addInfoBox(_AM_NEWBB_REPORT) ; $indexAdmin->addInfoBoxLine(_AM_NEWBB_REPORT, "<infolabel>" ._AM_NEWBB_REPORT_PENDING.': %s' . "</infolabel>" , $report_handler->getCount(new Criteria("report_result", 0)), 'Green') ; $indexAdmin->addInfoBoxLine(_AM_NEWBB_REPORT, "<infolabel>" ._AM_NEWBB_REPORT_PROCESSED.': %s' . "</infolabel>" , $report_handler->getCount(new Criteria("report_result", 1)), 'Green') ; -/* - $temp1 = "<div style='padding: 8px;'>" . _AM_NEWBB_ATTACHPATH . ": "; - $path_status1 = newbb_admin_getPathStatus($attach_path); - - $temp2 = "<br />" . _AM_NEWBB_THUMBPATH . ": "; - $path_status2 = newbb_admin_getPathStatus($thumb_path); - - $indexAdmin->addConfigBoxLine($attach_path . ' (' . $path_status1 . ')', ''); - $indexAdmin->addConfigBoxLine($thumb_path . ' (' . $path_status2 . ')', ''); -*/ - foreach (array_keys( $folder) as $i) { - $indexAdmin->addConfigBoxLine($folder[$i], 'folder'); - $indexAdmin->addConfigBoxLine(array($folder[$i], '755'), 'chmod'); - } - echo $indexAdmin->addNavigation('index.php'); - echo $indexAdmin->renderIndex(); - - } else { + + foreach (array_keys($folder) as $i) { + if (!(newbb_admin_getPathStatus($folder[$i])) == '') { + $indexAdmin->addConfigBoxLine($folder[$i] . ' ' . newbb_admin_getPathStatus($folder[$i]), 'folder'); + } else { + $indexAdmin->addConfigBoxLine($folder[$i], 'folder'); + } + $indexAdmin->addConfigBoxLine(array($folder[$i], '755'), 'chmod'); + } + + echo $indexAdmin->addNavigation('index.php'); + echo $indexAdmin->renderIndex(); + + } else { // loadModuleAdminMenu(0, _MI_NEWBB_ADMENU_INDEX); Modified: XoopsModules/newbb/branches/alfred/newbb/class/post.php =================================================================== --- XoopsModules/newbb/branches/alfred/newbb/class/post.php 2012-05-29 12:27:50 UTC (rev 9600) +++ XoopsModules/newbb/branches/alfred/newbb/class/post.php 2012-05-30 08:57:28 UTC (rev 9601) @@ -499,11 +499,11 @@ $thread_action['social_facebook']['name'] = _MD_SHARE_FACEBOOK; $thread_action['social_facebook']['target'] = '_blank'; - $thread_action['social_buzz']['image'] = newbb_displayImage('buzz', _MD_SHARE_BUZZ); - $thread_action['social_buzz']['link'] = "http://www.google.com/buzz/post?url=".$full_link; - $thread_action['social_buzz']['name'] = _MD_SHARE_BUZZ; - $thread_action['social_buzz']['target'] = '_blank'; - + $thread_action['social_gplus']['image'] = newbb_displayImage('googleplus', _MD_SHARE_GOOGLEPLUS); + $thread_action['social_gplus']['link'] = "https://plusone.google.com/_/+1/confirm?hl=en&url=".$full_link; + $thread_action['social_gplus']['name'] = _MD_SHARE_GOOGLEPLUS; + $thread_action['social_gplus']['target'] = '_blank'; + $thread_action['social_linkedin']['image'] = newbb_displayImage('linkedin', _MD_SHARE_LINKEDIN); $thread_action['social_linkedin']['link'] = "http://www.linkedin.com/shareArticle?mini=true&title=".$full_title."&url=".$full_link; $thread_action['social_linkedin']['name'] = _MD_SHARE_LINKEDIN; Modified: XoopsModules/newbb/branches/alfred/newbb/class/user.php =================================================================== --- XoopsModules/newbb/branches/alfred/newbb/class/user.php 2012-05-29 12:27:50 UTC (rev 9600) +++ XoopsModules/newbb/branches/alfred/newbb/class/user.php 2012-05-30 08:57:28 UTC (rev 9601) @@ -77,10 +77,10 @@ return $level; } -class newbbUser { +class User { var $user = null; - - function User() + + function user() { } @@ -213,7 +213,7 @@ if (class_exists("User_language")) { $handler = new User_language(); } else { - $handler = new newbbUser(); + $handler = new User(); } foreach (array_keys($this->users) as $uid) { $this->userlist[$uid] = $handler->getInfo($this->users[$uid]); Modified: XoopsModules/newbb/branches/alfred/newbb/docs/changelog.txt =================================================================== --- XoopsModules/newbb/branches/alfred/newbb/docs/changelog.txt 2012-05-29 12:27:50 UTC (rev 9600) +++ XoopsModules/newbb/branches/alfred/newbb/docs/changelog.txt 2012-05-30 08:57:28 UTC (rev 9601) @@ -15,7 +15,11 @@ 11 New cache for Seo 12 New Social-Links in Threads 13 New advertising for topics +14 Fix Replaced Buzz with Google Plus (mamba) +15 Fix Added "Create" links for missing directories (mamba) +16 Fix Link to Blank.gif + newBB Changelog 4.2 02/08/2012 Modified: XoopsModules/newbb/branches/alfred/newbb/include/images.php =================================================================== --- XoopsModules/newbb/branches/alfred/newbb/include/images.php 2012-05-29 12:27:50 UTC (rev 9600) +++ XoopsModules/newbb/branches/alfred/newbb/include/images.php 2012-05-30 08:57:28 UTC (rev 9601) @@ -72,7 +72,7 @@ $forumImage['facebook'] = $forumImage['twitter'] = $forumImage['linkedin'] = -$forumImage['buzz'] = +$forumImage['googleplus'] = $forumImage['stumbleupon'] = $forumImage['friendfeed'] = $forumImage['digg'] = Modified: XoopsModules/newbb/branches/alfred/newbb/language/english/admin.php =================================================================== --- XoopsModules/newbb/branches/alfred/newbb/language/english/admin.php 2012-05-29 12:27:50 UTC (rev 9600) +++ XoopsModules/newbb/branches/alfred/newbb/language/english/admin.php 2012-05-30 08:57:28 UTC (rev 9601) @@ -53,7 +53,7 @@ define('_AM_NEWBB_GDLIB2','GD2 library:'); define('_AM_NEWBB_AUTODETECTED','Autodetected: '); define('_AM_NEWBB_AVAILABLE','Available'); -define('_AM_NEWBB_NOTAVAILABLE','<font color="red">Not available</font>'); +define('_AM_NEWBB_NOTAVAILABLE','<font color="red">is not available. </font>'); define('_AM_NEWBB_NOTWRITABLE','<font color="red">Not writable</font>'); define('_AM_NEWBB_IMAGEMAGICK','ImageMagicK:'); define('_AM_NEWBB_IMAGEMAGICK_NOTSET','Not set'); Modified: XoopsModules/newbb/branches/alfred/newbb/language/english/main.php =================================================================== --- XoopsModules/newbb/branches/alfred/newbb/language/english/main.php 2012-05-29 12:27:50 UTC (rev 9600) +++ XoopsModules/newbb/branches/alfred/newbb/language/english/main.php 2012-05-30 08:57:28 UTC (rev 9601) @@ -467,7 +467,7 @@ define("_MD_ADVERTISING_USER","Advertisement"); define('_MD_SHARE_FACEBOOK', "Facebook"); define('_MD_SHARE_TWITTER', "Twitter"); -define('_MD_SHARE_BUZZ', "Google Buzz"); +define('_MD_SHARE_GOOGLEPLUS', "Google Plus"); define('_MD_SHARE_LINKEDIN', "Linkedin"); define('_MD_SHARE_STUMBLEUPON', "Stumbleupon"); define('_MD_SHARE_FRIENDFEED', "FriendFeed"); Modified: XoopsModules/newbb/branches/alfred/newbb/language/german/main.php =================================================================== --- XoopsModules/newbb/branches/alfred/newbb/language/german/main.php 2012-05-29 12:27:50 UTC (rev 9600) +++ XoopsModules/newbb/branches/alfred/newbb/language/german/main.php 2012-05-30 08:57:28 UTC (rev 9601) @@ -472,7 +472,7 @@ define("_MD_ADVERTISING_USER","Werbung"); define('_MD_SHARE_FACEBOOK', "Facebook"); define('_MD_SHARE_TWITTER', "Twitter"); -define('_MD_SHARE_BUZZ', "Google Buzz"); +define('_MD_SHARE_GOOGLEPLUS', "Google Plus"); define('_MD_SHARE_LINKEDIN', "Linkedin"); define('_MD_SHARE_STUMBLEUPON', "Stumbleupon"); define('_MD_SHARE_FRIENDFEED', "FriendFeed"); Modified: XoopsModules/newbb/branches/alfred/newbb/language/italian/main.php =================================================================== --- XoopsModules/newbb/branches/alfred/newbb/language/italian/main.php 2012-05-29 12:27:50 UTC (rev 9600) +++ XoopsModules/newbb/branches/alfred/newbb/language/italian/main.php 2012-05-30 08:57:28 UTC (rev 9601) @@ -514,7 +514,7 @@ //4.05 - social define("_MD_SHARE_FACEBOOK", "Facebook"); define("_MD_SHARE_TWITTER", "Twitter"); -define("_MD_SHARE_BUZZ", "Google Buzz"); +define("_MD_SHARE_GOOGLEPLUS", "Google Plus"); define("_MD_SHARE_LINKEDIN", "LinkedIn"); define("_MD_SHARE_STUMBLEUPON", "Stumbleupon"); define("_MD_SHARE_FRIENDFEED", "FriendFeed"); Deleted: XoopsModules/newbb/branches/alfred/newbb/templates/images/icon/buzz.png =================================================================== (Binary files differ) Added: XoopsModules/newbb/branches/alfred/newbb/templates/images/icon/googleplus.png =================================================================== (Binary files differ) Property changes on: XoopsModules/newbb/branches/alfred/newbb/templates/images/icon/googleplus.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: XoopsModules/newbb/branches/alfred/newbb/templates/newbb_thread.html =================================================================== --- XoopsModules/newbb/branches/alfred/newbb/templates/newbb_thread.html 2012-05-29 12:27:50 UTC (rev 9600) +++ XoopsModules/newbb/branches/alfred/newbb/templates/newbb_thread.html 2012-05-30 08:57:28 UTC (rev 9601) @@ -20,7 +20,7 @@ <{if $topic_post.poster.uid != 0}> <div class="comUserRankText"><{$topic_post.poster.rank.title}><br /><{$topic_post.poster.rank.image}></div> <{if $topic_post.poster.avatar != "blank.gif"}> - <br /><img class="comUserImg" src="<{$xoops_upload_url}>/avatars/<{$topic_post.poster.avatar}>" alt="" /> + <br /><img class="comUserImg" src="<{$xoops_upload_url}>/<{$topic_post.poster.avatar}>" alt="" /> <{else}> <br /><img class="comUserImg" src="<{$xoops_url}>/modules/<{$xoops_dirname}>/templates/images/icon/anonym.png" alt="" /> <{/if}> Modified: XoopsModules/newbb/branches/alfred/newbb/viewtopic.php =================================================================== --- XoopsModules/newbb/branches/alfred/newbb/viewtopic.php 2012-05-29 12:27:50 UTC (rev 9600) +++ XoopsModules/newbb/branches/alfred/newbb/viewtopic.php 2012-05-30 08:57:28 UTC (rev 9601) @@ -44,7 +44,6 @@ } $page_query = htmlspecialchars(implode("&", array_values($query_array))); unset($query_array); - $topic_id = isset($_GET['topic_id']) ? intval($_GET['topic_id']) : 0; $post_id = !empty($_GET['post_id']) ? intval($_GET['post_id']) : 0; $forum_id = !empty($_GET['forum']) ? intval($_GET['forum']) : 0; @@ -61,7 +60,6 @@ $order = ($xoopsConfig['com_order']==1) ? 'DESC' : 'ASC'; } } - if ( !$topic_id && !$post_id ) { $redirect = empty($forum_id) ? XOOPS_URL."/modules/".$xoopsModule->getVar("dirname")."/index.php" : XOOPS_URL."/modules/".$xoopsModule->getVar("dirname")."/viewforum.php?forum={$forum_id}"; redirect_header($redirect, 2, _MD_ERRORTOPIC); @@ -115,7 +113,7 @@ $xoopsOption['template_main'] = 'newbb_viewtopic.html'; $postsArray = $topic_handler->getAllPosts($topic_obj, $order, $xoopsModuleConfig['posts_per_page'], $start, $post_id, $status); -//Threadersteller zählt nicht +//Threadersteller z\xE4hlt nicht if (!$xoopsUser || ($xoopsUser->getVar('uid') != $topic_obj->getVar('topic_poster')) ) { $topic_obj->incrementCounter(); } @@ -199,14 +197,13 @@ $viewtopic_users = array(); if (count($userid_array) > 0) { - require XOOPS_ROOT_PATH."/modules/".$xoopsModule->getVar("dirname", "n")."/class/user.php"; + require XOOPS_ROOT_PATH."/modules/".$xoopsModule->getVar("dirname", "n")."/class/user.php"; $user_handler = new NewbbUserHandler($xoopsModuleConfig['groupbar_enabled'], $xoopsModuleConfig['wol_enabled']); $user_handler->users = $users; $user_handler->online = $online; $viewtopic_users = $user_handler->getUsers(); } unset($users); - if ($xoopsModuleConfig['allow_require_reply'] && $require_reply) { if (!empty($xoopsModuleConfig['cache_enabled'])) { $viewtopic_posters = newbb_getsession("t".$topic_id, true); @@ -220,7 +217,6 @@ } else { $viewtopic_posters =array(); } - if ($xoopsModuleConfig['advertising']) { $i=0; $rank = xoops_getrank(); @@ -294,7 +290,6 @@ unset($postsArray); $xoopsTpl->assign('topic_print_link', "print.php?form=1&{$page_query}"); - $admin_actions = array(); $ad_merge = ""; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2012-05-29 12:27:59
|
Revision: 9600 http://xoops.svn.sourceforge.net/xoops/?rev=9600&view=rev Author: beckmi Date: 2012-05-29 12:27:50 +0000 (Tue, 29 May 2012) Log Message: ----------- Removing BOM Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/mail/phpmailer/codeworxtech.html Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/class/mail/phpmailer/codeworxtech.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/mail/phpmailer/codeworxtech.html 2012-05-29 12:24:59 UTC (rev 9599) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/mail/phpmailer/codeworxtech.html 2012-05-29 12:27:50 UTC (rev 9600) @@ -1,4 +1,4 @@ -<html> +<html> <head> <style> body, p { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2012-05-29 12:25:10
|
Revision: 9599 http://xoops.svn.sourceforge.net/xoops/?rev=9599&view=rev Author: beckmi Date: 2012-05-29 12:24:59 +0000 (Tue, 29 May 2012) Log Message: ----------- Removing BOM from CSS files, Adding images Modified Paths: -------------- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/system/themes/zetadigme/css/style.css XoopsCore/branches/2.5.x/2.5.5/htdocs/themes/suico/css/style.css XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops.css Added Paths: ----------- XoopsCore/branches/2.5.x/2.5.5/htdocs/Frameworks/moduleclasses/icons/16/folder.png XoopsCore/branches/2.5.x/2.5.5/htdocs/Frameworks/moduleclasses/icons/16/folder_add.png XoopsCore/branches/2.5.x/2.5.5/htdocs/Frameworks/moduleclasses/icons/16/folder_delete.png Added: XoopsCore/branches/2.5.x/2.5.5/htdocs/Frameworks/moduleclasses/icons/16/folder.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.5.x/2.5.5/htdocs/Frameworks/moduleclasses/icons/16/folder.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsCore/branches/2.5.x/2.5.5/htdocs/Frameworks/moduleclasses/icons/16/folder_add.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.5.x/2.5.5/htdocs/Frameworks/moduleclasses/icons/16/folder_add.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsCore/branches/2.5.x/2.5.5/htdocs/Frameworks/moduleclasses/icons/16/folder_delete.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.5.x/2.5.5/htdocs/Frameworks/moduleclasses/icons/16/folder_delete.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/system/themes/zetadigme/css/style.css =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/system/themes/zetadigme/css/style.css 2012-05-29 03:27:49 UTC (rev 9598) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/system/themes/zetadigme/css/style.css 2012-05-29 12:24:59 UTC (rev 9599) @@ -1,4 +1,4 @@ - + /* $Id: style.css 3963 2009-11-30 01:08:59Z kris_fr $ */ /* IMPORTANT, PLEASE RESPECT THIS SEMANTIC ORDER !!! : position box; width; heigth; margin; background-color; background-image; padding; content (color, style font, ...); border ... */ Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/themes/suico/css/style.css =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/themes/suico/css/style.css 2012-05-29 03:27:49 UTC (rev 9598) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/themes/suico/css/style.css 2012-05-29 12:24:59 UTC (rev 9599) @@ -1,4 +1,4 @@ -/* +/* * Suico theme * In memory of Marcello Brandao * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops.css =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops.css 2012-05-29 03:27:49 UTC (rev 9598) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops.css 2012-05-29 12:24:59 UTC (rev 9599) @@ -1,4 +1,4 @@ -/* $Id$ */ +/* $Id$ */ /*=== FORMAT BASIC ELEMENTS, can be overwritten in theme styles ===*/ table {width: 100%; border-collapse:collapse; border-spacing: 0;} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2012-05-29 03:27:56
|
Revision: 9598 http://xoops.svn.sourceforge.net/xoops/?rev=9598&view=rev Author: beckmi Date: 2012-05-29 03:27:49 +0000 (Tue, 29 May 2012) Log Message: ----------- Removing wrong file Removed Paths: ------------- XoopsModules/newbb/branches/mamba/newbb/admin/index - Copy.php Deleted: XoopsModules/newbb/branches/mamba/newbb/admin/index - Copy.php =================================================================== --- XoopsModules/newbb/branches/mamba/newbb/admin/index - Copy.php 2012-05-28 21:42:40 UTC (rev 9597) +++ XoopsModules/newbb/branches/mamba/newbb/admin/index - Copy.php 2012-05-29 03:27:49 UTC (rev 9598) @@ -1,328 +0,0 @@ -<?php -// $Id: index.php,v 1.3 2005/10/19 17:20:32 phppp Exp $ -// ------------------------------------------------------------------------ // -// XOOPS - PHP Content Management System // -// Copyright (c) 2000 XOOPS.org // -// <http://www.xoops.org/> // -// ------------------------------------------------------------------------ // -// This program is free software; you can redistribute it and/or modify // -// it under the terms of the GNU General Public License as published by // -// the Free Software Foundation; either version 2 of the License, or // -// (at your option) any later version. // -// // -// 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. See the // -// GNU General Public License for more details. // -// // -// You should have received a copy of the GNU General Public License // -// along with this program; if not, write to the Free Software // -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// ------------------------------------------------------------------------ // -// Author: Kazumi Ono (AKA onokazu) // -// URL: http://www.myweb.ne.jp/, http://www.xoops.org/, http://jp.xoops.org/ // -// Project: The XOOPS Project // -// ------------------------------------------------------------------------- // -include('admin_header.php'); -mod_loadFunctions("stats", "newbb"); - -function newbb_admin_getPathStatus($path) -{ - if (empty($path)) return false; - if (@is_writable($path)) { - $path_status = _AM_NEWBB_AVAILABLE; - } elseif (!@is_dir($path)) { - $path_status = _AM_NEWBB_NOTAVAILABLE." <a href=index.php?op=createdir&path=$path>"._AM_NEWBB_CREATETHEDIR.'</a>'; - } else { - $path_status = _AM_NEWBB_NOTWRITABLE." <a href=index.php?op=setperm&path=$path>"._AM_NEWBB_SETMPERM.'</a>'; - } - return $path_status; -} - -function newbb_admin_mkdir($target, $mode=0777) -{ - $target = str_replace("..", "", $target); - // http://www.php.net/manual/en/function.mkdir.php - return is_dir($target) or ( newbb_admin_mkdir(dirname($target), $mode) and mkdir($target, $mode) ); -} - -function newbb_admin_chmod($target, $mode = 0777) -{ - $target = str_replace("..", "", $target); - return @chmod($target, $mode); -} - -function newbb_getImageLibs() -{ - global $xoopsModuleConfig; - - $imageLibs= array(); - unset($output, $status); - if ( $xoopsModuleConfig['image_lib'] == 1 or $xoopsModuleConfig['image_lib'] == 0 ) { - $path = empty($xoopsModuleConfig['path_magick'])?"":$xoopsModuleConfig['path_magick']."/"; - @exec($path.'convert -version', $output, $status); - if (empty($status)&&!empty($output)) { - if (preg_match("/imagemagick[ \t]+([0-9\.]+)/i",$output[0],$matches)) - $imageLibs['imagemagick'] = $matches[0]; - } - unset($output, $status); - } - if ( $xoopsModuleConfig['image_lib'] == 2 or $xoopsModuleConfig['image_lib'] == 0 ) { - $path = empty($xoopsModuleConfig['path_netpbm'])?"":$xoopsModuleConfig['path_netpbm']."/"; - @exec($path.'jpegtopnm -version 2>&1', $output, $status); - if (empty($status)&&!empty($output)) { - if (preg_match("/netpbm[ \t]+([0-9\.]+)/i",$output[0],$matches)) - $imageLibs['netpbm'] = $matches[0]; - } - unset($output, $status); - } - - $GDfuncList = get_extension_funcs('gd'); - ob_start(); - @phpinfo(INFO_MODULES); - $output=ob_get_contents(); - ob_end_clean(); - $matches[1]=''; - $gdversion = ''; - if (preg_match("/GD Version[ \t]*(<[^>]+>[ \t]*)+([^<>]+)/s",$output,$matches)) { - $gdversion = $matches[2]; - } - if ( $GDfuncList ) { - if ( in_array('imagegd2',$GDfuncList) ) - $imageLibs['gd2'] = $gdversion; - else - $imageLibs['gd1'] = $gdversion; - } - return $imageLibs; -} - -$op = (isset($_GET['op']))? $_GET['op'] : ""; - -switch ($op) { -case "createdir": - if (isset($_GET['path'])) $path = $_GET['path']; - $res = newbb_admin_mkdir($path); - $msg = ($res)?_AM_NEWBB_DIRCREATED:_AM_NEWBB_DIRNOTCREATED; - redirect_header('index.php', 2, $msg . ': ' . $path); - exit(); - break; - -case "setperm": - if (isset($_GET['path'])) $path = $_GET['path']; - $res = newbb_admin_chmod($path, 0777); - $msg = ($res)?_AM_NEWBB_PERMSET:_AM_NEWBB_PERMNOTSET; - redirect_header('index.php', 2, $msg . ': ' . $path); - exit(); - break; - -case "senddigest": - $digest_handler = &xoops_getmodulehandler('digest', 'newbb'); - $res = $digest_handler->process(true); - $msg = ($res)?_AM_NEWBB_DIGEST_FAILED:_AM_NEWBB_DIGEST_SENT; - redirect_header('index.php', 2, $msg); - exit(); - break; - -case "default": -default: - - xoops_cp_header(); - - loadModuleAdminMenu(0, _MI_NEWBB_ADMENU_INDEX); - $imageLibs = newbb_getImageLibs(); - echo "<table><tr>"; - echo "<td style='width: 60%;'>"; - echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_NEWBB_PREFERENCES . "</legend>"; - - echo "<div style='padding: 12px;'>" . _AM_NEWBB_POLLMODULE . ": "; - $module_handler = &xoops_gethandler('module'); - $isOK = false; - //XOOPS_POLL - $xoopspoll = &$module_handler->getByDirname('xoopspoll'); - if (is_object($xoopspoll)) - $isOK = $xoopspoll->getVar('isactive'); - else - { - //Umfrage - $xoopspoll = &$module_handler->getByDirname('umfrage'); - if (is_object($xoopspoll)) $isOK = $xoopspoll->getVar('isactive'); - } - echo ($isOK)?_AM_NEWBB_AVAILABLE.": (Modul: ". $xoopspoll->getVar('name') . ")" : _AM_NEWBB_NOTAVAILABLE; - echo "</div>"; - echo "<div style='padding: 8px;'>"; - echo "<a href='http://www.imagemagick.org' target='_blank'>"._AM_NEWBB_IMAGEMAGICK." </a>"; - if (array_key_exists('imagemagick',$imageLibs)) { - echo "<strong><font color='green'>"._AM_NEWBB_AUTODETECTED.$imageLibs['imagemagick']."</font></strong>"; - } - else { echo _AM_NEWBB_NOTAVAILABLE; - } - echo "<br />"; - echo "<a href='http://sourceforge.net/projects/netpbm' target='_blank'>NetPBM: </a>"; - if (array_key_exists('netpbm',$imageLibs)) { - echo "<strong><font color='green'>"._AM_NEWBB_AUTODETECTED.$imageLibs['netpbm']."</font></strong>"; - } - else { echo _AM_NEWBB_NOTAVAILABLE; - } - echo "<br />"; - echo _AM_NEWBB_GDLIB1." "; - if (array_key_exists('gd1',$imageLibs)) { - echo "<strong><font color='green'>"._AM_NEWBB_AUTODETECTED.$imageLibs['gd1']."</font></strong>"; - } - else { echo _AM_NEWBB_NOTAVAILABLE; - } - - echo "<br />"; - echo _AM_NEWBB_GDLIB2." "; - if (array_key_exists('gd2',$imageLibs)) { - echo "<strong><font color='green'>"._AM_NEWBB_AUTODETECTED.$imageLibs['gd2']."</font></strong>"; - } - else { echo _AM_NEWBB_NOTAVAILABLE; - } - echo "</div>"; - - - echo "<div style='padding: 8px;'>" . _AM_NEWBB_ATTACHPATH . ": "; - $attach_path = XOOPS_ROOT_PATH . '/' . $xoopsModuleConfig['dir_attachments'] . '/'; - $path_status = newbb_admin_getPathStatus($attach_path); - echo $attach_path . ' ( ' . $path_status . ' )'; - - echo "<br />" . _AM_NEWBB_THUMBPATH . ": "; - $thumb_path = $attach_path . 'thumbs/'; // be careful - $path_status = newbb_admin_getPathStatus($thumb_path); - echo $thumb_path . ' ( ' . $path_status . ' )'; - - echo "</div>"; - - echo "</fieldset><br />"; - - echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_NEWBB_BOARDSUMMARY . "</legend>"; - echo "<div style='padding: 12px;'>"; - echo _AM_NEWBB_TOTALTOPICS . " <strong>" . get_total_topics() . "</strong> | "; - echo _AM_NEWBB_TOTALPOSTS . " <strong>" . get_total_posts() . "</strong> | "; - echo _AM_NEWBB_TOTALVIEWS . " <strong>" . get_total_views() . "</strong></div>"; - echo "</fieldset><br />"; - - $report_handler = &xoops_getmodulehandler('report', 'newbb'); - echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_NEWBB_REPORT . "</legend>"; - echo "<div style='padding: 12px;'><a href='admin_report.php'>" . _AM_NEWBB_REPORT_PENDING . "</a> <strong>" . $report_handler->getCount(new Criteria("report_result", 0)) . "</strong> | "; - echo _AM_NEWBB_REPORT_PROCESSED . " <strong>" . $report_handler->getCount(new Criteria("report_result", 1)) . "</strong>"; - echo "</div>"; - echo "</fieldset><br />"; - - if ($xoopsModuleConfig['email_digest'] > 0) { - $digest_handler = &xoops_getmodulehandler('digest', 'newbb'); - echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_NEWBB_DIGEST . "</legend>"; - $due = ($digest_handler->checkStatus()) / 60; // minutes - $prompt = ($due > 0)? sprintf(_AM_NEWBB_DIGEST_PAST, $due):sprintf(_AM_NEWBB_DIGEST_NEXT, abs($due)); - echo "<div style='padding: 12px;'><a href='index.php?op=senddigest'>" . $prompt . "</a> | "; - echo "<a href='admin_digest.php'>" . _AM_NEWBB_DIGEST_ARCHIVE . "</a> <strong>" . $digest_handler->getDigestCount() . "</strong>"; - echo "</div>"; - echo "</fieldset><br />"; - } - - echo "</td>"; - echo "<td style='width: 38%;'>"; - echo " - <style> - #xo-newbb-icons { - margin: 3px; - font-family: tahoma, Helvetica, sans-serif; - text-align: center; -} - #xo-newbb-icons a { - display: block; - float: left; - height: 80px !important; - width: 90px !important; - vertical-align: middle; - text-decoration: none; - background-color: #f0f0f0; - padding: 2px; - margin: 3px; - color: #666666; - border: 1px solid #f9f9f9; - -moz-border-radius: 9px; - -webkit-border-radius: 9px; - -khtml-border-radius: 9px; - border-radius: 9px; -} - #xo-newbb-icons a:hover { - color: #1E90FF; - border-left: 1px solid #eee; - border-top: 1px solid #eee; - border-right: 1px solid #ccc; - border-bottom: 1px solid #ccc; - background: #f9f9f9; - filter: alpha(opacity = 80); - -moz-opacity: 0.8; - -webkit-opacity: 0.8; - -khtml-opacity: 0.8; - opacity: 0.8; -} - -#xo-newbb-icons img { - margin-top: 8px; - margin-bottom: 8px; -} - -#xo-newbb-icons span { - font-size: 10px; - font-weight: bold; - display: block; -} - -#xo-newbb-icons span.uno { - font-size: 11px; - font-weight: normal; - text-decoration: underline; - color: Blue; -} - -#xo-newbb-icons span.unor { - font-size: 11px; - font-weight: normal; - text-decoration: underline; - color: #CC0000; -} - - </style> - <div id='xo-newbb-icons'> - <a class='tooltip' href='index.php' title='" . _MI_NEWBB_ADMENU_INDEX . "'><img src='" . XOOPS_URL . "/modules/newbb/images/menu/home.png' /><span>" . _MI_NEWBB_ADMENU_INDEX . "</span></a> - <a class='tooltip' href='admin_cat_manager.php' title='" . _MI_NEWBB_ADMENU_CATEGORY . "'><img src='" . XOOPS_URL . "/modules/newbb/images/menu/cat.png' /><span>" . _MI_NEWBB_ADMENU_CATEGORY . "</span></a> - <a class='tooltip' href='admin_forum_manager.php' title='" . _MI_NEWBB_ADMENU_FORUM . "'><img src='" . XOOPS_URL . "/modules/newbb/images/menu/forum.png' /><span>" . _MI_NEWBB_ADMENU_FORUM . "</span></a> - <a class='tooltip' href='admin_permissions.php' title='" . _MI_NEWBB_ADMENU_PERMISSION . "'><img src='" . XOOPS_URL . "/modules/newbb/images/menu/permissions.png' /><span>" . _MI_NEWBB_ADMENU_PERMISSION . "</span></a> - <a class='tooltip' href='admin_forum_reorder.php' title='" . _MI_NEWBB_ADMENU_ORDER . "'><img src='" . XOOPS_URL . "/modules/newbb/images/menu/order.png' /><span>" . _MI_NEWBB_ADMENU_ORDER . "</span></a> - <a class='tooltip' href='admin_forum_prune.php' title='" . _MI_NEWBB_ADMENU_PRUNE . "'><img src='" . XOOPS_URL . "/modules/newbb/images/menu/prune.png' /><span>" . _MI_NEWBB_ADMENU_PRUNE . "</span></a> - <a class='tooltip' href='admin_report.php' title='" . _MI_NEWBB_ADMENU_REPORT . "'><img src='" . XOOPS_URL . "/modules/newbb/images/menu/report.png' /><span>" . _MI_NEWBB_ADMENU_REPORT . "</span></a> - <a class='tooltip' href='admin_digest.php' title='" . _MI_NEWBB_ADMENU_DIGEST . "'><img src='" . XOOPS_URL . "/modules/newbb/images/menu/digest.png' /><span>" . _MI_NEWBB_ADMENU_DIGEST . "</span></a> - <a class='tooltip' href='admin_votedata.php' title='" . _MI_NEWBB_ADMENU_VOTE . "'><img src='" . XOOPS_URL . "/modules/newbb/images/menu/votedata.png' /><span>" . _MI_NEWBB_ADMENU_VOTE . "</span></a> - <a class='tooltip' href='admin_type_manager.php' title='" . _MI_NEWBB_ADMENU_TYPE . "'><img src='" . XOOPS_URL . "/modules/newbb/images/menu/type.png' /><span>" . _MI_NEWBB_ADMENU_TYPE . "</span></a> - <a class='tooltip' href='admin_groupmod.php' title='" . _MI_NEWBB_ADMENU_GROUPMOD . "'><img src='" . XOOPS_URL . "/modules/newbb/images/menu/groupmod.png' /><span>" . _MI_NEWBB_ADMENU_GROUPMOD . "</span></a> - <a class='tooltip' href='admin_blocks.php' title='" . _MI_NEWBB_ADMENU_BLOCK . "'><img src='" . XOOPS_URL . "/modules/newbb/images/menu/blocks.png' /><span>" . _MI_NEWBB_ADMENU_BLOCK . "</span></a> - <a class='tooltip' href='admin_synchronization.php' title='" . _MI_NEWBB_ADMENU_SYNC . "'><img src='" . XOOPS_URL . "/modules/newbb/images/menu/synchronization.png' /><span>" . _MI_NEWBB_ADMENU_SYNC . "</span></a> - <a class='tooltip' href='about.php' title='" . _MI_NEWBB_ADMENU_ABOUT . "'><img src='" . XOOPS_URL . "/modules/newbb/images/menu/about.png' /><span>" . _MI_NEWBB_ADMENU_ABOUT . "</span></a> - </div> - "; - echo "</td>"; - echo "</tr></table>"; - echo "<br /><br />"; - - /* A trick to clear garbage for suspension management - * Not good but works - */ - if (!empty($xoopsModuleConfig['enable_usermoderate'])) { - $moderate_handler =& xoops_getmodulehandler('moderate', 'newbb'); - $moderate_handler->clearGarbage(); - } - - mod_clearFile("","newbb"); - xoops_cp_footer(); - break; -} - -?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2012-05-28 21:42:47
|
Revision: 9597 http://xoops.svn.sourceforge.net/xoops/?rev=9597&view=rev Author: beckmi Date: 2012-05-28 21:42:40 +0000 (Mon, 28 May 2012) Log Message: ----------- Updating install.txt and English language entries Modified Paths: -------------- XoopsModules/TDMStats/trunk/TDMStats/docs/install.txt XoopsModules/TDMStats/trunk/TDMStats/include/stats.php XoopsModules/TDMStats/trunk/TDMStats/language/english/admin.php XoopsModules/TDMStats/trunk/TDMStats/language/english/main.php Modified: XoopsModules/TDMStats/trunk/TDMStats/docs/install.txt =================================================================== --- XoopsModules/TDMStats/trunk/TDMStats/docs/install.txt 2012-05-28 14:24:53 UTC (rev 9596) +++ XoopsModules/TDMStats/trunk/TDMStats/docs/install.txt 2012-05-28 21:42:40 UTC (rev 9597) @@ -1,6 +1,43 @@ -INSTALL/UNISTALL -================= -No special measures necessary, follow the standard installation process \x96 extract the /TDMStats folder into the ../modules directory. Install the module through Admin -> System Module -> Modules. +************************************************** ********** +UPDATE +************************************************** ********** -Detailed instructions on installing modules are available in the XOOPS Operations Manual (http://goo.gl/adT2i) \ No newline at end of file +- Overwrite the file TDMStats, to update the module from the site administration. +- When using a custom template set, remove the module's templates for regnrer. +- Use the tab admin / plugin for copying the plugin or refer you to the "manual copy" +- Appointments in the administration module To create permissions. + + +************************************************** ********** +INSTALLATION +************************************************** ********** + +- Upload the entire folder 'TDMStats' folder to / modules / +- Go to Admin of your site to install the module. +- Go to the Administration module, then use the tab 'plugin' to copy the plugin or refer you to the "manual copy". +- Set permissions. + + + +************************************************** ********** +Manually copy the files in the folder "xoops_plugins" +************************************************** ********** + +follow the structure of folders and subfolders + +function.xoStats.php (new file) + +Copy the file TDMStats/xoops_plugins/function.xoStats.php + +into + +/class/smarty/xoops_plugins/ + +************************************************** ********** +SMARTY TDMStats +************************************************** ********** + +1) <{xoStats}> (account visits) + +Note: Remember to copy the code "<{xoStats}>" to theme.html in your theme in order to record the visits ... \ No newline at end of file Modified: XoopsModules/TDMStats/trunk/TDMStats/include/stats.php =================================================================== --- XoopsModules/TDMStats/trunk/TDMStats/include/stats.php 2012-05-28 14:24:53 UTC (rev 9596) +++ XoopsModules/TDMStats/trunk/TDMStats/include/stats.php 2012-05-28 21:42:40 UTC (rev 9597) @@ -105,6 +105,38 @@ +///mont/// +$mth = array(); + global $xoopsDB; + $mth_info = getResult("select distinct mth, year, count from ".$xoopsDB->prefix("TDMStats_mth")." where year='$year' order by id desc"); + //$mth_max = getResult("select max(count) as max from ".$xoopsDB->prefix("TDMStats_mth")." where year='$year'"); + $mth_sum = getREsult("select sum(count) as sum from ".$xoopsDB->prefix("TDMStats_mth")." where year='$year'"); + + +// $mth_result = PrintStats($mth_sum[0]['sum'], $mth_max[0]['max'], $mth_info, sizeof($mth_info)); + if($mth_info){ + for($i=0; $i<sizeof($mth_info); $i++){ + + if ($mth_sum[0]['sum'] > 0) { + + $mth_percent = $mth_info[$i]['count'] * 100 / $mth_sum[0]['sum'] ; + + } else { + $mth_percent = 0; + + } + + $mth['info'][] = $mth_info[$i]['count']; + //$mth['week'][] = $mth_info[$i]['week']; + $mth['percent'][] = round($mth_percent, '2'); + +if ($mth_percent > 0) { + $xoopsTpl->append('mths', array('id' => 'mth'.$i, 'mth' => $mth_info[$i]['mth'], 'year' => $mth_info[$i]['year'], 'info' => $mth_info[$i]['count'], 'percent' => round($mth_percent, '2'))); + $xoopsTpl->append('mths_map', array('id' => 'mth'.$i, 'mth' => $mth_info[$i]['mth'], 'year' => $mth_info[$i]['year'], 'info' => $mth_info[$i]['count'], 'percent' => round($mth_percent, '2'))); + } + } + } + //////WEEK///////////// $last = array(); global $xoopsDB; @@ -141,40 +173,8 @@ $xoopsTpl->assign('lang_mth_mth', _AM_MTH_VISITS); - -///mont/// -$mth = array(); - global $xoopsDB; - $mth_info = getResult("select distinct mth, year, count from ".$xoopsDB->prefix("TDMStats_mth")." where year='$year' order by id desc"); - //$mth_max = getResult("select max(count) as max from ".$xoopsDB->prefix("TDMStats_mth")." where year='$year'"); - $mth_sum = getREsult("select sum(count) as sum from ".$xoopsDB->prefix("TDMStats_mth")." where year='$year'"); - -// $mth_result = PrintStats($mth_sum[0]['sum'], $mth_max[0]['max'], $mth_info, sizeof($mth_info)); - if($mth_info){ - for($i=0; $i<sizeof($mth_info); $i++){ - - if ($mth_sum[0]['sum'] > 0) { - - $mth_percent = $mth_info[$i]['count'] * 100 / $mth_sum[0]['sum'] ; - - } else { - $mth_percent = 0; - - } - - $mth['info'][] = $mth_info[$i]['count']; - //$mth['week'][] = $mth_info[$i]['week']; - $mth['percent'][] = round($mth_percent, '2'); - -if ($mth_percent > 0) { - $xoopsTpl->append('mths', array('id' => 'mth'.$i, 'mth' => $mth_info[$i]['mth'], 'year' => $mth_info[$i]['year'], 'info' => $mth_info[$i]['count'], 'percent' => round($mth_percent, '2'))); - $xoopsTpl->append('mths_map', array('id' => 'mth'.$i, 'mth' => $mth_info[$i]['mth'], 'year' => $mth_info[$i]['year'], 'info' => $mth_info[$i]['count'], 'percent' => round($mth_percent, '2'))); - } - } - } - /////////////HOUR $hour = array(); global $xoopsDB; Modified: XoopsModules/TDMStats/trunk/TDMStats/language/english/admin.php =================================================================== --- XoopsModules/TDMStats/trunk/TDMStats/language/english/admin.php 2012-05-28 14:24:53 UTC (rev 9596) +++ XoopsModules/TDMStats/trunk/TDMStats/language/english/admin.php 2012-05-28 21:42:40 UTC (rev 9597) @@ -33,7 +33,7 @@ define ( "_AM_ISTATS_UPDATED", "File updated config.php"); // index.php -define ( "_AM_ISTATS_INDEXDESC", "module index"); +define ( "_AM_ISTATS_INDEXDESC", "Module index"); define ( "_AM_ISTATS_TABLE", "Table Name"); define ( "_AM_ISTATS_LENGTH", "Size of data file"); define ( "_AM_ISTATS_FREE", "Lost space"); @@ -46,13 +46,13 @@ define ( "_AM_ISTATS_ABOUT", "About the Module"); define ( "_AM_ISTATS_UPDATE", "Update Module"); define ( "_AM_ISTATS_PERM", "Managing Permissions"); -define ( '_AM_ISTATS_PLUG', 'Plugin Management'); +define ( '_AM_ISTATS_PLUG', 'Management Plugin'); // plug.php -define ( '_AM_ISTATS_PLUGHELP', '<b> Note: </ b> Remember to copy the code "<b> <xoStats ()> </ b>" in the file of your theme theme.html underway to account for visits ...'); +define ( '_AM_ISTATS_PLUGHELP', "<b> Note: </b> Remember to copy the code '<b> <{xoStats}> </b>' to the theme.html file of your current theme after the '<b> < body ></b>' tag, to record visits ..."); define ( '_AM_ISTATS_PLUGERROR', 'Please copy the file "xoops_plugins / function.xoStats.php" in your site root, "/ class / smarty / xoops_plugins /"'); define ( '_AM_ISTATS_PLUGOK', 'Plugin installed'); -define ( '_AM_ISTATS_PLUGETAT', 'State of the plugin'); +define ( '_AM_ISTATS_PLUGETAT', 'Plugin status'); // About (about.php) define ( "_AM_ABOUT_RELEASEDATE", "Release Date"); Modified: XoopsModules/TDMStats/trunk/TDMStats/language/english/main.php =================================================================== --- XoopsModules/TDMStats/trunk/TDMStats/language/english/main.php 2012-05-28 14:24:53 UTC (rev 9596) +++ XoopsModules/TDMStats/trunk/TDMStats/language/english/main.php 2012-05-28 21:42:40 UTC (rev 9597) @@ -21,14 +21,14 @@ // text of top head define ( '_AM_TRAFFIC_REPORT', 'Traffic Report Site'); -define ( '_AM_SUMMARY', 'Description'); +define ( '_AM_SUMMARY', 'Summary'); define ( '_AM_REFERER', 'References'); define ( '_AM_VISITOR_INFO', 'System'); define ( '_AM_TRAFFIC', 'Traffic Stats'); define ( '_AM_LOCA', 'Location'); // text of stats topic -define ( '_AM_BY_TODAY_HOUR', 'Traffic Graph of the Day'); +define ( '_AM_BY_TODAY_HOUR', 'Traffic Graph of Today'); define ( '_AM_BY_DAY', 'Days of the Month'); define ( '_AM_BY_WEEKDAY', 'Days of the Week'); define ( '_AM_BY_WEEK', 'Weekly'); @@ -36,16 +36,16 @@ define ( '_AM_BY_PAYS', 'Country Hits'); define ( '_AM_BY_COUNTRY', 'Country / City'); define ( '_AM_BY_REF', 'Visits by Referee'); -define ( '_AM_BY_HOUR', 'Time'); +define ( '_AM_BY_HOUR', 'Hourly'); define ( '_AM_BY_PAGE', 'Pages'); define ( '_AM_BY_MODULE', 'Modules'); define ( '_AM_BY_BROWSER', 'Browser'); define ( '_AM_BY_OS', 'Operating System'); define ( '_AM_BY_HOST', 'Hostname'); -define ( '_AM_FORECAST', 'Day Forcast'); +define ( '_AM_FORECAST', "Today's Forcast"); // text of summary -define ( '_AM_STATS_INFO', 'Description'); +define ( '_AM_STATS_INFO', 'Overview'); define ( '_AM_SITENAME', 'Website'); define ( '_AM_NOW', 'Today'); define ( '_AM_MAX_DATE', 'Best Day'); @@ -122,8 +122,8 @@ define ( 'AM_AVE', 'An average'); define ( 'AM_DAILY_VISIT', 'visits take place before'); define ( 'AM_BAS_NBR', 'Based on a number of'); -define ( 'AM_SO_FAR', 'visitors at the moment, your site should achieve'); -define ( 'AM_PAGE_VIEW', 'page (s) found (s ).'); +define ( 'AM_SO_FAR', 'visitors at the moment, your site should reach'); +define ( 'AM_PAGE_VIEW', 'page views.'); // perm define ( "_AM_QUERYNOPERM", "You do not have permission for this action"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <txm...@us...> - 2012-05-28 14:25:00
|
Revision: 9596 http://xoops.svn.sourceforge.net/xoops/?rev=9596&view=rev Author: txmodxoops Date: 2012-05-28 14:24:53 +0000 (Mon, 28 May 2012) Log Message: ----------- added export.png and import.png icons32 Added Paths: ----------- XoopsCore/tags/2.6 timgno/htdocs/media/xoops/images/icons/32/export.png XoopsCore/tags/2.6 timgno/htdocs/media/xoops/images/icons/32/import.png Added: XoopsCore/tags/2.6 timgno/htdocs/media/xoops/images/icons/32/export.png =================================================================== (Binary files differ) Property changes on: XoopsCore/tags/2.6 timgno/htdocs/media/xoops/images/icons/32/export.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsCore/tags/2.6 timgno/htdocs/media/xoops/images/icons/32/import.png =================================================================== (Binary files differ) Property changes on: XoopsCore/tags/2.6 timgno/htdocs/media/xoops/images/icons/32/import.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2012-05-28 09:53:09
|
Revision: 9595 http://xoops.svn.sourceforge.net/xoops/?rev=9595&view=rev Author: beckmi Date: 2012-05-28 09:52:59 +0000 (Mon, 28 May 2012) Log Message: ----------- Updating to 1.07 Final Modified Paths: -------------- XoopsModules/TDMStats/trunk/TDMStats/index.php XoopsModules/TDMStats/trunk/TDMStats/language/english/admin.php XoopsModules/TDMStats/trunk/TDMStats/language/english/blocks.php XoopsModules/TDMStats/trunk/TDMStats/language/english/main.php XoopsModules/TDMStats/trunk/TDMStats/language/english/modinfo.php Added Paths: ----------- XoopsModules/TDMStats/trunk/TDMStats/admin/about2.php Added: XoopsModules/TDMStats/trunk/TDMStats/admin/about2.php =================================================================== --- XoopsModules/TDMStats/trunk/TDMStats/admin/about2.php (rev 0) +++ XoopsModules/TDMStats/trunk/TDMStats/admin/about2.php 2012-05-28 09:52:59 UTC (rev 9595) @@ -0,0 +1,100 @@ +<?php +/** + * **************************************************************************** + * - TDMStats By TDM - TEAM DEV MODULE FOR XOOPS + * - GNU Licence Copyright (c) (http://www.) + * + * La licence GNU GPL, garanti \xE0 l'utilisateur les droits suivants + * + * 1. La libert\xE9 d'ex\xE9cuter le logiciel, pour n'importe quel usage, + * 2. La libert\xE9 de l' \xE9tudier et de l'adapter \xE0 ses besoins, + * 3. La libert\xE9 de redistribuer des copies, + * 4. La libert\xE9 d'am\xE9liorer et de rendre publiques les modifications afin + * que l'ensemble de la communaut\xE9 en b\xE9n\xE9ficie. + * + * @copyright (http://www.tdmxoops.net) + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @author TDM ; TEAM DEV MODULE + * + * **************************************************************************** + */ + +include '../../../include/cp_header.php'; +include_once(XOOPS_ROOT_PATH."/class/xoopsformloader.php"); +include_once(XOOPS_ROOT_PATH."/class/tree.php"); +include_once XOOPS_ROOT_PATH.'/class/pagenav.php'; +include_once("../include/function.php"); + +xoops_cp_header(); +if ( !is_readable(XOOPS_ROOT_PATH . "/Frameworks/art/functions.admin.php")) { +Adminmenu(2, _AM_ISTATS_ABOUT); +} else { +include_once XOOPS_ROOT_PATH.'/Frameworks/art/functions.admin.php'; +loadModuleAdminMenu (2, _AM_ISTATS_ABOUT); +} + +//menu +echo '<div class="CPbigTitle" style="background-image: url(../images/decos/about.png); background-repeat: no-repeat; background-position: left; padding-left: 60px; padding-top:20px; padding-bottom:15px;"> +<h3><strong>'._AM_ISTATS_ABOUT.'</strong></h3>'; +echo '</div><br />'; + +$versioninfo =& $module_handler->get( $xoopsModule->getVar( 'mid' ) ); +echo " + <style type=\"text/css\"> + label,text { + display: block; + float: left; + margin-bottom: 2px; + } + label { + text-align: right; + width: 150px; + padding-right: 20px; + } + br { + clear: left; + } + </style> +"; + +echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . $xoopsModule->getVar("name"). "</legend>"; +echo "<div style='padding: 8px;'>"; +echo "<img src='" . XOOPS_URL . "/modules/" . $xoopsModule->getVar("dirname") . "/" . $versioninfo->getInfo( 'image' ) . "' alt='' hspace='10' vspace='0' /></a>\n"; +echo "<div style='padding: 5px;'><strong>" . $versioninfo->getInfo( 'name' ) . " version " . $versioninfo->getInfo( 'version' ) . "</strong></div>\n"; +echo "<label>" ._AM_ABOUT_RELEASEDATE. ":</label><text>" . $versioninfo->getInfo( 'release' ) . "</text><br />"; +echo "<label>" ._AM_ABOUT_AUTHOR. ":</label><text>" . $versioninfo->getInfo( 'author' ) . "</text><br />"; +echo "<label>" ._AM_ABOUT_CREDITS. ":</label><text>" . $versioninfo->getInfo( 'credits' ) . "</text><br />"; +echo "<label>" ._AM_ABOUT_LICENSE. ":</label><text><a href=\"".$versioninfo->getInfo( 'license_file' )."\" target=\"_blank\" >" . $versioninfo->getInfo( 'license' ) . "</a></text>\n"; +echo "</div>"; +echo "</fieldset>"; +echo "<br clear=\"all\" />"; + +echo "<fieldset><legend style='font-weight: bold; color: #900;'>" ._AM_ABOUT_MODULE_INFO. "</legend>"; +echo "<div style='padding: 8px;'>"; +echo "<label>" ._AM_ABOUT_MODULE_STATUS. ":</label><text>" . $versioninfo->getInfo( 'module_status' ) . "</text><br />"; +echo "<label>" ._AM_ABOUT_WEBSITE. ":</label><text>" . "<a href='" . $versioninfo->getInfo( 'module_website_url' ) . "' target='_blank'>" . $versioninfo->getInfo( 'module_website_name' ) . "</a>" . "</text><br />"; +echo "</div>"; +echo "</fieldset>"; +echo "<br clear=\"all\" />"; + +echo "<fieldset><legend style='font-weight: bold; color: #900;'>" ._AM_ABOUT_AUTHOR_INFO. "</legend>"; +echo "<div style='padding: 8px;'>"; +echo "<label>" ._AM_ABOUT_AUTHOR_NAME. ":</label><text>" . $versioninfo->getInfo( 'author' ) . "</text><br />"; +echo "<label>" ._AM_ABOUT_WEBSITE. ":</label><text>" . "<a href='" . $versioninfo->getInfo( 'author_website_url' ) . "' target='_blank'>" . $versioninfo->getInfo( 'author_website_name' ) . "</a>" . "</text><br />"; +echo "</div>"; +echo "</fieldset>"; +echo "<br clear=\"all\" />"; + + +$file = XOOPS_ROOT_PATH. "/modules/TDMStats/changelog.txt"; +if ( is_readable( $file ) ){ + echo "<fieldset><legend style='font-weight: bold; color: #900;'>" ._AM_ABOUT_CHANGELOG. "</legend>"; + echo "<div style='padding: 8px;'>"; + echo "<div>". implode("<br />", file( $file )) . "</div>"; + echo "</div>"; + echo "</fieldset>"; + echo "<br clear=\"all\" />"; +} + +xoops_cp_footer(); +?> \ No newline at end of file Modified: XoopsModules/TDMStats/trunk/TDMStats/index.php =================================================================== --- XoopsModules/TDMStats/trunk/TDMStats/index.php 2012-05-28 07:45:53 UTC (rev 9594) +++ XoopsModules/TDMStats/trunk/TDMStats/index.php 2012-05-28 09:52:59 UTC (rev 9595) @@ -71,7 +71,8 @@ $xoopsTpl->assign('action', $action); $xoopsTpl->assign('lang_traffic_report', _AM_TRAFFIC_REPORT); $xoopsTpl->assign('lang_summary', _AM_SUMMARY); - $xoopsTpl->assign('img_bar', $xoopsModuleConfig['tdmstats_bar']); +if (isset($xoopsModuleConfig['tdmstats_bar'])) + $xoopsTpl->assign('img_bar', $xoopsModuleConfig['tdmstats_bar']); $xoopsTpl->assign('lang_traffic', _AM_TRAFFIC); $xoopsTpl->assign('lang_visitor_info', _AM_VISITOR_INFO); $xoopsTpl->assign('lang_referer', _AM_REFERER); Modified: XoopsModules/TDMStats/trunk/TDMStats/language/english/admin.php =================================================================== --- XoopsModules/TDMStats/trunk/TDMStats/language/english/admin.php 2012-05-28 07:45:53 UTC (rev 9594) +++ XoopsModules/TDMStats/trunk/TDMStats/language/english/admin.php 2012-05-28 09:52:59 UTC (rev 9595) @@ -27,7 +27,7 @@ define ( "_AM_ISTATS_COOKIE_DESC", "Determine the life of your cookie, in seconds (eg 1 hour = 3600)"); define ( "_AM_ISTATS_SAVE", "Save"); define ( "_AM_ISTATS_CANCEL", "Cancel"); -define ( "_AM_ISTATS_CONFIG", "Configuring Istat"); +define ( "_AM_ISTATS_CONFIG", "Configuring Stats"); define ( "_AM_GENERALCONF", "General configuration"); define ( "_AM_ISTATS_NOTUPDATED", "The config.php file was not updated! <br /> Scripture impossible! <br /> Please check the file permissions (chmod 666) or cache directory (chmod 777) "); define ( "_AM_ISTATS_UPDATED", "File updated config.php"); @@ -36,22 +36,22 @@ define ( "_AM_ISTATS_INDEXDESC", "module index"); define ( "_AM_ISTATS_TABLE", "Table Name"); define ( "_AM_ISTATS_LENGTH", "Size of data file"); -define ( "_AM_ISTATS_FREE", "lost space"); +define ( "_AM_ISTATS_FREE", "Lost space"); define ( "_AM_ISTATS_TOTAL", "Total file data"); define ( "_AM_ISTATS_OPT", "Optimize"); -define ( "_AM_ISTATS_BASE", "Your changes are saved with succées"); +define ( "_AM_ISTATS_BASE", "Your changes are saved successfully"); define ( "_AM_ISTATS_BASEERROR", "Error: Your changes are not saved"); define ( "_AM_ISTATS_ABOUT", "About the Module"); define ( "_AM_ISTATS_UPDATE", "Update Module"); define ( "_AM_ISTATS_PERM", "Managing Permissions"); -define ( '_AM_ISTATS_PLUG', 'Management pluging'); +define ( '_AM_ISTATS_PLUG', 'Plugin Management'); // plug.php define ( '_AM_ISTATS_PLUGHELP', '<b> Note: </ b> Remember to copy the code "<b> <xoStats ()> </ b>" in the file of your theme theme.html underway to account for visits ...'); define ( '_AM_ISTATS_PLUGERROR', 'Please copy the file "xoops_plugins / function.xoStats.php" in your site root, "/ class / smarty / xoops_plugins /"'); -define ( '_AM_ISTATS_PLUGOK', 'pluging installed'); +define ( '_AM_ISTATS_PLUGOK', 'Plugin installed'); define ( '_AM_ISTATS_PLUGETAT', 'State of the plugin'); // About (about.php) @@ -81,6 +81,4 @@ //1.07 define ( "_AM_ISTATS_KB", "KB"); -define ( "_AM_ISTATS_MB", "MB"); - -?> +define ( "_AM_ISTATS_MB", "MB"); \ No newline at end of file Modified: XoopsModules/TDMStats/trunk/TDMStats/language/english/blocks.php =================================================================== --- XoopsModules/TDMStats/trunk/TDMStats/language/english/blocks.php 2012-05-28 07:45:53 UTC (rev 9594) +++ XoopsModules/TDMStats/trunk/TDMStats/language/english/blocks.php 2012-05-28 09:52:59 UTC (rev 9595) @@ -30,14 +30,14 @@ define ( '_MB_ISTATS_TOTAL_VISITS', 'Total Hits'); define ( '_MB_ISTATS_TODAY', 'Visitors Today \' s'); define ( '_MB_ISTATS_THIS_WEEK', 'Visitors this week'); -define ( '_MB_ISTATS_THIS_MTH', 'visitors this month'); +define ( '_MB_ISTATS_THIS_MTH', 'Visitors this month'); define ( '_MB_ISTATS_AVE_HOUR', 'Average per hour'); -define ( '_MB_ISTATS_AVE_DAY', 'Average day'); +define ( '_MB_ISTATS_AVE_DAY', 'Average per day'); define ( '_MB_ISTATS_AVE_WEEK', 'Average per week'); -define ( '_MB_ISTATS_AVE_MTH', 'Average monthly'); -define ( '_MB_ISTATS_PER_HOUR', 'visits per hour'); +define ( '_MB_ISTATS_AVE_MTH', 'Average per monthl'); +define ( '_MB_ISTATS_PER_HOUR', 'Visits per hour'); define ( '_MB_ISTATS_P_PAGE', 'Total Pages'); -define ( "_MB_ISTATS_DISPLAY_DATE", "S'lectionnez the date format"); +define ( "_MB_ISTATS_DISPLAY_DATE", "Select the date format"); define ( "_MB_ISTATS_FR", "(d-m-Y)"); define ( "_MB_ISTATS_US", "U.S. (Y-n-d)"); @@ -46,12 +46,10 @@ define ( "_MB_ISTATS_ANONYMOUS", "Guest"); define ( "_MB_ISTATS_THERE", "There are already:"); define ( "_MB_ISTATS_VISITOR", "visitors who have visited this site"); -define ( "_MB_ISTATS_DISPLAY_AVATAR", "Show the avatar of the State"); +define ( "_MB_ISTATS_DISPLAY_AVATAR", "Show the Avatar"); define ( "_MB_ISTATS_YES", "Yes"); define ( "_MB_ISTATS_NO", "No"); -define ( "_MB_ISTATS_COUNTER_DISPLAY", "show a counter to% s figures (images)"); +define ( "_MB_ISTATS_COUNTER_DISPLAY", "Show a counter to% s figures (images)"); define ( "_MB_ISTATS_COUNTER_IMG_DIR", "Name of the images directory under% s"); define ( "_MB_ISTATS_DIR", "to use"); -define ( "_MB_ISTATS_DIRS_NAME", "(default / blkonwhite / whiteonblk / another you have uploaded)"); - -?> +define ( "_MB_ISTATS_DIRS_NAME", "(default / blkonwhite / whiteonblk / another you have uploaded)"); \ No newline at end of file Modified: XoopsModules/TDMStats/trunk/TDMStats/language/english/main.php =================================================================== --- XoopsModules/TDMStats/trunk/TDMStats/language/english/main.php 2012-05-28 07:45:53 UTC (rev 9594) +++ XoopsModules/TDMStats/trunk/TDMStats/language/english/main.php 2012-05-28 09:52:59 UTC (rev 9595) @@ -30,40 +30,40 @@ // text of stats topic define ( '_AM_BY_TODAY_HOUR', 'Traffic Graph of the Day'); define ( '_AM_BY_DAY', 'Days of the Month'); -define ( '_AM_BY_WEEKDAY', 'Days of the week'); +define ( '_AM_BY_WEEKDAY', 'Days of the Week'); define ( '_AM_BY_WEEK', 'Weekly'); -define ( '_AM_BY_MTH', 'Per Month'); +define ( '_AM_BY_MTH', 'Monthly'); define ( '_AM_BY_PAYS', 'Country Hits'); define ( '_AM_BY_COUNTRY', 'Country / City'); define ( '_AM_BY_REF', 'Visits by Referee'); -define ( '_AM_BY_HOUR', 'In Time'); +define ( '_AM_BY_HOUR', 'Time'); define ( '_AM_BY_PAGE', 'Pages'); define ( '_AM_BY_MODULE', 'Modules'); define ( '_AM_BY_BROWSER', 'Browser'); -define ( '_AM_BY_OS', 'System exploitation '); +define ( '_AM_BY_OS', 'Operating System'); define ( '_AM_BY_HOST', 'Hostname'); -define ( '_AM_FORECAST', 'Forecasting Day'); +define ( '_AM_FORECAST', 'Day Forcast'); // text of summary define ( '_AM_STATS_INFO', 'Description'); define ( '_AM_SITENAME', 'Website'); define ( '_AM_NOW', 'Today'); -define ( '_AM_MAX_DATE', 'Better Date'); -define ( '_AM_MAX_DAYCOUNT', 'Best Day Tours'); +define ( '_AM_MAX_DATE', 'Best Day'); +define ( '_AM_MAX_DAYCOUNT', 'Best Day Hits'); define ( '_AM_MAX_WEEK', 'Best Week'); -define ( '_AM_MAX_WEEKCOUNT', 'Best Hits of the Week'); +define ( '_AM_MAX_WEEKCOUNT', 'Best Week Hits'); define ( '_AM_MAX_MTH', 'Best Month'); -define ( '_AM_MAX_MTHCOUNT', 'Hits Best Month'); +define ( '_AM_MAX_MTHCOUNT', 'Best Month Hits'); define ( '_AM_TOTAL_DAYS', 'Total Days'); define ( '_AM_TOTAL_VISITS', 'Total Hits'); -define ( '_AM_TODAY', 'Visitors Today \' s'); -define ( '_AM_THIS_WEEK', 'Visitors this week'); -define ( '_AM_THIS_MTH', 'visitors this month'); -define ( '_AM_AVE_HOUR', 'Hits Average per hour'); -define ( '_AM_AVE_DAY', 'Hits Average per day'); -define ( '_AM_AVE_WEEK', 'Hits Average per week'); -define ( '_AM_AVE_MTH', 'visits per month'); -define ( '_AM_PER_HOUR', 'visits per hour'); +define ( '_AM_TODAY', 'Visitors Today'); +define ( '_AM_THIS_WEEK', 'Visitors this Week'); +define ( '_AM_THIS_MTH', 'Visitors this Month'); +define ( '_AM_AVE_HOUR', 'Average Hits per hour'); +define ( '_AM_AVE_DAY', 'Average Hits per day'); +define ( '_AM_AVE_WEEK', 'Average Hits per week'); +define ( '_AM_AVE_MTH', 'Average Hits per month'); +define ( '_AM_PER_HOUR', 'Visits per hour'); // text of "Visits by day" section define ( '_AM_DATE_DATE', 'Date'); @@ -106,7 +106,7 @@ define ( '_AM_BRO_BRO', 'Browser'); // text of "OS" section -define ( '_AM_OS_OS', 'System exploitation '); +define ( '_AM_OS_OS', 'Operating System'); // Text of "Screen Width" section define ( '_AM_SW_SW', 'Screen Resolution'); @@ -119,14 +119,14 @@ define ( '_AM_HOST_IP', 'IP only'); // Text of "Forecast for today" section -define ( 'AM_AVE', 'average'); +define ( 'AM_AVE', 'An average'); define ( 'AM_DAILY_VISIT', 'visits take place before'); define ( 'AM_BAS_NBR', 'Based on a number of'); define ( 'AM_SO_FAR', 'visitors at the moment, your site should achieve'); define ( 'AM_PAGE_VIEW', 'page (s) found (s ).'); // perm -define ( "_AM_QUERYNOPERM", "You do not have permission for this action efectua"); +define ( "_AM_QUERYNOPERM", "You do not have permission for this action"); //Version 1.6 define('_AM_VIEW', 'View the row'); Modified: XoopsModules/TDMStats/trunk/TDMStats/language/english/modinfo.php =================================================================== --- XoopsModules/TDMStats/trunk/TDMStats/language/english/modinfo.php 2012-05-28 07:45:53 UTC (rev 9594) +++ XoopsModules/TDMStats/trunk/TDMStats/language/english/modinfo.php 2012-05-28 09:52:59 UTC (rev 9595) @@ -38,7 +38,7 @@ define ( "_MI_ISTATS_COOKIE_MENU", "Config Cookie"); define ( "_MI_ISTATS_DATE", "Date format"); -define ( "_MI_ISTATS_PIE", "Format of the cheese:"); +define ( "_MI_ISTATS_PIE", "Format of the chart:"); define ( "_MI_ISTATS_PIE_3D", "3D"); define ( "_MI_ISTATS_PIE_SIMPLE", "Simple"); define ( "_MI_ISTATS_DATE_DESC", "Choose between the date format <b> EN </ b> (d / m / YG: i) or the date format <b> U.S. </ b> (Y / n / dg: ia) "); @@ -55,6 +55,6 @@ define("_MI_ISTATS_ONGLET","Style Tabs:"); // -define("_MI_ISTATS_MAXLABEL","View label cheese :"); -define("_MI_ISTATS_MAXTITLE","Show title cheeses :"); +define("_MI_ISTATS_MAXLABEL","View chart label:"); +define("_MI_ISTATS_MAXTITLE","Show chart title:"); ?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2012-05-28 07:46:07
|
Revision: 9594 http://xoops.svn.sourceforge.net/xoops/?rev=9594&view=rev Author: beckmi Date: 2012-05-28 07:45:53 +0000 (Mon, 28 May 2012) Log Message: ----------- Updating to 1.20 Final Modified Paths: -------------- XoopsModules/mysearch/trunk/mysearch/admin/about.php XoopsModules/mysearch/trunk/mysearch/admin/admin_footer.php XoopsModules/mysearch/trunk/mysearch/admin/admin_header.php XoopsModules/mysearch/trunk/mysearch/admin/functions.php XoopsModules/mysearch/trunk/mysearch/admin/index.php XoopsModules/mysearch/trunk/mysearch/admin/main.php XoopsModules/mysearch/trunk/mysearch/admin/menu.php XoopsModules/mysearch/trunk/mysearch/admin/upgrade.php XoopsModules/mysearch/trunk/mysearch/blocks/mysearch_ajax_search.php XoopsModules/mysearch/trunk/mysearch/blocks/mysearch_biggest_users.php XoopsModules/mysearch/trunk/mysearch/blocks/mysearch_last_search.php XoopsModules/mysearch/trunk/mysearch/blocks/mysearch_search.php XoopsModules/mysearch/trunk/mysearch/blocks/mysearch_stats.php XoopsModules/mysearch/trunk/mysearch/class/blacklist.php XoopsModules/mysearch/trunk/mysearch/class/searches.php XoopsModules/mysearch/trunk/mysearch/css/style.css XoopsModules/mysearch/trunk/mysearch/docs/changelog.txt XoopsModules/mysearch/trunk/mysearch/include/ajax_updater.php XoopsModules/mysearch/trunk/mysearch/include/functions.php XoopsModules/mysearch/trunk/mysearch/include/searchform.php XoopsModules/mysearch/trunk/mysearch/index.php XoopsModules/mysearch/trunk/mysearch/language/english/admin.php XoopsModules/mysearch/trunk/mysearch/language/english/blocks.php XoopsModules/mysearch/trunk/mysearch/language/english/main.php XoopsModules/mysearch/trunk/mysearch/language/english/modinfo.php XoopsModules/mysearch/trunk/mysearch/language/portuguesebr/admin.php XoopsModules/mysearch/trunk/mysearch/language/portuguesebr/blocks.php XoopsModules/mysearch/trunk/mysearch/language/portuguesebr/main.php XoopsModules/mysearch/trunk/mysearch/language/portuguesebr/modinfo.php XoopsModules/mysearch/trunk/mysearch/search.php XoopsModules/mysearch/trunk/mysearch/xoops_version.php Removed Paths: ------------- XoopsModules/mysearch/trunk/mysearch/images/delete.png XoopsModules/mysearch/trunk/mysearch/images/herve.jpg XoopsModules/mysearch/trunk/mysearch/images/instantzero.gif XoopsModules/mysearch/trunk/mysearch/images/pspbrwse.jbf Modified: XoopsModules/mysearch/trunk/mysearch/admin/about.php =================================================================== --- XoopsModules/mysearch/trunk/mysearch/admin/about.php 2012-05-26 08:30:17 UTC (rev 9593) +++ XoopsModules/mysearch/trunk/mysearch/admin/about.php 2012-05-28 07:45:53 UTC (rev 9594) @@ -1,31 +1,31 @@ -<?php -/** - * XOOPS Profile module - * - * You may not change or alter any portion of this comment or credits - * of supporting developers from this source code or any supporting source code - * which is considered copyrighted (c) material of the original comment or credit authors. - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * @copyright The XOOPS Project (http://www.xoops.org) - * @license GNU GPL (http://www.gnu.org/licenses/gpl-2.0.html/) - * @package xoopsPoll - * @since 2.5.0 - * @author Mage, Mamba - * @version $Id $ - **/ - -include '../../../include/cp_header.php'; -include 'admin_header.php'; -xoops_cp_header(); - -$module_info =& $module_handler->get($xoopsModule->getVar("mid")); - -$aboutAdmin = new ModuleAdmin(); - -echo $aboutAdmin->addNavigation('about.php'); -echo $aboutAdmin->renderabout('6KJ7RW5DR3VTJ', false); - +<?php +/** + * XOOPS Profile module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project (http://www.xoops.org) + * @license GNU GPL (http://www.gnu.org/licenses/gpl-2.0.html/) + * @package xoopsPoll + * @since 2.5.0 + * @author Mage, Mamba + * @version $Id $ + **/ + +include '../../../include/cp_header.php'; +include 'admin_header.php'; +xoops_cp_header(); + +$module_info =& $module_handler->get($xoopsModule->getVar("mid")); + +$aboutAdmin = new ModuleAdmin(); + +echo $aboutAdmin->addNavigation('about.php'); +echo $aboutAdmin->renderabout('6KJ7RW5DR3VTJ', false); + include 'admin_footer.php'; \ No newline at end of file Modified: XoopsModules/mysearch/trunk/mysearch/admin/admin_footer.php =================================================================== --- XoopsModules/mysearch/trunk/mysearch/admin/admin_footer.php 2012-05-26 08:30:17 UTC (rev 9593) +++ XoopsModules/mysearch/trunk/mysearch/admin/admin_footer.php 2012-05-28 07:45:53 UTC (rev 9594) @@ -1,26 +1,26 @@ -<?php -/** - * MySearch module - * - * You may not change or alter any portion of this comment or credits - * of supporting developers from this source code or any supporting source code - * which is considered copyrighted (c) material of the original comment or credit authors. - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license http://www.fsf.org/copyleft/gpl.html GNU public license - * @package mysearch - * @since 1.2.0 - * @author XOOPS Module Team - * @version $Id $ -**/ -echo "<div class='adminfooter'>\n" - ." <div style='text-align: center;'>\n" - ." <a href='http://www.xoops.org' target='_blank'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" - ." </div>\n" - ." " . _AM_MODULEADMIN_ADMIN_FOOTER . "\n" - ."</div>"; - +<?php +/** + * MySearch module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package mysearch + * @since 1.2.0 + * @author XOOPS Module Team + * @version $Id $ +**/ +echo "<div class='adminfooter'>\n" + ." <div style='text-align: center;'>\n" + ." <a href='http://www.xoops.org' target='_blank'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" + ." </div>\n" + ." " . _AM_MODULEADMIN_ADMIN_FOOTER . "\n" + ."</div>"; + xoops_cp_footer(); \ No newline at end of file Modified: XoopsModules/mysearch/trunk/mysearch/admin/admin_header.php =================================================================== --- XoopsModules/mysearch/trunk/mysearch/admin/admin_header.php 2012-05-26 08:30:17 UTC (rev 9593) +++ XoopsModules/mysearch/trunk/mysearch/admin/admin_header.php 2012-05-28 07:45:53 UTC (rev 9594) @@ -1,28 +1,28 @@ -<?php - -$path = dirname(dirname(dirname(dirname(__FILE__)))); -include_once $path . '/mainfile.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(dirname(__FILE__)) . '/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'); - -if ( file_exists($GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'))){ - include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'); - }else{ - redirect_header("../../../admin.php", 5, _AM_MODULEADMIN_MISSING, false); +<?php + +$path = dirname(dirname(dirname(dirname(__FILE__)))); +include_once $path . '/mainfile.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(dirname(__FILE__)) . '/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'); + +if ( file_exists($GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'))){ + include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'); + }else{ + redirect_header("../../../admin.php", 5, _AM_MODULEADMIN_MISSING, false); } \ No newline at end of file Modified: XoopsModules/mysearch/trunk/mysearch/admin/functions.php =================================================================== --- XoopsModules/mysearch/trunk/mysearch/admin/functions.php 2012-05-26 08:30:17 UTC (rev 9593) +++ XoopsModules/mysearch/trunk/mysearch/admin/functions.php 2012-05-28 07:45:53 UTC (rev 9594) @@ -1,132 +1,132 @@ -<?php -// ------------------------------------------------------------------------ // -// mysearch - MODULE FOR XOOPS 2 // -// Copyright (c) 2005-2006 Instant Zero // -// <http://xoops.instant-zero.com/> // -// ------------------------------------------------------------------------- // -// This program is free software; you can redistribute it and/or modify // -// it under the terms of the GNU General Public License as published by // -// the Free Software Foundation; either version 2 of the License, or // -// (at your option) any later version. // -// // -// 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. See the // -// GNU General Public License for more details. // -// // -// You should have received a copy of the GNU General Public License // -// along with this program; if not, write to the Free Software // -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// ------------------------------------------------------------------------ // -if (!defined('XOOPS_ROOT_PATH')) { - die("XOOPS root path not defined"); -} - -function mysearch_adminmenu($currentoption = 0, $breadcrumb = '') -{ - include_once XOOPS_ROOT_PATH.'/modules/mysearch/include/functions.php'; - - /* Nice buttons styles */ - echo " - <style type='text/css'> - #buttontop { float:left; width:100%; background: #e7e7e7; font-size:93%; line-height:normal; border-top: 1px solid black; border-left: 1px solid black; border-right: 1px solid black; margin: 0; } - #buttonbar { float:left; width:100%; background: #e7e7e7 url('" . XOOPS_URL . "/modules/mysearch/images/bg.png') repeat-x left bottom; font-size:93%; line-height:normal; border-left: 1px solid black; border-right: 1px solid black; margin-bottom: 12px; } - #buttonbar ul { margin:0; margin-top: 15px; padding:10px 10px 0; list-style:none; } - #buttonbar li { display:inline; margin:0; padding:0; } - #buttonbar a { float:left; background:url('" . XOOPS_URL . "/modules/mysearch/images/left_both.png') no-repeat left top; margin:0; padding:0 0 0 9px; border-bottom:1px solid #000; text-decoration:none; } - #buttonbar a span { float:left; display:block; background:url('" . XOOPS_URL . "/modules/mysearch/images/right_both.png') no-repeat right top; padding:5px 15px 4px 6px; font-weight:bold; color:#765; } - /* Commented Backslash Hack hides rule from IE5-Mac \*/ - #buttonbar a span {float:none;} - /* End IE5-Mac hack */ - #buttonbar a:hover span { color:#333; } - #buttonbar #current a { background-position:0 -150px; border-width:0; } - #buttonbar #current a span { background-position:100% -150px; padding-bottom:5px; color:#333; } - #buttonbar a:hover { background-position:0% -150px; } - #buttonbar a:hover span { background-position:100% -150px; } - </style> - "; - global $xoopsModule, $xoopsConfig; - - $tblColors = array('','','','',''); - if($currentoption>=0) { - $tblColors[$currentoption] = 'current'; - } - - if (file_exists(XOOPS_ROOT_PATH . '/modules/mysearch/language/' . $xoopsConfig['language'] . '/modinfo.php')) { - include_once XOOPS_ROOT_PATH. '/modules/mysearch/language/' . $xoopsConfig['language'] . '/modinfo.php'; - } else { - include_once XOOPS_ROOT_PATH . '/modules/mysearch/language/english/modinfo.php'; - } - - echo "<div id='buttontop'>"; - echo "<table style=\"width: 100%; padding: 0; \" cellspacing=\"0\"><tr>"; - echo "<td style=\"width: 60%; font-size: 10px; text-align: left; color: #2F5376; padding: 0 6px; line-height: 18px;\"><a class=\"nobutton\" href=\"../../system/admin.php?fct=preferences&op=showmod&mod=".$xoopsModule->getVar('mid')."\">" . _AM_MYSEARCH_GENERALSET . "</a> | <a href=\"../index.php\">" . _AM_MYSEARCH_GOTOMOD . "</a></td>"; - echo "<td style=\"width: 40%; font-size: 10px; text-align: right; color: #2F5376; padding: 0 6px; line-height: 18px;\"><b>" . $xoopsModule->name() . " " . _AM_MYSEARCH_MODULEADMIN . "</b> " . $breadcrumb . "</td>"; - echo "</tr></table>"; - echo "</div>"; - - echo "<div id='buttonbar'>"; - echo "<ul>"; - echo "<li id='" . $tblColors[0] . "'><a href=\"index.php?op=stats\"\"><span>"._MI_MYSEARCH_ADMMENU1 ."</span></a></li>\n"; - echo "<li id='" . $tblColors[1] . "'><a href=\"index.php?op=purge\"\"><span>"._MI_MYSEARCH_ADMMENU2 ."</span></a></li>\n"; - echo "<li id='" . $tblColors[2] . "'><a href=\"index.php?op=export\"><span>" . _MI_MYSEARCH_ADMMENU3 . "</span></a></li>\n"; - echo "<li id='" . $tblColors[3] . "'><a href=\"index.php?op=blacklist\"><span>" . _MI_MYSEARCH_ADMMENU4 . "</span></a></li>\n"; - echo "<li id='" . $tblColors[4] . "'><a href=\"index.php?op=about\"><span>" . _MI_MYSEARCH_ADMMENU5 . "</span></a></li>\n"; - echo "</ul></div>"; - echo "<br /><br /><pre> </pre><pre> </pre><br />"; -} - - - -function mysearch_collapsableBar($tablename = '', $iconname = '') -{ - - ?> -<script type="text/javascript"><!-- - function goto_URL(object) - { - window.location.href = object.options[object.selectedIndex].value; - } - - function toggle(id) - { - if (document.getElementById) { obj = document.getElementById(id); } - if (document.all) { obj = document.all[id]; } - if (document.layers) { obj = document.layers[id]; } - if (obj) { - if (obj.style.display == "none") { - obj.style.display = ""; - } else { - obj.style.display = "none"; - } - } - return false; - } - - var iconClose = new Image(); - iconClose.src = '../images/close12.gif'; - var iconOpen = new Image(); - iconOpen.src = '../images/open12.gif'; - - function toggleIcon ( iconName ) - { - if ( document.images[iconName].src == window.iconOpen.src ) { - document.images[iconName].src = window.iconClose.src; - } else if ( document.images[iconName].src == window.iconClose.src ) { - document.images[iconName].src = window.iconOpen.src; - } - return; - } - - //--> - </script> - <?php - echo "<h4 style=\"color: #2F5376; margin: 6px 0 0 0; \"><a href='#' onClick=\"toggle('" . $tablename . "'); toggleIcon('" . $iconname . "');\">"; -} - -?> +<?php +// ------------------------------------------------------------------------ // +// mysearch - MODULE FOR XOOPS 2 // +// Copyright (c) 2005-2006 Instant Zero // +// <http://xoops.instant-zero.com/> // +// ------------------------------------------------------------------------- // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +if (!defined('XOOPS_ROOT_PATH')) { + die("XOOPS root path not defined"); +} + +function mysearch_adminmenu($currentoption = 0, $breadcrumb = '') +{ + include_once XOOPS_ROOT_PATH.'/modules/mysearch/include/functions.php'; + + /* Nice buttons styles */ + echo " + <style type='text/css'> + #buttontop { float:left; width:100%; background: #e7e7e7; font-size:93%; line-height:normal; border-top: 1px solid black; border-left: 1px solid black; border-right: 1px solid black; margin: 0; } + #buttonbar { float:left; width:100%; background: #e7e7e7 url('" . XOOPS_URL . "/modules/mysearch/images/bg.png') repeat-x left bottom; font-size:93%; line-height:normal; border-left: 1px solid black; border-right: 1px solid black; margin-bottom: 12px; } + #buttonbar ul { margin:0; margin-top: 15px; padding:10px 10px 0; list-style:none; } + #buttonbar li { display:inline; margin:0; padding:0; } + #buttonbar a { float:left; background:url('" . XOOPS_URL . "/modules/mysearch/images/left_both.png') no-repeat left top; margin:0; padding:0 0 0 9px; border-bottom:1px solid #000; text-decoration:none; } + #buttonbar a span { float:left; display:block; background:url('" . XOOPS_URL . "/modules/mysearch/images/right_both.png') no-repeat right top; padding:5px 15px 4px 6px; font-weight:bold; color:#765; } + /* Commented Backslash Hack hides rule from IE5-Mac \*/ + #buttonbar a span {float:none;} + /* End IE5-Mac hack */ + #buttonbar a:hover span { color:#333; } + #buttonbar #current a { background-position:0 -150px; border-width:0; } + #buttonbar #current a span { background-position:100% -150px; padding-bottom:5px; color:#333; } + #buttonbar a:hover { background-position:0% -150px; } + #buttonbar a:hover span { background-position:100% -150px; } + </style> + "; + global $xoopsModule, $xoopsConfig; + + $tblColors = array('','','','',''); + if($currentoption>=0) { + $tblColors[$currentoption] = 'current'; + } + + if (file_exists(XOOPS_ROOT_PATH . '/modules/mysearch/language/' . $xoopsConfig['language'] . '/modinfo.php')) { + include_once XOOPS_ROOT_PATH. '/modules/mysearch/language/' . $xoopsConfig['language'] . '/modinfo.php'; + } else { + include_once XOOPS_ROOT_PATH . '/modules/mysearch/language/english/modinfo.php'; + } + + echo "<div id='buttontop'>"; + echo "<table style=\"width: 100%; padding: 0; \" cellspacing=\"0\"><tr>"; + echo "<td style=\"width: 60%; font-size: 10px; text-align: left; color: #2F5376; padding: 0 6px; line-height: 18px;\"><a class=\"nobutton\" href=\"../../system/admin.php?fct=preferences&op=showmod&mod=".$xoopsModule->getVar('mid')."\">" . _AM_MYSEARCH_GENERALSET . "</a> | <a href=\"../index.php\">" . _AM_MYSEARCH_GOTOMOD . "</a></td>"; + echo "<td style=\"width: 40%; font-size: 10px; text-align: right; color: #2F5376; padding: 0 6px; line-height: 18px;\"><b>" . $xoopsModule->name() . " " . _AM_MYSEARCH_MODULEADMIN . "</b> " . $breadcrumb . "</td>"; + echo "</tr></table>"; + echo "</div>"; + + echo "<div id='buttonbar'>"; + echo "<ul>"; + echo "<li id='" . $tblColors[0] . "'><a href=\"index.php?op=stats\"\"><span>"._MI_MYSEARCH_ADMMENU1 ."</span></a></li>\n"; + echo "<li id='" . $tblColors[1] . "'><a href=\"index.php?op=purge\"\"><span>"._MI_MYSEARCH_ADMMENU2 ."</span></a></li>\n"; + echo "<li id='" . $tblColors[2] . "'><a href=\"index.php?op=export\"><span>" . _MI_MYSEARCH_ADMMENU3 . "</span></a></li>\n"; + echo "<li id='" . $tblColors[3] . "'><a href=\"index.php?op=blacklist\"><span>" . _MI_MYSEARCH_ADMMENU4 . "</span></a></li>\n"; + echo "<li id='" . $tblColors[4] . "'><a href=\"index.php?op=about\"><span>" . _MI_MYSEARCH_ADMMENU5 . "</span></a></li>\n"; + echo "</ul></div>"; + echo "<br /><br /><pre> </pre><pre> </pre><br />"; +} + + + +function mysearch_collapsableBar($tablename = '', $iconname = '') +{ + + ?> +<script type="text/javascript"><!-- + function goto_URL(object) + { + window.location.href = object.options[object.selectedIndex].value; + } + + function toggle(id) + { + if (document.getElementById) { obj = document.getElementById(id); } + if (document.all) { obj = document.all[id]; } + if (document.layers) { obj = document.layers[id]; } + if (obj) { + if (obj.style.display == "none") { + obj.style.display = ""; + } else { + obj.style.display = "none"; + } + } + return false; + } + + var iconClose = new Image(); + iconClose.src = '../images/close12.gif'; + var iconOpen = new Image(); + iconOpen.src = '../images/open12.gif'; + + function toggleIcon ( iconName ) + { + if ( document.images[iconName].src == window.iconOpen.src ) { + document.images[iconName].src = window.iconClose.src; + } else if ( document.images[iconName].src == window.iconClose.src ) { + document.images[iconName].src = window.iconOpen.src; + } + return; + } + + //--> + </script> + <?php + echo "<h4 style=\"color: #2F5376; margin: 6px 0 0 0; \"><a href='#' onClick=\"toggle('" . $tablename . "'); toggleIcon('" . $iconname . "');\">"; +} + +?> Modified: XoopsModules/mysearch/trunk/mysearch/admin/index.php =================================================================== --- XoopsModules/mysearch/trunk/mysearch/admin/index.php 2012-05-26 08:30:17 UTC (rev 9593) +++ XoopsModules/mysearch/trunk/mysearch/admin/index.php 2012-05-28 07:45:53 UTC (rev 9594) @@ -1,53 +1,53 @@ -<?php -// $Id: index.php 8066 2011-11-06 05:09:33Z beckmi $ -// ------------------------------------------------------------------------ // -// XOOPS - PHP Content Management System // -// Copyright (c) 2000 XOOPS.org // -// <http://www.xoops.org/> // -// ------------------------------------------------------------------------ // -// This program is free software; you can redistribute it and/or modify // -// it under the terms of the GNU General Public License as published by // -// the Free Software Foundation; either version 2 of the License, or // -// (at your option) any later version. // -// // -// 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. See the // -// GNU General Public License for more details. // -// // -// You should have received a copy of the GNU General Public License // -// along with this program; if not, write to the Free Software // -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// ------------------------------------------------------------------------ // -// Author: Raul Recio (AKA UNFOR) // -// Project: The XOOPS Project // -// ------------------------------------------------------------------------- // - -include_once 'admin_header.php'; -xoops_cp_header(); - -$indexAdmin = new ModuleAdmin(); -//----------------------- -// $xpPartnerHandler =& xoops_getmodulehandler('partners', $xoopsModule->getVar('dirname')); - -// $totalPartners = $xpPartnerHandler->getCount(); -// $totalNonActivePartners = $xpPartnerHandler->getCount(new Criteria('status', 0, '=')); -// $totalActivePartners = $totalPartners - $totalNonActivePartners; - -// $indexAdmin->addInfoBox(_MD_XPARTNERS_DASHBOARD); - -// $indexAdmin->addInfoBoxLine(_MD_XPARTNERS_DASHBOARD, "<infolabel>" ._MD_XPARTNERS_TOTALACTIVE. "</infolabel>", $totalActivePartners, 'Green'); -// $indexAdmin->addInfoBoxLine(_MD_XPARTNERS_DASHBOARD, "<infolabel>" ._MD_XPARTNERS_TOTALNONACTIVE. "</infolabel>", $totalNonActivePartners, 'Red'); -// $indexAdmin->addInfoBoxLine(_MD_XPARTNERS_DASHBOARD, "<infolabel>" ._MD_XPARTNERS_TOTALPARTNERS. "</infolabel><infotext>", $totalPartners."</infotext>"); -//---------------------------- - -echo $indexAdmin->addNavigation('index.php'); -echo $indexAdmin->renderIndex(); - -include 'admin_footer.php'; +<?php +// $Id: index.php 8066 2011-11-06 05:09:33Z beckmi $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// Author: Raul Recio (AKA UNFOR) // +// Project: The XOOPS Project // +// ------------------------------------------------------------------------- // + +include_once 'admin_header.php'; +xoops_cp_header(); + +$indexAdmin = new ModuleAdmin(); +//----------------------- +// $xpPartnerHandler =& xoops_getmodulehandler('partners', $xoopsModule->getVar('dirname')); + +// $totalPartners = $xpPartnerHandler->getCount(); +// $totalNonActivePartners = $xpPartnerHandler->getCount(new Criteria('status', 0, '=')); +// $totalActivePartners = $totalPartners - $totalNonActivePartners; + +// $indexAdmin->addInfoBox(_MD_XPARTNERS_DASHBOARD); + +// $indexAdmin->addInfoBoxLine(_MD_XPARTNERS_DASHBOARD, "<infolabel>" ._MD_XPARTNERS_TOTALACTIVE. "</infolabel>", $totalActivePartners, 'Green'); +// $indexAdmin->addInfoBoxLine(_MD_XPARTNERS_DASHBOARD, "<infolabel>" ._MD_XPARTNERS_TOTALNONACTIVE. "</infolabel>", $totalNonActivePartners, 'Red'); +// $indexAdmin->addInfoBoxLine(_MD_XPARTNERS_DASHBOARD, "<infolabel>" ._MD_XPARTNERS_TOTALPARTNERS. "</infolabel><infotext>", $totalPartners."</infotext>"); +//---------------------------- + +echo $indexAdmin->addNavigation('index.php'); +echo $indexAdmin->renderIndex(); + +include 'admin_footer.php'; //xoops_cp_footer(); \ No newline at end of file Modified: XoopsModules/mysearch/trunk/mysearch/admin/main.php =================================================================== --- XoopsModules/mysearch/trunk/mysearch/admin/main.php 2012-05-26 08:30:17 UTC (rev 9593) +++ XoopsModules/mysearch/trunk/mysearch/admin/main.php 2012-05-28 07:45:53 UTC (rev 9594) @@ -1,583 +1,584 @@ -<?php -// ------------------------------------------------------------------------ // -// mysearch - MODULE FOR XOOPS 2 // -// Copyright (c) 2005-2006 Instant Zero // -// <http://xoops.instant-zero.com/> // -// ------------------------------------------------------------------------- // -// This program is free software; you can redistribute it and/or modify // -// it under the terms of the GNU General Public License as published by // -// the Free Software Foundation; either version 2 of the License, or // -// (at your option) any later version. // -// // -// 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. See the // -// GNU General Public License for more details. // -// // -// You should have received a copy of the GNU General Public License // -// along with this program; if not, write to the Free Software // -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// ------------------------------------------------------------------------ // - -include_once '../../../include/cp_header.php'; -include_once XOOPS_ROOT_PATH.'/class/pagenav.php'; -include_once XOOPS_ROOT_PATH.'/modules/mysearch/admin/functions.php'; -include_once XOOPS_ROOT_PATH.'/modules/mysearch/include/functions.php'; -include_once 'admin_header.php'; -$indexAdmin = new ModuleAdmin(); - - -if (file_exists(XOOPS_ROOT_PATH.'/modules/mysearch/language/' . $xoopsConfig['language'] . '/main.php')) { - include_once XOOPS_ROOT_PATH.'/modules/mysearch/language/' . $xoopsConfig['language'] . '/main.php'; -} else { - include_once XOOPS_ROOT_PATH.'/modules/mysearch/language/english/main.php'; -} - -/** - * Module's parameters - */ -$keywords_count = mysearch_getmoduleoption('admincount'); - - -// ********************************************************************************************************************************************** -// **** Main -// ********************************************************************************************************************************************** -$op = 'default'; -if(isset($_POST['op'])) { - $op = $_POST['op']; -} elseif(isset($_GET['op'])) { - $op = $_GET['op']; -} -$mysearch_handler =& xoops_getmodulehandler('searches', 'mysearch'); -$myts =& MyTextSanitizer::getInstance(); - -switch ($op) { - /** - * Remove datas by keyword or by date - */ - case 'purge': - include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; - xoops_cp_header(); - echo $indexAdmin->addNavigation('main.php?op=purge'); - //mysearch_adminmenu(1); - echo '<br />'; - $sform = new XoopsThemeForm(_AM_MYSEARCH_PRUNE, 'pruneform', XOOPS_URL.'/modules/mysearch/admin/index.php', 'post'); - $sform->addElement(new XoopsFormTextDateSelect(_AM_MYSEARCH_PRUNE_DATE, 'prune_date',15,time()), false); - $sform->addElement(new XoopsFormText(_AM_MYSEARCH_PRUNE_KEYONLY, 'keyword', 50, 255, ''), false); - $sform->addElement(new XoopsFormText(_AM_MYSEARCH_IP, 'ip', 20, 255, ''), false); - $sform->addElement(new XoopsFormHidden('op', 'ConfirmBeforeToPrune'), false); - $button_tray = new XoopsFormElementTray(_AM_MYSEARCH_PRUNE_DESC ,''); - $submit_btn = new XoopsFormButton('', 'post', _SUBMIT, 'submit'); - $button_tray->addElement($submit_btn); - $sform->addElement($button_tray); - $sform->display(); - break; - - - /** - * Ask a confirmation before to remove keywords - */ - case 'ConfirmBeforeToPrune': - xoops_cp_header(); - //mysearch_adminmenu(1); - echo '<br />'; - $criteria = new CriteriaCompo(); - - $date=''; - $timestamp=0; - $keyword=''; - $ip = ''; - - if(isset($_POST['prune_date']) && xoops_trim($_POST['prune_date'])!='') { - $date=$_POST['prune_date']; - $timestamp=mktime(0,0,0,intval(substr($date,5,2)), intval(substr($date,8,2)), intval(substr($date,0,4))); - $date=date('Y-m-d',$timestamp); - $criteria->add(new Criteria("date_format(datesearch,'%X-%m-%d')", $date,'<=')); - } - if(isset($_POST['keyword']) && xoops_trim($_POST['keyword'])!='') { - $keyword = $_POST['keyword']; - $criteria->add(new Criteria('keyword', $myts->addSlashes($_POST['keyword']),'=')); - } - if(isset($_POST['ip']) && xoops_trim($_POST['ip'])!='') { - $ip = isset($_POST['ip']) ? $_POST['ip'] : ''; - $criteria->add(new Criteria('ip', $myts->addSlashes($_POST['ip']),'=')); - } - $count=0; - $count=$mysearch_handler->getCount($criteria); - if($count>0) { - $msg=sprintf(_AM_MYSEARCH_PRUNE_CONFIRM,$count); - xoops_confirm(array( 'op' => 'pruneKeywords', 'keyword' => $keyword, 'prune_date' => $timestamp, 'ip' => $ip,'ok' => 1), 'index.php', $msg); - } else { - printf(_AM_MYSEARCH_NOTHING_PRUNE); - } - break; - - - /** - * Effectively delete keywords - */ - case 'pruneKeywords': - $timestamp = 0; - $keyword = ''; - $ip = ''; - $criteria = new CriteriaCompo(); - - if(isset($_POST['prune_date']) && intval($_POST['prune_date'])!=0) { - $timestamp=$_POST['prune_date']; - $date=date('Y-m-d',$timestamp); - $criteria->add(new Criteria("date_format(datesearch,'%X-%m-%d')", $date,'<=')); - } - if(isset($_POST['keyword']) && xoops_trim($_POST['keyword'])!='') { - $keyword = $_POST['keyword']; - $criteria->add(new Criteria('keyword', $myts->addSlashes($_POST['keyword']),'=')); - } - if(isset($_POST['ip']) && xoops_trim($_POST['ip'])!='') { - $ip = isset($_POST['ip']) ? $_POST['ip'] : ''; - $criteria->add(new Criteria('ip', $myts->addSlashes($_POST['ip']),'=')); - } - - if(intval($_POST['ok'])==1) { - xoops_cp_header(); - $mysearch_handler->deleteAll($criteria); - redirect_header('index.php?op=purge', 2, _AM_MYSEARCH_DBUPDATED); - } - break; - - - /** - * Remove a keyword from the database (directly called from the statistics part) - */ - case 'removekeyword': - xoops_cp_header(); - if(intval($_GET['id'])!=0) { - $tmp_search = $mysearch_handler->get(intval($_GET['id'])); - if(is_object($tmp_search)) { - $critere = new Criteria('keyword', $tmp_search->getVar('keyword'),'='); - $mysearch_handler->deleteAll($critere); - } - unset($tmp_search); - } - redirect_header('index.php', 2, _AM_MYSEARCH_DBUPDATED); - break; - - - /** - * Export datas to a pure text file - */ - case 'export': - xoops_cp_header(); - echo $indexAdmin->addNavigation('main.php?op=export'); - //mysearch_adminmenu(2); - echo '<br />'; - include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; - $min=$max=''; - $mint=$maxt=0; - $mysearch_handler->getMinMaxDate($min,$max); - $mint=strtotime($min); - $maxt=strtotime($max); - - $sform = new XoopsThemeForm(_AM_MYSEARCH_EXPORT, 'exportform', XOOPS_URL.'/modules/mysearch/admin/index.php', 'post'); - $dates_tray = new XoopsFormElementTray(_AM_MYSEARCH_EXPORT_BETWEEN); - $date1 = new XoopsFormTextDateSelect('', 'date1',15,$mint); - $date2 = new XoopsFormTextDateSelect(_AM_MYSEARCH_EXPORT_AND, 'date2',15,$maxt); - $dates_tray->addElement($date1); - $dates_tray->addElement($date2); - $sform->addElement($dates_tray,false); - $sform->addElement(new XoopsFormSelectUser(_AM_MYSEARCH_USER,'user',true,'',5,true),false); - $sform->addElement(new XoopsFormText(_AM_MYSEARCH_KEYWORD, 'keyword', 50, 255, ''), false); - $sform->addElement(new XoopsFormText(_AM_MYSEARCH_IP, 'ip', 10, 32, ''), false); - $sform->addElement(new XoopsFormText(_AM_MYSEARCH_DATE_FORMAT, 'dateformat', 15, 255, _SHORTDATESTRING), true); - $sform->addElement(new XoopsFormText(_AM_MYSEARCH_DELIMITER, 'delimiter', 2, 255, ';'), true); - $sform->addElement(new XoopsFormHidden('op', 'SearchExport'), false); - $button_tray = new XoopsFormElementTray('' ,''); - $submit_btn = new XoopsFormButton('', 'post', _SUBMIT, 'submit'); - $button_tray->addElement($submit_btn); - $sform->addElement($button_tray); - $sform->display(); - break; - - - /** - * Lauch the export - */ - case 'SearchExport': - xoops_cp_header(); - //mysearch_adminmenu(2); - $criteria = new CriteriaCompo(); - $dateformat = isset($_POST['dateformat']) ? $_POST['dateformat'] : ''; - $delimiter = isset($_POST['delimiter']) ? $_POST['delimiter'] : ';'; - $searchfile=XOOPS_ROOT_PATH.'/uploads/mysearch_keywords.txt'; - $searchfile2 =XOOPS_URL.'/uploads/mysearch_keywords.txt'; - $tbl=array(); - - if(isset($_POST['date1']) && isset($_POST['date2'])) { - $startdate=date('Y-m-d',strtotime($_POST['date1'])); - $enddate=date('Y-m-d',strtotime($_POST['date2'])); - $criteria->add(new Criteria("date_format(datesearch,'%X-%m-%d')", $startdate,'>=')); - $criteria->add(new Criteria("date_format(datesearch,'%X-%m-%d')", $enddate,'<=')); - } - if(isset($_POST['user']) && xoops_trim($_POST['user'])!='') { - $criteria->add(new Criteria('uid', '('.implode(',', $_POST['user']).')','IN')); - } - if(isset($_POST['keyword']) && xoops_trim($_POST['keyword'])!='') { - $criteria->add(new Criteria('keyword', $myts->addSlashes($_POST['keyword']),'=')); - } - if(isset($_POST['ip']) && xoops_trim($_POST['ip'])!='') { - $criteria->add(new Criteria('ip', $myts->addSlashes($_POST['ip']),'=')); - } - $criteria->setSort('datesearch'); - $criteria->setOrder('desc'); - - $tbl=$mysearch_handler->getObjects($criteria); - if(count($tbl)>0) { - $fp = fopen($searchfile,'w'); - if(!$fp) { - redirect_header('index.php',4,sprintf(_AM_MYSEARCH_EXPORT_ERROR,$searchfile)); - } - $tmpmysearch = new searches(); - fwrite($fp,'id'.$delimiter.'date'.$delimiter.'keyword'.$delimiter.'uid'.$delimiter.'uname'.$delimiter.'ip'."\r\n"); - foreach($tbl as $onesearch) { - fwrite($fp,$onesearch->getVar('mysearchid').$delimiter.formatTimestamp(strtotime($onesearch->getVar('datesearch'))).$delimiter.$onesearch->getVar('keyword').$delimiter.$onesearch->getVar('uid').$delimiter.$tmpmysearch->uname($onesearch->getVar('uid')).$delimiter.$onesearch->getVar('ip')."\r\n"); - } - fclose($fp); - printf(_AM_MYSEARCH_EXPORT_READY,$searchfile2,XOOPS_URL.'/modules/mysearch/admin/index.php?op=deletefile'); - } else { - echo _AM_MYSEARCH_NOTHING_TO_EXPORT; - } - break; - - - /** - * Delete the exported file - */ - case 'deletefile': - xoops_cp_header(); - $statfile=XOOPS_ROOT_PATH.'/uploads/mysearch_keywords.txt'; - if(unlink($statfile)) { - redirect_header('index.php', 2, _AM_MYSEARCH_DELETED_OK); - } else { - redirect_header('index.php', 2, _AM_MYSEARCH_DELETED_PB); - } - break; - - - /** - * Blacklist manager - */ - case 'blacklist': - xoops_cp_header(); - echo $indexAdmin->addNavigation('main.php?op=blacklist'); - - //mysearch_adminmenu(3); - include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; - include_once XOOPS_ROOT_PATH.'/modules/mysearch/class/blacklist.php'; - echo '<h3>'._AM_MYSEARCH_BLACKLIST.'</h3>'; - $sform = new XoopsThemeForm(_AM_MYSEARCH_BLACKLIST, 'MetagenBlackList', XOOPS_URL.'/modules/mysearch/admin/index.php', 'post'); - $sform->addElement(new XoopsFormHidden('op', 'MetagenBlackList'), false); - - // Remove words - $remove_tray = new XoopsFormElementTray(_AM_MYSEARCH_BLACKLIST); - $remove_tray->setDescription(_AM_MYSEARCH_BLACKLIST_DESC); - $blacklist=new XoopsFormSelect('', 'blacklist','',5,true); - $words=array(); - $metablack = new mysearch_blacklist(); - $words=$metablack->getAllKeywords(); - if(is_array($words) && count($words)>0) { - foreach ($words as $key => $value) { - $blacklist->addOption($key,$value); - } - } - $blacklist->setDescription(_AM_MYSEARCH_BLACKLIST_DESC); - $remove_tray->addElement($blacklist,false); - $remove_btn = new XoopsFormButton('', 'go', _AM_MYSEARCH_DELETE, 'submit'); - $remove_tray->addElement($remove_btn,false); - $sform->addElement($remove_tray); - - // Add some words - $add_tray = new XoopsFormElementTray(_AM_MYSEARCH_BLACKLIST_ADD); - $add_tray->setDescription(_AM_MYSEARCH_BLACKLIST_ADD_DSC); - $add_field = new XoopsFormTextArea('', 'keywords', '', 5, 70); - $add_tray->addElement($add_field,false); - $add_btn = new XoopsFormButton('', 'go', _AM_MYSEARCH_BLACKLIST_ADD, 'submit'); - $add_tray->addElement($add_btn,false); - $sform->addElement($add_tray); - $sform->display(); - break; - - - /** - * Add a word in the blacklist - */ - case 'addblacklist': - include_once XOOPS_ROOT_PATH.'/modules/mysearch/class/blacklist.php'; - if(intval($_GET['id'])!=0) { - $tmp_search = $mysearch_handler->get(intval($_GET['id'])); - if(is_object($tmp_search)) { - $keyword = $tmp_search->getVar('keyword'); - $blacklist = new mysearch_blacklist(); - $keywords=$blacklist->getAllKeywords(); - $blacklist->addkeywords($keyword); - $blacklist->store(); - } - } - redirect_header('index.php?op=stats', 2, _AM_MYSEARCH_DBUPDATED); - break; - - - /** - * Actions on the blacklist (add or remove keyword(s)) - */ - case 'MetagenBlackList': - include_once XOOPS_ROOT_PATH.'/modules/mysearch/class/blacklist.php'; - $blacklist = new mysearch_blacklist(); - $keywords=$blacklist->getAllKeywords(); - - if(isset($_POST['go']) && $_POST['go']==_AM_MYSEARCH_DELETE) { - foreach($_POST['blacklist'] as $black_id) { - $blacklist->delete($black_id); - } - $blacklist->store(); - } else { - if(isset($_POST['go']) && $_POST['go']==_AM_MYSEARCH_BLACKLIST_ADD) { - $p_keywords = $_POST['keywords']; - $keywords = explode("\n",$p_keywords); - foreach($keywords as $keyword) { - if(xoops_trim($keyword)!='') { - $blacklist->addkeywords(xoops_trim($keyword)); - } - } - $blacklist->store(); - } - } - redirect_header('index.php?op=blacklist', 2, _AM_MYSEARCH_DBUPDATED); - break; - - - /** - * Remove content based on the IP - */ - case 'removeip': - xoops_cp_header(); - if(intval($_GET['id'])!=0) { - $tmp_search = $mysearch_handler->get(intval($_GET['id'])); - if(is_object($tmp_search)) { - $critere = new Criteria('ip', $tmp_search->getVar('ip'),'='); - $mysearch_handler->deleteAll($critere); - } - unset($tmp_search); - } - redirect_header('index.php', 2, _AM_MYSEARCH_DBUPDATED); - break; - - - /** - * Default action, show statistics about keywords, users and many other things - */ - case 'stats': - default: - xoops_cp_header(); - echo $indexAdmin->addNavigation('main.php?op=stats'); - //mysearch_adminmenu(0); - - // Last x words (according to the module's option 'admincount') *************************************************************************************** - $start = 0; - $more_parameter = 'op=stats'; - if(isset($_GET['start1'])) { - $start = intval($_GET['start1']); - } elseif(isset($_SESSION['start1'])) { - $start=intval($_SESSION['start1']); - } - $_SESSION['start1']=$start; - $s_keyword = $s_uid = $s_ip = ''; - if(isset($_POST['s_keyword'])) { - $s_keyword = $_POST['s_keyword']; - } elseif(isset($_GET['s_keyword'])) { - $s_keyword = $_GET['s_keyword']; - } - - if(isset($_POST['s_uid'])) { - $s_uid = $_POST['s_uid']; - } elseif(isset($_GET['s_uid'])) { - $s_uid = $_GET['s_uid']; - } - - if(isset($_POST['s_ip'])) { - $s_ip = $_POST['s_ip']; - } elseif(isset($_GET['s_ip'])) { - $s_ip = $_GET['s_ip']; - } - - $critere = new CriteriaCompo(); - if($s_keyword != '') { - $critere->add(new Criteria('keyword', $s_keyword,'LIKE')); - $more_parameter .= '&s_keyword='.$s_keyword; - } - - if($s_uid != '') { - if(!is_numeric($s_uid)) { - $member_handler =& xoops_gethandler('member'); - $crituser = new Criteria('uname', $s_uid,'LIKE'); - $tbl_users = array(); - $tbl_users = $member_handler->getUsers($crituser); - if(count($tbl_users)>0) { - $tbl_users2 = array(); - foreach($tbl_users as $one_user) { - $tbl_users2[] = $one_user->getvar('uid'); - } - } - $users_list = '('.implode(',',$tbl_users2).')'; - $critere->add(new Criteria('uid', $users_list,'IN')); - } else { - $s_uid = intval($s_uid); - $critere->add(new Criteria('uid', $s_uid,'=')); - } - $more_parameter .= '&s_uid='.$s_uid; - } - - if($s_ip != '') { - $critere->add(new Criteria('ip', $s_ip,'LIKE')); - $more_parameter .= '&s_ip='.$s_ip; - } - $critere->setSort('datesearch'); - $critere->setLimit($keywords_count); - $critere->setStart($start); - $critere->setOrder('DESC'); - - // Total count of keywords - $totalcount=$mysearch_handler->getCount($critere); - echo '<h3>'.sprintf(_AM_MYSEARCH_STATS,$totalcount).'</h3>'; - - $pagenav = new XoopsPageNav( $totalcount, $keywords_count, $start, 'start1', $more_parameter); - $elements = $mysearch_handler->getObjects($critere); - mysearch_collapsableBar('keywordscount', 'keywordscounticon'); - echo "<img onclick=\"toggle('toptable'); toggleIcon('toptableicon');\" id='keywordscounticon' name='keywordscounticon' src=" . XOOPS_URL . "/modules/mysearch/images/close12.gif alt='' /></a> "._AM_MYSEARCH_KEYWORDS."</h4>"; - echo "<div id='keywordscount'>"; - echo '<br />'; - echo "<table width='100%' cellspacing='1' cellpadding='3' border='0' class='outer'>"; - echo "<tr><th align='center'>"._AM_MYSEARCH_ID."</th><th align='center'>"._AM_MYSEARCH_KEYWORD."</th><th align='center'>"._AM_MYSEARCH_DATE."</th><th align='center'>"._AM_MYSEARCH_USER."</th><th align='center'>"._AM_MYSEARCH_IP."</th><th align='center'>"._AM_MYSEARCH_ACTION."</th></tr>"; - $class=''; - foreach($elements as $oneelement) { - $class = ($class == 'even') ? 'odd' : 'even'; - $link1 = "<a href='".XOOPS_URL.'/search.php?query='.$oneelement->getVar('keyword')."&action=results' target='_blank'>".$oneelement->getVar('keyword')."</a>"; - $link2 = "<a href='".XOOPS_URL."/userinfo.php?uid=".$oneelement->getVar('uid')."'>".$oneelement->uname()."</a>"; - $action_del = "<a ".mysearch_JavascriptLinkConfirm(_AM_MYSEARCH_AREYOUSURE)." href='index.php?op=removekeyword&id=".$oneelement->getVar('mysearchid')."' title='"._AM_MYSEARCH_DELETE."'><img src='../images/delete.png' border='0' alt='"._AM_MYSEARCH_DELETE."'></a>"; - $action_black = "<a ".mysearch_JavascriptLinkConfirm(_AM_MYSEARCH_AREYOUSURE)." href='index.php?op=addblacklist&id=".$oneelement->getVar('mysearchid')."' title='"._AM_MYSEARCH_BLACKLIST."'><img src='../images/list.png' border='0' alt='"._AM_MYSEARCH_BLACKLIST."'></a>"; - $action_remove_ip = "<a ".mysearch_JavascriptLinkConfirm(_AM_MYSEARCH_AREYOUSURE)." href='index.php?op=removeip&id=".$oneelement->getVar('mysearchid')."' title='"._AM_MYSEARCH_IP."'><img src='../images/ip.png' border='0' alt='"._AM_MYSEARCH_IP."'></a>"; - echo "<tr class='".$class."'><td align='center'>" . $oneelement->getVar('mysearchid')."</td><td align='center'>" . $link1 . "</td><td align='center'>".formatTimestamp(strtotime($oneelement->getVar('datesearch')))."</td><td align='center'>".$link2."</td><td align='center'>".$oneelement->getVar('ip')."</td><td align='center'>".$action_del.' '.$action_black.' '.$action_remove_ip.'</td></tr>'; - } - echo "<tr><form method='post' action='index.php'><th align='center'>"._AM_MYSEARCH_FILTER_BY."</th><th align='center'><input type='text' name='s_keyword' value='".$s_keyword."' size='10' /></th><th align='center'></th><th align='center'><input type='text' name='s_uid' value='".$s_uid."' size='10' /></th><th align='center'><input type='text' name='s_ip' value='".$s_ip."' size='10' /></th><th align='center'><input type='submit' name='btngo_filter' value='"._GO."' /></th></form></tr>"; - echo "</table><div align='right'>".$pagenav->renderNav().'</div></div><br />'; - - - // Most searched words ******************************************************************************************************************************** - $start = 0; - if(isset($_GET['start2'])) { - $start = intval($_GET['start2']); - } elseif(isset($_SESSION['start2'])) { - $start=intval($_SESSION['start2']); - } - $_SESSION['start2']=$start; - - $pagenav = new XoopsPageNav($mysearch_handler->getMostSearchedCount(), $keywords_count, $start, 'start2', 'op=stats'); - $elements = $mysearch_handler->getMostSearched($start,$keywords_count); - mysearch_collapsableBar('mostsearch', 'mostsearchicon'); - echo "<img onclick=\"toggle('toptable'); toggleIcon('toptableicon');\" id='mostsearchicon' name='mostsearchicon' src=" . XOOPS_URL . "/modules/mysearch/images/close12.gif alt='' /></a> "._AM_MYSEARCH_MOST_SEARCH."</h4>"; - echo "<div id='mostsearch'>"; - echo '<br />'; - echo "<table width='100%' cellspacing='1' cellpadding='3' border='0' class='outer'>"; - echo "<tr><th align='center'>"._AM_MYSEARCH_HITS."</th><th align='center'>"._AM_MYSEARCH_KEYWORD."</th><th align='center'>"._AM_MYSEARCH_ACTION."</th></tr>"; - $class=''; - foreach($elements as $onekeyword_id => $onekeyword_datas) { - $onekeyword = $onekeyword_datas['keyword']; - $onekeywordcount = $onekeyword_datas['count']; - $class = ($class == 'even') ? 'odd' : 'even'; - $link1 = "<a href='".XOOPS_URL.'/search.php?query='.$onekeyword."&action=results' target='_blank'>".$onekeyword."</a>"; - $action_del = "<a ".mysearch_JavascriptLinkConfirm(_AM_MYSEARCH_AREYOUSURE)." href='index.php?op=removekeyword&id=".$onekeyword_id."' title='"._AM_MYSEARCH_DELETE."'><img src='../images/delete.png' border='0' alt='"._AM_MYSEARCH_DELETE."' /></a>"; - $action_black = "<a ".mysearch_JavascriptLinkConfirm(_AM_MYSEARCH_AREYOUSURE)." href='index.php?op=addblacklist&id=".$onekeyword_id."' title='"._AM_MYSEARCH_BLACKLIST."'><img src='../images/list.png' border='0' alt='"._AM_MYSEARCH_BLACKLIST."' /></a>"; - echo "<tr class='".$class."'><td align='center'>" . $onekeywordcount."</td><td align='center'>" . $link1 . "</td><td align='center'>".$action_del.' '.$action_black."</td></tr>"; - } - echo "</table><div align='right'>".$pagenav->renderNav().'</div></div><br />'; - - // Biggest users of the search ************************************************************************************************************************ - $tmpmysearch = new searches(); - $start = 0; - if(isset($_GET['start3'])) { - $start = intval($_GET['start3']); - } elseif(isset($_SESSION['start3'])) { - $start=intval($_SESSION['start3']); - } - $_SESSION['start3']=$start; - - $pagenav = new XoopsPageNav($mysearch_handler->getBiggestContributorsCount(), $keywords_count, $start, 'start3', 'op=stats'); - $elements = $mysearch_handler->getBiggestContributors($start,$keywords_count); - mysearch_collapsableBar('bigcontribut', 'bigcontributicon'); - echo "<img onclick=\"toggle('toptable'); toggleIcon('toptableicon');\" id='bigcontributicon' name='bigcontributicon' src=" . XOOPS_URL . "/modules/mysearch/images/close12.gif alt='' /></a> "._AM_MYSEARCH_BIGGEST_USERS."</h4>"; - echo "<div id='bigcontribut'>"; - echo '<br />'; - echo "<table width='100%' cellspacing='1' cellpadding='3' border='0' class='outer'>"; - echo "<tr><th align='center'>"._AM_MYSEARCH_USER."</th><th align='center'>"._AM_MYSEARCH_HITS."</th></tr>"; - $class=''; - foreach($elements as $oneuser => $onecount) { - $class = ($class == 'even') ? 'odd' : 'even'; - $link1 = "<a href='".XOOPS_URL."/userinfo.php?uid=".$oneuser."'>".$tmpmysearch->uname($oneuser)."</a>"; - echo "<tr class='".$class."'><td align='center'>" . $link1."</td><td align='center'>" .$onecount. "</td></tr>"; - } - echo "</table><div align='right'>".$pagenav->renderNav().'</div></div><br />'; - - // daily stats **************************************************************************************************************************************** - $start = 0; - if(isset($_GET['start4'])) { - $start = intval($_GET['start4']); - } elseif(isset($_SESSION['start4'])) { - $start=intval($_SESSION['start4']); - } - $_SESSION['start4']=$start; - $pagenav = new XoopsPageNav($mysearch_handler->getUniqueDaysCount(), $keywords_count, $start, 'start4', 'op=stats'); - $elements = $mysearch_handler->GetCountPerDay($start,$keywords_count); - mysearch_collapsableBar('daystat', 'daystaticon'); - echo "<img onclick=\"toggle('toptable'); toggleIcon('toptableicon');\" id='daystaticon' name='daystaticon' src=" . XOOPS_URL . "/modules/mysearch/images/close12.gif alt='' /></a> "._AM_MYSEARCH_DAY_STATS."</h4>"; - echo "<div id='daystat'>"; - echo '<br />'; - echo "<table width='100%' cellspacing='1' cellpadding='3' border='0' class='outer'>"; - echo "<tr><th align='center'>"._AM_MYSEARCH_DATE."</th><th align='center'>"._AM_MYSEARCH_USE."</th></tr>"; - $class=''; - foreach($elements as $onedate => $onecount) { - $class = ($class == 'even') ? 'odd' : 'even'; - $datefordisplay=formatTimestamp(strtotime($onedate),'s'); - echo "<tr class='".$class."'><td align='center'>" . $datefordisplay."</td><td align='center'>" .$onecount. "</td></tr>"; - } - echo "</table><div align='right'>".$pagenav->renderNav().'</div></div><br />'; - - // IP stats ******************************************************************************************************************************************* - $start = 0; - if(isset($_GET['start4'])) { - $start = intval($_GET['start4']); - } elseif(isset($_SE... [truncated message content] |
From: <wis...@us...> - 2012-05-26 08:30:27
|
Revision: 9593 http://xoops.svn.sourceforge.net/xoops/?rev=9593&view=rev Author: wishcraft Date: 2012-05-26 08:30:17 +0000 (Sat, 26 May 2012) Log Message: ----------- LinkedINBomb 1.01 - Prealpha - Still in development phase. Need a break ;-) Added Paths: ----------- XoopsModules/linkedinbomb/ XoopsModules/linkedinbomb/branches/ XoopsModules/linkedinbomb/releases/ XoopsModules/linkedinbomb/trunk/ XoopsModules/linkedinbomb/trunk/docs/ XoopsModules/linkedinbomb/trunk/htdocs/ XoopsModules/linkedinbomb/trunk/htdocs/modules/ XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/ XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/admin/ XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/blocks/ XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/blocks/linkedin_signin.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/callback/ XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/callback/index.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/ XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/addresses.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/aspr.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/aspr_http_headers.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/authorities.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/causes.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/companies.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/companies_type.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/connections.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/contact_info.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/countries.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/following_companies.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/industry.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/languages.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/locations.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/oauth.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/organization.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/persons.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/proficiencies.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_certifications.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_companies.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_courses.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_educations.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_ims.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_languages.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_patents.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_patents_inventors.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_patents_office.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_patents_status.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_phones.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_positions.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_providers.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_publications.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_publications_authors.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_recommendations.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_skills.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_volunteer.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/skills.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/specialties.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/status.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/years.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/getemail.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/header.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/images/ XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/images/linkedin-small.png XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/images/linkedinbomb_slogo.png XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/include/ XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/include/OAuth.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/include/formobjects.linkedinbomb.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/include/forms.a.linkedinbomb.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/include/functions.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/include/linkedin.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/index.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/language/ XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/language/english/ XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/language/english/blocks.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/language/english/email.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/language/english/forms.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/language/english/mail_templates/ XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/language/english/mail_templates/linkedin_email_user_created.html XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/language/english/main.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/language/english/modinfo.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/preloads/ XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/preloads/email.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/signed.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/sql/ XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/sql/mysql.sql XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/templates/ XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/templates/blocks/ XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/templates/blocks/linkedin_block_signin.html XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/templates/linkedinbomb_get_email.html XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/xoops_version.php Added: XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/blocks/linkedin_signin.php =================================================================== --- XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/blocks/linkedin_signin.php (rev 0) +++ XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/blocks/linkedin_signin.php 2012-05-26 08:30:17 UTC (rev 9593) @@ -0,0 +1,15 @@ +<?php + + function b_linkedin_block_signin_show($options) { + $_SESSION['oauth']['linkedin']['authorized'] = (isset($_SESSION['oauth']['linkedin']['authorized'])) ? $_SESSION['oauth']['linkedin']['authorized'] : FALSE; + if ($_SESSION['oauth']['linkedin']['authorized']===true) + return false; + xoops_loadLanguage('blocks', 'linkedinbomb'); + return array('display' => ($_SESSION['oauth']['linkedin']['authorized']===false?true:false)); + } + + function b_linkedin_block_signin_edit($options) { + + } + +?> \ No newline at end of file Added: XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/callback/index.php =================================================================== --- XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/callback/index.php (rev 0) +++ XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/callback/index.php 2012-05-26 08:30:17 UTC (rev 9593) @@ -0,0 +1,71 @@ +<?php + + include(dirname(dirname(dirname(dirname(__FILE__)))).'/mainfile.php'); + + $oauth_handler = xoops_getmodulehandler('oauth', 'linkedinbomb'); + + $_REQUEST[LINKEDIN::_GET_TYPE] = (isset($_REQUEST[LINKEDIN::_GET_TYPE])) ? $_REQUEST[LINKEDIN::_GET_TYPE] : ''; + switch($_REQUEST[LINKEDIN::_GET_TYPE]) { + case 'initiate': + $_GET[LINKEDIN::_GET_RESPONSE] = (isset($_GET[LINKEDIN::_GET_RESPONSE])) ? $_GET[LINKEDIN::_GET_RESPONSE] : ''; + if(!isset($_GET[LINKEDIN::_GET_RESPONSE])|empty($_GET[LINKEDIN::_GET_RESPONSE])) { + // LinkedIn hasn't sent us a response, the user is initiating the connection + // send a request for a LinkedIn access token + $response = $oauth_handler->_api->retrieveTokenRequest(); + if($response['success'] === TRUE) { + // store the request token + $_SESSION['oauth']['linkedin']['request'] = $response['linkedin']; + + // redirect the user to the LinkedIn authentication/authorisation page to initiate validation. + header('Location: ' . LINKEDIN::_URL_AUTH . $response['linkedin']['oauth_token']); + } else { + // bad token request + echo "Request token retrieval failed:<br /><br />RESPONSE:<br /><br /><pre>" . print_r($response, TRUE) . "</pre><br /><br />LINKEDIN OBJ:<br /><br /><pre>" . print_r($OBJ_linkedin, TRUE) . "</pre>"; + } + } else { + // LinkedIn has sent a response, user has granted permission, take the temp access token, the user's secret and the verifier to request the user's real secret key + $response = $oauth_handler->_api->retrieveTokenAccess($_SESSION['oauth']['linkedin']['request']['oauth_token'], $_SESSION['oauth']['linkedin']['request']['oauth_token_secret'], $_GET['oauth_verifier']); + if($response['success'] === TRUE) { + // the request went through without an error, gather user's 'access' tokens + $_SESSION['oauth']['linkedin']['access'] = $response['linkedin']; + + // set the user as authorized for future quick reference + $_SESSION['oauth']['linkedin']['authorized'] = TRUE; + + // redirect the user back to the demo page + header('Location: ' . XOOPS_URL.'/modules/linkedinbomb/signed.php'); + } else { + // bad token access + echo "Access token retrieval failed:<br /><br />RESPONSE:<br /><br /><pre>" . print_r($response, TRUE) . "</pre><br /><br />LINKEDIN OBJ:<br /><br /><pre>" . print_r($OBJ_linkedin, TRUE) . "</pre>"; + } + } + break; + case 'revoke': + /** + * Handle authorization revocation. + */ + + // check the session + if(!oauth_session_exists()) { + throw new LinkedInException('This script requires session support, which doesn\'t appear to be working correctly.'); + } + + $oauth_handler->_api->setTokenAccess($_SESSION['oauth']['linkedin']['access']); + $response = $oauth_handler->_api->revoke(); + if($response['success'] === TRUE) { + // revocation successful, clear session + session_unset(); + $_SESSION = array(); + if(session_destroy()) { + // session destroyed + header('Location: ' . XOOPS_URL); + } else { + // session not destroyed + echo "Error clearing user's session"; + } + } else { + // revocation failed + echo "Error revoking user's token:<br /><br />RESPONSE:<br /><br /><pre>" . print_r($response, TRUE) . "</pre><br /><br />LINKEDIN OBJ:<br /><br /><pre>" . print_r($OBJ_linkedin, TRUE) . "</pre>"; + } + break; + } \ No newline at end of file Added: XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/addresses.php =================================================================== --- XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/addresses.php (rev 0) +++ XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/addresses.php 2012-05-26 08:30:17 UTC (rev 9593) @@ -0,0 +1,175 @@ +<?php + +if (!defined('XOOPS_ROOT_PATH')) { + exit(); +} +/** + * Class for Blue Room Xcenter + * @author Simon Roberts <si...@xo...> + * @copyright copyright (c) 2009-2003 XOOPS.org + * @package kernel + */ +class LinkedinbombAddresses extends XoopsObject +{ + + function __construct($id = null) + { + $this->initVar('address_id', XOBJ_DTYPE_INT, null, false); + $this->initVar('street1', XOBJ_DTYPE_TXTBOX, null, false, 128); + $this->initVar('street2', XOBJ_DTYPE_TXTBOX, null, false, 128); + $this->initVar('city', XOBJ_DTYPE_TXTBOX, null, false, 128); + $this->initVar('postal-code', XOBJ_DTYPE_TXTBOX, null, false, 20); + $this->initVar('country_id', XOBJ_DTYPE_INT, null, false); + $this->initVar('created', XOBJ_DTYPE_INT, null, false); // Removed Unicode in 2.10 + $this->initVar('updated', XOBJ_DTYPE_INT, null, false); // Removed Unicode in 2.10 + + if ($id>0) { + $handler = new LinkedinbombAddressesHandler($GLOBALS['xoopsDB']); + $object = $handler->get($id); + if (is_object($object)) { + if (is_a($object, 'LinkedinbombAddresses')) { + $this->assignVars($object->getValues()); + } + } + unset($object); + } + } + + function setVar($field, $value) { + switch ($this->vars[$field]['data_type']) { + case XOBJ_DTYPE_ARRAY: + if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + parent::setVar($field, $value); + break; + default: + if (md5($value)!=md5($this->getVar($field))) + parent::setVar($field, $value); + break; + } + } + + function setVars($arr, $not_gpc=false) { + foreach($arr as $field => $value) { + switch ($this->vars[$field]['data_type']) { + case XOBJ_DTYPE_ARRAY: + if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + parent::setVar($field, $value); + break; + default: + if (md5($value)!=md5($this->getVar($field))) + parent::setVar($field, $value); + break; + } + } + } + + function getName() { + return $this->getVar('street1').', '.$this->getVar('city').', '.$this->getVar('postal-code'); + } + + function getForm($as_array=false, $title='') { + $class = explode('.',basename(__FILE__)); + unset($class[sizeof($class)-1]); + $class = implode('.',$class); + // Gets Title + xoops_loadLanguage('forms', 'linkedinbomb'); + if (empty($title)) { + if ($this->isNew()) { + $title = constant("FRM_LINKEDIN_TITLE_NEW_".strtoupper($class)); + } else { + $title = sprintf(constant("FRM_LINKEDIN_TITLE_EDIT_".strtoupper($class)), $this->getName()); + } + } + // Gets Form + $func = 'linkedin_form_item_'.$class; + if (function_exists($func)) { + return $func($this, $title, $as_array); + } + } + + function toArray() { + $ret = parent::toArray(); + if (isset($ret['created'])&&$ret['created']>0) { + $ret['created'] = date(_DATESTRING, $ret['created']); + } + if (isset($ret['updated'])&&$ret['updated']>0) { + $ret['updated'] = date(_DATESTRING, $ret['updated']); + } + if (isset($ret['emailed'])&&$ret['emailed']>0) { + $ret['emailed'] = date(_DATESTRING, $ret['emailed']); + } + if (is_array($form = $this->getForm(true, ''))) { + foreach($form as $field => $element) { + $ret['form'][$field] = $form[$field]->render(); + } + } + return $ret; + } + +} + + +/** +* XOOPS policies handler class. +* This class is responsible for providing data access mechanisms to the data source +* of XOOPS user class objects. +* +* @author Simon Roberts <si...@ch...> +* @package kernel +*/ +class LinkedinbombAddressesHandler extends XoopsPersistableObjectHandler +{ + function __construct(&$db) + { + $this->db = $db; + parent::__construct($db, 'lib_addresses', 'LinkedinbombAddresses', "address_id", "street1"); + } + + function getByCriteria($criteria = NULL) { + if ($this->getCount($criteria)==0) + return $this->create(); + $criteria->setStart(0); + $criteria->setLimit(1); + $objects = $this->getObjects($criteria, false); + if (!is_object($objects[0])) + return $this->create(); + return $objects[0]; + } + + function insert($object, $force = true) { + if($object->isNew()) { + $criteria = new CriteriaCompo(); + foreach($object->vars as $field => $values) { + if (!in_array($field, array($this->keyName, 'searched', 'polled', 'emailed', 'sms', 'synced', 'created', 'updated'))) + if ($values['type']!=XOBJ_DTYPE_ARRAY) + if (!empty($values['value'])||intval($values['value'])<>0) + $criteria->add(new Criteria('`'.$field.'`', $object->getVar($field))); + } + if ($this->getCount($criteria)>0) { + $obj = $this->getByCriteria($criteria); + if (is_object($obj)) { + return $obj->getVar($this->keyName); + } + } + $object->setVar('created', time()); + } else { + if (!$object->isDirty()) + return $object->getVar($this->keyName); + $object->setVar('updated', time()); + } + if ($object->getVar('profile_id')>0&&$object->getVar('person_id')==0) { + $profile_handler = xoops_getmodulehandler('profiles', 'linkedinbomb'); + $profile = $profile_handler->get($object->getVar('profile_id')); + $object->setVar('person_id', $profile->getVar('person_id')); + } elseif ($object->getVar('profile_id')==0&&$object->getVar('person_id')>0) { + $persons_handler = xoops_getmodulehandler('persons', 'linkedinbomb'); + $person = $persons_handler->get($object->getVar('person_id')); + $object->setVar('profile_id', $person->getVar('profile_id')); + } + return parent::insert($object, $force); + } + + +} + +?> \ No newline at end of file Added: XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/aspr.php =================================================================== --- XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/aspr.php (rev 0) +++ XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/aspr.php 2012-05-26 08:30:17 UTC (rev 9593) @@ -0,0 +1,174 @@ +<?php + +if (!defined('XOOPS_ROOT_PATH')) { + exit(); +} +/** + * Class for Blue Room Xcenter + * @author Simon Roberts <si...@xo...> + * @copyright copyright (c) 2009-2003 XOOPS.org + * @package kernel + */ +class LinkedinbombAspr extends XoopsObject +{ + + function __construct($id = null) + { + $this->initVar('aspr_id', XOBJ_DTYPE_INT, null, false); + $this->initVar('profile_id', XOBJ_DTYPE_INT, null, false); + $this->initVar('person_id', XOBJ_DTYPE_INT, null, false); + $this->initVar('request_person_id', XOBJ_DTYPE_INT, null, false); + $this->initVar('request_profile_id', XOBJ_DTYPE_INT, null, false); + $this->initVar('url', XOBJ_DTYPE_URL, null, false, 500); + $this->initVar('http_headers_ids', XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar('created', XOBJ_DTYPE_INT, null, false); // Removed Unicode in 2.10 + $this->initVar('updated', XOBJ_DTYPE_INT, null, false); // Removed Unicode in 2.10 + + if ($id>0) { + $handler = new LinkedinbombAsprHandler($GLOBALS['xoopsDB']); + $object = $handler->get($id); + if (is_object($object)) { + if (is_a($object, 'LinkedinbombAspr')) { + $this->assignVars($object->getValues()); + } + } + unset($object); + } + } + + function setVar($field, $value) { + switch ($this->vars[$field]['data_type']) { + case XOBJ_DTYPE_ARRAY: + if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + parent::setVar($field, $value); + break; + default: + if (md5($value)!=md5($this->getVar($field))) + parent::setVar($field, $value); + break; + } + } + + function setVars($arr, $not_gpc=false) { + foreach($arr as $field => $value) { + switch ($this->vars[$field]['data_type']) { + case XOBJ_DTYPE_ARRAY: + if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + parent::setVar($field, $value); + break; + default: + if (md5($value)!=md5($this->getVar($field))) + parent::setVar($field, $value); + break; + } + } + } + function getName() { + return $this->getVar('aspr_id'); + } + + function getForm($as_array=false, $title='') { + $class = explode('.',basename(__FILE__)); + unset($class[sizeof($class)-1]); + $class = implode('.',$class); + // Gets Title + xoops_loadLanguage('forms', 'linkedinbomb'); + if (empty($title)) { + if ($this->isNew()) { + $title = constant("FRM_LINKEDIN_TITLE_NEW_".strtoupper($class)); + } else { + $title = sprintf(constant("FRM_LINKEDIN_TITLE_EDIT_".strtoupper($class)), $this->getName()); + } + } + // Gets Form + $func = 'linkedin_form_item_'.$class; + if (function_exists($func)) { + return $func($this, $title, $as_array); + } + } + + function toArray() { + $ret = parent::toArray(); + if (isset($ret['created'])&&$ret['created']>0) { + $ret['created'] = date(_DATESTRING, $ret['created']); + } + if (isset($ret['updated'])&&$ret['updated']>0) { + $ret['updated'] = date(_DATESTRING, $ret['updated']); + } + if (isset($ret['emailed'])&&$ret['emailed']>0) { + $ret['emailed'] = date(_DATESTRING, $ret['emailed']); + } + if (is_array($form = $this->getForm(true, ''))) { + foreach($form as $field => $element) { + $ret['form'][$field] = $form[$field]->render(); + } + } + return $ret; + } + +} + + +/** +* XOOPS policies handler class. +* This class is responsible for providing data access mechanisms to the data source +* of XOOPS user class objects. +* +* @author Simon Roberts <si...@ch...> +* @package kernel +*/ +class LinkedinbombAsprHandler extends XoopsPersistableObjectHandler +{ + function __construct(&$db) + { + $this->db = $db; + parent::__construct($db, 'lib_aspr', 'LinkedinbombAspr', "aspr_id", "url"); + } + + function getByCriteria($criteria = NULL) { + if ($this->getCount($criteria)==0) + return $this->create(); + $criteria->setStart(0); + $criteria->setLimit(1); + $objects = $this->getObjects($criteria, false); + if (!is_object($objects[0])) + return $this->create(); + return $objects[0]; + } + + function insert($object, $force = true) { + if($object->isNew()) { + $criteria = new CriteriaCompo(); + foreach($object->vars as $field => $values) { + if (!in_array($field, array($this->keyName, 'searched', 'polled', 'emailed', 'sms', 'synced', 'created', 'updated'))) + if ($values['type']!=XOBJ_DTYPE_ARRAY) + if (!empty($values['value'])||intval($values['value'])<>0) + $criteria->add(new Criteria('`'.$field.'`', $object->getVar($field))); + } + if ($this->getCount($criteria)>0) { + $obj = $this->getByCriteria($criteria); + if (is_object($obj)) { + return $obj->getVar($this->keyName); + } + } + $object->setVar('created', time()); + } else { + if (!$object->isDirty()) + return $object->getVar($this->keyName); + $object->setVar('updated', time()); + } + if ($object->getVar('profile_id')>0&&$object->getVar('person_id')==0) { + $profile_handler = xoops_getmodulehandler('profiles', 'linkedinbomb'); + $profile = $profile_handler->get($object->getVar('profile_id')); + $object->setVar('person_id', $profile->getVar('person_id')); + } elseif ($object->getVar('profile_id')==0&&$object->getVar('person_id')>0) { + $persons_handler = xoops_getmodulehandler('persons', 'linkedinbomb'); + $person = $persons_handler->get($object->getVar('person_id')); + $object->setVar('profile_id', $person->getVar('profile_id')); + } + return parent::insert($object, $force); + } + +} + +?> \ No newline at end of file Added: XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/aspr_http_headers.php =================================================================== --- XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/aspr_http_headers.php (rev 0) +++ XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/aspr_http_headers.php 2012-05-26 08:30:17 UTC (rev 9593) @@ -0,0 +1,163 @@ +<?php + +if (!defined('XOOPS_ROOT_PATH')) { + exit(); +} +/** + * Class for Blue Room Xcenter + * @author Simon Roberts <si...@xo...> + * @copyright copyright (c) 2009-2003 XOOPS.org + * @package kernel + */ +class LinkedinbombAspr_http_headers extends XoopsObject +{ + + function __construct($id = null) + { + $this->initVar('http_headers_id', XOBJ_DTYPE_INT, null, false); + $this->initVar('aspr_id', XOBJ_DTYPE_INT, null, false); + $this->initVar('name', XOBJ_DTYPE_TXTBOX, null, false, 64); + $this->initVar('value', XOBJ_DTYPE_TXTBOX, null, false, 64); + $this->initVar('created', XOBJ_DTYPE_INT, null, false); // Removed Unicode in 2.10 + $this->initVar('updated', XOBJ_DTYPE_INT, null, false); // Removed Unicode in 2.10 + + if ($id>0) { + $handler = new LinkedinbombAspr_http_headersHandler($GLOBALS['xoopsDB']); + $object = $handler->get($id); + if (is_object($object)) { + if (is_a($object, 'LinkedinbombAspr_http_headers')) { + $this->assignVars($object->getValues()); + } + } + unset($object); + } + } + + function setVar($field, $value) { + switch ($this->vars[$field]['data_type']) { + case XOBJ_DTYPE_ARRAY: + if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + parent::setVar($field, $value); + break; + default: + if (md5($value)!=md5($this->getVar($field))) + parent::setVar($field, $value); + break; + } + } + + function setVars($arr, $not_gpc=false) { + foreach($arr as $field => $value) { + switch ($this->vars[$field]['data_type']) { + case XOBJ_DTYPE_ARRAY: + if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + parent::setVar($field, $value); + break; + default: + if (md5($value)!=md5($this->getVar($field))) + parent::setVar($field, $value); + break; + } + } + } + + function getName() { + return $this->getVar('name').': '.$this->getVar('value').' ('.$this->getVar('aspr_id').')'; + } + + function getForm($as_array=false, $title='') { + $class = explode('.',basename(__FILE__)); + unset($class[sizeof($class)-1]); + $class = implode('.',$class); + // Gets Title + xoops_loadLanguage('forms', 'linkedinbomb'); + if (empty($title)) { + if ($this->isNew()) { + $title = constant("FRM_LINKEDIN_TITLE_NEW_".strtoupper($class)); + } else { + $title = sprintf(constant("FRM_LINKEDIN_TITLE_EDIT_".strtoupper($class)), $this->getName()); + } + } + // Gets Form + $func = 'linkedin_form_item_'.$class; + if (function_exists($func)) { + return $func($this, $title, $as_array); + } + } + + function toArray() { + $ret = parent::toArray(); + if (isset($ret['created'])&&$ret['created']>0) { + $ret['created'] = date(_DATESTRING, $ret['created']); + } + if (isset($ret['updated'])&&$ret['updated']>0) { + $ret['updated'] = date(_DATESTRING, $ret['updated']); + } + if (isset($ret['emailed'])&&$ret['emailed']>0) { + $ret['emailed'] = date(_DATESTRING, $ret['emailed']); + } + if (is_array($form = $this->getForm(true, ''))) { + foreach($form as $field => $element) { + $ret['form'][$field] = $form[$field]->render(); + } + } + return $ret; + } + +} + + +/** +* XOOPS policies handler class. +* This class is responsible for providing data access mechanisms to the data source +* of XOOPS user class objects. +* +* @author Simon Roberts <si...@ch...> +* @package kernel +*/ +class LinkedinbombAspr_http_headersHandler extends XoopsPersistableObjectHandler +{ + function __construct(&$db) + { + $this->db = $db; + parent::__construct($db, 'lib_aspr_http_headers', 'LinkedinbombAspr_http_headers', "http_headers_id", "aspr_id"); + } + + function getByCriteria($criteria = NULL) { + if ($this->getCount($criteria)==0) + return $this->create(); + $criteria->setStart(0); + $criteria->setLimit(1); + $objects = $this->getObjects($criteria, false); + if (!is_object($objects[0])) + return $this->create(); + return $objects[0]; + } + + function insert($object, $force = true) { + if($object->isNew()) { + $criteria = new CriteriaCompo(); + foreach($object->vars as $field => $values) { + if (!in_array($field, array($this->keyName, 'searched', 'polled', 'emailed', 'sms', 'synced', 'created', 'updated'))) + if ($values['type']!=XOBJ_DTYPE_ARRAY) + if (!empty($values['value'])||intval($values['value'])<>0) + $criteria->add(new Criteria('`'.$field.'`', $object->getVar($field))); + } + if ($this->getCount($criteria)>0) { + $obj = $this->getByCriteria($criteria); + if (is_object($obj)) { + return $obj->getVar($this->keyName); + } + } + $object->setVar('created', time()); + } else { + if (!$object->isDirty()) + return $object->getVar($this->keyName); + $object->setVar('updated', time()); + } + return parent::insert($object, $force); + } + +} + +?> \ No newline at end of file Added: XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/authorities.php =================================================================== --- XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/authorities.php (rev 0) +++ XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/authorities.php 2012-05-26 08:30:17 UTC (rev 9593) @@ -0,0 +1,170 @@ +<?php + +if (!defined('XOOPS_ROOT_PATH')) { + exit(); +} +/** + * Class for Blue Room Xcenter + * @author Simon Roberts <si...@xo...> + * @copyright copyright (c) 2009-2003 XOOPS.org + * @package kernel + */ +class LinkedinbombAuthorities extends XoopsObject +{ + + function __construct($id = null) + { + $this->initVar('authority_id', XOBJ_DTYPE_INT, null, false); + $this->initVar('id', XOBJ_DTYPE_TXTBOX, null, false, 32); + $this->initVar('name', XOBJ_DTYPE_TXTBOX, null, false, 198); + $this->initVar('created', XOBJ_DTYPE_INT, null, false); // Removed Unicode in 2.10 + $this->initVar('updated', XOBJ_DTYPE_INT, null, false); // Removed Unicode in 2.10 + + if ($id>0) { + $handler = new LinkedinbombAuthoritiesHandler($GLOBALS['xoopsDB']); + $object = $handler->get($id); + if (is_object($object)) { + if (is_a($object, 'LinkedinbombAuthorities')) { + $this->assignVars($object->getValues()); + } + } + unset($object); + } + } + + function setVar($field, $value) { + switch ($this->vars[$field]['data_type']) { + case XOBJ_DTYPE_ARRAY: + if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + parent::setVar($field, $value); + break; + default: + if (md5($value)!=md5($this->getVar($field))) + parent::setVar($field, $value); + break; + } + } + + function setVars($arr, $not_gpc=false) { + foreach($arr as $field => $value) { + switch ($this->vars[$field]['data_type']) { + case XOBJ_DTYPE_ARRAY: + if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + parent::setVar($field, $value); + break; + default: + if (md5($value)!=md5($this->getVar($field))) + parent::setVar($field, $value); + break; + } + } + } + function getName() { + return $this->getVar('name').' ('.$this->getVar('id').')'; + } + + function getForm($as_array=false, $title='') { + $class = explode('.',basename(__FILE__)); + unset($class[sizeof($class)-1]); + $class = implode('.',$class); + // Gets Title + xoops_loadLanguage('forms', 'linkedinbomb'); + if (empty($title)) { + if ($this->isNew()) { + $title = constant("FRM_LINKEDIN_TITLE_NEW_".strtoupper($class)); + } else { + $title = sprintf(constant("FRM_LINKEDIN_TITLE_EDIT_".strtoupper($class)), $this->getName()); + } + } + // Gets Form + $func = 'linkedin_form_item_'.$class; + if (function_exists($func)) { + return $func($this, $title, $as_array); + } + } + + function toArray() { + $ret = parent::toArray(); + if (isset($ret['created'])&&$ret['created']>0) { + $ret['created'] = date(_DATESTRING, $ret['created']); + } + if (isset($ret['updated'])&&$ret['updated']>0) { + $ret['updated'] = date(_DATESTRING, $ret['updated']); + } + if (isset($ret['emailed'])&&$ret['emailed']>0) { + $ret['emailed'] = date(_DATESTRING, $ret['emailed']); + } + if (is_array($form = $this->getForm(true, ''))) { + foreach($form as $field => $element) { + $ret['form'][$field] = $form[$field]->render(); + } + } + return $ret; + } + +} + + +/** +* XOOPS policies handler class. +* This class is responsible for providing data access mechanisms to the data source +* of XOOPS user class objects. +* +* @author Simon Roberts <si...@ch...> +* @package kernel +*/ +class LinkedinbombAuthoritiesHandler extends XoopsPersistableObjectHandler +{ + function __construct(&$db) + { + $this->db = $db; + parent::__construct($db, 'lib_authorities', 'LinkedinbombAuthorities', "authority_id", "id"); + } + + function getByCriteria($criteria = NULL) { + if ($this->getCount($criteria)==0) + return $this->create(); + $criteria->setStart(0); + $criteria->setLimit(1); + $objects = $this->getObjects($criteria, false); + if (!is_object($objects[0])) + return $this->create(); + return $objects[0]; + } + + function insert($object, $force = true) { + if($object->isNew()) { + $criteria = new CriteriaCompo(); + foreach($object->vars as $field => $values) { + if (!in_array($field, array($this->keyName, 'searched', 'polled', 'emailed', 'sms', 'synced', 'created', 'updated'))) + if ($values['type']!=XOBJ_DTYPE_ARRAY) + if (!empty($values['value'])||intval($values['value'])<>0) + $criteria->add(new Criteria('`'.$field.'`', $object->getVar($field))); + } + if ($this->getCount($criteria)>0) { + $object = $this->getByCriteria($criteria); + if (is_object($object)) { + return $object->getVar($this->keyName); + } + } + $object->setVar('created', time()); + } else { + if (!$object->isDirty()) + return $object->getVar($this->keyName); + $object->setVar('updated', time()); + } + if ($object->getVar('profile_id')>0&&$object->getVar('person_id')==0) { + $profile_handler = xoops_getmodulehandler('profiles', 'linkedinbomb'); + $profile = $profile_handler->get($object->getVar('profile_id')); + $object->setVar('person_id', $profile->getVar('person_id')); + } elseif ($object->getVar('profile_id')==0&&$object->getVar('person_id')>0) { + $persons_handler = xoops_getmodulehandler('persons', 'linkedinbomb'); + $person = $person_handler->get($object->getVar('person_id')); + $object->setVar('profile_id', $person->getVar('profile_id')); + } + return parent::insert($object, $force); + } + +} + +?> \ No newline at end of file Added: XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/causes.php =================================================================== --- XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/causes.php (rev 0) +++ XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/causes.php 2012-05-26 08:30:17 UTC (rev 9593) @@ -0,0 +1,161 @@ +<?php + +if (!defined('XOOPS_ROOT_PATH')) { + exit(); +} +/** + * Class for Blue Room Xcenter + * @author Simon Roberts <si...@xo...> + * @copyright copyright (c) 2009-2003 XOOPS.org + * @package kernel + */ +class LinkedinbombCauses extends XoopsObject +{ + + function __construct($id = null) + { + $this->initVar('cause_id', XOBJ_DTYPE_INT, null, false); + $this->initVar('id', XOBJ_DTYPE_TXTBOX, null, false, 32); + $this->initVar('name', XOBJ_DTYPE_TXTBOX, null, false, 198); + $this->initVar('profile_ids', XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar('created', XOBJ_DTYPE_INT, null, false); // Removed Unicode in 2.10 + $this->initVar('updated', XOBJ_DTYPE_INT, null, false); // Removed Unicode in 2.10 + + if ($id>0) { + $handler = new LinkedinbombCausesHandler($GLOBALS['xoopsDB']); + $object = $handler->get($id); + if (is_object($object)) { + if (is_a($object, 'LinkedinbombCauses')) { + $this->assignVars($object->getValues()); + } + } + unset($object); + } + } + + function setVar($field, $value) { + switch ($this->vars[$field]['data_type']) { + case XOBJ_DTYPE_ARRAY: + if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + parent::setVar($field, $value); + break; + default: + if (md5($value)!=md5($this->getVar($field))) + parent::setVar($field, $value); + break; + } + } + + function setVars($arr, $not_gpc=false) { + foreach($arr as $field => $value) { + switch ($this->vars[$field]['data_type']) { + case XOBJ_DTYPE_ARRAY: + if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + parent::setVar($field, $value); + break; + default: + if (md5($value)!=md5($this->getVar($field))) + parent::setVar($field, $value); + break; + } + } + } + function getName() { + return $this->getVar('name').' ('.$this->getVar('id').')'; + } + + function getForm($as_array=false, $title='') { + $class = explode('.',basename(__FILE__)); + unset($class[sizeof($class)-1]); + $class = implode('.',$class); + // Gets Title + xoops_loadLanguage('forms', 'linkedinbomb'); + if (empty($title)) { + if ($this->isNew()) { + $title = constant("FRM_LINKEDIN_TITLE_NEW_".strtoupper($class)); + } else { + $title = sprintf(constant("FRM_LINKEDIN_TITLE_EDIT_".strtoupper($class)), $this->getName()); + } + } + // Gets Form + $func = 'linkedin_form_item_'.$class; + if (function_exists($func)) { + return $func($this, $title, $as_array); + } + } + + function toArray() { + $ret = parent::toArray(); + if (isset($ret['created'])&&$ret['created']>0) { + $ret['created'] = date(_DATESTRING, $ret['created']); + } + if (isset($ret['updated'])&&$ret['updated']>0) { + $ret['updated'] = date(_DATESTRING, $ret['updated']); + } + if (isset($ret['emailed'])&&$ret['emailed']>0) { + $ret['emailed'] = date(_DATESTRING, $ret['emailed']); + } + if (is_array($form = $this->getForm(true, ''))) { + foreach($form as $field => $element) { + $ret['form'][$field] = $form[$field]->render(); + } + } + return $ret; + } + +} + + +/** +* XOOPS policies handler class. +* This class is responsible for providing data access mechanisms to the data source +* of XOOPS user class objects. +* +* @author Simon Roberts <si...@ch...> +* @package kernel +*/ +class LinkedinbombCausesHandler extends XoopsPersistableObjectHandler +{ + function __construct(&$db) + { + $this->db = $db; + parent::__construct($db, 'lib_causes', 'LinkedinbombCauses', "cause_id", "id"); + } + + function getByCriteria($criteria = NULL) { + if ($this->getCount($criteria)==0) + return $this->create(); + $criteria->setStart(0); + $criteria->setLimit(1); + $objects = $this->getObjects($criteria, false); + if (!is_object($objects[0])) + return $this->create(); + return $objects[0]; + } + + function insert($object, $force = true) { + if($object->isNew()) { + $criteria = new CriteriaCompo(); + foreach($object->vars as $field => $values) { + if (!in_array($field, array($this->keyName, 'searched', 'polled', 'emailed', 'sms', 'synced', 'created', 'updated'))) + if ($values['type']!=XOBJ_DTYPE_ARRAY) + if (!empty($values['value'])||intval($values['value'])<>0) + $criteria->add(new Criteria('`'.$field.'`', $object->getVar($field))); + } + if ($this->getCount($criteria)>0) { + $obj = $this->getByCriteria($criteria); + if (is_object($obj)) { + return $obj->getVar($this->keyName); + } + } + $object->setVar('created', time()); + } else { + if (!$object->isDirty()) + return $object->getVar($this->keyName); + $object->setVar('updated', time()); + } + return parent::insert($object, $force); + } +} + +?> \ No newline at end of file Added: XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/companies.php =================================================================== --- XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/companies.php (rev 0) +++ XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/companies.php 2012-05-26 08:30:17 UTC (rev 9593) @@ -0,0 +1,176 @@ +<?php + +if (!defined('XOOPS_ROOT_PATH')) { + exit(); +} +/** + * Class for Blue Room Xcenter + * @author Simon Roberts <si...@xo...> + * @copyright copyright (c) 2009-2003 XOOPS.org + * @package kernel + */ +class LinkedinbombCompanies extends XoopsObject +{ + + function __construct($id = null) + { + $this->initVar('company_id', XOBJ_DTYPE_INT, null, false); + $this->initVar('id', XOBJ_DTYPE_TXTBOX, null, false, 32); + $this->initVar('universal-name', XOBJ_DTYPE_TXTBOX, null, false, 128); + $this->initVar('name', XOBJ_DTYPE_TXTBOX, null, false, 128); + $this->initVar('ticker', XOBJ_DTYPE_TXTBOX, null, false, 10); + $this->initVar('logo-url', XOBJ_DTYPE_URL, null, false, 500); + $this->initVar('description', XOBJ_DTYPE_TXTBOX, null, false, 500); + $this->initVar('company-type_id', XOBJ_DTYPE_INT, null, false); + $this->initVar('industry', XOBJ_DTYPE_TXTBOX, null, false, 128); + $this->initVar('size', XOBJ_DTYPE_TXTBOX, null, false, 128); + $this->initVar('specialties_ids', XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar('blog-rss-url', XOBJ_DTYPE_URL, null, false, 500); + $this->initVar('twitter-id', XOBJ_DTYPE_TXTBOX, null, false, 64); + $this->initVar('square-logo-url', XOBJ_DTYPE_URL, null, false, 500); + $this->initVar('location_ids', XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar('founded-year', XOBJ_DTYPE_TXTBOX, null, false, 4); + $this->initVar('email-domain_ids', XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar('website-url', XOBJ_DTYPE_URL, null, false, 500); + $this->initVar('status_id', XOBJ_DTYPE_INT, null, false); + $this->initVar('created', XOBJ_DTYPE_INT, null, false); // Removed Unicode in 2.10 + $this->initVar('updated', XOBJ_DTYPE_INT, null, false); // Removed Unicode in 2.10 + + if ($id>0) { + $handler = new LinkedinbombCompaniesHandler($GLOBALS['xoopsDB']); + $object = $handler->get($id); + if (is_object($object)) { + if (is_a($object, 'LinkedinbombCompanies')) { + $this->assignVars($object->getValues()); + } + } + unset($object); + } + } + + function setVar($field, $value) { + switch ($this->vars[$field]['data_type']) { + case XOBJ_DTYPE_ARRAY: + if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + parent::setVar($field, $value); + break; + default: + if (md5($value)!=md5($this->getVar($field))) + parent::setVar($field, $value); + break; + } + } + + function setVars($arr, $not_gpc=false) { + foreach($arr as $field => $value) { + switch ($this->vars[$field]['data_type']) { + case XOBJ_DTYPE_ARRAY: + if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + parent::setVar($field, $value); + break; + default: + if (md5($value)!=md5($this->getVar($field))) + parent::setVar($field, $value); + break; + } + } + } + function getName() { + return $this->getVar('street1').', '.$this->getVar('city').', '.$this->getVar('postal-code'); + } + + function getForm($as_array=false, $title='') { + $class = explode('.',basename(__FILE__)); + unset($class[sizeof($class)-1]); + $class = implode('.',$class); + // Gets Title + xoops_loadLanguage('forms', 'linkedinbomb'); + if (empty($title)) { + if ($this->isNew()) { + $title = constant("FRM_LINKEDIN_TITLE_NEW_".strtoupper($class)); + } else { + $title = sprintf(constant("FRM_LINKEDIN_TITLE_EDIT_".strtoupper($class)), $this->getName()); + } + } + // Gets Form + $func = 'linkedin_form_item_'.$class; + if (function_exists($func)) { + return $func($this, $title, $as_array); + } + } + + function toArray() { + $ret = parent::toArray(); + if (isset($ret['created'])&&$ret['created']>0) { + $ret['created'] = date(_DATESTRING, $ret['created']); + } + if (isset($ret['updated'])&&$ret['updated']>0) { + $ret['updated'] = date(_DATESTRING, $ret['updated']); + } + if (isset($ret['emailed'])&&$ret['emailed']>0) { + $ret['emailed'] = date(_DATESTRING, $ret['emailed']); + } + if (is_array($form = $this->getForm(true, ''))) { + foreach($form as $field => $element) { + $ret['form'][$field] = $form[$field]->render(); + } + } + return $ret; + } + +} + + +/** +* XOOPS policies handler class. +* This class is responsible for providing data access mechanisms to the data source +* of XOOPS user class objects. +* +* @author Simon Roberts <si...@ch...> +* @package kernel +*/ +class LinkedinbombCompaniesHandler extends XoopsPersistableObjectHandler +{ + function __construct(&$db) + { + $this->db = $db; + parent::__construct($db, 'lib_companies', 'LinkedinbombCompanies', "company_id", "name"); + } + + function getByCriteria($criteria = NULL) { + if ($this->getCount($criteria)==0) + return $this->create(); + $criteria->setStart(0); + $criteria->setLimit(1); + $objects = $this->getObjects($criteria, false); + if (!is_object($objects[0])) + return $this->create(); + return $objects[0]; + } + + function insert($object, $force = true) { + if($object->isNew()) { + $criteria = new CriteriaCompo(); + foreach($object->vars as $field => $values) { + if (!in_array($field, array($this->keyName, 'searched', 'polled', 'emailed', 'sms', 'synced', 'created', 'updated'))) + if ($values['type']!=XOBJ_DTYPE_ARRAY) + if (!empty($values['value'])||intval($values['value'])<>0) + $criteria->add(new Criteria('`'.$field.'`', $object->getVar($field))); + } + if ($this->getCount($criteria)>0) { + $obj = $this->getByCriteria($criteria); + if (is_object($obj)) { + return $obj->getVar($this->keyName); + } + } + $object->setVar('created', time()); + } else { + if (!$object->isDirty()) + return $object->getVar($this->keyName); + $object->setVar('updated', time()); + } + return parent::insert($object, $force); + } +} + +?> \ No newline at end of file Added: XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/companies_type.php =================================================================== --- XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/companies_type.php (rev 0) +++ XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/companies_type.php 2012-05-26 08:30:17 UTC (rev 9593) @@ -0,0 +1,160 @@ +<?php + +if (!defined('XOOPS_ROOT_PATH')) { + exit(); +} +/** + * Class for Blue Room Xcenter + * @author Simon Roberts <si...@xo...> + * @copyright copyright (c) 2009-2003 XOOPS.org + * @package kernel + */ +class LinkedinbombCompanies_type extends XoopsObject +{ + + function __construct($id = null) + { + $this->initVar('company-type_id', XOBJ_DTYPE_INT, null, false); + $this->initVar('code', XOBJ_DTYPE_TXTBOX, null, false, 4); + $this->initVar('name', XOBJ_DTYPE_TXTBOX, null, false, 128); + $this->initVar('created', XOBJ_DTYPE_INT, null, false); + $this->initVar('updated', XOBJ_DTYPE_INT, null, false); + + if ($id>0) { + $handler = new LinkedinbombCompanies_typeHandler($GLOBALS['xoopsDB']); + $object = $handler->get($id); + if (is_object($object)) { + if (is_a($object, 'LinkedinbombCompanies_type')) { + $this->assignVars($object->getValues()); + } + } + unset($object); + } + } + + function setVar($field, $value) { + switch ($this->vars[$field]['data_type']) { + case XOBJ_DTYPE_ARRAY: + if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + parent::setVar($field, $value); + break; + default: + if (md5($value)!=md5($this->getVar($field))) + parent::setVar($field, $value); + break; + } + } + + function setVars($arr, $not_gpc=false) { + foreach($arr as $field => $value) { + switch ($this->vars[$field]['data_type']) { + case XOBJ_DTYPE_ARRAY: + if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + parent::setVar($field, $value); + break; + default: + if (md5($value)!=md5($this->getVar($field))) + parent::setVar($field, $value); + break; + } + } + } + function getName() { + return $this->getVar('name').' ('.$this->getVar('code').')'; + } + + function getForm($as_array=false, $title='') { + $class = explode('.',basename(__FILE__)); + unset($class[sizeof($class)-1]); + $class = implode('.',$class); + // Gets Title + xoops_loadLanguage('forms', 'linkedinbomb'); + if (empty($title)) { + if ($this->isNew()) { + $title = constant("FRM_LINKEDIN_TITLE_NEW_".strtoupper($class)); + } else { + $title = sprintf(constant("FRM_LINKEDIN_TITLE_EDIT_".strtoupper($class)), $this->getName()); + } + } + // Gets Form + $func = 'linkedin_form_item_'.$class; + if (function_exists($func)) { + return $func($this, $title, $as_array); + } + } + + function toArray() { + $ret = parent::toArray(); + if (isset($ret['created'])&&$ret['created']>0) { + $ret['created'] = date(_DATESTRING, $ret['created']); + } + if (isset($ret['updated'])&&$ret['updated']>0) { + $ret['updated'] = date(_DATESTRING, $ret['updated']); + } + if (isset($ret['emailed'])&&$ret['emailed']>0) { + $ret['emailed'] = date(_DATESTRING, $ret['emailed']); + } + if (is_array($form = $this->getForm(true, ''))) { + foreach($form as $field => $element) { + $ret['form'][$field] = $form[$field]->render(); + } + } + return $ret; + } + +} + + +/** +* XOOPS policies handler class. +* This class is responsible for providing data access mechanisms to the data source +* of XOOPS user class objects. +* +* @author Simon Roberts <si...@ch...> +* @package kernel +*/ +class LinkedinbombCompanies_typeHandler extends XoopsPersistableObjectHandler +{ + function __construct(&$db) + { + $this->db = $db; + parent::__construct($db, 'lib_companies_type', 'LinkedinbombCompanies_type', "company-type_id", "code"); + } + + function getByCriteria($criteria = NULL) { + if ($this->getCount($criteria)==0) + return $this->create(); + $criteria->setStart(0); + $criteria->setLimit(1); + $objects = $this->getObjects($criteria, false); + if (!is_object($objects[0])) + return $this->create(); + return $objects[0]; + } + + function insert($object, $force = true) { + if($object->isNew()) { + $criteria = new CriteriaCompo(); + foreach($object->vars as $field => $values) { + if (!in_array($field, array($this->keyName, 'searched', 'polled', 'emailed', 'sms', 'synced', 'created', 'updated'))) + if ($values['type']!=XOBJ_DTYPE_ARRAY) + if (!empty($values['value'])||intval($values['value'])<>0) + $criteria->add(new Criteria('`'.$field.'`', $object->getVar($field))); + } + if ($this->getCount($criteria)>0) { + $obj = $this->getByCriteria($criteria); + if (is_object($obj)) { + return $obj->getVar($this->keyName); + } + } + $object->setVar('created', time()); + } else { + if (!$object->isDirty()) + return $object->getVar($this->keyName); + $object->setVar('updated', time()); + } + return parent::insert($object, $force); + } +} + +?> \ No newline at end of file Added: XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/connections.php =================================================================== --- XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/connections.php (rev 0) +++ XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/connections.php 2012-05-26 08:30:17 UTC (rev 9593) @@ -0,0 +1,184 @@ +<?php + +if (!defined('XOOPS_ROOT_PATH')) { + exit(); +} +/** + * Class for Blue Room Xcenter + * @author Simon Roberts <si...@xo...> + * @copyright copyright (c) 2009-2003 XOOPS.org + * @package kernel + */ +class LinkedinbombConnections extends XoopsObject +{ + + function __construct($id = null) + { + $this->initVar('connections_id', XOBJ_DTYPE_INT, null, false); + $this->initVar('request_profile_id', XOBJ_DTYPE_INT, null, false); + $this->initVar('request_person_id', XOBJ_DTYPE_INT, null, false); + $this->initVar('connection_person_id', XOBJ_DTYPE_INT, null, false); + $this->initVar('connection_profile_id', XOBJ_DTYPE_INT, null, false); + $this->initVar('connection_aspr_id', XOBJ_DTYPE_INT, null, false); + $this->initVar('person_id', XOBJ_DTYPE_INT, null, false); + $this->initVar('profile_id', XOBJ_DTYPE_INT, null, false); + $this->initVar('aspr_id', XOBJ_DTYPE_INT, null, false); + $this->initVar('created', XOBJ_DTYPE_INT, null, false); // Removed Unicode in 2.10 + $this->initVar('updated', XOBJ_DTYPE_INT, null, false); // Removed Unicode in 2.10 + + if ($id>0) { + $handler = new LinkedinbombConnectionsHandler($GLOBALS['xoopsDB']); + $object = $handler->get($id); + if (is_object($object)) { + if (is_a($object, 'LinkedinbombConnections')) { + $this->assignVars($object->getValues()); + } + } + unset($object); + } + } + + function setVar($field, $value) { + switch ($this->vars[$field]['data_type']) { + case XOBJ_DTYPE_ARRAY: + if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + parent::setVar($field, $value); + break; + default: + if (md5($value)!=md5($this->getVar($field))) + parent::setVar($field, $value); + break; + } + } + + function setVars($arr, $not_gpc=false) { + foreach($arr as $field => $value) { + switch ($this->vars[$field]['data_type']) { + case XOBJ_DTYPE_ARRAY: + if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + parent::setVar($field, $value); + break; + default: + if (md5($value)!=md5($this->getVar($field))) + parent::setVar($field, $value); + break; + } + } + } + function getName() { + return $this->getVar('connections_id').', '.$this->getVar('person_id').', '.$this->getVar('request_person_id'); + } + + function getForm($as_array=false, $title='') { + $class = explode('.',basename(__FILE__)); + unset($class[sizeof($class)-1]); + $class = implode('.',$class); + // Gets Title + xoops_loadLanguage('forms', 'linkedinbomb'); + if (empty($title)) { + if ($this->isNew()) { + $title = constant("FRM_LINKEDIN_TITLE_NEW_".strtoupper($class)); + } else { + $title = sprintf(constant("FRM_LINKEDIN_TITLE_EDIT_".strtoupper($class)), $this->getName()); + } + } + // Gets Form + $func = 'linkedin_form_item_'.$class; + if (function_exists($func)) { + return $func($this, $title, $as_array); + } + } + + function toArray() { + $ret = parent::toArray(); + if (isset($ret['created'])&&$ret['created']>0) { + $ret['created'] = date(_DATESTRING, $ret['created']); + } + if (isset($ret['updated'])&&$ret['updated']>0) { + $ret['updated'] = date(_DATESTRING, $ret['updated']); + } + if (isset($ret['emailed'])&&$ret['emailed']>0) { + $ret['emailed'] = date(_DATESTRING, $ret['emailed']); + } + if (is_array($form = $this->getForm(true, ''))) { + foreach($form as $field => $element) { + $ret['form'][$field] = $form[$field]->render(); + } + } + return $ret; + } + +} + + +/** +* XOOPS policies handler class. +* This class is responsible for providing data access mechanisms to the data source +* of XOOPS user class objects. +* +* @author Simon Roberts <si...@ch...> +* @package kernel +*/ +class LinkedinbombConnectionsHandler extends XoopsPersistableObjectHandler +{ + function __construct(&$db) + { + $this->db = $db; + parent::__construct($db, 'lib_connections', 'LinkedinbombConnections', "connections_id", "person_id"); + } + + function getByCriteria($criteria = NULL) { + if ($this->getCount($criteria)==0) + return $this->create(); + $criteria->setStart(0); + $criteria->setLimit(1); + $objects = $this->getObjects($criteria, false); + if (!is_object($objects[0])) + return $this->create(); + return $objects[0]; + } + + function insert($object, $force = true) { + if($object->isNew()) { + $criteria = new CriteriaCompo(); + foreach($object->vars as $field => $values) { + if (!in_array($field, array($this->keyName, 'searched', 'polled', 'emailed', 'sms', 'synced', 'created', 'updated'))) + if ($values['type']!=XOBJ_DTYPE_ARRAY) + if (!empty($values['value'])||intval($values['value'])<>0) + $criteria->add(new Criteria('`'.$field.'`', $object->getVar($field))); + } + if ($this->getCount($criteria)>0) { + $obj = $this->getByCriteria($criteria); + if (is_object($obj)) { + return $obj->getVar($this->keyName); + } + } + $object->setVar('created', time()); + } else { + if (!$object->isDirty()) + return $object->getVar($this->keyName); + $object->setVar('updated', time()); + } + if ($object->getVar('profile_id')>0&&$object->getVar('person_id')==0) { + $profile_handler = xoops_getmodulehandler('profiles', 'linkedinbomb'); + $profile = $profile_handler->get($object->getVar('profile_id')); + $object->setVar('person_id', $profile->getVar('person_id')); + } elseif ($object->getVar('profile_id')==0&&$object->getVar('person_id')>0) { + $persons_handler = xoops_getmodulehandler('persons', 'linkedinbomb'); + $person = $persons_handler->get($object->getVar('person_id')); + $object->setVar('profile_id', $person->getVar('profile_id')); + } + if ($object->getVar('request_profile_id')>0&&$object->getVar('request_person_id')==0) { + $profile_handler = xoops_getmodulehandler('profiles', 'linkedinbomb'); + $profile = $profile_handler->get($object->getVar('request_profile_id')); + ... [truncated message content] |
From: <for...@us...> - 2012-05-26 08:13:56
|
Revision: 9592 http://xoops.svn.sourceforge.net/xoops/?rev=9592&view=rev Author: forxoops Date: 2012-05-26 08:13:50 +0000 (Sat, 26 May 2012) Log Message: ----------- Add media directory for browse.php Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoops.php Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoops.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoops.php 2012-05-25 15:52:41 UTC (rev 9591) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoops.php 2012-05-26 08:13:50 UTC (rev 9592) @@ -109,7 +109,8 @@ 'var' => array(), 'lib' => array(), 'modules' => array(), - 'themes' => array() + 'themes' => array(), + 'media' => array() ); /** @@ -158,6 +159,7 @@ $this->paths['lib'] = array(XOOPS_PATH, XOOPS_URL . 'browse.php'); $this->paths['modules'] = array(XOOPS_ROOT_PATH . '/modules', XOOPS_URL . '/modules'); $this->paths['themes'] = array(XOOPS_ROOT_PATH . '/themes', XOOPS_URL . '/themes'); + $this->paths['media'] = array(XOOPS_ROOT_PATH . '/media', XOOPS_URL . '/media'); $this->registry = XoopsRegistry::getInstance(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <txm...@us...> - 2012-05-25 15:52:48
|
Revision: 9591 http://xoops.svn.sourceforge.net/xoops/?rev=9591&view=rev Author: txmodxoops Date: 2012-05-25 15:52:41 +0000 (Fri, 25 May 2012) Log Message: ----------- Fixed bug for cross-browsers Modified Paths: -------------- XoopsCore/tags/2.6 timgno/htdocs/themes/default-timgno/theme.html Modified: XoopsCore/tags/2.6 timgno/htdocs/themes/default-timgno/theme.html =================================================================== --- XoopsCore/tags/2.6 timgno/htdocs/themes/default-timgno/theme.html 2012-05-25 14:53:31 UTC (rev 9590) +++ XoopsCore/tags/2.6 timgno/htdocs/themes/default-timgno/theme.html 2012-05-25 15:52:41 UTC (rev 9591) @@ -20,7 +20,8 @@ <{* For google bots *}> <noscript><h1><{if $xoops_pagetitle !=''}><{$xoops_pagetitle}><{else}><{$xoops_sitename}><{/if}></h1></noscript> <{* Start of header *}> - <{includeq file="$theme_tpl/theme_header.html"}> + <{includeq file="$theme_tpl/theme_header.html"}> + <div class="clear"></div> <{* End of header *}> <{* Start of colmask *}> <div id="container"> @@ -60,11 +61,11 @@ </div> <{* End of col2pad *}> </div> + <{* End of col2wrap *}> </div> <{* End of colmid *}> <{* Start of colright *}> - <div id="colright"> - <{* End of col2wrap *}> + <div id="colright"> <{* Start of col3 *}> <div id="col3"> <{includeq file="$theme_tpl/theme_rightblocks.html"}> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <txm...@us...> - 2012-05-25 14:53:42
|
Revision: 9590 http://xoops.svn.sourceforge.net/xoops/?rev=9590&view=rev Author: txmodxoops Date: 2012-05-25 14:53:31 +0000 (Fri, 25 May 2012) Log Message: ----------- Modified html tag <strong> with <span> Added Paths: ----------- XoopsCore/tags/2.6 timgno/htdocs/class/pagenav.php Added: XoopsCore/tags/2.6 timgno/htdocs/class/pagenav.php =================================================================== --- XoopsCore/tags/2.6 timgno/htdocs/class/pagenav.php (rev 0) +++ XoopsCore/tags/2.6 timgno/htdocs/class/pagenav.php 2012-05-25 14:53:31 UTC (rev 9590) @@ -0,0 +1,188 @@ +<?php +/** + * XOOPS page navigation + * + * 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 GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @package kernel + * @since 2.0.0 + * @author Kazumi Ono (http://www.myweb.ne.jp/, http://jp.xoops.org/) + * @version $Id: pagenav.php 9291 2012-04-09 18:06:29Z beckmi $ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +class XoopsPageNav +{ + /** + * *#@+ + * + * @access private + */ + var $total; + var $perpage; + var $current; + var $url; + /** + * *#@- + */ + + /** + * Constructor + * + * @param int $total_items Total number of items + * @param int $items_perpage Number of items per page + * @param int $current_start First item on the current page + * @param string $start_name Name for "start" or "offset" + * @param string $extra_arg Additional arguments to pass in the URL + */ + function XoopsPageNav($total_items, $items_perpage, $current_start, $start_name = "start", $extra_arg = "") + { + $this->total = intval($total_items); + $this->perpage = intval($items_perpage); + $this->current = intval($current_start); + $this->extra = $extra_arg; + if ($extra_arg != '' && (substr($extra_arg, - 5) != '&' || substr($extra_arg, - 1) != '&')) { + $this->extra = '&' . $extra_arg; + } + $this->url = $_SERVER['PHP_SELF'] . '?' . trim($start_name) . '='; + } + + /** + * Create text navigation + * + * @param integer $offset + * @return string + */ + function renderNav($offset = 4) + { + $ret = ''; + if ($this->total <= $this->perpage) { + return $ret; + } + if(($this->total != 0) && ($this->perpage != 0)) { + $total_pages = ceil($this->total / $this->perpage); + if ($total_pages > 1) { + $ret .= '<div id="xo-pagenav">'; + $prev = $this->current - $this->perpage; + if ($prev >= 0) { + $ret .= '<a class="xo-pagarrow" href="' . $this->url . $prev . $this->extra . '"><u>«</u> ' ._PREVIOUS. '</a> '; + } + $counter = 1; + $current_page = intval(floor(($this->current + $this->perpage) / $this->perpage)); + while ($counter <= $total_pages) { + if ($counter == $current_page) { + $ret .= '<span class="xo-pagact" >' . $counter . '</span> '; + } elseif (($counter > $current_page - $offset && $counter < $current_page + $offset) || $counter == 1 || $counter == $total_pages) { + if ($counter == $total_pages && $current_page < $total_pages - $offset) { + $ret .= '... '; + } + $ret .= '<a class="xo-counterpage" href="' . $this->url . (($counter - 1) * $this->perpage) . $this->extra . '">' . $counter . '</a> '; + if ($counter == 1 && $current_page > 1 + $offset) { + $ret .= '... '; + } + } + $counter ++; + } + $next = $this->current + $this->perpage; + if ($this->total > $next) { + $ret .= '<a class="xo-pagarrow" href="' . $this->url . $next . $this->extra . '">' ._NEXT. ' <u>»</u> </a> '; + } + $ret .= '</div> '; + } + } + return $ret; + } + + /** + * Create a navigational dropdown list + * + * @param boolean $showbutton Show the "Go" button? + * @return string + */ + function renderSelect($showbutton = false) + { + if ($this->total < $this->perpage) { + return; + } + $total_pages = ceil($this->total / $this->perpage); + $ret = ''; + if ($total_pages > 1) { + $ret = '<form name="pagenavform">'; + $ret .= '<select name="pagenavselect" onchange="location=this.options[this.options.selectedIndex].value;">'; + $counter = 1; + $current_page = intval(floor(($this->current + $this->perpage) / $this->perpage)); + while ($counter <= $total_pages) { + if ($counter == $current_page) { + $ret .= '<option value="' . $this->url . (($counter - 1) * $this->perpage) . $this->extra . '" selected="selected">' . $counter . '</option>'; + } else { + $ret .= '<option value="' . $this->url . (($counter - 1) * $this->perpage) . $this->extra . '">' . $counter . '</option>'; + } + $counter ++; + } + $ret .= '</select>'; + if ($showbutton) { + $ret .= ' <input type="submit" value="' . _GO . '" />'; + } + $ret .= '</form>'; + } + return $ret; + } + + /** + * Create navigation with images + * + * @param integer $offset + * @return string + */ + function renderImageNav($offset = 4) + { + if ($this->total < $this->perpage) { + return; + } + $total_pages = ceil($this->total / $this->perpage); + $ret = ''; + if ($total_pages > 1) { + $ret = '<table><tr>'; + $prev = $this->current - $this->perpage; + if ($prev >= 0) { + $ret .= '<td class="pagneutral"><a href="' . $this->url . $prev . $this->extra . '"><</a></td><td><img src="' . XOOPS_URL . '/images/blank.gif" width="6" alt="" /></td>'; + } else { + $ret .= '<td class="pagno"></a></td><td><img src="' . XOOPS_URL . '/images/blank.gif" width="6" alt="" /></td>'; + } + $counter = 1; + $current_page = intval(floor(($this->current + $this->perpage) / $this->perpage)); + while ($counter <= $total_pages) { + if ($counter == $current_page) { + $ret .= '<td class="pagact"><strong>' . $counter . '</strong></td>'; + } elseif (($counter > $current_page - $offset && $counter < $current_page + $offset) || $counter == 1 || $counter == $total_pages) { + if ($counter == $total_pages && $current_page < $total_pages - $offset) { + $ret .= '<td class="paginact">...</td>'; + } + $ret .= '<td class="paginact"><a href="' . $this->url . (($counter - 1) * $this->perpage) . $this->extra . '">' . $counter . '</a></td>'; + if ($counter == 1 && $current_page > 1 + $offset) { + $ret .= '<td class="paginact">...</td>'; + } + } + $counter ++; + } + $next = $this->current + $this->perpage; + if ($this->total > $next) { + $ret .= '<td><img src="' . XOOPS_URL . '/images/blank.gif" width="6" alt="" /></td><td class="pagneutral"><a href="' . $this->url . $next . $this->extra . '">></a></td>'; + } else { + $ret .= '<td><img src="' . XOOPS_URL . '/images/blank.gif" width="6" alt="" /></td><td class="pagno"></td>'; + } + $ret .= '</tr></table>'; + } + return $ret; + } +} + +?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <txm...@us...> - 2012-05-25 14:49:11
|
Revision: 9589 http://xoops.svn.sourceforge.net/xoops/?rev=9589&view=rev Author: txmodxoops Date: 2012-05-25 14:49:05 +0000 (Fri, 25 May 2012) Log Message: ----------- Added css selectors for pagenav only function renderNav Added Paths: ----------- XoopsCore/tags/2.6 timgno/htdocs/xoops.css Added: XoopsCore/tags/2.6 timgno/htdocs/xoops.css =================================================================== --- XoopsCore/tags/2.6 timgno/htdocs/xoops.css (rev 0) +++ XoopsCore/tags/2.6 timgno/htdocs/xoops.css 2012-05-25 14:49:05 UTC (rev 9589) @@ -0,0 +1,495 @@ +/* $Id: xoops.css 9330 2012-04-15 11:50:18Z beckmi $ */ + +/*=== FORMAT BASIC ELEMENTS, can be overwritten in theme styles ===*/ +table {width: 100%; border-collapse:collapse; border-spacing: 0;} +strong, b, dfn { font-weight: bold;} +u {text-decoration: underline;} +i, em { font-style: italic;} +del { text-decoration: line-through;} +sup {vertical-align:text-top;} +sub {vertical-align:text-bottom;} +ins {text-decoration:none;} +img { border: 0;} +img.center { + text-align: center; + margin: 6px auto; + display: block; + margin-bottom: 4px; +} +img.left { + text-align: left; + float: left; + margin: 2px 6px 2px 0; + clear: left; +} +img.right { + float: right; + text-align: right; + margin: 2px 0 2px 6px; + clear: right; +} +acronym, abbr, dfn {cursor: help;} +pre {overflow: auto;} +#xoopsHiddenText { + visibility: hidden; + background-color: transparent; + color: #000; + font-weight: normal; + font-style: normal; + text-decoration: none; +} +/* for pagenav, can be overwritten in theme styles */ +.pagneutral { + font-size: 10px; + width: 16px; + height: 19px; + text-align: center; + background-image: url(./images/pagneutral.gif); +} +.pagact { + font-size: 10px; + width: 16px; + height: 19px; + text-align: center; + background-image: url(./images/pagact.gif); +} +.paginact { + font-size: 10px; + width: 16px; + height: 19px; + text-align: center; + background-image: url(./images/paginact.gif); +} + +#xo-pagenav { + background: #f2f2f2; + padding: 20px; + margin-bottom: 20px; +} + +#xo-pagenav .btn { + display: inline-block; + padding: 10px; + border-radius: 5px; /*optional*/ + color: #aaa; + font-size: .875em; +} + +.xo-counterpage { + display: inline-block; + padding: 1px 9px; + margin-right: 4px; + border-radius: 3px; + border: solid 1px #c0c0c0; + background: #e9e9e9; + box-shadow: inset 0px 1px 0px rgba(255,255,255, .8), 0px 1px 3px rgba(0,0,0, .1); + font-size: .875em; + font-weight: bold; + text-decoration: none; + color: #717171; + text-shadow: 0px 1px 0px rgba(255,255,255, 1); + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#f8f8f8), to(#e9e9e9)); + background: -moz-linear-gradient(0% 0% 270deg,#f8f8f8, #e9e9e9); +} + +.xo-counterpage:hover, .xo-counterpage:hover { + border: solid 1px #c0c0c0; + background: #fefefe; + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#FEFEFE), to(#f0f0f0)); + background: -moz-linear-gradient(0% 0% 270deg,#FEFEFE, #f0f0f0); +} + +span.xo-pagact { + border: none; + background: #616161; + display: inline-block; + padding: 1px 9px; + margin-right: 4px; + border: solid 1px #ccc; + border-radius: 2px; + box-shadow: inset 0px 0px 8px rgba(0,0,0, .5), 0px 1px 0px rgba(255,255,255, .8); + color: #717171; + text-shadow: 0px 0px 3px rgba(0,0,0, .5); + font-weight: bold; + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#FEFEFE), to(#f0f0f0)); + background: -moz-linear-gradient(0% 0% 270deg,#FEFEFE, #f0f0f0); +} + +.xo-pagarrow { + display: inline-block; + padding: 0px 9px; + margin-right: 4px; + border: solid 1px #c0c0c0; + border-radius: 3px; + background: #fefefe; + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#f8f8f8), to(#e9e9e9)); + background: -moz-linear-gradient(0% 0% 270deg,#f8f8f8, #e9e9e9); + text-shadow: 0px 1px 0px rgba(255,255,255, 1); + color: #717171; + text-decoration: none; +} +/* For required elements in XOOPS form */ +.xoops-form-element-caption .caption-marker { display: none;} +.xoops-form-element-caption-required .caption-marker { + background-color: inherit; + padding-left: 2px; + color: #ff0000; +} +.xoops-form-element-help { + font-size: .9em; + padding-top: 5px; + font-weight: normal; +} +/* forms basic style */ +fieldset { border:0;} +input, textarea, select {background-color: #fff; color: #000;} +input[type=submit], input[type=reset], input[type=button], .xo-formbuttons, .formButton, button { + background-color: #D3D2D6; + color: #405A80; + padding: 3px; +} +/* fix for swf banner */ +#xo-fixbanner a { + display: block; + position: absolute; + z-index: 102; + width: 468px; + height: 60px; +} + +/* jGrowl redirection */ +div.jGrowl {padding: 1em; z-index: 9999;} +/* JGrowl Box position in the page */ +body > div.jGrowl {position: fixed;} +body > div.jGrowl.top-right {right: 25%; left: 25%; top: 2px;} +body > div.jGrowl.bottom-left {left:0; bottom:0;} +body > div.jGrowl.bottom-right {right:0; bottom:0;} +body > div.jGrowl.center {top:0; width: 50%;left:25%;} +body > div.jGrowl.top-left {left:0; top:0;} +/* jGrowl Box style */ +div.center div.jGrowl-notification, div.center div.jGrowl-closer {margin-left: auto; margin-right: auto;} +div.jGrowl div.jGrowl-notification, div.jGrowl div.jGrowl-closer { + background-color: #EBFBFE; + color: #000080; + width: 100%; + padding: .5em; + margin-top: .5em; + margin-bottom: .5em; + font-family: Tahoma, Geneva, sans-serif; + font-size: 1.2em; + text-align: center; + border: 1px solid #6699FF; + display: none; + border-radius: 5px; + -moz-border-radius: 5px; + -webkit-border-radius: 5px; + -khtml-border-radius: 5px; +} +div.jGrowl div.jGrowl-notification {min-height: 40px;} +div.jGrowl div.jGrowl-notification div.jGrowl-header {font-weight: bold; font-size: 10px;} +/* jGrowl Close button */ +div.jGrowl div.jGrowl-notification div.jGrowl-close {float: right; font-weight: bold; font-size: 12px; cursor: pointer;} +div.jGrowl div.jGrowl-closer {height: 15px; padding-top: 4px; padding-bottom: 4px; cursor: pointer; font-size: 11px; font-weight: bold; text-align: center;} + +/*=== GENERIC CLASS, for use in themes, modules and contents ===*/ +/* Position */ +.floatleft{ float:left; margin:0; padding-left:4px; border:0; } +.floatright{ float:right; margin:0; padding:2px; border:0; } +.floatcenter0 {margin: 0 auto;} +.floatcenter1 {margin: 1em auto;} +.clear{ clear:both; height:0; font-size:0; line-height:0; } +.clearleft{ clear:left;height:0;font-size:0;line-height:0; } +.clearright{ clear:right; height:0; font-size:0; line-height:0; } +.block{ display: block; } +.inline {display: inline;} +.blockinline { display: inline-block;} +/* Texte */ +.left, .txtleft { text-align: left; } +.right, .txtright { text-align: right; } +.center, .txtcenter { text-align: center; } +.justify, .txtjustify { text-align: justify; } +/* Table alignement */ +.middle, .alignmiddle { vertical-align: middle;} +.top, .aligntop { vertical-align: top;} +.bottom, .alignbottom { vertical-align: bottom;} +.positop{ margin-top:0;padding-top:0; } +.posibottom{ margin-bottom:0;padding-bottom:0; } +/* Others table div class */ +.table {display:table;} +.tcaption1 { display:block; width:100%; /* for 1 columns */} +.tcaption2 { display:block; width:200%; /* for 2 columns */} +.tcaption3 { display:block; width:300%; /* for 3 columns */} +.tcaption4 { display:block; width:400%; /* for 4 columns */} +.tcaption5 { display:block; width:500%; /* for 5 columns */} +.tcaption6 { display:block; width:600%; /* for 6 columns */} +.tbody { display:table-row-group;} +.trow { display:table-row;} +.tcell { display:table-cell;} +.tfootend { width:auto;} +.collapse {border-collapse: collapse;} +.separate {border-collapse: separate;} +.bspacing1 {border-spacing: 1px;} +.bspacing2 {border-spacing: 2px;} +.bspacing3 {border-spacing: 3px;} +.bspacing4 {border-spacing: 4px;} +.bspacing5 {border-spacing: 5px;} +.bspacing10 {border-spacing: 10px;} +/* Width */ +.widthauto { width: auto;} +.width100 { width: 100%;} +.width90 { width: 90%} +.width80 { width: 80%;} +.width75 { width: 75%;} +.width70 { width: 70%} +.width66 { width: 66.6%} +.width60 { width: 60%} +.width50 { width: 49%;} +.width45 { width: 45%} +.width40 { width: 40%} +.width33 { width: 33.3%;} +.width30 { width: 30%;} +.width25 { width: 25%;} +.width20 { width: 20%;} +.width15 { width: 15%;} +.width10 { width: 10%;} +.width5{ width: 5%; } +.width3{ width: 3%; } +.width2{ width: 2%; } +.width1{ width: 1%; } +/* Padding */ +.pad2 {padding: 2px;} +.pad3 {padding: 3px;} +.pad5 {padding: 5px;} +.pad7 {padding: 7px;} +.pad10 {padding: 10px;} +/* Margin */ +.marg2 {margin: 2px;} +.marg3 {margin: 3px;} +.marg5 {margin: 5px;} +.marg7 {margin: 8px;} +.marg10 {margin: 10px;} +/* Font */ +.verysmall, .xx-small { font-size : .7em;} +.smallsmall, .x-small { font-size: .8em;} +.small { font-size: .92em;} +.normal { font-size: 1em;} +.big { font-size: 1.17em;} +.maxi { font-size: 1.5em;} +.bold { font-weight: bold;} +.bolder { font-weight: bolder; } +.lighter { font-weight: lighter; } +.normal {font-weight: normal; font-style: normal;} +.italic {font-style: italic;} +.oblique { font-style: oblique; } +.underline{ text-decoration:underline; } +.expanded { letter-spacing: .5em; } +.condensed { letter-spacing: -.1em; } +.uppercase { text-transform: uppercase; } +.lowercase { text-transform: lowercase; } +.capitalize { text-transform:capitalize; } +/*======== line-height ======== */ +.line100 { line-height: 1em;} +.line120 { line-height: 1.2em;} +.line140 {line-height: 1.4em;} +.line160 {line-height: 1.6em;} +.line170 {line-height: 1.7em;} +.line180 {line-height: 1.8em;} +.line200 {line-height: 2em;} +.line220 {line-height: 2.2em;} +.line240 {line-height: 2.4em;} +/* Colors */ +.red {background-color:transparent; color:#ff0000;} +.blue {background-color:transparent; color:#0000ff;} +.black {background-color:transparent; color:#000;} +.white {background-color:transparent; color:#fff;} +.yellow {background-color:transparent; color:#ffff00;} +.orange {background-color:transparent; color:#ffa500;} +.green { background-color:transparent; color:#008000;} +.silver {background-color:transparent; color:#c0c0c0;} +/* Hidden */ +.hide{ display:none; } +.hidden{ visibility:hidden; position:absolute; top:0; left:0; } +/* Space */ +.spacer{ padding:0 0 3px 0;} +.separator { + clear: both; + float: left; + height: 1px; + width: 100%; +} +/* Cursor class */ +.cursordefault{ cursor:default; } +.cursormove{ cursor:move; } +.cursorpointer{ cursor:pointer; } +.cursorhelp{ cursor:help; } +/*======== others opacity class ======== */ +.opac5 { opacity:.5 !important; filter: alpha(opacity=50) !important;} +.opac5:hover { opacity:1 !important; filter: alpha(opacity=100) !important;} +.opac7 { opacity:.7 !important; filter: alpha(opacity=70) !important;} +.opac7:hover { opacity:1 !important; filter: alpha(opacity=100) !important;} +.opac1 {opacity: 1 !important; filter: alpha(opacity=100) !important;} +.opac1:hover {opacity: .5 !important; filter: alpha(opacity=50) !important;} +/*======== others radius class ======== */ +.bradius3 { border-radius: 3px; -moz-border-radius: 3px; -webkit-border-radius: 3px;} +.bradius5 { border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px;} +.bradius10 { border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px;} +.bradius15 { border-radius: 15px; -moz-border-radius: 15px; -webkit-border-radius: 15px;} +/*======== border class ======== */ +.bnone {border:0;} +.border{ border: 1px solid #000; } +.dotted{ border: 1px dotted #000; } +.dashed{ border: 1px dashed #000; } +.solidblack { border : 1px solid #000;} +.solidwhite { border : 1px solid #fff;} +.solidred { border : 1px solid #ff0000;} +.solidyellow { border : 1px solid #ffff00;} +.solidblue { border : 1px solid #0000ff;} +.solidorange { border : 1px solid #ffa500;} +.solidgreen { border : 1px solid #008000;} +.solidbrown { border : 1px solid #a52a2a;} +.solidsilver { border : 1px solid #c0c0c0;} +.dottedblack { border : 1px dotted #000;} +.dottedwhite { border : 1px dotted #fff;} +.dottedred { border : 1px dotted #ff0000;} +.dottedyellow { border : 1px dotted #ffff00;} +.dottedblue { border : 1px dotted #0000ff;} +.dottedorange { border : 1px dotted #ffa500;} +.dottedgreen { border : 1px dotted #008000;} +.dottedbrown { border : 1px dotted #a52a2a;} +.dottedsilver { border : 1px dotted #c0c0c0;} +.dashedblack { border : 1px dashed #000;} +.dashedwhite { border : 1px dashed #fff;} +.dashedred { border : 1px dashed #ff0000;} +.dashedyellow { border : 1px dashed #ffff00;} +.dashedblue { border : 1px dashed #0000ff;} +.dashedorange { border : 1px dashed #ffa500;} +.dashedgreen { border : 1px dashed #008000;} +.dashedbrown { border : 1px dashed #a52a2a;} +.dashedsilver { border : 1px dashed #c0c0c0;} +.doubleblack { border : 4px double #000;} +.doublewhite { border : 4px double #fff;} +.doublered { border : 4px double #ff0000;} +.doubleyellow { border : 4px double #ffff00;} +.doubleblue { border : 4px double #0000ff;} +.doubleorange { border : 4px double #ffa500;} +.doublegreen { border : 4px double #008000;} +.doublebrown { border : 4px double #a52a2a;} +.doublesilver { border : 4px double #c0c0c0;} +.grooveblack { border : 3px groove #000;} +.groovewhite { border : 3px groove #fff;} +.groovered { border : 3px groove #ff0000;} +.grooveyellow { border : 3px groove #ffff00;} +.grooveblue { border : 3px groove #0000ff;} +.grooveorange { border : 3px groove #ffa500;} +.groovegreen { border : 3px groove #008000;} +.groovebrown { border : 3px groove #a52a2a;} +.groovesilver { border : 3px groove #c0c0c0;} +.ridgeblack { border : 3px ridge #000;} +.ridgewhite { border : 3px ridge #fff;} +.ridgered { border : 3px ridge #ff0000;} +.ridgeyellow { border : 3px ridge #ffff00;} +.ridgeblue { border : 3px ridge #0000ff;} +.ridgeorange { border : 3px ridge #ffa500;} +.ridgegreen { border : 3px ridge #008000;} +.ridgebrown { border : 3px ridge #a52a2a;} +.ridgesilver { border : 3px ridge #c0c0c0;} +.insetblack1 { border : 1px inset #000;} +.insetblack { border : 3px inset #000;} +.insetwhite1 { border : 1px inset #fff;} +.insetwhite { border : 3px inset #fff;} +.insetred { border : 3px inset #ff0000;} +.insetyellow { border : 3px inset #ffff00;} +.insetblue { border : 3px inset #0000ff;} +.insetorange { border : 3px inset #ffa500;} +.insetgreen { border : 3px inset #008000;} +.insetbrown { border : 3px inset #a52a2a;} +.insetsilver1 { border : 1px inset #c0c0c0;} +.insetsilver { border : 3px inset #c0c0c0;} +.outsetblack1 { border : 1px outset #000;} +.outsetblack { border : 3px outset #000;} +.outsetwhite1 { border : 1px outset #fff;} +.outsetwhite { border : 3px outset #fff;} +.outsetred { border : 3px outset #ff0000;} +.outsetyellow { border : 3px outset #ffff00;} +.outsetblue { border : 3px outset #0000ff;} +.outsetorange { border : 3px outset #ffa500;} +.outsetgreen { border : 3px outset #008000;} +.outsetbrown { border : 3px outset #a52a2a;} +.outsetsilver1 { border : 1px outset #c0c0c0;} +.outsetsilver { border : 3px outset #c0c0c0;} +/*======== font family class ======== */ +.arial { font-family: Arial, Helvetica, sans-serif; } +.courierNew { font-family: 'Courier New', Courier, monospace; } +.georgia { font-family: Georgia, 'Times New Roman', Times, serif; } +.lucidaConsole { font-family: 'Lucida Console', Monaco, monospace; } +.lucidaSansUnicode { font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif; } +.tahoma { font-family: Tahoma, Geneva, sans-serif; } +.times { font-family: 'Times New Roman', Times, serif; } +.trebuchet { font-family: 'Trebuchet MS', Helvetica, sans-serif; } +.verdana { font-family: Verdana, Geneva, sans-serif; } +.msSans { font-family: 'MS Sans Serif', Geneva, sans-serif; } +.msSerif { font-family: 'MS Serif', 'New York', serif; } +.helvetica { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; } +.impact { font-family: Impact, Charcoal, sans-serif; } +.century { font-family: 'Century Gothic', 'Lucida Grande', 'Lucida Sans Unicode', sans-serif; } +/*======== shadows class ======== */ +.shadow { text-shadow: 2px 2px 3px #aaa;} +.shadowlight { text-shadow: 1px 1px 2px #aaa;} +.boxshadow { + box-shadow: 1px 2px 3px rgba(0,0,0,0.5); + -moz-box-shadow: 1px 2px 3px rgba(0,0,0,0.5); + -webkit-box-shadow: 1px 2px 3px rgba(0,0,0,0.5); +} +.boxshadow1 { + box-shadow: 0 0 20px #787878; + -webkit-box-shadow:0 0 20px #787878; + -moz-box-shadow:0 0 20px #787878; + filter:progid:DXImageTransform.Microsoft.Shadow(color='#bbbbbb', Direction=135, Strength=5); + zoom: 1; +} +.boxrelief { + box-shadow: 0 20px 10px -10px rgba(255,255,255,0.3) inset; + -moz-box-shadow: 0 20px 10px -10px rgba(255,255,255,0.3) inset; + -webkit-box-shadow: 0 20px 10px -10px rgba(255,255,255,0.3) inset; +} +.boxinset { + box-shadow: 0 3px 8px rgba(0,0,0,.24) inset; + -moz-box-shadow: 0 3px 8px rgba(0,0,0,.4) inset; + -webkit-box-shadow: 0 3px 8px rgba(0,0,0,.4) inset; +} +/*======== multiple columns content ======== */ +.twocolumn { + column-count:2; column-gap:1.5em; + -moz-column-count: 2; -moz-column-gap: 1.5em; + -webkit-column-count: 2; -webkit-column-gap: 1.5em; +} +.threecolumn { + column-count:3; column-gap:1.2em; + -moz-column-count: 3; -moz-column-gap: 1.2em; + -webkit-column-count: 3; -webkit-column-gap: 1.2em; +} +.forcolumn { + column-count:4; column-gap:1.2em; + -moz-column-count: 4; -moz-column-gap: 1.2em; + -webkit-column-count: 4; -webkit-column-gap: 1.2em; +} +.column10 { + column-width:10em; column-gap:1.2em; + -moz-column-width: 10em; -moz-column-gap: 1.2em; + -webkit-column-width: 10em; -webkit-column-gap: 1.2em; +} +.column15 { + column-width:15em; column-gap:1.2em; + -moz-column-width: 15em; -moz-column-gap: 1.2em; + -webkit-column-width: 15em; -webkit-column-gap: 1.2em; +} +.column20 { + column-width:20em; column-gap:1.2em; + -moz-column-width: 20em; -moz-column-gap: 1.2em; + -webkit-column-width: 20em; -webkit-column-gap: 1.2em; +} +.column25 { + column-width:25em; column-gap:1.2em; + -moz-column-width: 25em; -moz-column-gap: 1.2em; + -webkit-column-width: 25em; -webkit-column-gap: 1.2em; +} \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <txm...@us...> - 2012-05-25 14:43:19
|
Revision: 9588 http://xoops.svn.sourceforge.net/xoops/?rev=9588&view=rev Author: txmodxoops Date: 2012-05-25 14:43:13 +0000 (Fri, 25 May 2012) Log Message: ----------- Added previous and next variables for pagenav Modified Paths: -------------- XoopsCore/tags/2.6 timgno/htdocs/language/english/global.php Modified: XoopsCore/tags/2.6 timgno/htdocs/language/english/global.php =================================================================== --- XoopsCore/tags/2.6 timgno/htdocs/language/english/global.php 2012-05-24 09:18:22 UTC (rev 9587) +++ XoopsCore/tags/2.6 timgno/htdocs/language/english/global.php 2012-05-25 14:43:13 UTC (rev 9588) @@ -1,247 +1,245 @@ -<?php -// $Id: global.php 8066 2011-11-06 05:09:33Z beckmi $ -// _LANGCODE: en -// _CHARSET : UTF-8 -// Translator: XOOPS Translation Team -define('_PLEASEWAIT', 'Please Wait'); -define('_FETCHING', 'Loading...'); -define('_TAKINGBACK', 'Taking you back to where you were....'); -define('_LOGOUT', 'Logout'); -define('_SUBJECT', 'Subject'); -define('_MESSAGEICON', 'Message Icon'); -define('_COMMENTS', 'Comments'); -define('_POSTANON', 'Post Anonymously'); -define('_DISABLESMILEY', 'Disable smiley'); -define('_DISABLEHTML', 'Disable html'); -define('_PREVIEW', 'Preview'); -define('_GO', 'Go!'); -define('_NESTED', 'Nested'); -define('_NOCOMMENTS', 'No Comments'); -define('_FLAT', 'Flat'); -define('_THREADED', 'Threaded'); -define('_OLDESTFIRST', 'Oldest First'); -define('_NEWESTFIRST', 'Newest First'); -define('_MORE', 'more...'); -define('_MULTIPAGE', 'To have your article span multiple pages, insert the word <font color=red>[pagebreak]</font> (with brackets) in the article.'); -define('_IFNOTRELOAD', 'If the page does not automatically reload, please click <a href=\'%s\'>here</a>'); -// Error messages issued by XoopsObject::cleanVars() -define('_XOBJ_ERR_REQUIRED', '%s is required'); -define('_XOBJ_ERR_SHORTERTHAN', '%s must be shorter than %d characters.'); -// %%%%%% File Name themeuserpost.php %%%%% -define('_PROFILE', 'Profile'); -define('_POSTEDBY', 'Posted by'); -define('_VISITWEBSITE', 'Visit Website'); -define('_SENDPMTO', 'Send Private Message to %s'); -define('_SENDEMAILTO', 'Send Email to %s'); -define('_ADD', 'Add'); -define('_REPLY', 'Reply'); -define('_DATE', 'Date'); // Posted date -// %%%%%% File Name admin_functions.php %%%%% -define('_MAIN', 'Main'); -define('_MANUAL', 'Manual'); -define('_INFO', 'Info'); -define('_CPHOME', 'Control Panel Home'); -define('_YOURHOME', 'Home Page'); -// %%%%%% File Name misc.php (who's-online popup) %%%%% -define('_WHOSONLINE', 'Who\'s Online'); -define('_GUESTS', 'Guests'); -define('_MEMBERS', 'Members'); -define('_ONLINEPHRASE', '<strong>%s</strong> user(s) are online'); -define('_ONLINEPHRASEX', '<strong>%s</strong> user(s) are browsing <strong>%s</strong>'); -define('_CLOSE', 'Close'); // Close window -// %%%%%% File Name module.textsanitizer.php %%%%% -define('_QUOTEC', 'Quote:'); -// %%%%%% File Name admin.php %%%%% -define('_NOPERM', 'Sorry, you don\'t have the permission to access this area.'); -// %%%%% Common Phrases %%%%% -define('_NO', 'No'); -define('_YES', 'Yes'); -define('_ONLINE', 'Online'); -define('_OFFLINE', 'Offline'); -define('_EDIT', 'Edit'); -define('_DELETE', 'Delete'); -define('_SUBMIT', 'Submit'); -define('_MODULENOEXIST', 'Selected module does not exist!'); -define('_ALIGN', 'Align'); -define('_LEFT', 'Left'); -define('_CENTER', 'Center'); -define('_RIGHT', 'Right'); -define('_FORM_ENTER', 'Please enter %s'); -define('_MUSTWABLE', 'File %s must be writable by the server!'); // %s represents file name -// Module info -define('_PREFERENCES', 'Preferences'); -define('_VERSION', 'Version'); -define('_DESCRIPTION', 'Description'); -define('_AUTHOR', 'Author'); -define('_CREDITS', 'Credits'); -define('_LICENCE', 'Licence'); -define('_ERRORS', 'Errors'); -define('_NONE', 'None'); -define('_ON', 'on'); -define('_READS', 'reads'); -define('_WELCOMETO', 'Welcome to %s'); -define('_SEARCH', 'Search'); -define('_ALL', 'All'); -define('_TITLE', 'Title'); -define('_OPTIONS', 'Options'); -define('_QUOTE', 'Quote'); -define('_LIST', 'List'); -define('_LOGIN', 'User Login'); -define('_USERNAME', 'Username: '); -define('_PASSWORD', 'Password: '); -define('_SELECT', 'Select'); -define('_IMAGE', 'Image'); -define('_SEND', 'Send'); -define('_CANCEL', 'Cancel'); -define('_ASCENDING', 'Ascending order'); -define('_DESCENDING', 'Descending order'); -define('_BACK', 'Back'); -define('_NOTITLE', 'No title'); -/** -* Image manager -*/ -define("_MD_ADDIMGCAT","Add Category"); -define("_MD_IMGCATNAME","Category name"); -define("_MD_IMGCATRGRP","Select groups for image manager use"); -define("_MD_IMGCATWGRP","Select groups allowed to upload images"); -define("_MD_IMGCATWEIGHT","Display order in image manager"); -define("_MD_IMGCATDISPLAY","Display"); -define("_MD_IMGCATSTRTYPE","Images are uploaded to:"); -define("_MD_STRTYOPENG","This can not be changed afterwards!"); -define("_MD_ASFILE","Store as files (in uploads directory)"); -define("_MD_INDB","Store in the database (as binary \"blob\" data)"); -define("_MD_IMGMAIN","Category"); -define("_MD_EDITIMGCAT", "Images Settings"); -define('_IMGMANAGER', 'Image Manager'); -define('_NUMIMAGES', '%s images'); -define('_ADDIMAGE', 'Add Image File'); -define('_IMAGENAME', 'Name:'); -define('_IMGMAXSIZE', 'Max size allowed (bytes):'); -define('_IMGMAXWIDTH', 'Max width allowed (pixels):'); -define('_IMGMAXHEIGHT', 'Max height allowed (pixels):'); -define('_IMAGECAT', 'Category:'); -define('_IMAGEFILE', 'Image file:'); -define('_IMGWEIGHT', 'Display order in image manager:'); -define('_IMGDISPLAY', 'Display this image?'); -define('_IMAGEMIME', 'MIME type:'); -define('_FAILFETCHIMG', 'Could not get uploaded file %s'); -define('_FAILSAVEIMG', 'Failed storing image %s into the database'); -define('_NOCACHE', 'No Cache'); -define('_CLONE', 'Clone'); -// %%%%% For xoopsform files %%%%% -define('_STARTSWITH', 'Starts with'); -define('_ENDSWITH', 'Ends with'); -define('_MATCHES', 'Matches'); -define('_CONTAINS', 'Contains'); -define('_REQUIRED', 'Required'); -// %%%%%% File Name commentform.php %%%%% -define('_REGISTER', 'Register'); -// %%%%%% File Name xoopscodes.php %%%%% -define('_SIZE', 'SIZE'); // font size -define('_FONT', 'FONT'); // font family -define('_COLOR', 'COLOR'); // font color -define('_EXAMPLE', 'SAMPLE'); -define('_ENTERURL', 'Enter the URL of the link you want to add:'); -define('_ENTERWEBTITLE', 'Enter the web site title:'); -define('_ENTERIMGURL', 'Enter the URL of the image you want to add.'); -define('_ENTERIMGPOS', 'Now, enter the position of the image.'); -define('_IMGPOSRORL', '\'R\' or \'r\' for right, \'L\' or \'l\' for left, or leave it blank.'); -define('_ERRORIMGPOS', 'ERROR! Enter the position of the image.'); -define('_ENTEREMAIL', 'Enter the email address you want to add.'); -define('_ENTERCODE', 'Enter the codes that you want to add.'); -define('_ENTERQUOTE', 'Enter the text that you want to be quoted.'); -define('_ENTERTEXTBOX', 'Please input text into the textbox.'); -define('_ALLOWEDCHAR', 'Allowed max chars length: '); -define('_CURRCHAR', 'Current chars length: '); -define('_PLZCOMPLETE', 'Please complete the subject and message fields.'); -define('_MESSAGETOOLONG', 'Your message is too long.'); -/** -* xoops smilie -*/ -define('_AM_ADDSMILE',' Add a new smilie'); -define('_AM_SMILECODE','Code'); -define('_AM_SMILEEMOTION','Description'); -define('_AM_DISPLAYF','Display in the form'); -// %%%%% TIME FORMAT SETTINGS %%%%% -define('_SECOND', '1 second'); -define('_SECONDS', '%s seconds'); -define('_MINUTE', '1 minute'); -define('_MINUTES', '%s minutes'); -define('_HOUR', '1 hour'); -define('_HOURS', '%s hours'); -define('_DAY', '1 day'); -define('_DAYS', '%s days'); -define('_WEEK', '1 week'); -define('_MONTH', '1 month'); -define('_DATESTRING', 'Y/n/j G:i:s'); -define('_MEDIUMDATESTRING', 'Y/n/j G:i'); -define('_SHORTDATESTRING', 'Y/n/j'); -/** -* The following characters are recognized in the format string: -* a - 'am' or 'pm' -* A - 'AM' or 'PM' -* d - day of the month, 2 digits with leading zeros; i.e. '01' to '31' -* D - day of the week, textual, 3 letters; i.e. 'Fri' -* F - month, textual, long; i.e. 'January' -* h - hour, 12-hour format; i.e. '01' to '12' -* H - hour, 24-hour format; i.e. '00' to '23' -* g - hour, 12-hour format without leading zeros; i.e. '1' to '12' -* G - hour, 24-hour format without leading zeros; i.e. '0' to '23' -* i - minutes; i.e. '00' to '59' -* j - day of the month without leading zeros; i.e. '1' to '31' -* l (lowercase 'L') - day of the week, textual, long; i.e. 'Friday' -* L - boolean for whether it is a leap year; i.e. '0' or '1' -* m - month; i.e. '01' to '12' -* n - month without leading zeros; i.e. '1' to '12' -* M - month, textual, 3 letters; i.e. 'Jan' -* s - seconds; i.e. '00' to '59' -* S - English ordinal suffix, textual, 2 characters; i.e. 'th', 'nd' -* t - number of days in the given month; i.e. '28' to '31' -* T - Timezone setting of this machine; i.e. 'MDT' -* U - seconds since the epoch -* w - day of the week, numeric, i.e. '0' (Sunday) to '6' (Saturday) -* Y - year, 4 digits; i.e. '1999' -* y - year, 2 digits; i.e. '99' -* z - day of the year; i.e. '0' to '365' -* Z - timezone offset in seconds (i.e. '-43200' to '43200') -*/ -// %%%%% LANGUAGE SPECIFIC SETTINGS %%%%% -define('_CHARSET', 'UTF-8'); -define('_LANGCODE', 'en'); -// change 0 to 1 if this language is a multi-bytes language -define('XOOPS_USE_MULTIBYTES', '0'); -/** -* Additions to 2.4.0 -**/ -define('_RESET', 'Reset'); -define('_RE', 'Re:'); - -// Module vars -define ("_ID", "Id"); -define ("_PID", "Main Argument Id"); -define ("_ABOUT", "About"); -define ("_WEIGHT", "Weight"); -define ("_CATEGORY", "Category"); -define ("_CATEGORIES", "Categories"); -define ("_PERMISSION", "Permission"); -define ("_PERMISSIONS", "Permissions"); -define ("_DASHBOARD", "Dashboard"); -define ("_SUBMITTER", "Submitter"); -define ("_CREATED", "Created"); -define ("_PUBLISHED", "Published"); -define ("_PUBLISHER", "Publisher"); -define ("_EXPIRED", "Expired"); -define ("_STATUS", "Status"); -define ("_KEYWORDS", "Keywords"); -define ("_WAITING", "Pending"); -define ("_FORMACTION", "Action"); -define ("_FORMUPLOAD", "Upload File"); -define ("_FILENAME","Filename"); -define ("_ADMIN","Admin"); - -define( "_DOHTML", " Disable HTML Tags" ); -define( "_DOSMILEY", " Disable Smilie Icons" ); -define( "_DOXCODE", " Disable XOOPS Codes" ); -define( "_DOIMAGES", " Disable Images" ); -define( "_DOBREAK", " Use XOOPS linebreak conversion?" ); +<?php +// $Id: global.php 8975 2012-02-15 01:49:56Z wishcraft $ +// _LANGCODE: en +// _CHARSET : UTF-8 +// Translator: XOOPS Translation Team +define('_PLEASEWAIT', 'Please Wait'); +define('_FETCHING', 'Loading...'); +define('_TAKINGBACK', 'Taking you back to where you were....'); +define('_LOGOUT', 'Logout'); +define('_SUBJECT', 'Subject'); +define('_MESSAGEICON', 'Message Icon'); +define('_COMMENTS', 'Comments'); +define('_POSTANON', 'Post Anonymously'); +define('_DISABLESMILEY', 'Disable smiley'); +define('_DISABLEHTML', 'Disable html'); +define('_PREVIEW', 'Preview'); +define('_GO', 'Go!'); +define('_NESTED', 'Nested'); +define('_NOCOMMENTS', 'No Comments'); +define('_FLAT', 'Flat'); +define('_THREADED', 'Threaded'); +define('_OLDESTFIRST', 'Oldest First'); +define('_NEWESTFIRST', 'Newest First'); +define('_MORE', 'more...'); +define('_MULTIPAGE', 'To have your article span multiple pages, insert the word <font color=red>[pagebreak]</font> (with brackets) in the article.'); +define('_IFNOTRELOAD', 'If the page does not automatically reload, please click <a href=\'%s\'>here</a>'); +// Error messages issued by XoopsObject::cleanVars() +define('_XOBJ_ERR_REQUIRED', '%s is required'); +define('_XOBJ_ERR_SHORTERTHAN', '%s must be shorter than %d characters.'); +// %%%%%% File Name themeuserpost.php %%%%% +define('_PROFILE', 'Profile'); +define('_POSTEDBY', 'Posted by'); +define('_VISITWEBSITE', 'Visit Website'); +define('_SENDPMTO', 'Send Private Message to %s'); +define('_SENDEMAILTO', 'Send Email to %s'); +define('_ADD', 'Add'); +define('_REPLY', 'Reply'); +define('_DATE', 'Date'); // Posted date +// %%%%%% File Name admin_functions.php %%%%% +define('_MAIN', 'Main'); +define('_MANUAL', 'Manual'); +define('_INFO', 'Info'); +define('_CPHOME', 'Control Panel Home'); +define('_YOURHOME', 'Home Page'); +// %%%%%% File Name misc.php (who's-online popup) %%%%% +define('_WHOSONLINE', 'Who\'s Online'); +define('_GUESTS', 'Guests'); +define('_MEMBERS', 'Members'); +define('_ONLINEPHRASE', '<strong>%s</strong> user(s) are online'); +define('_ONLINEPHRASEX', '<strong>%s</strong> user(s) are browsing <strong>%s</strong>'); +define('_CLOSE', 'Close'); // Close window +// %%%%%% File Name module.textsanitizer.php %%%%% +define('_QUOTEC', 'Quote:'); +// %%%%%% File Name admin.php %%%%% +define('_NOPERM', 'Sorry, you don\'t have the permission to access this area.'); +// %%%%% Common Phrases %%%%% +define('_NO', 'No'); +define('_YES', 'Yes'); +define('_EDIT', 'Edit'); +define('_DELETE', 'Delete'); +define('_SUBMIT', 'Submit'); +define('_MODULENOEXIST', 'Selected module does not exist!'); +define('_ALIGN', 'Align'); +define('_LEFT', 'Left'); +define('_CENTER', 'Center'); +define('_RIGHT', 'Right'); +define('_FORM_ENTER', 'Please enter %s'); +define('_MUSTWABLE', 'File %s must be writable by the server!'); // %s represents file name +// Module info +define('_PREFERENCES', 'Preferences'); +define('_VERSION', 'Version'); +define('_DESCRIPTION', 'Description'); +define('_AUTHOR', 'Author'); +define('_CREDITS', 'Credits'); +define('_LICENCE', 'Licence'); +define('_ERRORS', 'Errors'); +define('_NONE', 'None'); +define('_ON', 'on'); +define('_READS', 'reads'); +define('_WELCOMETO', 'Welcome to %s'); +define('_SEARCH', 'Search'); +define('_ALL', 'All'); +define('_TITLE', 'Title'); +define('_OPTIONS', 'Options'); +define('_QUOTE', 'Quote'); +define('_LIST', 'List'); +define('_LOGIN', 'User Login'); +define('_USERNAME', 'Username: '); +define('_PASSWORD', 'Password: '); +define('_SELECT', 'Select'); +define('_IMAGE', 'Image'); +define('_SEND', 'Send'); +define('_CANCEL', 'Cancel'); +define('_ASCENDING', 'Ascending order'); +define('_DESCENDING', 'Descending order'); +define('_BACK', 'Back'); +define('_NOTITLE', 'No title'); +/** +* Image manager +*/ +define("_MD_ADDIMGCAT","Add Category"); +define("_MD_IMGCATNAME","Category name"); +define("_MD_IMGCATRGRP","Select groups for image manager use"); +define("_MD_IMGCATWGRP","Select groups allowed to upload images"); +define("_MD_IMGCATWEIGHT","Display order in image manager"); +define("_MD_IMGCATDISPLAY","Display"); +define("_MD_IMGCATSTRTYPE","Images are uploaded to:"); +define("_MD_STRTYOPENG","This can not be changed afterwards!"); +define("_MD_ASFILE","Store as files (in uploads directory)"); +define("_MD_INDB","Store in the database (as binary \"blob\" data)"); +define ("_MD_IMGMAIN","Category"); +define ("_MD_EDITIMGCAT", "Images Settings"); +define('_IMGMANAGER', 'Image Manager'); +define('_NUMIMAGES', '%s images'); +define('_ADDIMAGE', 'Add Image File'); +define('_IMAGENAME', 'Name:'); +define('_IMGMAXSIZE', 'Max size allowed (bytes):'); +define('_IMGMAXWIDTH', 'Max width allowed (pixels):'); +define('_IMGMAXHEIGHT', 'Max height allowed (pixels):'); +define('_IMAGECAT', 'Category:'); +define('_IMAGEFILE', 'Image file:'); +define('_IMGWEIGHT', 'Display order in image manager:'); +define('_IMGDISPLAY', 'Display this image?'); +define('_IMAGEMIME', 'MIME type:'); +define('_FAILFETCHIMG', 'Could not get uploaded file %s'); +define('_FAILSAVEIMG', 'Failed storing image %s into the database'); +define('_NOCACHE', 'No Cache'); +define('_CLONE', 'Clone'); +// %%%%% For xoopsform files %%%%% +define('_STARTSWITH', 'Starts with'); +define('_ENDSWITH', 'Ends with'); +define('_MATCHES', 'Matches'); +define('_CONTAINS', 'Contains'); +define('_REQUIRED', 'Required'); +// %%%%%% File Name commentform.php %%%%% +define('_REGISTER', 'Register'); +// %%%%%% File Name xoopscodes.php %%%%% +define('_SIZE', 'SIZE'); // font size +define('_FONT', 'FONT'); // font family +define('_COLOR', 'COLOR'); // font color +define('_EXAMPLE', 'SAMPLE'); +define('_ENTERURL', 'Enter the URL of the link you want to add:'); +define('_ENTERWEBTITLE', 'Enter the web site title:'); +define('_ENTERIMGURL', 'Enter the URL of the image you want to add.'); +define('_ENTERIMGPOS', 'Now, enter the position of the image.'); +define('_IMGPOSRORL', '\'R\' or \'r\' for right, \'L\' or \'l\' for left, or leave it blank.'); +define('_ERRORIMGPOS', 'ERROR! Enter the position of the image.'); +define('_ENTEREMAIL', 'Enter the email address you want to add.'); +define('_ENTERCODE', 'Enter the codes that you want to add.'); +define('_ENTERQUOTE', 'Enter the text that you want to be quoted.'); +define('_ENTERTEXTBOX', 'Please input text into the textbox.'); +define('_ALLOWEDCHAR', 'Allowed max chars length: '); +define('_CURRCHAR', 'Current chars length: '); +define('_PLZCOMPLETE', 'Please complete the subject and message fields.'); +define('_MESSAGETOOLONG', 'Your message is too long.'); +/** +* xoops smilie +*/ +define('_AM_ADDSMILE',' Add a new smilie'); +define('_AM_SMILECODE','Code'); +define('_AM_SMILEEMOTION','Description'); +define('_AM_DISPLAYF','Display in the form'); +// %%%%% TIME FORMAT SETTINGS %%%%% +define('_SECOND', '1 second'); +define('_SECONDS', '%s seconds'); +define('_MINUTE', '1 minute'); +define('_MINUTES', '%s minutes'); +define('_HOUR', '1 hour'); +define('_HOURS', '%s hours'); +define('_DAY', '1 day'); +define('_DAYS', '%s days'); +define('_WEEK', '1 week'); +define('_MONTH', '1 month'); +define('_DATESTRING', 'Y/n/j G:i:s'); +define('_MEDIUMDATESTRING', 'Y/n/j G:i'); +define('_SHORTDATESTRING', 'Y/n/j'); +/** +* The following characters are recognized in the format string: +* a - 'am' or 'pm' +* A - 'AM' or 'PM' +* d - day of the month, 2 digits with leading zeros; i.e. '01' to '31' +* D - day of the week, textual, 3 letters; i.e. 'Fri' +* F - month, textual, long; i.e. 'January' +* h - hour, 12-hour format; i.e. '01' to '12' +* H - hour, 24-hour format; i.e. '00' to '23' +* g - hour, 12-hour format without leading zeros; i.e. '1' to '12' +* G - hour, 24-hour format without leading zeros; i.e. '0' to '23' +* i - minutes; i.e. '00' to '59' +* j - day of the month without leading zeros; i.e. '1' to '31' +* l (lowercase 'L') - day of the week, textual, long; i.e. 'Friday' +* L - boolean for whether it is a leap year; i.e. '0' or '1' +* m - month; i.e. '01' to '12' +* n - month without leading zeros; i.e. '1' to '12' +* M - month, textual, 3 letters; i.e. 'Jan' +* s - seconds; i.e. '00' to '59' +* S - English ordinal suffix, textual, 2 characters; i.e. 'th', 'nd' +* t - number of days in the given month; i.e. '28' to '31' +* T - Timezone setting of this machine; i.e. 'MDT' +* U - seconds since the epoch +* w - day of the week, numeric, i.e. '0' (Sunday) to '6' (Saturday) +* Y - year, 4 digits; i.e. '1999' +* y - year, 2 digits; i.e. '99' +* z - day of the year; i.e. '0' to '365' +* Z - timezone offset in seconds (i.e. '-43200' to '43200') +*/ +// %%%%% LANGUAGE SPECIFIC SETTINGS %%%%% +define('_CHARSET', 'UTF-8'); +define('_LANGCODE', 'en'); +// change 0 to 1 if this language is a multi-bytes language +define('XOOPS_USE_MULTIBYTES', '0'); +/** +* Additions to 2.4.0 +**/ +define('_RESET', 'Reset'); +define('_RE', 'Re:'); +/** + * Additions to 2.5.5 +**/ +define('_DBDATESTRING', 'Y-m-d'); +define('_DBTIMESTRING', 'H:i:s'); +define('_DBTIMESTAMPSTRING', 'Y-m-d H:i:s'); +// Module vars +define("_ID","Id"); +define("_PID","Sub Id"); +define("_ABOUT","About"); +define("_WEIGHT","Weight"); +define("_CATEGORY","Category"); +define("_CATEGORIES","Categories"); +define("_PERMISSION","Permission"); +define("_PERMISSIONS","Permissions"); +define("_DASHBOARD","Dashboard"); +define("_SUBMITTER","Submitter"); +define("_CREATED","Created"); +define("_PUBLISHED","Published"); +define("_PUBLISHER","Publisher"); +define("_EXPIRED","Expired"); +define("_STATUS","Status"); +define("_KEYWORDS","Keywords"); +define("_WAITING","Waiting"); +define("_FORMACTION","Action"); +define("_FORMUPLOAD","Upload File"); +// For pagenav +define("_PREVIOUS","Previous"); +define("_NEXT","Next"); ?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <txm...@us...> - 2012-05-24 09:18:33
|
Revision: 9587 http://xoops.svn.sourceforge.net/xoops/?rev=9587&view=rev Author: txmodxoops Date: 2012-05-24 09:18:22 +0000 (Thu, 24 May 2012) Log Message: ----------- Added jqCheckAll Modified Paths: -------------- XoopsCore/tags/2.6 timgno/htdocs/include/xoops.js Modified: XoopsCore/tags/2.6 timgno/htdocs/include/xoops.js =================================================================== --- XoopsCore/tags/2.6 timgno/htdocs/include/xoops.js 2012-05-23 21:24:19 UTC (rev 9586) +++ XoopsCore/tags/2.6 timgno/htdocs/include/xoops.js 2012-05-24 09:18:22 UTC (rev 9587) @@ -278,6 +278,18 @@ } } +function jqCheckAll( id, name, flag ) +{ + if (flag == 0) + { + $("form#" + id + " INPUT[@name=" + name + "][type='checkbox']").attr('checked', false); + } + else + { + $("form#" + id + " INPUT[@name=" + name + "][type='checkbox']").attr('checked', true); + } +} + var RecaptchaOptions = { custom_translations : { instructions_visual : "Scrivi le due parole:", This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2012-05-23 21:24:25
|
Revision: 9586 http://xoops.svn.sourceforge.net/xoops/?rev=9586&view=rev Author: beckmi Date: 2012-05-23 21:24:19 +0000 (Wed, 23 May 2012) Log Message: ----------- Fixing typo Modified Paths: -------------- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/system/admin.php XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/system/templates/admin/system_index.html Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/system/admin.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/system/admin.php 2012-05-23 21:23:46 UTC (rev 9585) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/system/admin.php 2012-05-23 21:24:19 UTC (rev 9586) @@ -83,7 +83,7 @@ if (false != $error) { $op = system_CleanVars ( $_REQUEST, 'op', '', 'string' ); - if ( $op == 'system_avtivate') { + if ( $op == 'system_activate') { $part = system_CleanVars ( $_REQUEST, 'type', '', 'string' ); $config_handler = xoops_gethandler('config'); Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/system/templates/admin/system_index.html =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/system/templates/admin/system_index.html 2012-05-23 21:23:46 UTC (rev 9585) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/system/templates/admin/system_index.html 2012-05-23 21:24:19 UTC (rev 9586) @@ -28,7 +28,7 @@ <td class="xo-actions width2"> <{if $menu.used}> <img id="loading_<{$menu.file}>" src="images/spinner.gif" style="display:none;" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /> - <img class="tooltip" id="<{$menu.file}>" onclick="system_setStatus( { op: 'system_avtivate', type: '<{$menu.file}>' }, '<{$menu.file}>', 'admin.php' )" src="<{if $menu.status}><{xoAdminIcons success.png}><{else}><{xoAdminIcons cancel.png}><{/if}>" alt="<{$smarty.const._AM_SYSTEM_STATUS}>" title="<{$smarty.const._AM_SYSTEM_STATUS}>" /> + <img class="tooltip" id="<{$menu.file}>" onclick="system_setStatus( { op: 'system_activate', type: '<{$menu.file}>' }, '<{$menu.file}>', 'admin.php' )" src="<{if $menu.status}><{xoAdminIcons success.png}><{else}><{xoAdminIcons cancel.png}><{/if}>" alt="<{$smarty.const._AM_SYSTEM_STATUS}>" title="<{$smarty.const._AM_SYSTEM_STATUS}>" /> <{/if}> </td> </tr> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2012-05-23 21:23:52
|
Revision: 9585 http://xoops.svn.sourceforge.net/xoops/?rev=9585&view=rev Author: beckmi Date: 2012-05-23 21:23:46 +0000 (Wed, 23 May 2012) Log Message: ----------- Fixing typo Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/templates/admin/system_index.html Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin.php 2012-05-23 17:35:10 UTC (rev 9584) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin.php 2012-05-23 21:23:46 UTC (rev 9585) @@ -80,7 +80,7 @@ if (false != $error) { $op = $system->cleanVars($_REQUEST, 'op', '', 'string'); - if ($op == 'system_avtivate') { + if ($op == 'system_activate') { $part = $system->cleanVars($_REQUEST, 'type', '', 'string'); $config_handler = $xoops->getHandlerConfig(); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/templates/admin/system_index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/templates/admin/system_index.html 2012-05-23 17:35:10 UTC (rev 9584) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/templates/admin/system_index.html 2012-05-23 21:23:46 UTC (rev 9585) @@ -29,7 +29,7 @@ <td class="xo-actions width2"> <{if $menu.used}> <img id="loading_<{$menu.file}>" src="images/spinner.gif" style="display:none;" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /> - <img class="xo-tooltip" id="<{$menu.file}>" onclick="system_setStatus( { op: 'system_avtivate', type: '<{$menu.file}>' }, '<{$menu.file}>', 'admin.php' )" src="<{if $menu.status}><{xoAdminIcons success.png}><{else}><{xoAdminIcons cancel.png}><{/if}>" alt="<{$smarty.const._AM_SYSTEM_STATUS}>" title="<{$smarty.const._AM_SYSTEM_STATUS}>" /> + <img class="xo-tooltip" id="<{$menu.file}>" onclick="system_setStatus( { op: 'system_activate', type: '<{$menu.file}>' }, '<{$menu.file}>', 'admin.php' )" src="<{if $menu.status}><{xoAdminIcons success.png}><{else}><{xoAdminIcons cancel.png}><{/if}>" alt="<{$smarty.const._AM_SYSTEM_STATUS}>" title="<{$smarty.const._AM_SYSTEM_STATUS}>" /> <{/if}> </td> </tr> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ma...@us...> - 2012-05-23 17:35:20
|
Revision: 9584 http://xoops.svn.sourceforge.net/xoops/?rev=9584&view=rev Author: mageg Date: 2012-05-23 17:35:10 +0000 (Wed, 23 May 2012) Log Message: ----------- remove check is active Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/userrank/admin/userrank.php Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/userrank/admin/userrank.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/userrank/admin/userrank.php 2012-05-23 17:34:07 UTC (rev 9583) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/userrank/admin/userrank.php 2012-05-23 17:35:10 UTC (rev 9584) @@ -27,10 +27,6 @@ if (!$xoops->isUser() || !$xoops->isModule() || !$xoops->user->isAdmin($xoops->module->mid())) { exit(_NOPERM); } -// Check is active -if (!$xoops->getModuleConfig('active_userrank', 'system')) { - $xoops->redirect('admin.php', 2, _AM_SYSTEM_NOTACTIVE); -} // Parameters $nb_rank = $xoops->getModuleConfig('userrank_pager'); $mimetypes = array('image/gif', 'image/jpeg', 'image/pjpeg', 'image/x-png', 'image/png'); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ma...@us...> - 2012-05-23 17:34:14
|
Revision: 9583 http://xoops.svn.sourceforge.net/xoops/?rev=9583&view=rev Author: mageg Date: 2012-05-23 17:34:07 +0000 (Wed, 23 May 2012) Log Message: ----------- Add CleanCache function in system class Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/maintenance/admin/center.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/modulesadmin/main.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/plugins/main.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/preferences/main.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/system.php Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/maintenance/admin/center.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/maintenance/admin/center.php 2012-05-23 07:30:18 UTC (rev 9582) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/maintenance/admin/center.php 2012-05-23 17:34:07 UTC (rev 9583) @@ -59,46 +59,23 @@ $tables_op = $system->cleanVars($_REQUEST, 'maintenance', array(), 'array'); $db = XoopsDatabaseFactory::getDatabaseConnection(); //Cache + $res_cache = $system->CleanCache($cache); if (!empty($cache)) { for ($i = 0; $i < count($cache); $i++) { switch ($cache[$i]) { case 1: - $files = glob(XOOPS_VAR_PATH . '/caches/smarty_cache/*.*'); - $total_smarty_cache = 0; - foreach ($files as $filename) { - if (basename(strtolower($filename)) != 'index.html') { - unlink($filename); - $total_smarty_cache++; - } - } $xoops->tpl->assign('smarty_cache', true); - $xoops->tpl->assign('result_smarty_cache', sprintf(_AM_MAINTENANCE_CENTER_RESULT_SMARTY_CACHE, $total_smarty_cache)); + $xoops->tpl->assign('result_smarty_cache', sprintf(_AM_MAINTENANCE_CENTER_RESULT_SMARTY_CACHE, $res_cache['smarty_cache'])); break; case 2: - $files = glob(XOOPS_VAR_PATH . '/caches/smarty_compile/*.*'); - $total_smarty_compile = 0; - foreach ($files as $filename) { - if (basename(strtolower($filename)) != 'index.html') { - unlink($filename); - $total_smarty_compile++; - } - } $xoops->tpl->assign('smarty_compile', true); - $xoops->tpl->assign('result_smarty_compile', sprintf(_AM_MAINTENANCE_CENTER_RESULT_SMARTY_COMPILE, $total_smarty_compile)); + $xoops->tpl->assign('result_smarty_compile', sprintf(_AM_MAINTENANCE_CENTER_RESULT_SMARTY_COMPILE, $res_cache['smarty_compile'])); break; case 3: - $files = glob(XOOPS_VAR_PATH . '/caches/xoops_cache/*.*'); - $total_xoops_cache = 0; - foreach ($files as $filename) { - if (basename(strtolower($filename)) != 'index.html') { - unlink($filename); - $total_xoops_cache++; - } - } $xoops->tpl->assign('xoops_cache', true); - $xoops->tpl->assign('result_xoops_cache', sprintf(_AM_MAINTENANCE_CENTER_RESULT_XOOPS_CACHE, $total_xoops_cache)); + $xoops->tpl->assign('result_xoops_cache', sprintf(_AM_MAINTENANCE_CENTER_RESULT_XOOPS_CACHE, $res_cache['xoops_cache'])); break; } } Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/modulesadmin/main.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/modulesadmin/main.php 2012-05-23 07:30:18 UTC (rev 9582) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/modulesadmin/main.php 2012-05-23 17:34:07 UTC (rev 9583) @@ -226,6 +226,8 @@ $xoops->tpl->assign('title', _AM_SYSTEM_MODULES_UNINSTALL); $xoops->tpl->assign('log', $system_module->trace); } + $folder = array(1, 3); + $system->CleanCache($folder); // Call Footer $xoops->footer(); break; @@ -257,13 +259,11 @@ $xoops->tpl->assign('title', _AM_SYSTEM_MODULES_UPDATE); $xoops->tpl->assign('log', $system_module->trace); } - // Call Footer - $xoops->footer(); - require_once $xoops->path('modules/system/class/maintenance.php'); - $maintenance = new SystemMaintenance(); $folder = array(1, 3); - $maintenance->CleanCache($folder); + $system->CleanCache($folder); //Set active modules in cache folder $xoops->setActiveModules(); + // Call Footer + $xoops->footer(); break; } \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/plugins/main.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/plugins/main.php 2012-05-23 07:30:18 UTC (rev 9582) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/plugins/main.php 2012-05-23 17:34:07 UTC (rev 9583) @@ -127,6 +127,8 @@ $xoops->tpl->assign('title', _AM_SYSTEM_PLUGINS_UNINSTALL); $xoops->tpl->assign('log', $system_plugin->trace); } + $folder = array(1, 3); + $system->CleanCache($folder); // Call Footer $xoops->footer(); break; @@ -158,13 +160,11 @@ $xoops->tpl->assign('title', _AM_SYSTEM_PLUGINS_UPDATE); $xoops->tpl->assign('log', $system_plugin->trace); } - // Call Footer - $xoops->footer(); - require_once $xoops->path('modules/system/class/maintenance.php'); - $maintenance = new SystemMaintenance(); $folder = array(1, 3); - $maintenance->CleanCache($folder); + $system->CleanCache($folder); //Set active modules in cache folder $xoops->setActiveModules(); + // Call Footer + $xoops->footer(); break; } \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/preferences/main.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/preferences/main.php 2012-05-23 07:30:18 UTC (rev 9582) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/preferences/main.php 2012-05-23 17:34:07 UTC (rev 9583) @@ -164,12 +164,8 @@ // Clean cached files, may take long time // User reigister_shutdown_function to keep running after connection closes so that cleaning cached files can be finished // Cache management should be performed on a separate page - require_once $xoops->path('modules/maintenance/class/maintenance.php'); - $maintenance = new Maintenance(); $options = array(1); //1 goes for cache - //register_shutdown_function( array( &$xoopsTpl, 'clear_all_cache' ) ); - register_shutdown_function(array(&$maintenance, 'CleanCache'), $options); - + register_shutdown_function(array(&$system, 'CleanCache'), $options); if (isset($redirect) && $redirect != '') { $xoops->redirect($redirect, 2, _AM_SYSTEM_DBUPDATED); } else { Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/system.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/system.php 2012-05-23 07:30:18 UTC (rev 9582) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/system.php 2012-05-23 17:34:07 UTC (rev 9583) @@ -157,4 +157,59 @@ } return ''; } + /** + * System Clean cache 'xoops_data/caches/smarty_cache' + * + * @param array cache + * @return + */ + function CleanCache($cache) { + $total_smarty_cache = 0; + $total_smarty_compile = 0; + $total_xoops_cache = 0; + if (!empty($cache)) { + for ($i = 0; $i < count($cache); $i++) { + switch ($cache[$i]) { + case 1: + $files = glob(XOOPS_VAR_PATH . '/caches/smarty_cache/*.*'); + $total_smarty_cache = 0; + foreach ($files as $filename) { + if (basename(strtolower($filename)) != 'index.html') { + unlink($filename); + $total_smarty_cache++; + } + } + break; + + case 2: + $files = glob(XOOPS_VAR_PATH . '/caches/smarty_compile/*.*'); + $total_smarty_compile = 0; + foreach ($files as $filename) { + if (basename(strtolower($filename)) != 'index.html') { + unlink($filename); + $total_smarty_compile++; + } + } + break; + + case 3: + $files = glob(XOOPS_VAR_PATH . '/caches/xoops_cache/*.*'); + $total_xoops_cache = 0; + foreach ($files as $filename) { + if (basename(strtolower($filename)) != 'index.html') { + unlink($filename); + $total_xoops_cache++; + } + } + break; + } + } + $ret['smarty_cache'] = $total_smarty_cache; + $ret['smarty_compile'] = $total_smarty_compile; + $ret['xoops_cache'] = $total_xoops_cache; + return $ret; + } else { + return false; + } + } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2012-05-23 07:30:31
|
Revision: 9582 http://xoops.svn.sourceforge.net/xoops/?rev=9582&view=rev Author: beckmi Date: 2012-05-23 07:30:18 +0000 (Wed, 23 May 2012) Log Message: ----------- Updating to final release Modified Paths: -------------- XoopsModules/mymenus/trunk/mymenus/admin/about.php XoopsModules/mymenus/trunk/mymenus/admin/admin_about.php XoopsModules/mymenus/trunk/mymenus/admin/admin_header.php XoopsModules/mymenus/trunk/mymenus/admin/admin_menu.php XoopsModules/mymenus/trunk/mymenus/admin/admin_menus.php XoopsModules/mymenus/trunk/mymenus/admin/index.php XoopsModules/mymenus/trunk/mymenus/admin/menu.php XoopsModules/mymenus/trunk/mymenus/blocks/mymenus_block.php XoopsModules/mymenus/trunk/mymenus/class/about.php XoopsModules/mymenus/trunk/mymenus/class/builder.php XoopsModules/mymenus/trunk/mymenus/class/menu.php XoopsModules/mymenus/trunk/mymenus/class/menus.php XoopsModules/mymenus/trunk/mymenus/class/plugin.php XoopsModules/mymenus/trunk/mymenus/class/registry.php XoopsModules/mymenus/trunk/mymenus/include/functions.php XoopsModules/mymenus/trunk/mymenus/language/arabic/about.php XoopsModules/mymenus/trunk/mymenus/language/arabic/admin.php XoopsModules/mymenus/trunk/mymenus/language/arabic/blocks.php XoopsModules/mymenus/trunk/mymenus/language/arabic/modinfo.php XoopsModules/mymenus/trunk/mymenus/language/english/about.php XoopsModules/mymenus/trunk/mymenus/language/english/admin.php XoopsModules/mymenus/trunk/mymenus/language/english/blocks.php XoopsModules/mymenus/trunk/mymenus/language/english/modinfo.php XoopsModules/mymenus/trunk/mymenus/language/french/about.php XoopsModules/mymenus/trunk/mymenus/language/french/admin.php XoopsModules/mymenus/trunk/mymenus/language/french/blocks.php XoopsModules/mymenus/trunk/mymenus/language/french/modinfo.php XoopsModules/mymenus/trunk/mymenus/plugins/constant/constant.php XoopsModules/mymenus/trunk/mymenus/plugins/dynamic/dynamic.php XoopsModules/mymenus/trunk/mymenus/plugins/mymenus/language/arabic/mymenus.php XoopsModules/mymenus/trunk/mymenus/plugins/mymenus/language/english/mymenus.php XoopsModules/mymenus/trunk/mymenus/plugins/mymenus/language/french/mymenus.php XoopsModules/mymenus/trunk/mymenus/plugins/mymenus/mymenus.php XoopsModules/mymenus/trunk/mymenus/plugins/smarty/smarty.php XoopsModules/mymenus/trunk/mymenus/skins/breadcrumb/skin_version.php XoopsModules/mymenus/trunk/mymenus/skins/default/skin_version.php XoopsModules/mymenus/trunk/mymenus/skins/mainmenu/skin_version.php XoopsModules/mymenus/trunk/mymenus/skins/multiblack/skin_version.php XoopsModules/mymenus/trunk/mymenus/skins/superfish/skin_version.php XoopsModules/mymenus/trunk/mymenus/skins/superfish_navbar/skin_version.php XoopsModules/mymenus/trunk/mymenus/skins/tw_blue/skin_version.php XoopsModules/mymenus/trunk/mymenus/skins/tw_red/skin_version.php XoopsModules/mymenus/trunk/mymenus/xoops_version.php Added Paths: ----------- XoopsModules/mymenus/trunk/mymenus/docs/credits.txt Modified: XoopsModules/mymenus/trunk/mymenus/admin/about.php =================================================================== --- XoopsModules/mymenus/trunk/mymenus/admin/about.php 2012-05-23 02:49:25 UTC (rev 9581) +++ XoopsModules/mymenus/trunk/mymenus/admin/about.php 2012-05-23 07:30:18 UTC (rev 9582) @@ -1,30 +1,30 @@ -<?php -/* - 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 http://www.gnu.org/licenses/gpl-2.0.html GNU Public License - * @package Mytabs - * @since 1.0 - * @author trabis <lus...@gm...> - * @version $Id: about.php 0 2009-11-14 18:47:04Z trabis $ - */ - -include_once dirname(__FILE__) . '/admin_header.php'; - -xoops_cp_header(); - -$aboutAdmin = new ModuleAdmin(); - -echo $aboutAdmin->addNavigation('about.php'); -echo $aboutAdmin->renderAbout('6KJ7RW5DR3VTJ', false); - +<?php +/* + 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 http://www.gnu.org/licenses/gpl-2.0.html GNU Public License + * @package Mytabs + * @since 1.0 + * @author trabis <lus...@gm...> + * @version $Id: about.php 0 2009-11-14 18:47:04Z trabis $ + */ + +include_once dirname(__FILE__) . '/admin_header.php'; + +xoops_cp_header(); + +$aboutAdmin = new ModuleAdmin(); + +echo $aboutAdmin->addNavigation('about.php'); +echo $aboutAdmin->renderAbout('6KJ7RW5DR3VTJ', false); + include 'admin_footer.php'; \ No newline at end of file Modified: XoopsModules/mymenus/trunk/mymenus/admin/admin_about.php =================================================================== --- XoopsModules/mymenus/trunk/mymenus/admin/admin_about.php 2012-05-23 02:49:25 UTC (rev 9581) +++ XoopsModules/mymenus/trunk/mymenus/admin/admin_about.php 2012-05-23 07:30:18 UTC (rev 9582) @@ -1,27 +1,27 @@ -<?php -/* - 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 http://www.gnu.org/licenses/gpl-2.0.html GNU Public License - * @package Mymenus - * @since 1.0 - * @author trabis <lus...@gm...> - * @version $Id: about.php 0 2010-07-21 18:47:04Z trabis $ - */ - -include_once dirname(__FILE__) . '/admin_header.php'; -include_once XOOPS_ROOT_PATH . '/modules/mymenus/class/about.php'; - -$aboutObj = new MymenusAbout(); -$aboutObj->render(); - +<?php +/* + 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 http://www.gnu.org/licenses/gpl-2.0.html GNU Public License + * @package Mymenus + * @since 1.0 + * @author trabis <lus...@gm...> + * @version $Id: about.php 0 2010-07-21 18:47:04Z trabis $ + */ + +include_once dirname(__FILE__) . '/admin_header.php'; +include_once XOOPS_ROOT_PATH . '/modules/mymenus/class/about.php'; + +$aboutObj = new MymenusAbout(); +$aboutObj->render(); + ?> \ No newline at end of file Modified: XoopsModules/mymenus/trunk/mymenus/admin/admin_header.php =================================================================== --- XoopsModules/mymenus/trunk/mymenus/admin/admin_header.php 2012-05-23 02:49:25 UTC (rev 9581) +++ XoopsModules/mymenus/trunk/mymenus/admin/admin_header.php 2012-05-23 07:30:18 UTC (rev 9582) @@ -1,49 +1,49 @@ -<?php -/* - 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 http://www.gnu.org/licenses/gpl-2.0.html GNU Public License - * @package Mymenus - * @since 1.0 - * @author trabis <lus...@gm...> - * @version $Id: admin_header.php 0 2010-07-21 18:47:04Z trabis $ - */ - -require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/include/cp_header.php'; - -include_once $GLOBALS['xoops']->path('class/template.php'); -include_once $GLOBALS['xoops']->path('modules/mymenus/include/functions.php'); -include_once $GLOBALS['xoops']->path('modules/mymenus/class/registry.php'); -include_once $GLOBALS['xoops']->path('modules/mymenus/class/plugin.php'); - -xoops_load('XoopsFormLoader'); -xoops_loadLanguage('modinfo', 'mymenus'); - -$mymenusTpl = new XoopsTpl(); - -if ( file_exists($GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'))){ - include_once $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'); - //return true; - }else{ - redirect_header("../../../admin.php", 5, _AM_MODULEADMIN_MISSING, false); - //return false; - } - -global $xoopsModule; -$pathIcon16 = '../'.$xoopsModule->getInfo('icons16'); -$pathIcon32 = '../'.$xoopsModule->getInfo('icons32'); - -if (!isset($xoopsTpl) || !is_object($xoopsTpl)) { - include_once(XOOPS_ROOT_PATH."/class/template.php"); - $xoopsTpl = new XoopsTpl(); -} +<?php +/* + 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 http://www.gnu.org/licenses/gpl-2.0.html GNU Public License + * @package Mymenus + * @since 1.0 + * @author trabis <lus...@gm...> + * @version $Id: admin_header.php 0 2010-07-21 18:47:04Z trabis $ + */ + +require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/include/cp_header.php'; + +include_once $GLOBALS['xoops']->path('class/template.php'); +include_once $GLOBALS['xoops']->path('modules/mymenus/include/functions.php'); +include_once $GLOBALS['xoops']->path('modules/mymenus/class/registry.php'); +include_once $GLOBALS['xoops']->path('modules/mymenus/class/plugin.php'); + +xoops_load('XoopsFormLoader'); +xoops_loadLanguage('modinfo', 'mymenus'); + +$mymenusTpl = new XoopsTpl(); + +if ( file_exists($GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'))){ + include_once $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'); + //return true; + }else{ + redirect_header("../../../admin.php", 5, _AM_MODULEADMIN_MISSING, false); + //return false; + } + +global $xoopsModule; +$pathIcon16 = '../'.$xoopsModule->getInfo('icons16'); +$pathIcon32 = '../'.$xoopsModule->getInfo('icons32'); + +if (!isset($xoopsTpl) || !is_object($xoopsTpl)) { + include_once(XOOPS_ROOT_PATH."/class/template.php"); + $xoopsTpl = new XoopsTpl(); +} $xoopsTpl->assign('pathIcon16', $pathIcon16); \ No newline at end of file Modified: XoopsModules/mymenus/trunk/mymenus/admin/admin_menu.php =================================================================== --- XoopsModules/mymenus/trunk/mymenus/admin/admin_menu.php 2012-05-23 02:49:25 UTC (rev 9581) +++ XoopsModules/mymenus/trunk/mymenus/admin/admin_menu.php 2012-05-23 07:30:18 UTC (rev 9582) @@ -1,403 +1,402 @@ -<?php -/* - 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 http://www.gnu.org/licenses/gpl-2.0.html GNU Public License - * @package Mymenus - * @since 1.0 - * @author trabis <lus...@gm...> - * @version $Id: admin_menu.php 0 2010-07-21 18:47:04Z trabis $ - */ - -include_once dirname(__FILE__) . '/admin_header.php'; - -$menus_handler =& xoops_getModuleHandler('menus', 'mymenus'); -$criteria = new CriteriaCompo(); -$criteria->setSort('title'); -$criteria->setOrder('ASC'); -$menus_list = $menus_handler->getList($criteria); - -$indexAdmin = new ModuleAdmin(); - -if (empty($menus_list)) { - redirect_header('admin_menus.php', 1, _AM_MYMENUS_MSG_NOMENUS); - exit; -} - -if (isset($_REQUEST['menu_id']) && in_array($_REQUEST['menu_id'], array_keys($menus_list))){ - $menu_id = $_REQUEST['menu_id']; - $menu_title = $menus_list[$menu_id]; -} else { - $keys = array_keys($menus_list); - $menu_id = $keys[0]; - $menu_title = $menus_list[$menu_id]; -} - -$mymenusTpl->assign('menu_id', $menu_id); -$mymenusTpl->assign('menu_title', $menu_title); -$mymenusTpl->assign('menus_list', $menus_list); - - -$op = isset($_GET['op']) ? trim($_GET['op']) : (isset($_POST['op']) ? trim($_POST['op']) : 'list'); - -$id = isset($_GET['id']) ? intval($_GET['id']) : (isset($_POST['id']) ? intval($_POST['id']) : null); -$pid = isset($_GET['pid']) ? intval($_GET['pid']) : (isset($_POST['pid']) ? intval($_POST['pid']) : null); - -$limit = isset($_GET['limit']) ? intval($_GET['limit']) : (isset($_POST['limit']) ? intval($_POST['limit']) : 15); -$start = isset($_GET['start']) ? intval($_GET['start']) : (isset($_POST['start']) ? intval($_POST['start']) : 0); -$redir = isset($_GET['redir']) ? $_GET['redir'] : (isset($_POST['redir']) ? $_POST['redir'] : null); - -$weight = isset($_GET['weight']) ? intval($_GET['weight']) : (isset($_POST['weight']) ? intval($_POST['weight']) : 0); -$visible = isset($_GET['visible']) ? intval($_GET['visible']) : (isset($_POST['visible']) ? intval($_POST['visible']) : 0); - -$mymenus_adminpage = 'admin_menu.php'; - -switch ($op) { - case 'add': - mymenus_admin_add(); - break; - case 'form': - xoops_cp_header(); - mymenus_adminMenu(1, _MI_MYMENUS_MENUMANAGER); - echo mymenus_admin_form(null, $pid); - xoops_cp_footer(); - break; - case 'edit': - xoops_cp_header(); - mymenus_adminMenu(1, _MI_MYMENUS_MENUMANAGER); - echo mymenus_admin_form($id); - xoops_cp_footer(); - break; - case 'editok': - mymenus_admin_edit($id); - break; - case 'del': - mymenus_admin_confirmdel($id, $redir); - break; - case 'delok': - mymenus_admin_del($id, $redir); - break; - case 'delall': - mymenus_admin_confirmdel(null, $redir, 'delallok'); - break; - case 'delallok': - mymenus_admin_delall($redir); - break; - case 'move': - xoops_cp_header(); - mymenus_adminMenu(1, _MI_MYMENUS_MENUMANAGER); - mymenus_admin_move($id, $weight); - echo mymenus_admin_list($start); - xoops_cp_footer(); - break; - case 'toggle': - xoops_cp_header(); - mymenus_adminMenu(1, _MI_MYMENUS_MENUMANAGER); - mymenus_admin_toggle($id, $visible); - echo mymenus_admin_list($start); - xoops_cp_footer(); - break; - case 'list': - default: - xoops_cp_header(); - echo $indexAdmin->addNavigation('admin_menus.php'); - //mymenus_adminMenu(1, _MI_MYMENUS_MENUMANAGER); - echo mymenus_admin_list($start); - include 'admin_footer.php'; - break; -} - -function mymenus_admin_list($start = 0) -{ - global $mymenusTpl, $menu_id; - - $this_handler =& xoops_getModuleHandler('menu', 'mymenus'); - - $criteria = new CriteriaCompo(new Criteria('mid', $menu_id)); - //$criteria->add(new Criteria('pid', 0)); - - $count = $this_handler->getCount($criteria); - $mymenusTpl->assign('count', $count); - $criteria->setSort('weight'); - $criteria->setOrder('ASC'); - - $menus = array(); - $menusArray = array(); - if ($count > 0) { - $menus = $this_handler->getObjects($criteria); - foreach ($menus as $menu) { - $array[] = $menu->getValues(); - } - include_once $GLOBALS['xoops']->path('modules/mymenus/class/builder.php'); - $builder = new MymenusBuilder($array); - $menusArray = $builder->render(); - $mymenusTpl->assign('menus', $menusArray); - } - - $mymenusTpl->assign('addform', mymenus_admin_form()); - - return $mymenusTpl->fetch($GLOBALS['xoops']->path('modules/mymenus/templates/static/mymenus_admin_menu.html')); -} - -function mymenus_admin_del($id, $redir = null) -{ - if (!$GLOBALS['xoopsSecurity']->check()) { - redirect_header($GLOBALS['mymenus_adminpage'], 1, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())); - } - - if ($id <= 0) { - redirect_header($GLOBALS['mymenus_adminpage'], 1); - } - - $this_handler =& xoops_getModuleHandler('menu' , 'mymenus'); - $obj = $this_handler->get($id); - if (!is_object($obj)) { - redirect_header($GLOBALS['mymenus_adminpage'], 1); - } - - if (!$this_handler->delete($obj)) { - xoops_cp_header(); - xoops_error(_AM_MYMENUS_MSG_ERROR, $obj->getVar('id')); - xoops_cp_footer(); - exit(); - } - - redirect_header(!is_null($redir) ? base64_decode($redir) : $GLOBALS['mymenus_adminpage'] , 2, _AM_MYMENUS_MSG_SUCCESS); -} - -function mymenus_admin_delall($redir = null) -{ - if (!$GLOBALS['xoopsSecurity']->check()) { - redirect_header($GLOBALS['mymenus_adminpage'], 1, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())); - } - - $this_handler =& xoops_getModuleHandler('menu' , 'mymenus'); - - if (!$this_handler->deleteAll()) { - redirect_header(!is_null($redir) ? base64_decode($redir) : $GLOBALS['mymenus_adminpage'] , 2, _AM_MYMENUS_ERROR); - } - - redirect_header(!is_null($redir) ? base64_decode($redir) : $GLOBALS['mymenus_adminpage'] , 2, _AM_MYMENUS_SUCCESS); -} - -function mymenus_admin_confirmdel($id = null, $redir = null, $op = 'delok') -{ - - $arr = array(); - $arr['op'] = $op; - $arr['id'] = $id; - if (!is_null($redir)){ - $arr['redir'] = $redir; - } - - xoops_cp_header(); - xoops_confirm($arr, $GLOBALS['mymenus_adminpage'], _AM_MYMENUS_MSG_AYS); - xoops_cp_footer(); -} - - -function mymenus_admin_add() -{ - if (!$GLOBALS['xoopsSecurity']->check()) { - redirect_header($GLOBALS['mymenus_adminpage'], 3, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())); - } - - $this_handler =& xoops_getModuleHandler('menu','mymenus'); - $criteria = new CriteriaCompo(new Criteria('mid', $_POST['mid'])); - $criteria->setSort('weight'); - $criteria->setOrder('DESC'); - $criteria->setLimit(1); - $menus = $this_handler->getObjects($criteria); - $weight = 1; - if (isset($menus[0]) && is_object($menus[0])) { - $weight = $menus[0]->getVar('weight') + 1; - } - - $obj = $this_handler->create(); - if (!isset($_POST['hooks'])) { - $_POST['hooks'] = array(); - } - $obj->setVars($_POST); - $obj->setVar('weight', $weight); - - if (!$this_handler->insert($obj)){ - $msg = _AM_MYMENUS_MSG_ERROR; - } else { - $this_handler->update_weights($obj); - $msg = _AM_MYMENUS_MSG_SUCCESS; - } - - redirect_header($GLOBALS['mymenus_adminpage'] . '?op=list&menu_id=' . $obj->getVar('mid'), 2, $msg); -} - -function mymenus_admin_edit($id) -{ - if (!$GLOBALS['xoopsSecurity']->check()) { - redirect_header($GLOBALS['mymenus_adminpage'], 3, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())); - } - - $this_handler =& xoops_getModuleHandler('menu','mymenus'); - $obj = $this_handler->get($id); - if (!isset($_POST['hooks'])) { - $_POST['hooks'] = array(); - } - $obj->setVars($_POST); - - if (!$this_handler->insert($obj)){ - $msg = _AM_MYMENUS_MSG_ERROR; - }else{ - $msg = _AM_MYMENUS_MSG_SUCCESS; - } - - redirect_header($GLOBALS['mymenus_adminpage'] . '?op=list', 2, $msg); -} - -function mymenus_admin_form($id = null, $pid = null) -{ - global $menu_id; - - $registry =& MymenusRegistry::getInstance(); - $plugin =& MymenusPlugin::getInstance(); - - $this_handler =& xoops_getModuleHandler('menu','mymenus'); - $objArray = array(); - - if (isset($id)) { - $ftitle = _EDIT; - $obj = $this_handler->get($id); - $objArray = $obj->getValues(); - - } else { - $ftitle = _ADD; - $obj = $this_handler->create(); - $objArray = $obj->getValues(); - if (isset($pid)) { - $objArray['pid'] = $pid; - } - } - - $form = new XoopsThemeForm($ftitle, 'admin_form', $GLOBALS['mymenus_adminpage'], "post", true); - $formtitle = new XoopsFormText(_AM_MYMENUS_MENU_TITLE, 'title', 50, 255, $objArray['title']); - $formalttitle = new XoopsFormText(_AM_MYMENUS_MENU_ALTTITLE, 'alt_title', 50, 255, $objArray['alt_title']); - - $formlink = new XoopsFormText(_AM_MYMENUS_MENU_LINK, 'link', 50, 255, $objArray['link']); - /*$plugin->triggerEvent('FormLinkDescription'); - $formlink->setDescription($registry->getEntry('form_link_description')); */ - $formimage = new XoopsFormText(_AM_MYMENUS_MENU_IMAGE, 'image', 50, 255, $objArray['image']); - - $criteria = new CriteriaCompo(new Criteria('mid', $menu_id)); - $criteria->add(new Criteria('id', $id, '<>')); - // $criteria->add(new Criteria('pid', 0)); - $criteria->setSort('weight'); - $criteria->setOrder('ASC'); - - $results = $this_handler->getAll($criteria, array('title', 'id', 'pid')/*, false, false*/); - include_once $GLOBALS['xoops']->path('class/tree.php'); - $parent_tree = new XoopsObjectTree($results, 'id', 'pid'); - $parent_select = $parent_tree->makeSelBox('pid', 'title', '-- ', $objArray['pid'], true); - $formparent = new XoopsFormLabel(_AM_MYMENUS_MENU_PARENT, $parent_select); -//---------------mamba -// $formvis = new XoopsFormSelect(_AM_MYMENUS_MENU_VISIBLE, "visible", $objArray['visible']); -// $formvis->addOption("0", _NO); -// $formvis->addOption("1", _YES); - - global $xoopsModule; - $pathIcon16 = '../'.$xoopsModule->getInfo('icons16'); - - $statontxt - = " <img src=". $pathIcon16 .'/1.png'.' '. "alt='" ._YES . "' /> " . _YES - . " "; - $statofftxt - = " <img src=". $pathIcon16 .'/0.png' .' '."alt='" . _NO . "' /> " - . _NO . " "; - $formvis = new XoopsFormRadioYN(_AM_MYMENUS_MENU_VISIBLE, 'visible', $objArray['visible'], $statontxt, $statofftxt); -//---------------mamba - - $formtarget = new XoopsFormSelect(_AM_MYMENUS_MENU_TARGET, "target", $objArray['target']); - $formtarget->addOption("_self", _AM_MYMENUS_MENU_TARG_SELF); - $formtarget->addOption("_blank", _AM_MYMENUS_MENU_TARG_BLANK); - $formtarget->addOption("_parent", _AM_MYMENUS_MENU_TARG_PARENT); - $formtarget->addOption("_top", _AM_MYMENUS_MENU_TARG_TOP); - - $formgroups = new XoopsFormSelectGroup(_AM_MYMENUS_MENU_GROUPS, "groups", true, $objArray['groups'], 5, true); - $formgroups->setDescription(_AM_MYMENUS_MENU_GROUPS_HELP); - - //$formhooks = new XoopsFormTextArea(_AM_MYMENUS_MENU_HOOKS, "hooks", $objArray['hooks'], 7, 60); - - $formhooks = new XoopsFormSelect(_AM_MYMENUS_MENU_ACCESS_FILTER, "hooks", $objArray['hooks'], 5, true); - $plugin->triggerEvent('AccessFilter'); - $results = $registry->getEntry('access_filter'); - if ($results) { - foreach ($results as $result) { - $formhooks->addOption($result['method'], $result['name']); - } - } - - $formcss = new XoopsFormText(_AM_MYMENUS_MENU_CSS, 'css', 50, 255, $objArray['css']); - - $form->addElement($formtitle, true); - $form->addElement($formalttitle); - $form->addElement($formlink); - $form->addElement($formimage); - $form->addElement($formparent); - $form->addElement($formvis); - $form->addElement($formtarget); - $form->addElement($formgroups); - $form->addElement($formhooks); - $form->addElement($formcss); - //$form->addElement($formhooks2); - - $tray = new XoopsFormElementTray('' ,''); - $tray->addElement(new XoopsFormButton('', 'submit_button', _SUBMIT, 'submit')); - - $btn = new XoopsFormButton('', 'reset', _CANCEL, 'button'); - - if (isset($id)){ - $btn->setExtra('onclick="document.location.href=\'' . $GLOBALS['mymenus_adminpage'] . '?op=list&menu_id=' . $menu_id . ' \'"'); - }else{ - $btn->setExtra('onclick="document.getElementById(\'addform\').style.display = \'none\'; return false;"'); - } - - $tray->addElement($btn); - $form->addElement($tray); - - if (isset($id)){ - $form->addElement(new XoopsFormHidden('op', 'editok')); - $form->addElement(new XoopsFormHidden('id', $id)); - }else{ - $form->addElement(new XoopsFormHidden('op', 'add')); - } - - $form->addElement(new XoopsFormHidden('mid', $menu_id)); - - return $form->render(); -} - -function mymenus_admin_move($id, $weight) -{ - $this_handler =& xoops_getModuleHandler('menu', 'mymenus'); - $obj = $this_handler->get($id); - $obj->setVar('weight', $weight); - $this_handler->insert($obj); - $this_handler->update_weights($obj); -} - -function mymenus_admin_toggle($id, $visible) -{ - $visible = ($visible == 1) ? 0 : 1; - $this_handler =& xoops_getModuleHandler('menu', 'mymenus'); - $obj = $this_handler->get($id); - $obj->setVar('visible', $visible); - $this_handler->insert($obj); -} - +<?php +/* + 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 http://www.gnu.org/licenses/gpl-2.0.html GNU Public License + * @package Mymenus + * @since 1.0 + * @author trabis <lus...@gm...> + * @version $Id: admin_menu.php 0 2010-07-21 18:47:04Z trabis $ + */ + +include_once dirname(__FILE__) . '/admin_header.php'; + +$menus_handler =& xoops_getModuleHandler('menus', 'mymenus'); +$criteria = new CriteriaCompo(); +$criteria->setSort('title'); +$criteria->setOrder('ASC'); +$menus_list = $menus_handler->getList($criteria); + +$indexAdmin = new ModuleAdmin(); + +if (empty($menus_list)) { + redirect_header('admin_menus.php', 1, _AM_MYMENUS_MSG_NOMENUS); + exit; +} + +if (isset($_REQUEST['menu_id']) && in_array($_REQUEST['menu_id'], array_keys($menus_list))){ + $menu_id = $_REQUEST['menu_id']; + $menu_title = $menus_list[$menu_id]; +} else { + $keys = array_keys($menus_list); + $menu_id = $keys[0]; + $menu_title = $menus_list[$menu_id]; +} + +$mymenusTpl->assign('menu_id', $menu_id); +$mymenusTpl->assign('menu_title', $menu_title); +$mymenusTpl->assign('menus_list', $menus_list); + + +$op = isset($_GET['op']) ? trim($_GET['op']) : (isset($_POST['op']) ? trim($_POST['op']) : 'list'); + +$id = isset($_GET['id']) ? intval($_GET['id']) : (isset($_POST['id']) ? intval($_POST['id']) : null); +$pid = isset($_GET['pid']) ? intval($_GET['pid']) : (isset($_POST['pid']) ? intval($_POST['pid']) : null); + +$limit = isset($_GET['limit']) ? intval($_GET['limit']) : (isset($_POST['limit']) ? intval($_POST['limit']) : 15); +$start = isset($_GET['start']) ? intval($_GET['start']) : (isset($_POST['start']) ? intval($_POST['start']) : 0); +$redir = isset($_GET['redir']) ? $_GET['redir'] : (isset($_POST['redir']) ? $_POST['redir'] : null); + +$weight = isset($_GET['weight']) ? intval($_GET['weight']) : (isset($_POST['weight']) ? intval($_POST['weight']) : 0); +$visible = isset($_GET['visible']) ? intval($_GET['visible']) : (isset($_POST['visible']) ? intval($_POST['visible']) : 0); + +$mymenus_adminpage = 'admin_menu.php'; + +switch ($op) { + case 'add': + mymenus_admin_add(); + break; + case 'form': + xoops_cp_header(); + echo $indexAdmin->addNavigation('admin_menu.php'); + echo mymenus_admin_form(null, $pid); + include 'admin_footer.php'; + break; + case 'edit': + xoops_cp_header(); + echo $indexAdmin->addNavigation('admin_menu.php'); + echo mymenus_admin_form($id); + include 'admin_footer.php'; + break; + case 'editok': + mymenus_admin_edit($id); + break; + case 'del': + mymenus_admin_confirmdel($id, $redir); + break; + case 'delok': + mymenus_admin_del($id, $redir); + break; + case 'delall': + mymenus_admin_confirmdel(null, $redir, 'delallok'); + break; + case 'delallok': + mymenus_admin_delall($redir); + break; + case 'move': + xoops_cp_header(); + echo $indexAdmin->addNavigation('admin_menu.php'); + mymenus_admin_move($id, $weight); + echo mymenus_admin_list($start); + include 'admin_footer.php'; + break; + case 'toggle': + xoops_cp_header(); + echo $indexAdmin->addNavigation('admin_menu.php'); + mymenus_admin_toggle($id, $visible); + echo mymenus_admin_list($start); + include 'admin_footer.php'; + break; + case 'list': + default: + xoops_cp_header(); + echo $indexAdmin->addNavigation('admin_menu.php'); + echo mymenus_admin_list($start); + include 'admin_footer.php'; + break; +} + +function mymenus_admin_list($start = 0) +{ + global $mymenusTpl, $menu_id; + + $this_handler =& xoops_getModuleHandler('menu', 'mymenus'); + + $criteria = new CriteriaCompo(new Criteria('mid', $menu_id)); + //$criteria->add(new Criteria('pid', 0)); + + $count = $this_handler->getCount($criteria); + $mymenusTpl->assign('count', $count); + $criteria->setSort('weight'); + $criteria->setOrder('ASC'); + + $menus = array(); + $menusArray = array(); + if ($count > 0) { + $menus = $this_handler->getObjects($criteria); + foreach ($menus as $menu) { + $array[] = $menu->getValues(); + } + include_once $GLOBALS['xoops']->path('modules/mymenus/class/builder.php'); + $builder = new MymenusBuilder($array); + $menusArray = $builder->render(); + $mymenusTpl->assign('menus', $menusArray); + } + + $mymenusTpl->assign('addform', mymenus_admin_form()); + + return $mymenusTpl->fetch($GLOBALS['xoops']->path('modules/mymenus/templates/static/mymenus_admin_menu.html')); +} + +function mymenus_admin_del($id, $redir = null) +{ + if (!$GLOBALS['xoopsSecurity']->check()) { + redirect_header($GLOBALS['mymenus_adminpage'], 1, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())); + } + + if ($id <= 0) { + redirect_header($GLOBALS['mymenus_adminpage'], 1); + } + + $this_handler =& xoops_getModuleHandler('menu' , 'mymenus'); + $obj = $this_handler->get($id); + if (!is_object($obj)) { + redirect_header($GLOBALS['mymenus_adminpage'], 1); + } + + if (!$this_handler->delete($obj)) { + xoops_cp_header(); + xoops_error(_AM_MYMENUS_MSG_ERROR, $obj->getVar('id')); + xoops_cp_footer(); + exit(); + } + + redirect_header(!is_null($redir) ? base64_decode($redir) : $GLOBALS['mymenus_adminpage'] , 2, _AM_MYMENUS_MSG_SUCCESS); +} + +function mymenus_admin_delall($redir = null) +{ + if (!$GLOBALS['xoopsSecurity']->check()) { + redirect_header($GLOBALS['mymenus_adminpage'], 1, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())); + } + + $this_handler =& xoops_getModuleHandler('menu' , 'mymenus'); + + if (!$this_handler->deleteAll()) { + redirect_header(!is_null($redir) ? base64_decode($redir) : $GLOBALS['mymenus_adminpage'] , 2, _AM_MYMENUS_ERROR); + } + + redirect_header(!is_null($redir) ? base64_decode($redir) : $GLOBALS['mymenus_adminpage'] , 2, _AM_MYMENUS_SUCCESS); +} + +function mymenus_admin_confirmdel($id = null, $redir = null, $op = 'delok') +{ + + $arr = array(); + $arr['op'] = $op; + $arr['id'] = $id; + if (!is_null($redir)){ + $arr['redir'] = $redir; + } + + xoops_cp_header(); + xoops_confirm($arr, $GLOBALS['mymenus_adminpage'], _AM_MYMENUS_MSG_AYS); + xoops_cp_footer(); +} + + +function mymenus_admin_add() +{ + if (!$GLOBALS['xoopsSecurity']->check()) { + redirect_header($GLOBALS['mymenus_adminpage'], 3, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())); + } + + $this_handler =& xoops_getModuleHandler('menu','mymenus'); + $criteria = new CriteriaCompo(new Criteria('mid', $_POST['mid'])); + $criteria->setSort('weight'); + $criteria->setOrder('DESC'); + $criteria->setLimit(1); + $menus = $this_handler->getObjects($criteria); + $weight = 1; + if (isset($menus[0]) && is_object($menus[0])) { + $weight = $menus[0]->getVar('weight') + 1; + } + + $obj = $this_handler->create(); + if (!isset($_POST['hooks'])) { + $_POST['hooks'] = array(); + } + $obj->setVars($_POST); + $obj->setVar('weight', $weight); + + if (!$this_handler->insert($obj)){ + $msg = _AM_MYMENUS_MSG_ERROR; + } else { + $this_handler->update_weights($obj); + $msg = _AM_MYMENUS_MSG_SUCCESS; + } + + redirect_header($GLOBALS['mymenus_adminpage'] . '?op=list&menu_id=' . $obj->getVar('mid'), 2, $msg); +} + +function mymenus_admin_edit($id) +{ + if (!$GLOBALS['xoopsSecurity']->check()) { + redirect_header($GLOBALS['mymenus_adminpage'], 3, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())); + } + + $this_handler =& xoops_getModuleHandler('menu','mymenus'); + $obj = $this_handler->get($id); + if (!isset($_POST['hooks'])) { + $_POST['hooks'] = array(); + } + $obj->setVars($_POST); + + if (!$this_handler->insert($obj)){ + $msg = _AM_MYMENUS_MSG_ERROR; + }else{ + $msg = _AM_MYMENUS_MSG_SUCCESS; + } + + redirect_header($GLOBALS['mymenus_adminpage'] . '?op=list', 2, $msg); +} + +function mymenus_admin_form($id = null, $pid = null) +{ + global $menu_id; + + $registry =& MymenusRegistry::getInstance(); + $plugin =& MymenusPlugin::getInstance(); + + $this_handler =& xoops_getModuleHandler('menu','mymenus'); + $objArray = array(); + + if (isset($id)) { + $ftitle = _EDIT; + $obj = $this_handler->get($id); + $objArray = $obj->getValues(); + + } else { + $ftitle = _ADD; + $obj = $this_handler->create(); + $objArray = $obj->getValues(); + if (isset($pid)) { + $objArray['pid'] = $pid; + } + } + + $form = new XoopsThemeForm($ftitle, 'admin_form', $GLOBALS['mymenus_adminpage'], "post", true); + $formtitle = new XoopsFormText(_AM_MYMENUS_MENU_TITLE, 'title', 50, 255, $objArray['title']); + $formalttitle = new XoopsFormText(_AM_MYMENUS_MENU_ALTTITLE, 'alt_title', 50, 255, $objArray['alt_title']); + + $formlink = new XoopsFormText(_AM_MYMENUS_MENU_LINK, 'link', 50, 255, $objArray['link']); + /*$plugin->triggerEvent('FormLinkDescription'); + $formlink->setDescription($registry->getEntry('form_link_description')); */ + $formimage = new XoopsFormText(_AM_MYMENUS_MENU_IMAGE, 'image', 50, 255, $objArray['image']); + + $criteria = new CriteriaCompo(new Criteria('mid', $menu_id)); + $criteria->add(new Criteria('id', $id, '<>')); + // $criteria->add(new Criteria('pid', 0)); + $criteria->setSort('weight'); + $criteria->setOrder('ASC'); + + $results = $this_handler->getAll($criteria, array('title', 'id', 'pid')/*, false, false*/); + include_once $GLOBALS['xoops']->path('class/tree.php'); + $parent_tree = new XoopsObjectTree($results, 'id', 'pid'); + $parent_select = $parent_tree->makeSelBox('pid', 'title', '-- ', $objArray['pid'], true); + $formparent = new XoopsFormLabel(_AM_MYMENUS_MENU_PARENT, $parent_select); +//---------------mamba +// $formvis = new XoopsFormSelect(_AM_MYMENUS_MENU_VISIBLE, "visible", $objArray['visible']); +// $formvis->addOption("0", _NO); +// $formvis->addOption("1", _YES); + + global $xoopsModule; + $pathIcon16 = '../'.$xoopsModule->getInfo('icons16'); + + $statontxt + = " <img src=". $pathIcon16 .'/1.png'.' '. "alt='" ._YES . "' /> " . _YES + . " "; + $statofftxt + = " <img src=". $pathIcon16 .'/0.png' .' '."alt='" . _NO . "' /> " + . _NO . " "; + $formvis = new XoopsFormRadioYN(_AM_MYMENUS_MENU_VISIBLE, 'visible', $objArray['visible'], $statontxt, $statofftxt); +//---------------mamba + + $formtarget = new XoopsFormSelect(_AM_MYMENUS_MENU_TARGET, "target", $objArray['target']); + $formtarget->addOption("_self", _AM_MYMENUS_MENU_TARG_SELF); + $formtarget->addOption("_blank", _AM_MYMENUS_MENU_TARG_BLANK); + $formtarget->addOption("_parent", _AM_MYMENUS_MENU_TARG_PARENT); + $formtarget->addOption("_top", _AM_MYMENUS_MENU_TARG_TOP); + + $formgroups = new XoopsFormSelectGroup(_AM_MYMENUS_MENU_GROUPS, "groups", true, $objArray['groups'], 5, true); + $formgroups->setDescription(_AM_MYMENUS_MENU_GROUPS_HELP); + + //$formhooks = new XoopsFormTextArea(_AM_MYMENUS_MENU_HOOKS, "hooks", $objArray['hooks'], 7, 60); + + $formhooks = new XoopsFormSelect(_AM_MYMENUS_MENU_ACCESS_FILTER, "hooks", $objArray['hooks'], 5, true); + $plugin->triggerEvent('AccessFilter'); + $results = $registry->getEntry('access_filter'); + if ($results) { + foreach ($results as $result) { + $formhooks->addOption($result['method'], $result['name']); + } + } + + $formcss = new XoopsFormText(_AM_MYMENUS_MENU_CSS, 'css', 50, 255, $objArray['css']); + + $form->addElement($formtitle, true); + $form->addElement($formalttitle); + $form->addElement($formlink); + $form->addElement($formimage); + $form->addElement($formparent); + $form->addElement($formvis); + $form->addElement($formtarget); + $form->addElement($formgroups); + $form->addElement($formhooks); + $form->addElement($formcss); + //$form->addElement($formhooks2); + + $tray = new XoopsFormElementTray('' ,''); + $tray->addElement(new XoopsFormButton('', 'submit_button', _SUBMIT, 'submit')); + + $btn = new XoopsFormButton('', 'reset', _CANCEL, 'button'); + + if (isset($id)){ + $btn->setExtra('onclick="document.location.href=\'' . $GLOBALS['mymenus_adminpage'] . '?op=list&menu_id=' . $menu_id . ' \'"'); + }else{ + $btn->setExtra('onclick="document.getElementById(\'addform\').style.display = \'none\'; return false;"'); + } + + $tray->addElement($btn); + $form->addElement($tray); + + if (isset($id)){ + $form->addElement(new XoopsFormHidden('op', 'editok')); + $form->addElement(new XoopsFormHidden('id', $id)); + }else{ + $form->addElement(new XoopsFormHidden('op', 'add')); + } + + $form->addElement(new XoopsFormHidden('mid', $menu_id)); + + return $form->render(); +} + +function mymenus_admin_move($id, $weight) +{ + $this_handler =& xoops_getModuleHandler('menu', 'mymenus'); + $obj = $this_handler->get($id); + $obj->setVar('weight', $weight); + $this_handler->insert($obj); + $this_handler->update_weights($obj); +} + +function mymenus_admin_toggle($id, $visible) +{ + $visible = ($visible == 1) ? 0 : 1; + $this_handler =& xoops_getModuleHandler('menu', 'mymenus'); + $obj = $this_handler->get($id); + $obj->setVar('visible', $visible); + $this_handler->insert($obj); +} + ?> \ No newline at end of file Modified: XoopsModules/mymenus/trunk/mymenus/admin/admin_menus.php =================================================================== --- XoopsModules/mymenus/trunk/mymenus/admin/admin_menus.php 2012-05-23 02:49:25 UTC (rev 9581) +++ XoopsModules/mymenus/trunk/mymenus/admin/admin_menus.php 2012-05-23 07:30:18 UTC (rev 9582) @@ -1,260 +1,260 @@ -<?php -/* - 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 http://www.gnu.org/licenses/gpl-2.0.html GNU Public License - * @package Mymenus - * @since 1.0 - * @author trabis <lus...@gm...> - * @version $Id: admin_menus.php 0 2010-07-21 18:47:04Z trabis $ - */ - -include_once dirname(__FILE__) . '/admin_header.php'; - -$op = isset($_GET['op']) ? trim($_GET['op']) : (isset($_POST['op']) ? trim($_POST['op']) : 'list'); - -$id = isset($_GET['id']) ? intval($_GET['id']) : (isset($_POST['id']) ? intval($_POST['id']) : null); - -$limit = isset($_GET['limit']) ? intval($_GET['limit']) : (isset($_POST['limit']) ? intval($_POST['limit']) : 15); -$start = isset($_GET['start']) ? intval($_GET['start']) : (isset($_POST['start']) ? intval($_POST['start']) : 0); -$redir = isset($_GET['redir']) ? $_GET['redir'] : (isset($_POST['redir']) ? $_POST['redir'] : null); - -$mymenus_adminpage = 'admin_menus.php'; - -$indexAdmin = new ModuleAdmin(); - -switch ($op) { - case 'add': - mymenus_admin_add(); - break; - case 'edit': - xoops_cp_header(); - echo $indexAdmin->addNavigation('admin_menus.php'); - //mymenus_adminMenu(0, _MI_MYMENUS_MENUSMANAGER); - echo mymenus_admin_form($id); - include 'admin_footer.php'; - break; - case 'editok': - mymenus_admin_edit($id); - break; - case 'del': - mymenus_admin_confirmdel($id, $redir); - break; - case 'delok': - mymenus_admin_del($id, $redir); - break; - case 'delall': - mymenus_admin_confirmdel(null, $redir, 'delallok'); - break; - case 'delallok': - mymenus_admin_delall($redir); - break; - case 'list': - default: - xoops_cp_header(); - echo $indexAdmin->addNavigation('admin_menus.php'); - //mymenus_adminMenu(0, _MI_MYMENUS_MENUSMANAGER); - echo mymenus_admin_list($start); - include 'admin_footer.php'; - break; -} - -function mymenus_admin_list($start = 0) -{ - global $mymenusTpl, $limit; - $myts =& MyTextSanitizer::getInstance(); - - $this_handler =& xoops_getModuleHandler('menus', 'mymenus'); - - $query = isset($_POST['query']) ? $_POST['query'] : null; - $mymenusTpl->assign('query', $query); - - $criteria = new CriteriaCompo(); - if (!is_null($query)) { - $crit = new CriteriaCompo(new Criteria('title', $myts->addSlashes($query).'%','LIKE')); - $criteria->add($crit); - } - - $count = $this_handler->getCount($criteria); - $mymenusTpl->assign('count', $count); - - $criteria->setStart($start); - $criteria->setLimit($limit); - $criteria->setSort('id'); - $criteria->setOrder('ASC'); - - if ($count > 0) { - if ($count > $limit) { - xoops_load('XoopsPagenav'); - $nav = new XoopsPageNav($count, $limit, $start, 'start', 'op=list'); - $mymenusTpl->assign('pag', '<div style="float:left; padding-top:2px;" align="center">' . $nav->renderNav() . '</div>'); - } else { - $mymenusTpl->assign('pag', ''); - } - - $objs = $this_handler->getObjects($criteria); - foreach ($objs as $obj) { - $objArray = $obj->getValues(); - $mymenusTpl->append('objs', $objArray); - unset($objArray); - } - unset($criteria, $objs); - } else { - $mymenusTpl->assign('pag', ''); - } - - $mymenusTpl->assign('addform', mymenus_admin_form()); - - return $mymenusTpl->fetch($GLOBALS['xoops']->path('modules/mymenus/templates/static/mymenus_admin_menus.html')); -} - -function mymenus_admin_del($id, $redir = null) -{ - if (!$GLOBALS['xoopsSecurity']->check()) { - redirect_header($GLOBALS['mymenus_adminpage'], 1, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())); - } - - if ($id <= 0) { - redirect_header($GLOBALS['mymenus_adminpage'], 1); - } - - $this_handler =& xoops_getModuleHandler('menus' , 'mymenus'); - $obj = $this_handler->get($id); - if (!is_object($obj)) { - redirect_header($GLOBALS['mymenus_adminpage'], 1); - } - - if (!$this_handler->delete($obj)) { - xoops_cp_header(); - xoops_error(_AM_MYMENUS_MSG_ERROR, $obj->getVar('id')); - xoops_cp_footer(); - exit(); - } - - $this_handler =& xoops_getModuleHandler('menu' , 'mymenus'); - $criteria = new Criteria('mid', $id); - $this_handler->deleteAll($criteria); - unset($criteria); - - redirect_header(!is_null($redir) ? base64_decode($redir) : $GLOBALS['mymenus_adminpage'] , 2, _AM_MYMENUS_MSG_SUCCESS); -} - -function mymenus_admin_delall($redir = null) -{ - if (!$GLOBALS['xoopsSecurity']->check()) { - redirect_header($GLOBALS['mymenus_adminpage'], 1, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())); - } - - $this_handler =& xoops_getModuleHandler('menus' , 'mymenus'); - - if (!$this_handler->deleteAll()) { - redirect_header(!is_null($redir) ? base64_decode($redir) : $GLOBALS['mymenus_adminpage'] , 2, _AM_MYMENUS_MSG_ERROR); - } - - redirect_header(!is_null($redir) ? base64_decode($redir) : $GLOBALS['mymenus_adminpage'] , 2, _AM_MYMENUS_MSG_SUCCESS); -} - -function mymenus_admin_confirmdel($id = null, $redir = null, $op = 'delok') -{ - $arr = array(); - $arr['op'] = $op; - $arr['id'] = $id; - if (!is_null($redir)) { - $arr['redir'] = $redir; - } - xoops_cp_header(); - xoops_confirm($arr, $GLOBALS['mymenus_adminpage'], _AM_MYMENUS_MSG_AYS); - xoops_cp_footer(); -} - - -function mymenus_admin_add() -{ - if (!$GLOBALS['xoopsSecurity']->check()) { - redirect_header($GLOBALS['mymenus_adminpage'], 3, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())); - } - - $this_handler =& xoops_getModuleHandler('menus','mymenus'); - $obj = $this_handler->create(); - $obj->setVars($_POST); - - if (!$this_handler->insert($obj)){ - $msg = _AM_MYMENUS_MSG_ERROR; - } else { - $msg = _AM_MYMENUS_MSG_SUCCESS; - } - - redirect_header($GLOBALS['mymenus_adminpage'] . '?op=list', 2, $msg); -} - -function mymenus_admin_edit($id) -{ - if (!$GLOBALS['xoopsSecurity']->check()) { - redirect_header($GLOBALS['mymenus_adminpage'], 3, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())); - } - $this_handler =& xoops_getmodulehandler('menus','mymenus'); - $obj = $this_handler->get($id); - $obj->setVars($_POST); - - if (!$this_handler->insert($obj)){ - $msg = _AM_MYMENUS_MSG_ERROR; - } else { - $msg = _AM_MYMENUS_MSG_SUCCESS; - } - - redirect_header($GLOBALS['mymenus_adminpage'] . '?op=list', 2, $msg); -} - -function mymenus_admin_form($id = null) -{ - $this_handler =& xoops_getmodulehandler('menus','mymenus'); - $objArray = array(); - - if (isset($id)) { - $ftitle = _EDIT; - $obj = $this_handler->get($id); - $objArray = $obj->getValues(); - - } else { - $ftitle = _ADD; - $obj = $this_handler->create(); - $objArray = $obj->getValues(); - } - - $form = new XoopsThemeForm($ftitle, 'admin_form', $GLOBALS['mymenus_adminpage'], "post", true); - $form->addElement(new XoopsFormText(_AM_MYMENUS_MENU_TITLE, 'title', 50, 255, $objArray['title']), true); - - $tray = new XoopsFormElementTray('' ,''); - $tray->addElement(new XoopsFormButton('', 'submit_button', _SUBMIT, 'submit')); - - $btn = new XoopsFormButton('', 'reset', _CANCEL, 'button'); - - if (isset($id)){ - $btn->setExtra('onclick="document.location.href=\'' . $GLOBALS['mymenus_adminpage'] . '?op=list\'"'); - }else{ - $btn->setExtra('onclick="document.getElementById(\'addform\').style.display = \'none\'; return false;"'); - } - - $tray->addElement($btn); - $form->addElement($tray); - - if (isset($id)) { - $form->addElement(new XoopsFormHidden('op', 'editok')); - $form->addElement(new XoopsFormHidden('id', $id)); - } else { - $form->addElement(new XoopsFormHidden('op', 'add')); - } - - return $form->render(); -} - +<?php +/* + 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 http://www.gnu.org/licenses/gpl-2.0.html GNU Public License + * @package Mymenus + * @since 1.0 + * @author trabis <lus...@gm...> + * @version $Id: admin_menus.php 0 2010-07-21 18:47:04Z trabis $ + */ + +include_once dirname(__FILE__) . '/admin_header.php'; + +$op = isset($_GET['op']) ? trim($_GET['op']) : (isset($_POST['op']) ? trim($_POST['op']) : 'list'); + +$id = isset($_GET['id']) ? intval($_GET['id']) : (isset($_POST['id']) ? intval($_POST['id']) : null); + +$limit = isset($_GET['limit']) ? intval($_GET['limit']) : (isset($_POST['limit']) ? intval($_POST['limit']) : 15); +$start = isset($_GET['start']) ? intval($_GET['start']) : (isset($_POST['start']) ? intval($_POST['start']) : 0); +$redir = isset($_GET['redir']) ? $_GET['redir'] : (isset($_POST['redir']) ? $_POST['redir'] : null); + +$mymenus_adminpage = 'admin_menus.php'; + +$indexAdmin = new ModuleAdmin(); + +switch ($op) { + case 'add': + mymenus_admin_add(); + break; + case 'edit': + xoops_cp_header(); + echo $indexAdmin->addNavigation('admin_menus.php'); + //mymenus_adminMenu(0, _MI_MYMENUS_MENUSMANAGER); + echo mymenus_admin_form($id); + include 'admin_footer.php'; + break; + case 'editok': + mymenus_admin_edit($id); + break; + case 'del': + mymenus_admin_confirmdel($id, $redir); + break; + case 'delok': + mymenus_admin_del($id, $redir); + break; + case 'delall': + mymenus_admin_confirmdel(null, $redir, 'delallok'); + break; + case 'delallok': + mymenus_admin_delall($redir); + break; + case 'list': + default: + xoops_cp_header(); + echo $indexAdmin->addNavigation('admin_menus.php'); + //mymenus_adminMenu(0, _MI_MYMENUS_MENUSMANAGER); + echo mymenus_admin_list($start); + include 'admin_footer.php'; + break; +} + +function mymenus_admin_list($start = 0) +{ + global $mymenusTpl, $limit; + $myts =& MyTextSanitizer::getInstance(); + + $this_handler =& xoops_getModuleHandler('menus', 'mymenus'); + + $query = isset($_POST['query']) ? $_POST['query'] : null; + $mymenusTpl->assign('query', $query); + + $criteria = new CriteriaCompo(); + if (!is_null($query)) { + $crit = new CriteriaCompo(new Criteria('title', $myts->addSlashes($query).'%','LIKE')); + $criteria->add($crit); + } + + $count = $this_handler->getCount($criteria); + $mymenusTpl->assign('count', $count); + + $criteria->setStart($start); + $criteria->setLimit($limit); + $criteria->setSort('id'); + $criteria->setOrder('ASC'); + + if ($count > 0) { + if ($count > $limit) { + xoops_load('XoopsPagenav'); + $nav = new XoopsPageNav($count, $limit, $start, 'start', 'op=list'); + $mymenusTpl->assign('pag', '<div style="float:left; padding-top:2px;" align="center">' . $nav->renderNav() . '</div>'); + } else { + $mymenusTpl->assign('pag', ''); + } + + $objs = $this_handler->getObjects($criteria); + foreach ($objs as $obj) { + $objArray = $obj->getValues(); + $mymenusTpl->append('objs', $objArray); + unset($objArray); + } + unset($criteria, $objs); + } else { + $mymenusTpl->assign('pag', ''); + } + + $mymenusTpl->assign('addform', mymenus_admin_form()); + + return $mymenusTpl->fetch($GLOBALS['xoops']->path('modules/mymenus/templates/static/mymenus_admin_menus.html')); +} + +function mymenus_admin_del($id, $redir = null) +{ + if (!$GLOBALS['xoopsSecurity']->check()) { + redirect_header($GLOBALS['mymenus_adminpage'], 1, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())); + } + + if ($id <= 0) { + redirect_header($GLOBALS['mymenus_adminpage'], 1); + } + + $this_handler =& xoops_getModuleHandler('menus' , 'mymenus'); + $obj = $this_handler->get($id); + if (!is_object($obj)) { + redirect_header($GLOBALS['mymenus_adminpage'], 1); + } + + if (!$this_handler->delete($obj)) { + xoops_cp_header(); + xoops_error(_AM_MYMENUS_MSG_ERROR, $obj->getVar('id')); + xoops_cp_footer(); + exit(); + } + + $this_handler =& xoops_getModuleHandler('menu' , 'mymenus'); + $criteria = new Criteria('mid', $id); + $this_handler->deleteAll($criteria); + unset($criteria); + + redirect_header(!is_null($redir) ? base64_decode($redir) : $GLOBALS['mymenus_adminpage'] , 2, _AM_MYMENUS_MSG_SUCCESS); +} + +function mymenus_admin_delall($redir = null) +{ + if (!$GLOBALS['xoopsSecurity']->check()) { + redirect_header($GLOBALS['mymenus_adminpage'], 1, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())); + } + + $this_handler =& xoops_getModuleHandler('menus' , 'mymenus'); + + if (!$this_handler->deleteAll()) { + redirect_header(!is_null($redir) ? base64_decode($redir) : $GLOBALS['mymenus_adminpage'] , 2, _AM_MYMENUS_MSG_ERROR); + } + + redirect_header(!is_null($redir) ? base64_decode($redir) : $GLOBALS['mymenus_adminpage'] , 2, _AM_MYMENUS_MSG_SUCCESS); +} + +function mymenus_admin_confirmdel($id = null, $redir = null, $op = 'delok') +{ + $arr = array(); + $arr['op'] = $op; + $arr['id'] = $id; + if (!is_null($redir)) { + $arr['redir'] = $redir; + } + xoops_cp_header(); + xoops_confirm($arr, $GLOBALS['mymenus_adminpage'], _AM_MYMENUS_MSG_AYS); + xoops_cp_footer(); +} + + +function mymenus_admin_add() +{ + if (!$GLOBALS['xoopsSecurity']->check()) { + redirect_header($GLOBALS['mymenus_adminpage'], 3, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())); + } + + $this_handler =& xoops_getModuleHandler('menus','mymenus'); + $obj = $this_handler->create(); + $obj->setVars($_POST); + + if (!$this_handler->insert($obj)){ + $msg = _AM_MYMENUS_MSG_ERROR; + } else { + $msg = _AM_MYMENUS_MSG_SUCCESS; + } + + redirect_header($GLOBALS['mymenus_adminpage'] . '?op=list', 2, $msg); +} + +function mymenus_admin_edit($id) +{ + if (!$GLOBALS['xoopsSecurity']->check()) { + redirect_header($GLOBALS['mymenus_adminpage'], 3, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())); + } + $this_handler =& xoops_getmodulehandler('menus','mymenus'); + $obj = $this_handler->get($id); + $obj->setVars($_POST); + + if (!$this_handler->insert($obj)){ + $msg = _AM_MYMENUS_MSG_ERROR; + } else { + $msg = _AM_MYMENUS_MSG_SUCCESS; + } + + redirect_header($GLOBALS['mymenus_adminpage'] . '?op=list', 2, $msg); +} + +function mymenus_admin_form($id = null) +{ + $this_handler =& xoops_getmodulehandler('menus','mymenus'); + $objArray = array(); + + if (isset($id)) { + $ftitle = _EDIT; + $obj = $this_handler->get($id); + $objArray = $obj->getValues(); + + } else { + $ftitle = _ADD; + $obj = $this_handler->create(); + $objArray = $obj->getValues(); + } + + $form = new XoopsThemeForm($ftitle, 'admin_form', $GLOBALS['mymenus_adminpage'], "post", true); + $form->addElement(new XoopsFormText(_AM_MYMENUS_MENU_TITLE, 'title', 50, 255, $objArray['title']), true); + + $tray = new XoopsFormElementTray('' ,''); + $tray->addElement(new XoopsFormButton('', 'submit_button', _SUBMIT, 'submit')); + + $btn = new XoopsFormButton('', 'reset', _CANCEL, 'button'); + + if (isset($id)){ + $btn->setExtra('onclick="document.location.href=\'' . $GLOBALS['mymenus_adminpage'] . '?op=list\'"'); + }else{ + $btn->setExtra('onclick="document.getElementById(\'addform\').style.display = \'none\'; return false;"'); + } + + $tray->addElement($btn); + $form->addElement($tray); + + if (isset($id)) { + $form->addElement(new XoopsFormHidden('op', 'editok')); + $form->addElement(new XoopsFormHidden('id', $id)); + } else { + $form->addElement(new XoopsFormHidden('op', 'add')); + } + + return $form->render(); +} + ?> \ No newline at end of file Modified: XoopsModules/mymenus/trunk/mymenus/admin/index.php =================================================================== --- XoopsModules/mymenus/trunk/mymenus/admin/index.php 2012-05-23 02:49:25 UTC (rev 9581) +++ XoopsModules/mymenus/trunk/mymenus/admin/index.php 2012-05-23 07:30:18 UTC (rev 9582) @@ -1,32 +1,32 @@ -<?php -/* - 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 http://www.gnu.org/licenses/gpl-2.0.html GNU Public License - * @package Mymenus - * @since 1.0 - * @author trabis <lus...@gm...> - * @version $Id: index.php 0 2010-07-21 18:47:04Z trabis $ - */ - - -require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/include/cp_header.php'; -include_once dirname(__FILE__) . '/admin_header.php'; - -xoops_cp_header(); - - $indexAdmin = new ModuleAdmin(); - - echo $indexAdmin->addNavigation('index.php'); - echo $indexAdmin->renderIndex(); - +<?php +/* + 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/proje... [truncated message content] |
From: <be...@us...> - 2012-05-23 02:49:34
|
Revision: 9581 http://xoops.svn.sourceforge.net/xoops/?rev=9581&view=rev Author: beckmi Date: 2012-05-23 02:49:25 +0000 (Wed, 23 May 2012) Log Message: ----------- Updating to Final version Modified Paths: -------------- XoopsModules/avaman/trunk/avaman/admin/about.php XoopsModules/avaman/trunk/avaman/admin/admin_header.php XoopsModules/avaman/trunk/avaman/admin/avatars.php XoopsModules/avaman/trunk/avaman/admin/index.php XoopsModules/avaman/trunk/avaman/admin/smilies.php XoopsModules/avaman/trunk/avaman/docs/changelog.txt XoopsModules/avaman/trunk/avaman/include/Archive_Zip.php XoopsModules/avaman/trunk/avaman/language/persian/admin.php XoopsModules/avaman/trunk/avaman/language/persian/modinfo.php XoopsModules/avaman/trunk/avaman/xoops_version.php Modified: XoopsModules/avaman/trunk/avaman/admin/about.php =================================================================== --- XoopsModules/avaman/trunk/avaman/admin/about.php 2012-05-23 02:42:41 UTC (rev 9580) +++ XoopsModules/avaman/trunk/avaman/admin/about.php 2012-05-23 02:49:25 UTC (rev 9581) @@ -1,32 +1,32 @@ -<?php -/* - * 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. - */ - -/** - * Avaman module - * - * @copyright The XOOPS Project (http://www.xoops.org) - * @license {@link http://www.gnu.org/licenses/gpl-2.0.html GNU Public License} - * @package Avaman - * @since 2.5.0 - * @author GIJOE - * @version $Id $ - */ - -//include_once dirname(__FILE__) . '/admin_header.php'; -include 'admin_header.php'; -xoops_cp_header(); - -$aboutAdmin = new ModuleAdmin(); - -echo $aboutAdmin->addNavigation('about.php'); -echo $aboutAdmin->renderAbout('6KJ7RW5DR3VTJ', false); - +<?php +/* + * 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. + */ + +/** + * Avaman module + * + * @copyright The XOOPS Project (http://www.xoops.org) + * @license {@link http://www.gnu.org/licenses/gpl-2.0.html GNU Public License} + * @package Avaman + * @since 2.5.0 + * @author GIJOE + * @version $Id $ + */ + +//include_once dirname(__FILE__) . '/admin_header.php'; +include 'admin_header.php'; +xoops_cp_header(); + +$aboutAdmin = new ModuleAdmin(); + +echo $aboutAdmin->addNavigation('about.php'); +echo $aboutAdmin->renderAbout('6KJ7RW5DR3VTJ', false); + include_once 'admin_footer.php'; \ No newline at end of file Modified: XoopsModules/avaman/trunk/avaman/admin/admin_header.php =================================================================== --- XoopsModules/avaman/trunk/avaman/admin/admin_header.php 2012-05-23 02:42:41 UTC (rev 9580) +++ XoopsModules/avaman/trunk/avaman/admin/admin_header.php 2012-05-23 02:49:25 UTC (rev 9581) @@ -1,46 +1,46 @@ -<?php -/* - * 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. - */ - -/** - * Avaman module - * - * @copyright The XOOPS Project (http://www.xoops.org) - * @license {@link http://www.gnu.org/licenses/gpl-2.0.html GNU Public License} - * @package Avaman - * @since 2.5.0 - * @author GIJOE - * @version $Id $ - */ - -$path = dirname(dirname(dirname(dirname(__FILE__)))); -include_once $path . '/mainfile.php'; -include_once $path . '/include/cp_functions.php'; -require_once $path . '/include/cp_header.php'; - -global $xoopsModule; - -$thisModuleDir = $GLOBALS['xoopsModule']->getVar('dirname'); - -// Load language files -xoops_loadLanguage('admin', $thisModuleDir); -xoops_loadLanguage('modinfo', $thisModuleDir); -xoops_loadLanguage('main', $thisModuleDir); -xoops_loadLanguage('main', $thisModuleDir); - -$pathIcon16 = '../'.$xoopsModule->getInfo('icons16'); -$pathIcon32 = '../'.$xoopsModule->getInfo('icons32'); -$pathModuleAdmin = $xoopsModule->getInfo('dirmoduleadmin'); - -if ( file_exists($GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'))){ - include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'); - }else{ - redirect_header("../../../admin.php", 5, _AM_AVAMAN_MODULEADMIN_MISSING, false); +<?php +/* + * 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. + */ + +/** + * Avaman module + * + * @copyright The XOOPS Project (http://www.xoops.org) + * @license {@link http://www.gnu.org/licenses/gpl-2.0.html GNU Public License} + * @package Avaman + * @since 2.5.0 + * @author GIJOE + * @version $Id $ + */ + +$path = dirname(dirname(dirname(dirname(__FILE__)))); +include_once $path . '/mainfile.php'; +include_once $path . '/include/cp_functions.php'; +require_once $path . '/include/cp_header.php'; + +global $xoopsModule; + +$thisModuleDir = $GLOBALS['xoopsModule']->getVar('dirname'); + +// Load language files +xoops_loadLanguage('admin', $thisModuleDir); +xoops_loadLanguage('modinfo', $thisModuleDir); +xoops_loadLanguage('main', $thisModuleDir); +xoops_loadLanguage('main', $thisModuleDir); + +$pathIcon16 = '../'.$xoopsModule->getInfo('icons16'); +$pathIcon32 = '../'.$xoopsModule->getInfo('icons32'); +$pathModuleAdmin = $xoopsModule->getInfo('dirmoduleadmin'); + +if ( file_exists($GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'))){ + include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'); + }else{ + redirect_header("../../../admin.php", 5, _AM_AVAMAN_MODULEADMIN_MISSING, false); } \ No newline at end of file Modified: XoopsModules/avaman/trunk/avaman/admin/avatars.php =================================================================== --- XoopsModules/avaman/trunk/avaman/admin/avatars.php 2012-05-23 02:42:41 UTC (rev 9580) +++ XoopsModules/avaman/trunk/avaman/admin/avatars.php 2012-05-23 02:49:25 UTC (rev 9581) @@ -206,14 +206,14 @@ echo " <tr> - <td class='$evenodd'>$avatar_id</td> - <td class='$evenodd'><img src='".XOOPS_UPLOAD_URL.'/'.urlencode($avatar_file)."' alt='' /></td> - <td class='$evenodd'><input type='text' size='24' name='avatar_names[$avatar_id]' value='".htmlspecialchars($avatar_name,ENT_QUOTES)."' /></td> - <td class='$evenodd'> ".formatTimestamp($avatar_created)."</td> - <td class='$evenodd'><input type='checkbox' name='avatar_displays[$avatar_id]' ".($avatar_display?"checked='checked'":"")." /></td> - <td class='$evenodd'><input type='text' size='4' name='avatar_weights[$avatar_id]' value='$avatar_weight' style='text-align:right;' /></td> - <td class='$evenodd' style='text-align:right;'>".intval($avatar_users)."</td> - <td class='$evenodd'><input type='checkbox' name='avatar_deletes[$avatar_id]' $delete_disabled /></td> + <td class='$evenodd' align='center'>$avatar_id</td> + <td class='$evenodd' align='center'><img src='".XOOPS_UPLOAD_URL.'/'.urlencode($avatar_file)."' alt='' /></td> + <td class='$evenodd' align='center'><input type='text' size='24' name='avatar_names[$avatar_id]' value='".htmlspecialchars($avatar_name,ENT_QUOTES)."' /></td> + <td class='$evenodd' align='center'> ".formatTimestamp($avatar_created)."</td> + <td class='$evenodd' align='center'><input type='checkbox' name='avatar_displays[$avatar_id]' ".($avatar_display?"checked='checked'":"")." /></td> + <td class='$evenodd' align='center'><input type='text' size='4' name='avatar_weights[$avatar_id]' value='$avatar_weight' style='text-align:right;' /></td> + <td class='$evenodd' align='center'>".intval($avatar_users)."</td> + <td class='$evenodd' align='center'><input type='checkbox' name='avatar_deletes[$avatar_id]' $delete_disabled /></td> </tr>\n" ; } echo " Modified: XoopsModules/avaman/trunk/avaman/admin/index.php =================================================================== --- XoopsModules/avaman/trunk/avaman/admin/index.php 2012-05-23 02:42:41 UTC (rev 9580) +++ XoopsModules/avaman/trunk/avaman/admin/index.php 2012-05-23 02:49:25 UTC (rev 9581) @@ -1,32 +1,32 @@ -<?php -/* - * 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. - */ - -/** - * Avaman module - * - * @copyright The XOOPS Project (http://www.xoops.org) - * @license {@link http://www.gnu.org/licenses/gpl-2.0.html GNU Public License} - * @package Avaman - * @since 2.5.0 - * @author GIJOE - * @version $Id $ - */ - -require_once '../../../include/cp_header.php'; -include 'admin_header.php'; -xoops_cp_header(); - - $indexAdmin = new ModuleAdmin(); - - echo $indexAdmin->addNavigation('index.php'); - echo $indexAdmin->renderIndex(); - +<?php +/* + * 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. + */ + +/** + * Avaman module + * + * @copyright The XOOPS Project (http://www.xoops.org) + * @license {@link http://www.gnu.org/licenses/gpl-2.0.html GNU Public License} + * @package Avaman + * @since 2.5.0 + * @author GIJOE + * @version $Id $ + */ + +require_once '../../../include/cp_header.php'; +include 'admin_header.php'; +xoops_cp_header(); + + $indexAdmin = new ModuleAdmin(); + + echo $indexAdmin->addNavigation('index.php'); + echo $indexAdmin->renderIndex(); + include "admin_footer.php"; \ No newline at end of file Modified: XoopsModules/avaman/trunk/avaman/admin/smilies.php =================================================================== --- XoopsModules/avaman/trunk/avaman/admin/smilies.php 2012-05-23 02:42:41 UTC (rev 9580) +++ XoopsModules/avaman/trunk/avaman/admin/smilies.php 2012-05-23 02:49:25 UTC (rev 9581) @@ -203,12 +203,12 @@ echo " <tr> - <td class='$evenodd'>$smiles_id</td> - <td class='$evenodd'><img src='".XOOPS_UPLOAD_URL.'/'.$file."' alt='' /></td> - <td class='$evenodd'><input type='text' size='12' name='codes[$smiles_id]' value='".htmlspecialchars($code,ENT_QUOTES)."' /></td> - <td class='$evenodd'><input type='text' size='24' name='emotions[$smiles_id]' value='".htmlspecialchars($emotion,ENT_QUOTES)."' /></td> - <td class='$evenodd'><input type='checkbox' name='displays[$smiles_id]' ".($display?"checked='checked'":"")." /></td> - <td class='$evenodd'><input type='checkbox' name='deletes[$smiles_id]' /></td> + <td class='$evenodd' align='center'>$smiles_id</td> + <td class='$evenodd' align='center'><img src='".XOOPS_UPLOAD_URL.'/'.$file."' alt='' /></td> + <td class='$evenodd' align='center'><input type='text' size='12' name='codes[$smiles_id]' value='".htmlspecialchars($code,ENT_QUOTES)."' /></td> + <td class='$evenodd' align='center'><input type='text' size='24' name='emotions[$smiles_id]' value='".htmlspecialchars($emotion,ENT_QUOTES)."' /></td> + <td class='$evenodd' align='center'><input type='checkbox' name='displays[$smiles_id]' ".($display?"checked='checked'":"")." /></td> + <td class='$evenodd' align='center'><input type='checkbox' name='deletes[$smiles_id]' /></td> </tr>\n" ; } echo " Modified: XoopsModules/avaman/trunk/avaman/docs/changelog.txt =================================================================== --- XoopsModules/avaman/trunk/avaman/docs/changelog.txt 2012-05-23 02:42:41 UTC (rev 9580) +++ XoopsModules/avaman/trunk/avaman/docs/changelog.txt 2012-05-23 02:49:25 UTC (rev 9581) @@ -1,7 +1,7 @@ CHANGELOG: ================== -0.22 2011/12/04: +0.22 2012/05/22: ================= - converted to XOOPS ModuleAdmin GUI (mamba) Modified: XoopsModules/avaman/trunk/avaman/include/Archive_Zip.php =================================================================== --- XoopsModules/avaman/trunk/avaman/include/Archive_Zip.php 2012-05-23 02:42:41 UTC (rev 9580) +++ XoopsModules/avaman/trunk/avaman/include/Archive_Zip.php 2012-05-23 02:49:25 UTC (rev 9581) @@ -1,3606 +1,3606 @@ -<?php -/* vim: set ts=4 sw=4: */ -// +----------------------------------------------------------------------+ -// | PHP Version 4 | -// +----------------------------------------------------------------------+ -// | Copyright (c) 1997-2003 The PHP Group | -// +----------------------------------------------------------------------+ -// | This library is free software; you can redistribute it and/or | -// | modify it under the terms of the GNU Lesser General Public | -// | License as published by the Free Software Foundation; either | -// | version 2.1 of the License, or (at your option) any later version. | -// | | -// | This library 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. See the GNU | -// | Lesser General Public License for more details. | -// | | -// | You should have received a copy of the GNU Lesser General Public | -// | License along with this library; if not, write to the Free Software | -// | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | -// | MA 02110-1301 USA | -// +----------------------------------------------------------------------+ -// | Author: Vincent Blavet <vi...@ph...> | -// +----------------------------------------------------------------------+ -// -// $Id: Zip.php,v 1.2 2005/11/21 06:51:57 vblavet Exp $ - -// require_once 'PEAR.php'; // GIJ - - // ----- Constants - define( 'ARCHIVE_ZIP_READ_BLOCK_SIZE', 2048 ); - - // ----- File list separator - define( 'ARCHIVE_ZIP_SEPARATOR', ',' ); - - // ----- Optional static temporary directory - // By default temporary files are generated in the script current - // path. - // If defined : - // - MUST BE terminated by a '/'. - // - MUST be a valid, already created directory - // Samples : - // define( 'ARCHIVE_ZIP_TEMPORARY_DIR', '/temp/' ); - // define( 'ARCHIVE_ZIP_TEMPORARY_DIR', 'C:/Temp/' ); - define( 'ARCHIVE_ZIP_TEMPORARY_DIR', '' ); - - // ----- Error codes - define( 'ARCHIVE_ZIP_ERR_NO_ERROR', 0 ); - define( 'ARCHIVE_ZIP_ERR_WRITE_OPEN_FAIL', -1 ); - define( 'ARCHIVE_ZIP_ERR_READ_OPEN_FAIL', -2 ); - define( 'ARCHIVE_ZIP_ERR_INVALID_PARAMETER', -3 ); - define( 'ARCHIVE_ZIP_ERR_MISSING_FILE', -4 ); - define( 'ARCHIVE_ZIP_ERR_FILENAME_TOO_LONG', -5 ); - define( 'ARCHIVE_ZIP_ERR_INVALID_ZIP', -6 ); - define( 'ARCHIVE_ZIP_ERR_BAD_EXTRACTED_FILE', -7 ); - define( 'ARCHIVE_ZIP_ERR_DIR_CREATE_FAIL', -8 ); - define( 'ARCHIVE_ZIP_ERR_BAD_EXTENSION', -9 ); - define( 'ARCHIVE_ZIP_ERR_BAD_FORMAT', -10 ); - define( 'ARCHIVE_ZIP_ERR_DELETE_FILE_FAIL', -11 ); - define( 'ARCHIVE_ZIP_ERR_RENAME_FILE_FAIL', -12 ); - define( 'ARCHIVE_ZIP_ERR_BAD_CHECKSUM', -13 ); - define( 'ARCHIVE_ZIP_ERR_INVALID_ARCHIVE_ZIP', -14 ); - define( 'ARCHIVE_ZIP_ERR_MISSING_OPTION_VALUE', -15 ); - define( 'ARCHIVE_ZIP_ERR_INVALID_PARAM_VALUE', -16 ); - - // ----- Warning codes - define( 'ARCHIVE_ZIP_WARN_NO_WARNING', 0 ); - define( 'ARCHIVE_ZIP_WARN_FILE_EXIST', 1 ); - - // ----- Methods parameters - define( 'ARCHIVE_ZIP_PARAM_PATH', 'path' ); - define( 'ARCHIVE_ZIP_PARAM_ADD_PATH', 'add_path' ); - define( 'ARCHIVE_ZIP_PARAM_REMOVE_PATH', 'remove_path' ); - define( 'ARCHIVE_ZIP_PARAM_REMOVE_ALL_PATH', 'remove_all_path' ); - define( 'ARCHIVE_ZIP_PARAM_SET_CHMOD', 'set_chmod' ); - define( 'ARCHIVE_ZIP_PARAM_EXTRACT_AS_STRING', 'extract_as_string' ); - define( 'ARCHIVE_ZIP_PARAM_NO_COMPRESSION', 'no_compression' ); - define( 'ARCHIVE_ZIP_PARAM_BY_NAME', 'by_name' ); - define( 'ARCHIVE_ZIP_PARAM_BY_INDEX', 'by_index' ); - define( 'ARCHIVE_ZIP_PARAM_BY_EREG', 'by_ereg' ); - define( 'ARCHIVE_ZIP_PARAM_BY_PREG', 'by_preg' ); - - define( 'ARCHIVE_ZIP_PARAM_PRE_EXTRACT', 'callback_pre_extract' ); - define( 'ARCHIVE_ZIP_PARAM_POST_EXTRACT', 'callback_post_extract' ); - define( 'ARCHIVE_ZIP_PARAM_PRE_ADD', 'callback_pre_add' ); - define( 'ARCHIVE_ZIP_PARAM_POST_ADD', 'callback_post_add' ); - - - -/** -* Class for manipulating zip archive files -* -* A class which provided common methods to manipulate ZIP formatted -* archive files. -* It provides creation, extraction, deletion and add features. -* -* @author Vincent Blavet <vi...@bl...> -* @version $Revision: 1.2 $ -* @package Archive_Zip -* @category Archive -*/ -class Archive_Zip -{ - /** - * The filename of the zip archive. - * - * @var string Name of the Zip file - */ - var $_zipname=''; - - /** - * File descriptor of the opened Zip file. - * - * @var int Internal zip file descriptor - */ - var $_zip_fd=0; - - /** - * @var int last error code - */ - var $_error_code=1; - - /** - * @var string Last error description - */ - var $_error_string=''; - - // {{{ constructor - /** - * Archive_Zip Class constructor. This flavour of the constructor only - * declare a new Archive_Zip object, identifying it by the name of the - * zip file. - * - * @param string $p_zipname The name of the zip archive to create - * @access public - */ - function Archive_Zip($p_zipname) - { - - // ----- Check the zlib -/* if (!extension_loaded('zlib')) { - PEAR::loadExtension('zlib'); - }*/ // GIJ - if (!extension_loaded('zlib')) { - die("The extension 'zlib' couldn't be found.\n". - "Please make sure your version of PHP was built ". - "with 'zlib' support.\n"); - return false; - } - - // ----- Set the attributes - $this->_zipname = $p_zipname; - $this->_zip_fd = 0; - - return; - } - // }}} - - // {{{ create() - /** - * This method creates a Zip Archive with the filename set with - * the constructor. - * The files and directories indicated in $p_filelist - * are added in the archive. - * When a directory is in the list, the directory and its content is added - * in the archive. - * The methods takes a variable list of parameters in $p_params. - * The supported parameters for this method are : - * 'add_path' : Add a path to the archived files. - * 'remove_path' : Remove the specified 'root' path of the archived files. - * 'remove_all_path' : Remove all the path of the archived files. - * 'no_compression' : The archived files will not be compressed. - * - * @access public - * @param mixed $p_filelist The list of the files or folders to add. - * It can be a string with filenames separated - * by a comma, or an array of filenames. - * @param mixed $p_params An array of variable parameters and values. - * @return mixed An array of file description on success, - * an error code on error - */ - function create($p_filelist, $p_params=0) - { - $this->_errorReset(); - - // ----- Set default values - if ($p_params === 0) { - $p_params = array(); - } - if ($this->_check_parameters($p_params, - array('no_compression' => false, - 'add_path' => "", - 'remove_path' => "", - 'remove_all_path' => false)) != 1) { - return 0; - } - - // ----- Look if the $p_filelist is really an array - $p_result_list = array(); - if (is_array($p_filelist)) { - $v_result = $this->_create($p_filelist, $p_result_list, $p_params); - } - - // ----- Look if the $p_filelist is a string - else if (is_string($p_filelist)) { - // ----- Create a list with the elements from the string - $v_list = explode(ARCHIVE_ZIP_SEPARATOR, $p_filelist); - - $v_result = $this->_create($v_list, $p_result_list, $p_params); - } - - // ----- Invalid variable - else { - $this->_errorLog(ARCHIVE_ZIP_ERR_INVALID_PARAMETER, - 'Invalid variable type p_filelist'); - $v_result = ARCHIVE_ZIP_ERR_INVALID_PARAMETER; - } - - if ($v_result != 1) { - return 0; - } - - return $p_result_list; - } - // }}} - - // {{{ add() - /** - * This method add files or directory in an existing Zip Archive. - * If the Zip Archive does not exist it is created. - * The files and directories to add are indicated in $p_filelist. - * When a directory is in the list, the directory and its content is added - * in the archive. - * The methods takes a variable list of parameters in $p_params. - * The supported parameters for this method are : - * 'add_path' : Add a path to the archived files. - * 'remove_path' : Remove the specified 'root' path of the archived files. - * 'remove_all_path' : Remove all the path of the archived files. - * 'no_compression' : The archived files will not be compressed. - * 'callback_pre_add' : A callback function that will be called before - * each entry archiving. - * 'callback_post_add' : A callback function that will be called after - * each entry archiving. - * - * @access public - * @param mixed $p_filelist The list of the files or folders to add. - * It can be a string with filenames separated - * by a comma, or an array of filenames. - * @param mixed $p_params An array of variable parameters and values. - * @return mixed An array of file description on success, - * 0 on an unrecoverable failure, an error code is logged. - */ - function add($p_filelist, $p_params=0) - { - $this->_errorReset(); - - // ----- Set default values - if ($p_params === 0) { - $p_params = array(); - } - if ($this->_check_parameters($p_params, - array ('no_compression' => false, - 'add_path' => '', - 'remove_path' => '', - 'remove_all_path' => false, - 'callback_pre_add' => '', - 'callback_post_add' => '')) != 1) { - return 0; - } - - // ----- Look if the $p_filelist is really an array - $p_result_list = array(); - if (is_array($p_filelist)) { - // ----- Call the create fct - $v_result = $this->_add($p_filelist, $p_result_list, $p_params); - } - - // ----- Look if the $p_filelist is a string - else if (is_string($p_filelist)) { - // ----- Create a list with the elements from the string - $v_list = explode(ARCHIVE_ZIP_SEPARATOR, $p_filelist); - - // ----- Call the create fct - $v_result = $this->_add($v_list, $p_result_list, $p_params); - } - - // ----- Invalid variable - else { - $this->_errorLog(ARCHIVE_ZIP_ERR_INVALID_PARAMETER, - "add() : Invalid variable type p_filelist"); - $v_result = ARCHIVE_ZIP_ERR_INVALID_PARAMETER; - } - - if ($v_result != 1) { - return 0; - } - - // ----- Return the result list - return $p_result_list; - } - // }}} - - // {{{ listContent() - /** - * This method gives the names and properties of the files and directories - * which are present in the zip archive. - * The properties of each entries in the list are : - * filename : Name of the file. - * For create() or add() it's the filename given by the user. - * For an extract() it's the filename of the extracted file. - * stored_filename : Name of the file / directory stored in the archive. - * size : Size of the stored file. - * compressed_size : Size of the file's data compressed in the archive - * (without the zip headers overhead) - * mtime : Last known modification date of the file (UNIX timestamp) - * comment : Comment associated with the file - * folder : true | false (indicates if the entry is a folder) - * index : index of the file in the archive (-1 when not available) - * status : status of the action on the entry (depending of the action) : - * Values are : - * ok : OK ! - * filtered : the file/dir was not extracted (filtered by user) - * already_a_directory : the file can't be extracted because a - * directory with the same name already - * exists - * write_protected : the file can't be extracted because a file - * with the same name already exists and is - * write protected - * newer_exist : the file was not extracted because a newer - * file already exists - * path_creation_fail : the file is not extracted because the - * folder does not exists and can't be - * created - * write_error : the file was not extracted because there was a - * error while writing the file - * read_error : the file was not extracted because there was a - * error while reading the file - * invalid_header : the file was not extracted because of an - * archive format error (bad file header) - * Note that each time a method can continue operating when there - * is an error on a single file, the error is only logged in the file status. - * - * @access public - * @return mixed An array of file description on success, - * 0 on an unrecoverable failure, an error code is logged. - */ - function listContent() - { - $this->_errorReset(); - - // ----- Check archive - if (!$this->_checkFormat()) { - return(0); - } - - $v_list = array(); - if ($this->_list($v_list) != 1) { - unset($v_list); - return(0); - } - - return $v_list; - } - // }}} - - // {{{ extract() - /** - * This method extract the files and folders which are in the zip archive. - * It can extract all the archive or a part of the archive by using filter - * feature (extract by name, by index, by ereg, by preg). The extraction - * can occur in the current path or an other path. - * All the advanced features are activated by the use of variable - * parameters. - * The return value is an array of entry descriptions which gives - * information on extracted files (See listContent()). - * The method may return a success value (an array) even if some files - * are not correctly extracted (see the file status in listContent()). - * The supported variable parameters for this method are : - * 'add_path' : Path where the files and directories are to be extracted - * 'remove_path' : First part ('root' part) of the memorized path - * (if similar) to remove while extracting. - * 'remove_all_path' : Remove all the memorized path while extracting. - * 'extract_as_string' : - * 'set_chmod' : After the extraction of the file the indicated mode - * will be set. - * 'by_name' : It can be a string with file/dir names separated by ',', - * or an array of file/dir names to extract from the archive. - * 'by_index' : A string with range of indexes separated by ',', - * (sample "1,3-5,12"). - * 'by_ereg' : A regular expression (ereg) that must match the extracted - * filename. - * 'by_preg' : A regular expression (preg) that must match the extracted - * filename. - * 'callback_pre_extract' : A callback function that will be called before - * each entry extraction. - * 'callback_post_extract' : A callback function that will be called after - * each entry extraction. - * - * @access public - * @param mixed $p_params An array of variable parameters and values. - * @return mixed An array of file description on success, - * 0 on an unrecoverable failure, an error code is logged. - */ - function extract($p_params=0) - { - - $this->_errorReset(); - - // ----- Check archive - if (!$this->_checkFormat()) { - return(0); - } - - // ----- Set default values - if ($p_params === 0) { - $p_params = array(); - } - if ($this->_check_parameters($p_params, - array ('extract_as_string' => false, - 'add_path' => '', - 'remove_path' => '', - 'remove_all_path' => false, - 'callback_pre_extract' => '', - 'callback_post_extract' => '', - 'set_chmod' => 0, - 'by_name' => '', - 'by_index' => '', - 'by_ereg' => '', - 'by_preg' => '') ) != 1) { - return 0; - } - - // ----- Call the extracting fct - $v_list = array(); - if ($this->_extractByRule($v_list, $p_params) != 1) { - unset($v_list); - return(0); - } - - return $v_list; - } - // }}} - - - // {{{ delete() - /** - * This methods delete archive entries in the zip archive. - * Notice that at least one filtering rule (set by the variable parameter - * list) must be set. - * Also notice that if you delete a folder entry, only the folder entry - * is deleted, not all the files bellonging to this folder. - * The supported variable parameters for this method are : - * 'by_name' : It can be a string with file/dir names separated by ',', - * or an array of file/dir names to delete from the archive. - * 'by_index' : A string with range of indexes separated by ',', - * (sample "1,3-5,12"). - * 'by_ereg' : A regular expression (ereg) that must match the extracted - * filename. - * 'by_preg' : A regular expression (preg) that must match the extracted - * filename. - * - * @access public - * @param mixed $p_params An array of variable parameters and values. - * @return mixed An array of file description on success, - * 0 on an unrecoverable failure, an error code is logged. - */ - function delete($p_params) - { - $this->_errorReset(); - - // ----- Check archive - if (!$this->_checkFormat()) { - return(0); - } - - // ----- Set default values - if ($this->_check_parameters($p_params, - array ('by_name' => '', - 'by_index' => '', - 'by_ereg' => '', - 'by_preg' => '') ) != 1) { - return 0; - } - - // ----- Check that at least one rule is set - if ( ($p_params['by_name'] == '') - && ($p_params['by_index'] == '') - && ($p_params['by_ereg'] == '') - && ($p_params['by_preg'] == '')) { - $this->_errorLog(ARCHIVE_ZIP_ERR_INVALID_PARAMETER, - 'At least one filtering rule must' - .' be set as parameter'); - return 0; - } - - // ----- Call the delete fct - $v_list = array(); - if ($this->_deleteByRule($v_list, $p_params) != 1) { - unset($v_list); - return(0); - } - - return $v_list; - } - // }}} - - // {{{ properties() - /** - * This method gives the global properties of the archive. - * The properties are : - * nb : Number of files in the archive - * comment : Comment associated with the archive file - * status : not_exist, ok - * - * @access public - * @param mixed $p_params {Description} - * @return mixed An array with the global properties or 0 on error. - */ - function properties() - { - $this->_errorReset(); - - // ----- Check archive - if (!$this->_checkFormat()) { - return(0); - } - - // ----- Default properties - $v_prop = array(); - $v_prop['comment'] = ''; - $v_prop['nb'] = 0; - $v_prop['status'] = 'not_exist'; - - // ----- Look if file exists - if (@is_file($this->_zipname)) { - // ----- Open the zip file - if (($this->_zip_fd = @fopen($this->_zipname, 'rb')) == 0) { - $this->_errorLog(ARCHIVE_ZIP_ERR_READ_OPEN_FAIL, - 'Unable to open archive \''.$this->_zipname - .'\' in binary read mode'); - return 0; - } - - // ----- Read the central directory informations - $v_central_dir = array(); - if (($v_result = $this->_readEndCentralDir($v_central_dir)) != 1) { - return 0; - } - - $this->_closeFd(); - - // ----- Set the user attributes - $v_prop['comment'] = $v_central_dir['comment']; - $v_prop['nb'] = $v_central_dir['entries']; - $v_prop['status'] = 'ok'; - } - - return $v_prop; - } - // }}} - - - // {{{ duplicate() - /** - * This method creates an archive by copying the content of an other one. - * If the archive already exist, it is replaced by the new one without - * any warning. - * - * @access public - * @param mixed $p_archive It can be a valid Archive_Zip object or - * the filename of a valid zip archive. - * @return integer 1 on success, 0 on failure. - */ - function duplicate($p_archive) - { - $this->_errorReset(); - - // ----- Look if the $p_archive is a Archive_Zip object - if ( (is_object($p_archive)) - && (strtolower(get_class($p_archive)) == 'archive_zip')) { - $v_result = $this->_duplicate($p_archive->_zipname); - } - - // ----- Look if the $p_archive is a string (so a filename) - else if (is_string($p_archive)) { - // ----- Check that $p_archive is a valid zip file - // TBC : Should also check the archive format - if (!is_file($p_archive)) { - $this->_errorLog(ARCHIVE_ZIP_ERR_MISSING_FILE, - "No file with filename '".$p_archive."'"); - $v_result = ARCHIVE_ZIP_ERR_MISSING_FILE; - } - else { - $v_result = $this->_duplicate($p_archive); - } - } - - // ----- Invalid variable - else { - $this->_errorLog(ARCHIVE_ZIP_ERR_INVALID_PARAMETER, - "Invalid variable type p_archive_to_add"); - $v_result = ARCHIVE_ZIP_ERR_INVALID_PARAMETER; - } - - return $v_result; - } - // }}} - - // {{{ merge() - /** - * This method merge a valid zip archive at the end of the - * archive identified by the Archive_Zip object. - * If the archive ($this) does not exist, the merge becomes a duplicate. - * If the archive to add does not exist, the merge is a success. - * - * @access public - * @param mixed $p_archive_to_add It can be a valid Archive_Zip object or - * the filename of a valid zip archive. - * @return integer 1 on success, 0 on failure. - */ - function merge($p_archive_to_add) - { - $v_result = 1; - $this->_errorReset(); - - // ----- Check archive - if (!$this->_checkFormat()) { - return(0); - } - - // ----- Look if the $p_archive_to_add is a Archive_Zip object - if ( (is_object($p_archive_to_add)) - && (strtolower(get_class($p_archive_to_add)) == 'archive_zip')) { - $v_result = $this->_merge($p_archive_to_add); - } - - // ----- Look if the $p_archive_to_add is a string (so a filename) - else if (is_string($p_archive_to_add)) { - // ----- Create a temporary archive - $v_object_archive = new Archive_Zip($p_archive_to_add); - - // ----- Merge the archive - $v_result = $this->_merge($v_object_archive); - } - - // ----- Invalid variable - else { - $this->_errorLog(ARCHIVE_ZIP_ERR_INVALID_PARAMETER, - "Invalid variable type p_archive_to_add"); - $v_result = ARCHIVE_ZIP_ERR_INVALID_PARAMETER; - } - - return $v_result; - } - // }}} - - // {{{ errorCode() - /** - * Method that gives the lastest error code. - * - * @access public - * @return integer The error code value. - */ - function errorCode() - { - return($this->_error_code); - } - // }}} - - // {{{ errorName() - /** - * This method gives the latest error code name. - * - * @access public - * @param boolean $p_with_code If true, gives the name and the int value. - * @return string The error name. - */ - function errorName($p_with_code=false) - { - $v_const_list = get_defined_constants(); - - // ----- Extract error constants from all const. - for (reset($v_const_list); - list($v_key, $v_value) = each($v_const_list);) { - if (substr($v_key, 0, strlen('ARCHIVE_ZIP_ERR_')) - =='ARCHIVE_ZIP_ERR_') { - $v_error_list[$v_key] = $v_value; - } - } - - // ----- Search the name form the code value - $v_key=array_search($this->_error_code, $v_error_list, true); - if ($v_key!=false) { - $v_value = $v_key; - } - else { - $v_value = 'NoName'; - } - - if ($p_with_code) { - return($v_value.' ('.$this->_error_code.')'); - } - else { - return($v_value); - } - } - // }}} - - // {{{ errorInfo() - /** - * This method returns the description associated with the latest error. - * - * @access public - * @param boolean $p_full If set to true gives the description with the - * error code, the name and the description. - * If set to false gives only the description - * and the error code. - * @return string The error description. - */ - function errorInfo($p_full=false) - { - if ($p_full) { - return($this->errorName(true)." : ".$this->_error_string); - } - else { - return($this->_error_string." [code ".$this->_error_code."]"); - } - } - // }}} - - -// ----------------------------------------------------------------------------- -// ***** UNDER THIS LINE ARE DEFINED PRIVATE INTERNAL FUNCTIONS ***** -// ***** ***** -// ***** THESES FUNCTIONS MUST NOT BE USED DIRECTLY ***** -// ----------------------------------------------------------------------------- - - // --------------------------------------------------------------------------- - // Function : _checkFormat() - // Description : - // This method check that the archive exists and is a valid zip archive. - // Several level of check exists. (futur) - // Parameters : - // $p_level : Level of check. Default 0. - // 0 : Check the first bytes (magic codes) (default value)) - // 1 : 0 + Check the central directory (futur) - // 2 : 1 + Check each file header (futur) - // Return Values : - // true on success, - // false on error, the error code is set. - // --------------------------------------------------------------------------- - /** - * Archive_Zip::_checkFormat() - * - * { Description } - * - * @param integer $p_level - */ - function _checkFormat($p_level=0) - { - $v_result = true; - - // ----- Reset the error handler - $this->_errorReset(); - - // ----- Look if the file exits - if (!is_file($this->_zipname)) { - // ----- Error log - $this->_errorLog(ARCHIVE_ZIP_ERR_MISSING_FILE, - "Missing archive file '".$this->_zipname."'"); - return(false); - } - - // ----- Check that the file is readeable - if (!is_readable($this->_zipname)) { - // ----- Error log - $this->_errorLog(ARCHIVE_ZIP_ERR_READ_OPEN_FAIL, - "Unable to read archive '".$this->_zipname."'"); - return(false); - } - - // ----- Check the magic code - // TBC - - // ----- Check the central header - // TBC - - // ----- Check each file header - // TBC - - // ----- Return - return $v_result; - } - // --------------------------------------------------------------------------- - - // --------------------------------------------------------------------------- - // Function : _create() - // Description : - // Parameters : - // Return Values : - // --------------------------------------------------------------------------- - /** - * Archive_Zip::_create() - * - * { Description } - * - */ - function _create($p_list, &$p_result_list, &$p_params) - { - $v_result=1; - $v_list_detail = array(); - - $p_add_dir = $p_params['add_path']; - $p_remove_dir = $p_params['remove_path']; - $p_remove_all_dir = $p_params['remove_all_path']; - - // ----- Open the file in write mode - if (($v_result = $this->_openFd('wb')) != 1) - { - // ----- Return - return $v_result; - } - - // ----- Add the list of files - $v_result = $this->_addList($p_list, $p_result_list, $p_add_dir, $p_remove_dir, $p_remove_all_dir, $p_params); - - // ----- Close - $this->_closeFd(); - - // ----- Return - return $v_result; - } - // --------------------------------------------------------------------------- - - // --------------------------------------------------------------------------- - // Function : _add() - // Description : - // Parameters : - // Return Values : - // --------------------------------------------------------------------------- - /** - * Archive_Zip::_add() - * - * { Description } - * - */ - function _add($p_list, &$p_result_list, &$p_params) - { - $v_result=1; - $v_list_detail = array(); - - $p_add_dir = $p_params['add_path']; - $p_remove_dir = $p_params['remove_path']; - $p_remove_all_dir = $p_params['remove_all_path']; - - // ----- Look if the archive exists or is empty and need to be created - if ((!is_file($this->_zipname)) || (filesize($this->_zipname) == 0)) { - $v_result = $this->_create($p_list, $p_result_list, $p_params); - return $v_result; - } - - // ----- Open the zip file - if (($v_result=$this->_openFd('rb')) != 1) { - return $v_result; - } - - // ----- Read the central directory informations - $v_central_dir = array(); - if (($v_result = $this->_readEndCentralDir($v_central_dir)) != 1) - { - $this->_closeFd(); - return $v_result; - } - - // ----- Go to beginning of File - @rewind($this->_zip_fd); - - // ----- Creates a temporay file - $v_zip_temp_name = ARCHIVE_ZIP_TEMPORARY_DIR.uniqid('archive_zip-').'.tmp'; - - // ----- Open the temporary file in write mode - if (($v_zip_temp_fd = @fopen($v_zip_temp_name, 'wb')) == 0) - { - $this->_closeFd(); - - $this->_errorLog(ARCHIVE_ZIP_ERR_READ_OPEN_FAIL, - 'Unable to open temporary file \'' - .$v_zip_temp_name.'\' in binary write mode'); - return Archive_Zip::errorCode(); - } - - // ----- Copy the files from the archive to the temporary file - // TBC : Here I should better append the file and go back to erase the - // central dir - $v_size = $v_central_dir['offset']; - while ($v_size != 0) - { - $v_read_size = ($v_size < ARCHIVE_ZIP_READ_BLOCK_SIZE - ? $v_size : ARCHIVE_ZIP_READ_BLOCK_SIZE); - $v_buffer = fread($this->_zip_fd, $v_read_size); - @fwrite($v_zip_temp_fd, $v_buffer, $v_read_size); - $v_size -= $v_read_size; - } - - // ----- Swap the file descriptor - // Here is a trick : I swap the temporary fd with the zip fd, in order to - // use the following methods on the temporary fil and not the real archive - $v_swap = $this->_zip_fd; - $this->_zip_fd = $v_zip_temp_fd; - $v_zip_temp_fd = $v_swap; - - // ----- Add the files - $v_header_list = array(); - if (($v_result = $this->_addFileList($p_list, $v_header_list, - $p_add_dir, $p_remove_dir, - $p_remove_all_dir, $p_params)) != 1) - { - fclose($v_zip_temp_fd); - $this->_closeFd(); - @unlink($v_zip_temp_name); - - // ----- Return - return $v_result; - } - - // ----- Store the offset of the central dir - $v_offset = @ftell($this->_zip_fd); - - // ----- Copy the block of file headers from the old archive - $v_size = $v_central_dir['size']; - while ($v_size != 0) - { - $v_read_size = ($v_size < ARCHIVE_ZIP_READ_BLOCK_SIZE - ? $v_size : ARCHIVE_ZIP_READ_BLOCK_SIZE); - $v_buffer = @fread($v_zip_temp_fd, $v_read_size); - @fwrite($this->_zip_fd, $v_buffer, $v_read_size); - $v_size -= $v_read_size; - } - - // ----- Create the Central Dir files header - for ($i=0, $v_count=0; $i<sizeof($v_header_list); $i++) - { - // ----- Create the file header - if ($v_header_list[$i]['status'] == 'ok') { - if (($v_result=$this->_writeCentralFileHeader($v_header_list[$i]))!=1) { - fclose($v_zip_temp_fd); - $this->_closeFd(); - @unlink($v_zip_temp_name); - - // ----- Return - return $v_result; - } - $v_count++; - } - - // ----- Transform the header to a 'usable' info - $this->_convertHeader2FileInfo($v_header_list[$i], $p_result_list[$i]); - } - - // ----- Zip file comment - $v_comment = ''; - - // ----- Calculate the size of the central header - $v_size = @ftell($this->_zip_fd)-$v_offset; - - // ----- Create the central dir footer - if (($v_result = $this->_writeCentralHeader($v_count - +$v_central_dir['entries'], - $v_size, $v_offset, - $v_comment)) != 1) { - // ----- Reset the file list - unset($v_header_list); - - // ----- Return - return $v_result; - } - - // ----- Swap back the file descriptor - $v_swap = $this->_zip_fd; - $this->_zip_fd = $v_zip_temp_fd; - $v_zip_temp_fd = $v_swap; - - // ----- Close - $this->_closeFd(); - - // ----- Close the temporary file - @fclose($v_zip_temp_fd); - - // ----- Delete the zip file - // TBC : I should test the result ... - @unlink($this->_zipname); - - // ----- Rename the temporary file - // TBC : I should test the result ... - //@rename($v_zip_temp_name, $this->_zipname); - $this->_tool_Rename($v_zip_temp_name, $this->_zipname); - - // ----- Return - return $v_result; - } - // --------------------------------------------------------------------------- - - // --------------------------------------------------------------------------- - // Function : _openFd() - // Description : - // Parameters : - // --------------------------------------------------------------------------- - /** - * Archive_Zip::_openFd() - * - * { Description } - * - */ - function _openFd($p_mode) - { - $v_result=1; - - // ----- Look if already open - if ($this->_zip_fd != 0) - { - $this->_errorLog(ARCHIVE_ZIP_ERR_READ_OPEN_FAIL, - 'Zip file \''.$this->_zipname.'\' already open'); - return Archive_Zip::errorCode(); - } - - // ----- Open the zip file - if (($this->_zip_fd = @fopen($this->_zipname, $p_mode)) == 0) - { - $this->_errorLog(ARCHIVE_ZIP_ERR_READ_OPEN_FAIL, - 'Unable to open archive \''.$this->_zipname - .'\' in '.$p_mode.' mode'); - return Archive_Zip::errorCode(); - } - - // ----- Return - return $v_result; - } - // --------------------------------------------------------------------------- - - // --------------------------------------------------------------------------- - // Function : _closeFd() - // Description : - // Parameters : - // --------------------------------------------------------------------------- - /** - * Archive_Zip::_closeFd() - * - * { Description } - * - */ - function _closeFd() - { - $v_result=1; - - if ($this->_zip_fd != 0) - @fclose($this->_zip_fd); - $this->_zip_fd = 0; - - // ----- Return - return $v_result; - } - // --------------------------------------------------------------------------- - - // --------------------------------------------------------------------------- - // Function : _addList() - // Description : - // $p_add_dir and $p_remove_dir will give the ability to memorize a path which is - // different from the real path of the file. This is usefull if you want to have PclTar - // running in any directory, and memorize relative path from an other directory. - // Parameters : - // $p_list : An array containing the file or directory names to add in the tar - // $p_result_list : list of added files with their properties (specially the status field) - // $p_add_dir : Path to add in the filename path archived - // $p_remove_dir : Path to remove in the filename path archived - // Return Values : - // --------------------------------------------------------------------------- - /** - * Archive_Zip::_addList() - * - * { Description } - * - */ - function _addList($p_list, &$p_result_list, - $p_add_dir, $p_remove_dir, $p_remove_all_dir, &$p_params) - { - $v_result=1; - - // ----- Add the files - $v_header_list = array(); - if (($v_result = $this->_addFileList($p_list, $v_header_list, - $p_add_dir, $p_remove_dir, - $p_remove_all_dir, $p_params)) != 1) { - return $v_result; - } - - // ----- Store the offset of the central dir - $v_offset = @ftell($this->_zip_fd); - - // ----- Create the Central Dir files header - for ($i=0,$v_count=0; $i<sizeof($v_header_list); $i++) - { - // ----- Create the file header - if ($v_header_list[$i]['status'] == 'ok') { - if (($v_result = $this->_writeCentralFileHeader($v_header_list[$i])) != 1) { - return $v_result; - } - $v_count++; - } - - // ----- Transform the header to a 'usable' info - $this->_convertHeader2FileInfo($v_header_list[$i], $p_result_list[$i]); - } - - // ----- Zip file comment - $v_comment = ''; - - // ----- Calculate the size of the central header - $v_size = @ftell($this->_zip_fd)-$v_offset; - - // ----- Create the central dir footer - if (($v_result = $this->_writeCentralHeader($v_count, $v_size, $v_offset, - $v_comment)) != 1) - { - // ----- Reset the file list - unset($v_header_list); - - // ----- Return - return $v_result; - } - - // ----- Return - return $v_result; - } - // --------------------------------------------------------------------------- - - // --------------------------------------------------------------------------- - // Function : _addFileList() - // Description : - // $p_add_dir and $p_remove_dir will give the ability to memorize a path which is - // different from the real path of the file. This is usefull if you want to - // run the lib in any directory, and memorize relative path from an other directory. - // Parameters : - // $p_list : An array containing the file or directory names to add in the tar - // $p_result_list : list of added files with their properties (specially the status field) - // $p_add_dir : Path to add in the filename path archived - // $p_remove_dir : Path to remove in the filename path archived - // Return Values : - // --------------------------------------------------------------------------- - /** - * Archive_Zip::_addFileList() - * - * { Description } - * - */ - function _addFileList($p_list, &$p_result_list, - $p_add_dir, $p_remove_dir, $p_remove_all_dir, - &$p_params) - { - $v_result=1; - $v_header = array(); - - // ----- Recuperate the current number of elt in list - $v_nb = sizeof($p_result_list); - - // ----- Loop on the files - for ($j=0; ($j<count($p_list)) && ($v_result==1); $j++) - { - // ----- Recuperate the filename - $p_filename = $this->_tool_TranslateWinPath($p_list[$j], false); - - // ----- Skip empty file names - if ($p_filename == "") - { - continue; - } - - // ----- Check the filename - if (!file_exists($p_filename)) - { - $this->_errorLog(ARCHIVE_ZIP_ERR_MISSING_FILE, - "File '$p_filename' does not exists"); - return Archive_Zip::errorCode(); - } - - // ----- Look if it is a file or a dir with no all pathnre move - if ((is_file($p_filename)) || ((is_dir($p_filename)) && !$p_remove_all_dir)) { - // ----- Add the file - if (($v_result = $this->_addFile($p_filename, $v_header, $p_add_dir, $p_remove_dir, $p_remove_all_dir, $p_params)) != 1) - { - // ----- Return status - return $v_result; - } - - // ----- Store the file infos - $p_result_list[$v_nb++] = $v_header; - } - - // ----- Look for directory - if (is_dir($p_filename)) - { - - // ----- Look for path - if ($p_filename != ".") - $v_path = $p_filename."/"; - else - $v_path = ""; - - // ----- Read the directory for files and sub-directories - $p_hdir = opendir($p_filename); - $p_hitem = readdir($p_hdir); // '.' directory - $p_hitem = readdir($p_hdir); // '..' directory - while ($p_hitem = readdir($p_hdir)) - { - - // ----- Look for a file - if (is_file($v_path.$p_hitem)) - { - - // ----- Add the file - if (($v_result = $this->_addFile($v_path.$p_hitem, $v_header, $p_add_dir, $p_remove_dir, $p_remove_all_dir, $p_params)) != 1) - { - // ----- Return status - return $v_result; - } - - // ----- Store the file infos - $p_result_list[$v_nb++] = $v_header; - } - - // ----- Recursive call to _addFileList() - else - { - - // ----- Need an array as parameter - $p_temp_list[0] = $v_path.$p_hitem; - $v_result = $this->_addFileList($p_temp_list, $p_result_list, $p_add_dir, $p_remove_dir, $p_remove_all_dir, $p_params); - - // ----- Update the number of elements of the list - $v_nb = sizeof($p_result_list); - } - } - - // ----- Free memory for the recursive loop - unset($p_temp_list); - unset($p_hdir); - unset($p_hitem); - } - } - - return $v_result; - } - // --------------------------------------------------------------------------- - - // --------------------------------------------------------------------------- - // Function : _addFile() - // Description : - // Parameters : - // Return Values : - // --------------------------------------------------------------------------- - /** - * Archive_Zip::_addFile() - * - * { Description } - * - */ - function _addFile($p_filename, &$p_header, $p_add_dir, $p_remove_dir, $p_remove_all_dir, &$p_params) - { - $v_result=1; - - if ($p_filename == "") - { - // ----- Error log - $this->_errorLog(ARCHIVE_ZIP_ERR_INVALID_PARAMETER, "Invalid file list parameter (invalid or empty list)"); - - // ----- Return - return Archive_Zip::errorCode(); - } - - // ----- Calculate the stored filename - $v_stored_filename = $p_filename; - - // ----- Look for all path to remove - if ($p_remove_all_dir) { - $v_stored_filename = basename($p_filename); - } - // ----- Look for partial path remove - else if ($p_remove_dir != "") - { - if (substr($p_remove_dir, -1) != '/') - $p_remove_dir .= "/"; - - if ((substr($p_filename, 0, 2) == "./") || (substr($p_remove_dir, 0, 2) == "./")) - { - if ((substr($p_filename, 0, 2) == "./") && (substr($p_remove_dir, 0, 2) != "./")) - $p_remove_dir = "./".$p_remove_dir; - if ((substr($p_filename, 0, 2) != "./") && (substr($p_remove_dir, 0, 2) == "./")) - $p_remove_dir = substr($p_remove_dir, 2); - } - - $v_compare = $this->_tool_PathInclusion($p_remove_dir, $p_filename); - if ($v_compare > 0) -// if (substr($p_filename, 0, strlen($p_remove_dir)) == $p_remove_dir) - { - - if ($v_compare == 2) { - $v_stored_filename = ""; - } - else { - $v_stored_filename = substr($p_filename, strlen($p_remove_dir)); - } - } - } - // ----- Look for path to add - if ($p_add_dir != "") - { - if (substr($p_add_dir, -1) == "/") - $v_stored_filename = $p_add_dir.$v_stored_filename; - else - $v_stored_filename = $p_add_dir."/".$v_stored_filename; - } - - // ----- Filename (reduce the path of stored name) - $v_stored_filename = $this->_tool_PathReduction($v_stored_filename); - - - /* filename length moved after call-back in release 1.3 - // ----- Check the path length - if (strlen($v_stored_filename) > 0xFF) - { - // ----- Error log - $this->_errorLog(-5, "Stored file name is too long (max. 255) : '$v_stored_filename'"); - - // ----- Return - return Archive_Zip::errorCode(); - } - */ - - // ----- Set the file properties - clearstatcache(); - $p_header['version'] = 20; - $p_header['version_extracted'] = 1... [truncated message content] |
From: <ce...@us...> - 2012-05-23 02:42:47
|
Revision: 9580 http://xoops.svn.sourceforge.net/xoops/?rev=9580&view=rev Author: cesag Date: 2012-05-23 02:42:41 +0000 (Wed, 23 May 2012) Log Message: ----------- Fixed French translation modinfo.php SmartFAQ 1.12 Modified Paths: -------------- XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/modinfo.php XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french_iso/modinfo.php Modified: XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/modinfo.php =================================================================== --- XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/modinfo.php 2012-05-23 02:10:13 UTC (rev 9579) +++ XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/modinfo.php 2012-05-23 02:42:41 UTC (rev 9580) @@ -331,7 +331,7 @@ // Final -define('_MI_SF_WARNING_FINAL', "Ce module est tel quel, sans aucune garantie. Bien que cette +define('_MI_SF_WARNING_FINAL', "Ce module est tel quel, sans aucune garantie. Même si ce module n'est pas une version bêta, il est toujours en développement actif. Cette version peut être utilisée dans un site Web en ligne ou un environnement de production, mais son utilisation est sous votre propre responsabilité, ce qui signifie que l'auteur n'est pas responsable."); Modified: XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french_iso/modinfo.php =================================================================== --- XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french_iso/modinfo.php 2012-05-23 02:10:13 UTC (rev 9579) +++ XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french_iso/modinfo.php 2012-05-23 02:42:41 UTC (rev 9580) @@ -331,7 +331,7 @@ // Final -define('_MI_SF_WARNING_FINAL', "Ce module est tel quel, sans aucune garantie. Bien que cette +define('_MI_SF_WARNING_FINAL', "Ce module est tel quel, sans aucune garantie. M\xEAme si ce module n'est pas une version b\xEAta, il est toujours en d\xE9veloppement actif. Cette version peut \xEAtre utilis\xE9e dans un site Web en ligne ou un environnement de production, mais son utilisation est sous votre propre responsabilit\xE9, ce qui signifie que l'auteur n'est pas responsable."); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ce...@us...> - 2012-05-23 02:10:22
|
Revision: 9579 http://xoops.svn.sourceforge.net/xoops/?rev=9579&view=rev Author: cesag Date: 2012-05-23 02:10:13 +0000 (Wed, 23 May 2012) Log Message: ----------- Adding French translation of SmartFAQ 1.12 Added Paths: ----------- XoopsLanguages/french/modules/smartfaq/ XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/ XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/ XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/ XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/admin.php XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/blocks.php XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/index.html XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/ XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/category_faq_answer_proposed.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/category_faq_answer_published.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/category_faq_published.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/category_faq_submitted.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/category_question_answer_proposed.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/category_question_published.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/category_question_submitted.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/faq_answer_approved.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/faq_answer_rejected.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/faq_approved.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/faq_rejected.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/global_faq_answer_proposed.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/global_faq_answer_published.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/global_faq_category_created.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/global_faq_published.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/global_faq_submitted.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/global_question_answer_proposed.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/global_question_published.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/global_question_submitted.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/index.html XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/question_answer_approved.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/question_answer_rejected.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/question_approved.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/question_rejected.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/main.php XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/modinfo.php XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/smartdbupdater.php XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french_iso/ XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french_iso/admin.php XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french_iso/blocks.php XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french_iso/index.html XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french_iso/mail_template/ XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french_iso/mail_template/category_faq_answer_proposed.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french_iso/mail_template/category_faq_answer_published.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french_iso/mail_template/category_faq_published.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french_iso/mail_template/category_faq_submitted.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french_iso/mail_template/category_question_answer_proposed.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french_iso/mail_template/category_question_published.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french_iso/mail_template/category_question_submitted.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french_iso/mail_template/faq_answer_approved.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french_iso/mail_template/faq_answer_rejected.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french_iso/mail_template/faq_approved.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french_iso/mail_template/faq_rejected.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french_iso/mail_template/global_faq_answer_proposed.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french_iso/mail_template/global_faq_answer_published.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french_iso/mail_template/global_faq_category_created.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french_iso/mail_template/global_faq_published.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french_iso/mail_template/global_faq_submitted.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french_iso/mail_template/global_question_answer_proposed.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french_iso/mail_template/global_question_published.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french_iso/mail_template/global_question_submitted.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french_iso/mail_template/index.html XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french_iso/mail_template/question_answer_approved.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french_iso/mail_template/question_answer_rejected.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french_iso/mail_template/question_approved.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french_iso/mail_template/question_rejected.tpl XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french_iso/main.php XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french_iso/modinfo.php XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french_iso/smartdbupdater.php Added: XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/admin.php =================================================================== --- XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/admin.php (rev 0) +++ XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/admin.php 2012-05-23 02:10:13 UTC (rev 9579) @@ -0,0 +1,328 @@ +<?php + +/** +* $Id: admin.php 1304 2010-10-17 22:21:07Z kris_fr $ +* Module: SmartFAQ +* Author: The SmartFactory <www.smartfactory.ca> +* Licence: GNU +*/ + +define('_AM_SF_ABOUT', 'A propos'); +define('_AM_SF_ACTION', 'Action'); +define('_AM_SF_ADMINCOLMNGMT', 'Gestion des Catégories'); +define('_AM_SF_ADMIN_CATS', 'Choisissez les Catégories que chaque groupe peut modérer'); +define('_AM_SF_ALL', 'Tout'); +define('_AM_SF_ALL_EXP', '<strong>Tous les status</strong> : Toutes les questions et réponses de ce module, quel que soit leur statut.'); +define('_AM_SF_ALLOWCOMMENTS', 'Peut-on commenter les Q&R ?'); +define('_AM_SF_ANSWER', 'Réponse Proposée'); +define('_AM_SF_ANSWER_APPROVED_NEED_APPROVED', 'La Réponse a été approuvée. La Q&R doit maintenant être visée par un modérateur.'); +define('_AM_SF_ANSWER_APPROVED_PUBLISHED', 'La Réponse a été approuvée et la Q&R a été publiée.'); +define('_AM_SF_ANSWER_OFFICIAL', 'Réponse Officielle'); +define('_AM_SF_ANSWER_REJECTED', 'La Réponse a été rejetée.'); +define('_AM_SF_ANSWER_REJECTED_OPEN_QUESTION', 'La Réponse a été rejetée et la question est à présent dirigée vers la Section Question ouverte pour qu'un autre utilisateur puisse y répondre.'); +define('_AM_SF_ANSWER_DELETE_ERROR', 'Une erreur s'est produite à l'effacement de la réponse'); +define("_AM_SF_ANSWERED_APPROVE_SUCCESS", "La réponse a été revue et le Q&A <br />a été publiée dans la section publique du site."); +define("_AM_SF_ANSWERED_BY", "Question répondue par : "); +define("_AM_SF_ANSWERED_TITLE", "Questions ouvertes ayant reçu des réponses"); +define("_AM_SF_ANSWERED_TITLE_INFO", "Cette question ouverte a reçu une réponse. Vous pouvez éditer le Q&A ici. Celle ci approuvée, la Q&A sera publiée dans la section publique du site."); +define('_AM_SF_ANSWERING', 'Répondre'); +define('_AM_SF_ANSWERED', 'Répondu'); +define('_AM_SF_ANSWERED_EXP', '<strong>Réponses aux Questions</strong> : Questions de la section des Questions ouvertes ayant reçu des réponses de la part les utilisateurs. La Réponse Approuvée, la Question devient une Q&R qui se doit d'être tout autant Approuvée. '); +define('_AM_SF_ANSWERED_MODERATE', 'Modérer la Réponse à cette Question'); +define('_AM_SF_ANSWERISDELETED', 'La Réponse a été effacée'); +define('_AM_SF_ANSWERNOTFOUND', 'Erreur : Aucune Réponse Officielle'); +define('_AM_SF_APPROVE', 'Approuver'); +define('_AM_SF_APPROVED', 'Réponse Approuvée'); +define('_AM_SF_APPROVED_INFO', 'La Réponse à cette Question a été Approuvée. Cette Question devient alors promue à l'état de Q&R soumis et se doit d'être approuvée afin d'être publiée dans la Section des Q&R.'); +define("_AM_SF_APPROVED_MODERATE", "Modérer cette proposition de Q&R"); +define('_AM_SF_APPROVED_TITLE', 'Réponse Approuvée'); +define('_AM_SF_APPROVESUB', 'Approuver la Proposition'); +define('_AM_SF_APPROVING', 'Approbation'); +define("_AM_SF_ANSWER_FAQ", "Réponse<span style='font-size: xx-small; font-weight: normal; display: block;'>Réponse détaillée se rapportant à la Question.</span>"); +define('_AM_SF_ARTCOLNAME', 'Catégorie'); +define('_AM_SF_ARTCREATEDOK', 'La Q&R a été approuvée et publiée dans la Section des Q&R'); +define('_AM_SF_ARTID', 'N°'); +define('_AM_SF_ARTISDELETED', 'La Q&R a été effacée'); +define('_AM_SF_ARTMODIFIED', 'La Q&R a été modifiée'); +define('_AM_SF_ARTNOTCREATED', 'Désolé. Il a été impossible de créer cette Q&R!'); +define('_AM_SF_ARTNOTUPDATED', 'Désolé. Il été impossible de mettre à jour cette Q&R'); +define("_AM_SF_ASC", "Ascendant"); +define('_AM_SF_ASKED', 'Demandé'); +define("_AM_SF_ASKED_APPROVE_SUCCESS", "La question posée a reçu une réponse et la Q&A a été publiée dans la section publique du site."); +define('_AM_SF_ASKED_EXP', '<strong>Questions Posées</strong> : Questions posées par les utilisateurs. Les Questions n'ont pas encore été approuvées par un modérateur. Une fois approuvées, les <i>Questions Posées</i> deviendront des <i>Questions Ouvertes</i> et seront dirigées vers la Section des <strong>Questions Ouvertes</strong>'); +define("_AM_SF_ASKED_TITLE", "Question posée"); +define("_AM_SF_ASKED_TITLE_INFO", "Ceci est une question posée par un utilisateur. Vous pouvez réviser la question et écrire la réponse.<br />Ceci approuvé, la Q&A sera publiée dans la section publique du site."); +define('_AM_SF_AUTHFAQ', 'Publier la Réponse soumise'); +define('_AM_SF_AUTHORIZE', 'Autoriser'); +define('_AM_SF_BACK2IDX', 'Abandonné. Vous renvoie à l'index'); +define('_AM_SF_BLOCKS', 'Gestion des Blocs'); +define('_AM_SF_BLOCKSTXT', 'Ce module dispose des blocs suivants, que vous pouvez gérer ici ou dans le système de gestion des blocs.'); +define('_AM_SF_BLOCKSANDGROUPS', 'Blocs et Groupes'); +define('_AM_SF_BLOCKSGROUPSADMIN', 'Gestion des Blocs et des Groupes'); +define('_AM_SF_BY', 'par'); +define('_AM_SF_CANCEL', 'Abandonner'); +define('_AM_SF_CATCREATED', 'Une Nouvelle Catégorie a été créée et sauvegardée'); +define('_AM_SF_CATEGORIES_DSC', 'Vous retrouvez ici la liste des Catégories créées du Module'); +define('_AM_SF_CATEGORIES_TITLE', 'Catégories Créées'); +define('_AM_SF_CATEGORY', 'Catégorie'); +define('_AM_SF_CATEGORY_CREATE', 'Créer une Catégorie'); +define("_AM_SF_CATEGORY_FAQ", "Catégorie<span style='font-size: xx-small; font-weight: normal; display: block;'>Catégorie se rapportant à cette Q&R.</span>"); +define("_AM_SF_CATEGORY_QUESTION", "Catégorie<span style='font-size: xx-small; font-weight: normal; display: block;'>Catégorie à laquelle appartient cette question.</span>"); +define('_AM_SF_CATEGORY_SAVE_ERROR', 'Une erreur est survenue lors de la sauvegarde des Catégories. Vous retrouvez ici la liste des erreurs'); +define('_AM_SF_CLEAR', 'Nettoyer'); +define('_AM_SF_COLDESCRIPT', 'Description de Catégorie'); +define('_AM_SF_COLISDELETED', 'La Catégorie %s a été Effacée'); +define('_AM_SF_COLMODIFIED', 'La Catégorie a été Modifiée'); +define('_AM_SF_COLPOSIT', 'Position de Catégorie'); +define('_AM_SF_CATEGORIES', 'Catégories'); +define('_AM_SF_CATHEADER', 'Gestion des Catégories'); +define('_AM_SF_CONTEXTMODULELINK', 'Lié(e) contextuellement à ce Module'); +define("_AM_SF_CONTEXTMODULELINK_FAQ", "Contexte lié à ce Module<span style='font-size: xx-small; font-weight: normal; display: block;'>Sélectionnez le Module avec lequel cette Q&R sera<br />liée. Si le Bloc de Contexte de Q&R est visible<br />pour ce module, la phrase du 'Comment fais-je' de <br />cette Q&R sera affichée.</span>"); +define('_AM_SF_CONTEXTOPTIONS', 'Options de Contexte'); +define('_AM_SF_CONTEXTPAGE', 'Lié(e) contextuellement à cette URL'); +define('_AM_SF_CONTEXTURLLINK', 'Lier à cette URL'); +define('_AM_SF_CREATE', 'Créer'); +define('_AM_SF_CREATED', 'Créé(e)'); +define('_AM_SF_CREATEART', 'Créer une Q&R'); +define('_AM_SF_CREATESMARTFAQ', 'Créer une nouvelle Q&R'); +define('_AM_SF_CREATEQUESTION', 'Créer une Question Ouverte'); +define('_AM_SF_CREATECATEGORY', 'Créer une Nouvelle Catégorie'); +define('_AM_SF_CREATEIN', 'Créer dans la Catégorie'); +define('_AM_SF_CREATINGNEW', 'Créer un Nouveau'); +define('_AM_SF_CREATEFAQ', 'Créer une Nouvelle Q&R'); +define('_AM_SF_DELETE', 'Effacer'); +define('_AM_SF_DELETEART', 'Effacer la Q&R'); +define('_AM_SF_DELETE_CAT_CONFIRM', 'Veuillez considérer qu'en effaçant une Catégorie, que toutes les Sous Catégories et Q&R attachées, ainsi que tous les commentaires attachés seront effacés. Etes vous vraiment certain de désirer effacer cette Catégorie ?'); +define('_AM_SF_DELETE_CAT_ERROR', 'Erreur rencontrée à l'effacement de cette Catégorie'); +define('_AM_SF_DELETECOL', 'Effacer une Catégorie'); +define('_AM_SF_DELETESUBM', 'Effacer une Proposition'); +define('_AM_SF_DELETETHISARTICLE', 'Effacer cette Q&R ?'); +define('_AM_SF_DELETETHISANSWER', 'Effacer cette Réponse ?'); +define('_AM_SF_DELETETHISQUESTION', 'Effacer cette Question ?'); +define('_AM_SF_DELETEQUESTION', 'Effacer une Question'); +define("_AM_SF_DESC", "Descendant"); +define('_AM_SF_DESCRIP', 'Description de la Catégorie '); +define('_AM_SF_DIDUNO', 'Le Saviez-Vous ?'); +define("_AM_SF_DIDUNO_FAQ", "Le Saviez vous ?<span style='font-size: xx-small; font-weight: normal; display: block;'>Sera utilisé dans le bloc le Saviez Vous.</span>"); +define('_AM_SF_DOCONTEXT', 'Donner un contexte à cette Q&R'); +define('_AM_SF_DOHTML', 'Autoriser les balises HTML'); +define('_AM_SF_DOSMILEY', 'Autoriser les emoticônes'); +define('_AM_SF_DOXCODE', 'Autoriser les codes XOOPS'); +define('_AM_SF_EDITART', 'Editer une Q&R'); +define('_AM_SF_EDITCOL', 'Editer une Catégorie'); +define('_AM_SF_EDITING', 'Edition'); +define('_AM_SF_EDITING_INFO', 'Vous pouvez éditer cette question. Les modifications apportées prendront immédiatement effet dans la section des Questions Ouvertes.'); +define('_AM_SF_EDITQUES', 'Editer la question'); +define('_AM_SF_EDITSUBM', 'Editer la Proposition'); +define('_AM_SF_ERROR', 'Une erreur s'est produite'); +define('_AM_SF_ERROR_ANSWER_NOT_SAVED', 'Une erreur s'est produite. La réponse n'a pas été sauvegardée dans la base de données'); +define('_AM_SF_ERROR_FAQ_NOT_SAVED', 'Une erreur s'est produite. La Q&R n'a pas été sauvegardée dans la Base de données'); +define("_AM_SF_EXACTURL", "URL Exacte ?<span style='font-size: xx-small; font-weight: normal; display: block;'>Si ce paramètre est 'Oui', 'l'URL Spécifique' ci-dessus devra correspondre exactement à l'URL courante pour que la Q&R soit affichée. <br />Si le Paramètre est 'Non', la Q&R sera affichée si cette 'URL Spécifique' correspond à une partie de l'URL courante. (modules/newbb/*.php)</span>"); + +define('_AM_SF_FAQ_EDIT', 'Editer cette Q&R'); +define("_AM_SF_FAQ_NEW_ANSWER_PUBLISHED", "La réponse originale a été remplacée par cette réponse."); +define("_AM_SF_FAQ_REVIEW", "Modifier cette réponse avant approbation"); +define("_AM_SF_FAQ_MERGE", "Fusionner la réponse originale et la nouvelle réponse"); +define("_AM_SF_FAQ_APPROVE_NEW_ANSWER", "Approuver cette nouvelle réponse sans l'examiner"); +define('_AM_SF_GOMOD', 'Accéder au Module'); +define('_AM_SF_GROUPS', 'Gestion des Groupes'); +define('_AM_SF_GROUPSINFO', 'Configure les droits du Module et des Blocs pour chaque Groupe'); +define('_AM_SF_HELP', 'Aide'); +define('_AM_SF_HOWDOI', 'Comment fais je ...'); +define("_AM_SF_HOWDOI_FAQ", "Comment fais-je ...<span style='font-size: xx-small; font-weight: normal; display: block;'>sera utilisé dans le block contextuel de la Q&R.<br />ce devrait être une version courte de la Question.</span>"); +define('_AM_SF_ID', 'N°'); +define('_AM_SF_IMPORT', 'Importer'); +define('_AM_SF_IMPORT_ALL_QUESTIONS', 'Toutes les Questions'); +define('_AM_SF_IMPORT_ALLOWCOMMENTS', 'Les Q&R peuvent-elles être commentées ?'); +define('_AM_SF_IMPORT_ANSWER_ERROR', 'Une erreur s'est produite au chargement de la Réponse <em>%s</em>.'); +define('_AM_SF_IMPORT_AUTOAPPROVE', 'Auto-Approbation'); +define('_AM_SF_IMPORT_BACK', 'Retour à la page d'Importation'); +define('_AM_SF_IMPORT_CATEGORY_ERROR', 'Une Erreur s'est produite au chargement de la Catégorie <em>%s</em>.'); +define('_AM_SF_IMPORT_CATEGORY_SUCCESS', 'La Catégorie <em>%s</em> à été importée avec succès.'); +define('_AM_SF_IMPORT_CATEGORIES', '%s Catégories'); +define("_AM_SF_IMPORT_CATEGORY_FAQ", "Une erreur à été produite pendant l'importation des FAQq <em>%s</em>."); +define('_AM_SF_IMPORT_ERROR', 'Une Erreur s'est produite à l'Importation de la Q&R'); +define("_AM_SF_IMPORT_FILE_NOT_FOUND", "Fichier d'import non trouvé sur <strong>%s</strong>"); +define('_AM_SF_IMPORT_FROM', 'Importation de %s'); +define("_AM_SF_IMPORT_INFO", "Vous pouvez directement importer les paramètres de la Q&R vers le module. Choisissez simplement le paramètre que vous désirez importer et cliquez sur le bouton 'Importer'."); +define('_AM_SF_IMPORT_MODULE_FOUND', '%s module a été trouvé. il y a %s Catégories et %s Q&R.'); +define("_AM_SF_IMPORT_MODULE_FOUND_NO_FAQ", "%s module a été. Il y a %s catégories mais aucune FAQ n'a été importée."); +define('_AM_SF_IMPORT_NO_CATEGOY', 'Il n'y a pas de Catégories à Importer'); +define("_AM_SF_IMPORT_NO_MODULE", "XoopsFAQ ou WF-FAQ n'étant pas installé sur ce site, vous ne pouvez pas accéder aux options d'importations."); +define('_AM_SF_IMPORT_ONLY_VISIBLE', 'Seulement les Questions visibles'); +define('_AM_SF_IMPORT_PARENT_CATEGORY', 'SmartFAQ Catégorie parente'); +define("_AM_SF_IMPORT_PERMISSIONS", "Permissions<span style='font-size: xx-small; font-weight: normal; display: block;'>Groupes qui auront les permissions nécéssaires à pouvoir visualiser ces Q&R importées.<br />Cette Q&R.</span>"); +define('_AM_SF_IMPORT_RESULT', 'Voici les résultats de l'importation.'); +define('_AM_SF_IMPORT_SETTINGS', 'Paramètre d'Importation'); +define('_AM_SF_IMPORT_SUCCESS', 'Les Paramètres de la Q&R ont été chargés avec succès dans le module.'); +define('_AM_SF_IMPORT_TITLE', 'Importer une Q&R'); +define("_AM_SF_IMPORT_WFFAQ_105", "FAQs depuis WF-FAQ 1.0.5"); +define("_AM_SF_IMPORT_XOOPSFAQ_110", "FAQs depuis XoopsFAQ 1.1"); +define('_AM_SF_IMPORTED_CATEGORIES', 'Catégories importées : %s'); +define('_AM_SF_IMPORTED_QUESTION', 'Importation de Questions : <em>%s</em>'); +define('_AM_SF_IMPORTED_QUESTIONS', 'Questions importées : <em>%s</em>'); +define('_AM_SF_IMPORTED_USER', 'Soumis et Répondu par'); +define('_AM_SF_IMPORT_SELECTION', "Sélection d'Importation"); +define("_AM_SF_IMPORT_SELECT_FILE", "Paramètre de Q&R<span style='font-size: xx-small; font-weight: normal; display: block;'>Choisissez le paramètre de Q&R que vous désirez importer dans le module.</span>"); +define('_AM_SF_INDEX', 'Index'); +define('_AM_SF_INVENTORY', 'Résumé du Module'); +define('_AM_SF_MODADMIN', 'Admin du Module : '); +define('_AM_SF_MODART', 'Modifiez une Q&R'); +define('_AM_SF_MODCOL', 'Modifiez une Catégorie existante'); +define("_AM_SF_MODERATORS_DEF", "Modérateurs<span style='font-size: xx-small; font-weight: normal; display: block;'>Utilisateurs qui peuvent agir en modérateur pour cette<br />Catégorie. Ils seront habilités à ajouter, éditer,<br />approuver et effacer les questions et les Q&R<br />contenues dans cette Catégorie.</span>"); +define('_AM_SF_MODIFY', 'Modifier'); +define('_AM_SF_MODIFYCOL', 'Modifier une Catégorie'); +define('_AM_SF_MODIFYTHISCOL', 'Modifier cette catégorie ?'); +define('_AM_SF_MODULEHEAD', "Résumés et question/réponse dans chaque statut"); +define('_AM_SF_NEED_CATEGORY_FAQ', 'Pour Créer une Q&R, vous devez en premier lieu Créer une Catégorie'); +define('_AM_SF_NEED_CATEGORY_QUESTION', 'Pour Créer une Question, Vous devez en premier lieu Créer une Catégorie'); +define('_AM_SF_NEWANSWER', 'Nouvelle Réponse'); +define('_AM_SF_NEW_ANSWER', 'Nouvelle Réponse'); +define('_AM_SF_NEW_ANSWER_EXP', '<strong>Nouvelle Réponse</strong> : Une nouvelle Réponse à été émise par un Utilisateur au sujet d'une Q&R publiée. Une fois cette Réponse validée cette dernière devient la Réponse officielle à la Question'); +define("_AM_SF_NEW_ANSWER_EDITING", "Editer une Q&A avec une nouvelle réponse"); +define("_AM_SF_NEW_ANSWER_EDITING_INFO", "Une nouvelle réponse a été soumise pour cette Q&A. Vous pouvez l'éditer ici. Quand vous publiez cette Q&A, la nouvelle réponse remplacera l'originale."); +define('_AM_SF_NEWART', 'Créer une nouvelle Q&R'); +define("_AM_SF_NEW_CONTRIBUTION", "--- détails additionnels soumis par %s sur %s\n\n%s"); +define('_AM_SF_NEWQUESTION', 'Créer une nouvelle Question'); +define('_AM_SF_NO', 'Non'); +define('_AM_SF_NO_NEWANSWERS', 'Il n'y a actuellement aucune Réponse aux Q&R publiées'); +define('_AM_SF_NOFAQS', 'il n'y a actuellement aucune Q&R publiée'); +define('_AM_SF_NOFOUND', 'Aucun utilisateur ne correspond à cette requête'); +define('_AM_SF_NONE', 'Aucune'); +define('_AM_SF_NOPERMSSET', 'Aucune Permission ne peut être paramétrée. Il n'y a pas de Catégorie! Veuillez Créer une Catégorie dans un premier temps'); +define('_AM_SF_NOS', 'Aucune Q&R n'est à visualiser pour le moment'); +define('_AM_SF_NOCAT', 'Aucune Catégorie à visualiser'); +define('_AM_SF_NOCATSELECTED', 'Aucune Catégorie sélectionnée'); +define('_AM_SF_NOCOLTOEDIT', 'Aucune Catégorie n'est à éditer!'); +define('_AM_SF_NOFAQSELECTED', 'Aucune Q&R sélectionnée'); +define('_AM_SF_NOANSWERS', 'Aucune Réponse trouvé'); +define('_AM_SF_NOANSWERYET', 'Aucune Réponse en Attente d'approbation actuellement'); +define('_AM_SF_NOQUEUED', 'Aucune Question Ouverte actuellement'); +define('_AM_SF_NOREQUESTYET', 'Aucune Demande en Attente d'Approbation actuellement'); +define('_AM_SF_NOSUBMISSYET', 'Aucune Soumission en Attente d'Approbation Actuellement'); +define('_AM_SF_NOTUPDATED', 'Une Erreur s'est produite lors de la mise à jour de la Base de Données'); +define('_AM_SF_OFFLINE', 'Hors ligne'); +define('_AM_SF_OFFLINE_EXP', '<strong>Q&R Hors ligne</strong> : Q&R mise Hors ligne temporairement ou non. Les Q&R Hors ligne ne seront plus montrées dans la section des Q&R'); +define("_AM_SF_OFFLINE_FIELD", "Hors ligne<span style='font-size: xx-small; font-weight: normal; display: block;'>Sélectionnez 'Non' pour renvoyer cette Q&R<br />en ligne dans la Section des Q&R.</span>"); +define('_AM_SF_OFFLINEEDITING', 'Editer une Q&R hors ligne'); +define("_AM_SF_OFFLINEEDITING_INFO", "Vous pouvez Editer cette Q&R hors ligne. Les Modifications seront sauvegardées pour cet article. Aussi, Si vous désirez montrer cette Q&R dans la Section des Q&R, Vous devrez paramétrer le champ <strong>Hors Ligne</strong> à 'Non'."); +define('_AM_SF_OPEN_QUESTION', 'Question ouverte'); +define('_AM_SF_OPEN_QUESTIONS', 'Questions ouvertes'); +define('_AM_SF_OPENED', 'Ouverte'); +define("_AM_SF_OPEN_QUESTION_EDIT", "Répondre à cette question"); +define('_AM_SF_OPENED_TITLE', 'Questions Publiées dans la Section des Questions Ouvertes'); +define('_AM_SF_OPENED_DSC', 'Voici la liste de toutes les Questions publiées dans la Section des Questions Ouvertes.'); +define('_AM_SF_OPENED_EXP', '<strong>Questions Ouvertes</strong> : Questions posées par un Utilisateur et approuvées par un Modérateur. Ces Questions ont été dirigées vers la Section des <i>Questions Ouvertes</i> du Module. Attendez que les Utilisateurs y répondent eux-mêmes.'); +define('_AM_SF_OPTIONS', 'Options'); +define('_AM_SF_OPTS', 'Préférences'); +define('_AM_SF_OPEN_QUESTION_ANSWERING', 'Répondre à une Question Ouverte'); +define('_AM_SF_OPEN_QUESTION_ANSWERING_INFO', 'Vous répondez à une question ouverte, qui deviendra une Q&R et sera publiée dans la Section des Q&R.'); +define('_AM_SF_OPENED_ANSWERING_SUCCESS', 'Une réponse à une Question ouverte a été émise et publiée dans la Section Q&R'); +define("_AM_SF_PARENT_CATEGORY_EXP", "Catégorie Parente<span style='font-size: xx-small; font-weight: normal; display: block;'>Cette Catégorie est-elle une sous Catégorie ?<br />Si oui, sélectionnez la Catégorie qui<br />sera en relation avec cette présente Catégorie.</span>"); +define('_AM_SF_PERMISSIONS', 'Permissions'); +define("_AM_SF_PERMISSIONS_FAQ", "Permissions<span style='font-size: xx-small; font-weight: normal; display: block;'>Groupes qui auront les droits de visualisation pour<br />cette Q&R.</span>"); +define("_AM_SF_PERMISSIONS_QUESTION", "Permissions<span style='font-size: xx-small; font-weight: normal; display: block;'>Groupes qui auront les droits nécessaires à la visualisation de cette Question.</span>"); +define("_AM_SF_PERMISSIONS_CAT_READ", "Droits de lecture<span style='font-size: xx-small; font-weight: normal; display: block;'>Groupes disposant des permissions requises à la visualisation de cette Catégorie, aussi bien que de n'importe quelle Question Ouverte et Q&R dans cette Catégorie.</span>"); +define("_AM_SF_PERMISSIONS_APPLY_ON_FAQS", "Appliquer les permissions de lecture de Q&R<span style='font-size: xx-small; font-weight: normal; display: block;'>Appliquer les permissions de lecture ci-dessus sur toutes les Q&R de cette catégorie, écrasant les permissions globales des Q&R.</span>"); +define('_AM_SF_PERMISSIONSADMIN', 'Gestion des Droits'); +define('_AM_SF_PERMISSIONSVIEWMAN', 'Droits de Visualisation des Catégories'); +define('_AM_SF_PERMISSIONSADMINMAN', 'Droits de Modérations des Catégories'); +define("_AM_SF_POSITION", "Position"); +define('_AM_SF_PUBLISH', 'Publier'); +define('_AM_SF_PUBLISHED', 'Publié'); +define('_AM_SF_PUBLISHED_DSC', 'Voici la liste de toutes les Q&R Publiées disponibles dans la Section des Q&R.'); +define('_AM_SF_PUBLISHED_EXP', '<strong>Q&R Publiés</strong> : Q&R Approuvées, et transmises à la Section des Q&R'); +define('_AM_SF_PUBLISHED_MOD_SUCCESS', 'La Q&R a été modifiée avec Succès'); +define('_AM_SF_PUBLISHEDANSWER', 'Réponse Publiée'); +define('_AM_SF_PUBLISHEDNEWANSWER', 'Réponse(s) soumise(s) récente(s) de Q&R Publiées'); +define('_AM_SF_PUBLISHEDFAQS', 'Q&R Publiées'); +define("_AM_SF_PUBLISHEDFAQS_CAT", "Q&R de cette catégorie"); +define("_AM_SF_PUBLISHED_CAT_DSC", "Voici la liste des Q&R publiées dans cette catégorie."); +define('_AM_SF_PUBLISHEDEDITING', 'Edition d'une Q&R Publiée'); +define('_AM_SF_PUBLISHEDEDITING_INFO', 'Vous pouvez éditer cette Q&R. Les modifications seront immédiatement prises en compte dans la section des Q&R.'); +define('_AM_SF_QUESTION', 'Question'); +define('_AM_SF_QUESTION_APPROVING', 'Approuver une Question'); +define('_AM_SF_QUESTION_APPROVING_INFO', 'Revoir l'ordre de Publication de cette Question dans la Section des Questions Ouvertes. Les autres utilisateurs auront alors la possibilité de proposer des réponses à cette question.'); +define('_AM_SF_QUESTION_EDIT', 'Editer cette Question'); +define('_AM_SF_QUESTION_MODERATE', 'Modérez cette Question'); +define('_AM_SF_QUESTIONCREATEDOK', 'La Question a été créée avec succès et ajoutée à la Section des Questions Ouvertes!'); +define('_AM_SF_QUESTIONISDELETED', 'La Question a été Effacée.'); +define('_AM_SF_QUESTIONHEADER', 'Gestion des Questions'); +define('_AM_SF_QUESTIONMODIFIED', 'La Question a été Modifiée avec succès!'); +define('_AM_SF_QUESTIONNOTCREATED', 'Désolé. Il n'a pas été possible de Créer cette Question!'); +define('_AM_SF_QUESTIONNOTUPDATED', 'Désolé. Il n' a pas été possible de mettre à jour cette Question!'); +define('_AM_SF_QUESTIONPUBLISHED', 'La Question a été Publiée dans la Section des Questions Ouvertes.'); +define('_AM_SF_QUESTIONS', 'Questions'); +define('_AM_SF_QUESTION_AFFIRMATION', 'Question ou Affirmation'); +define('_AM_SF_QUEUE', 'Publier dans les Questions Ouvertes'); +define('_AM_SF_REJECTED_EDIT', 'Editez cette Q&R rejetée'); +define('_AM_SF_REQUEST_QUEUE', 'La Question a été ajoutée avec succès dans la Section des Questions Ouvertes '); +define('_AM_SF_REJECTED_QUESTION', 'Question Rejetée'); +define('_AM_SF_REJECTED_QUESTION_EXP', '<strong>Question Rejetée</strong> : Questions émises par un Utilisateur, Rejetée par un Modérateur. Les Questions Rejetées ne sont pas montrées à la Section des Questions Ouvertes.'); +define('_AM_SF_REJECTED_SMARTFAQ', 'Q&R Rejetée'); +define('_AM_SF_REJECTED_SMARTFAQ_EXP', '<strong>Q&R Rejetée</strong> : Q&R proposées par un Utilisateur, rejetées par un Modérateur. Les Q&R rejetées ne sont pas montrées dans la Section des Q&R'); +define("_AM_SF_REQUESTED_BY", "Question demandée par : "); +define("_AM_SF_SELECT_SORT", "Ordre de tri : "); +define('_AM_SF_SELECT_STATUS', 'Choisissez un statut'); +define('_AM_SF_SHOWING', 'État sélectionné : '); +define('_AM_SF_SHOWREQUEST', 'Demande de Question en attente de publication dans la Section des Questions Ouvertes.'); +define('_AM_SF_SHOWSUBMITED_ANSWERS', 'Soumission de Réponse en Attente d'Approbation.'); +define('_AM_SF_SHOWSUBMISSIONS', 'Proposition de Q&R en attente de Publication'); +define('_AM_SF_SMARTFAQ', 'Q&R'); +define('_AM_SF_SMARTFAQS', 'Q&R'); +define('_AM_SF_SMARTFAQ_APPROVING', 'Approbation de Q&R'); +define("_AM_SF_STATUS_EXP", "Statuts<span style='font-size: xx-small; font-weight: normal; display: block;'>Sélectionnez le statut de la Q&R.</span>"); +define('_AM_SF_SUBMISSIONSMNGMT', 'Proposition de Q&R'); +define('_AM_SF_SPECIFIC_URL_SELECT', 'URL Spécifique ...'); +define('_AM_SF_SPECIFIC_URL', 'URL Spécifique : </span><span style='font-size: xx-small; font-weight: normal; display: block;'> Si vous avez choisi <i>'. _AM_SF_SPECIFIC_URL_SELECT . '</i> dans le "Contexte lié à ce module" ci-dessus, veuillez en spécifier l'URL.<br /><strong>Exemple : </strong> modules/newbb</span>'); +define("_AM_SF_SUBMISSION_MODERATE", "Modérer cette Proposition de Q&R"); +define('_AM_SF_SUBMITTED', 'Proposé'); +define('_AM_SF_SUBMITTED_EXP', '<strong>Propositions de Q&R</strong> : Q&R proposées par les Utilisateurs. Une fois approuvés ces dernières seront montrées dans la Section des Q&R.'); +define('_AM_SF_SUBMITTED_ANSWER', 'Proposition de Réponse'); +define('_AM_SF_SUBMITTED_ANSWER_ACCEPTED', 'La Réponse proposée a été Approuvée.'); +define('_AM_SF_SUBMITTED_ANSWER_INFO', 'Voici la liste des propositions de Réponses pour cette question. Choisissez-en une qui sera la Réponse Officielle à cette Question.'); +define("_AM_SF_SUBMITTED_INFO", "Cette Q&R a étée; soumise par un membre. Vous pouvez faire autant de modifications que vous le désirez. Une fois approuvée, cette Q&R sera montrée dans la Section des Q&R de ce site."); +define('_AM_SF_SUBMITTED_APPROVE_SUCCESS', 'La Q&R proposée a été Publiée dans la Section des Q&R.'); +define('_AM_SF_SUBMITTED_TITLE', 'Approuver une proposition de Q&R'); +define('_AM_SF_FAQ_DELETE_ERROR', 'Une erreur est apparue lors de l'effacement de la Q&R.'); +define('_AM_SF_TOTALPUBLISHED', 'Publiées : '); +define('_AM_SF_TOTALCAT', 'Catégories : '); +define('_AM_SF_TOTALNEWANSWERS', 'Nouvelles Réponses : '); +define('_AM_SF_TOTALSUBMITTED', 'Proposés : '); +define('_AM_SF_TOTALOPENED', 'Ouverts : '); +define('_AM_SF_TOTALASKED', 'Demandes : '); +define('_AM_SF_VIEW_CATS', 'Sélectionnez les Catégories que chaque Groupe pourra Visualiser'); +define('_AM_SF_WEIGHT', 'Poids'); +define('_AM_SF_XOOPS_QA', 'XOOPS Q&R'); +define('_AM_SF_YES', 'Oui'); +define("_AM_SF_PARTIALVIEW", "Permettre aux anonymes d'avoir une vue partielle de la réponse"); + +// Search users +define("_AM_SF_FINDUSERS", "Recherche d'Utilisateurs"); +define('_AM_SF_UNAME', 'Nom d'Utilisateur'); +define('_AM_SF_REALNAME', 'Nom réel'); +define('_AM_SF_LIMIT', 'Utilisateurs par page'); +define('_AM_SF_SUBMIT', 'Valider'); +define('_AM_SF_RESULTS', 'Résultats de la Recherche'); +define('_AM_SF_ACTIVEUSERS', 'Utilisateurs actifs : %s'); +define('_AM_SF_INACTIVEUSERS', 'Utilisateurs inactifs : %s'); + +// New table +define('_AM_SF_FAQID', 'N°'); +define('_AM_SF_FAQCAT', 'Catégorie'); +define('_AM_SF_STATUS', 'Statuts'); +define('_AM_SF_NOFAQSSEL', 'Désolé. Aucun article dans l'état sélectionné'); +define('_AM_SF_ANSWERS', 'Réponses'); +define('_AM_SF_ALLFAQS', 'Q&R du Module'); +define('_AM_SF_ALLFAQSMSG', 'Sélectionnez un statut pour visualiser toutes les questions et/ou les réponses disponibles avec ce statut.'); + +define("_AM_SF_UPDATE", "Mise à jour"); + +/** + * @translation Communauté Francophone des Utilisateurs de Xoops + * @specification _LANGCODE: fr + * @specification _CHARSET: UTF-8 + * + * @version $Id: admin.php 1304 2010-10-17 22:21:07Z kris_fr $ +**/ +?> \ No newline at end of file Added: XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/blocks.php =================================================================== --- XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/blocks.php (rev 0) +++ XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/blocks.php 2012-05-23 02:10:13 UTC (rev 9579) @@ -0,0 +1,38 @@ +<?php + +/** +* $Id: blocks.php 1304 2010-10-17 22:21:07Z kris_fr $ +* Module: SmartFAQ +* Author: The SmartFactory <www.smartfactory.ca> +* Licence: GNU +*/ + +// Blocks +define('_MB_SF_ALLCAT', 'Toutes les Catégories'); +define('_MB_SF_ALLUNANSWERED', 'Voir toutes les Questions sans Réponses ...'); +define('_MB_SF_ANSWEREDBY', 'Réponse de'); +define('_MB_SF_ANSWERHERE', 'La Réponse ici !'); +define('_MB_SF_ARTICLEID', 'N° de Q&R'); +define('_MB_SF_CATEGORY', 'Catégorie'); +define('_MB_SF_CHARS', 'Longueur de la Question'); +define('_MB_SF_DATE', 'Date de Publication'); +define('_MB_SF_DISP', 'Visualiser'); +define('_MB_SF_FAQS', 'Q&R'); +define('_MB_SF_HITS', 'Nombre de Clics'); +define('_MB_SF_LENGTH', ' caractères'); +define('_MB_SF_MOREDETAILS', 'Plus de détails ...'); +define('_MB_SF_ORDER', 'Ordre de Visualisation'); +define('_MB_SF_QUESTIONS', 'questions'); +define('_MB_SF_SELECTCAT', 'Montrez les Q&R de'); +define("_MB_SF_SHOW_DATE", "Afficher la date : "); +define('_MB_SF_VISITFAQ', 'Visitez le'); +define('_MB_SF_WEIGHT', 'Liste par poids'); + +/** + * @translation Communauté Francophone des Utilisateurs de Xoops + * @specification _LANGCODE: fr + * @specification _CHARSET: UTF-8 + * + * @version $Id: blocks.php 1304 2010-10-17 22:21:07Z kris_fr $ +**/ +?> \ No newline at end of file Added: XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/index.html =================================================================== Added: XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/category_faq_answer_proposed.tpl =================================================================== --- XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/category_faq_answer_proposed.tpl (rev 0) +++ XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/category_faq_answer_proposed.tpl 2012-05-23 02:10:13 UTC (rev 9579) @@ -0,0 +1,24 @@ +Bonjour {X_UNAME}, + +Une nouvelle r\xE9ponse a \xE9t\xE9 propos\xE9e sur les Questions & R\xE9ponses ouvertes dans le module {MODULE_NAME} de {X_SITENAME} : + +"{FAQ_NAME}" + +Vous pouvez la voir en cliquant ici : + +{WAITINGFILES_URL} + +----------- + +Vous recevez ce message car vous avez choisi d'\xEAtre averti quand une nouvelle r\xE9ponse est propos\xE9e dans la cat\xE9gorie {CATEGORY_NAME} du module {MODULE_NAME} de notre site. + +S'il s'agit d'une erreur ou que nous ne souhaitez plus \xEAtre averti, vous pouvez mettre \xE0 jour vos param\xE8tres de notifications en cliquant sur le lien suivant : +{X_UNSUBSCRIBE_URL} + +Merci de ne pas r\xE9pondre \xE0 ce message. + +----------- + +{X_SITENAME} ({X_SITEURL}) +L'administrateur du site +{X_ADMINMAIL} \ No newline at end of file Added: XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/category_faq_answer_published.tpl =================================================================== --- XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/category_faq_answer_published.tpl (rev 0) +++ XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/category_faq_answer_published.tpl 2012-05-23 02:10:13 UTC (rev 9579) @@ -0,0 +1,24 @@ +Bonjour {X_UNAME}, + +Une nouvelle r\xE9ponse a \xE9t\xE9 publi\xE9e dans Questions & R\xE9ponses ouvertes dans le module {MODULE_NAME} de {X_SITENAME} : + +"{FAQ_NAME}" + +Vous pouvez voir cette r\xE9ponse ici : + +{FAQ_URL} + +----------- + +Vous recevez ce message car vous avez choisi d'\xEAtre averti quand une nouvelle r\xE9ponse est publi\xE9e dans la cat\xE9gorie {CATEGORY_NAME} du module {MODULE_NAME} de notre site. + +S'il s'agit d'une erreur ou que nous ne souhaitez plus \xEAtre averti, vous pouvez mettre \xE0 jour vos param\xE8tres de notifications en cliquant sur le lien suivant : +{X_UNSUBSCRIBE_URL} + +Merci de ne pas r\xE9pondre \xE0 ce message. + +----------- + +{X_SITENAME} ({X_SITEURL}) +L'administrateur du site +{X_ADMINMAIL} \ No newline at end of file Added: XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/category_faq_published.tpl =================================================================== --- XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/category_faq_published.tpl (rev 0) +++ XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/category_faq_published.tpl 2012-05-23 02:10:13 UTC (rev 9579) @@ -0,0 +1,24 @@ +Bonjour {X_UNAME}, + +Une "Questions & R\xE9ponses" (Q&R) ouverte a \xE9t\xE9 publi\xE9e dans le module {MODULE_NAME} de {X_SITENAME} : + +"{FAQ_NAME}" + +Vous pouvez lire cette Q&R en cliquant ici : + +{FAQ_URL} + +----------- + +Vous recevez ce message car vous avez choisi d'\xEAtre averti quand de nouvelles Q&R sont publi\xE9es dans la cat\xE9gorie {CATEGORY_NAME} du module {MODULE_NAME} de notre site. + +S'il s'agit d'une erreur ou que nous ne souhaitez plus \xEAtre averti, vous pouvez mettre \xE0 jour vos param\xE8tres de notifications en cliquant sur le lien suivant : +{X_UNSUBSCRIBE_URL} + +Merci de ne pas r\xE9pondre \xE0 ce message. + +----------- + +{X_SITENAME} ({X_SITEURL}) +L'administrateur du site +{X_ADMINMAIL} \ No newline at end of file Added: XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/category_faq_submitted.tpl =================================================================== --- XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/category_faq_submitted.tpl (rev 0) +++ XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/category_faq_submitted.tpl 2012-05-23 02:10:13 UTC (rev 9579) @@ -0,0 +1,24 @@ +Bonjour {X_UNAME}, + +La Q&R suivante a \xE9t\xE9 propos\xE9e dans le module {MODULE_NAME} de {X_SITENAME} : + +"{FAQ_NAME}" + +Vous pouvez ma voir en cliquant ici : + +{WAITINGFILES_URL} + +----------- + +Vous recevez ce message car vous avez choisi d'\xEAtre averti quand de nouvelles Q&R sont propos\xE9es dans la cat\xE9gorie {CATEGORY_NAME} du module {MODULE_NAME} de notre site. + +S'il s'agit d'une erreur ou que nous ne souhaitez plus \xEAtre averti, vous pouvez mettre \xE0 jour vos param\xE8tres de notifications en cliquant sur le lien suivant : +{X_UNSUBSCRIBE_URL} + +Merci de ne pas r\xE9pondre \xE0 ce message. + +----------- + +{X_SITENAME} ({X_SITEURL}) +L'administrateur du site +{X_ADMINMAIL} Added: XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/category_question_answer_proposed.tpl =================================================================== --- XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/category_question_answer_proposed.tpl (rev 0) +++ XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/category_question_answer_proposed.tpl 2012-05-23 02:10:13 UTC (rev 9579) @@ -0,0 +1,24 @@ +Bonjour {X_UNAME}, + +Une r\xE9ponse a \xE9t\xE9 propos\xE9e pour la question suivante dans la section des questions ouvertes de {X_SITENAME} : + +"{FAQ_NAME}" + +Vous pouvez voir cette r\xE9ponse en cliquant ici : + +{WAITINGFILES_URL} + +----------- + +Vous recevez ce message car vous avez choisi d'\xEAtre averti quand une nouvelle r\xE9ponse est propos\xE9e dans la cat\xE9gorie {CATEGORY_NAME} du module {MODULE_NAME} de notre site. + +S'il s'agit d'une erreur ou que nous ne souhaitez plus \xEAtre averti, vous pouvez mettre \xE0 jour vos param\xE8tres de notifications en cliquant sur le lien suivant : +{X_UNSUBSCRIBE_URL} + +Merci de ne pas r\xE9pondre \xE0 ce message. + +----------- + +{X_SITENAME} ({X_SITEURL}) +L'administrateur du site +{X_ADMINMAIL} Added: XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/category_question_published.tpl =================================================================== --- XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/category_question_published.tpl (rev 0) +++ XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/category_question_published.tpl 2012-05-23 02:10:13 UTC (rev 9579) @@ -0,0 +1,24 @@ +Bonjour {X_UNAME}, + +La question suivante a \xE9t\xE9 publi\xE9e dans la section des Questions ouvertes {X_SITENAME} : + +"{FAQ_NAME}" + +Vous pouvez r\xE9pondre \xE0 cette question en cliquant ici : + +{FAQ_URL} + +----------- + +Vous recevez ce message car vous avez choisi d'\xEAtre averti quand une nouvelle question est publi\xE9e dans la cat\xE9gorie {CATEGORY_NAME} du module {MODULE_NAME} de notre site. + +S'il s'agit d'une erreur ou que nous ne souhaitez plus \xEAtre averti, vous pouvez mettre \xE0 jour vos param\xE8tres de notifications en cliquant sur le lien suivant : +{X_UNSUBSCRIBE_URL} + +Merci de ne pas r\xE9pondre \xE0 ce message. + +----------- + +{X_SITENAME} ({X_SITEURL}) +L'administrateur du site +{X_ADMINMAIL} \ No newline at end of file Added: XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/category_question_submitted.tpl =================================================================== --- XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/category_question_submitted.tpl (rev 0) +++ XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/category_question_submitted.tpl 2012-05-23 02:10:13 UTC (rev 9579) @@ -0,0 +1,24 @@ +Bonjour {X_UNAME}, + +La questions suivante a \xE9t\xE9 propos\xE9e dans le section des Questions ouvertes {X_SITENAME} : + +"{FAQ_NAME}" + +Vous pouvez voir ces questions ici : + +{WAITINGFILES_URL} + +----------- + +Vous recevez ce message car vous avez choisi d'\xEAtre averti quand de nouvelles Qquestions sont propos\xE9es dans la cat\xE9gorie {CATEGORY_NAME} du module {MODULE_NAME} de notre site. + +S'il s'agit d'une erreur ou que nous ne souhaitez plus \xEAtre averti, vous pouvez mettre \xE0 jour vos param\xE8tres de notifications en cliquant sur le lien suivant : +{X_UNSUBSCRIBE_URL} + +Merci de ne pas r\xE9pondre \xE0 ce message. + +----------- + +{X_SITENAME} ({X_SITEURL}) +L'administrateur du site +{X_ADMINMAIL} Added: XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/faq_answer_approved.tpl =================================================================== --- XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/faq_answer_approved.tpl (rev 0) +++ XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/faq_answer_approved.tpl 2012-05-23 02:10:13 UTC (rev 9579) @@ -0,0 +1,24 @@ +Bonjour {X_UNAME}, + +Nous sommes heureux de vous informer que la r\xE9ponse suivante propos\xE9e dans la q&R suivante le {DATESUB} \xE0 {X_SITENAME} a \xE9t\xE9 approuv\xE9e par le mod\xE9rateur. Votre r\xE9ponse a d\xE9j\xE0 remplac\xE9 la r\xE9ponse originale et est publi\xE9e dans le module {MODULE_NAME} de notre site. + +"{FAQ_NAME}" + +Vous pouvez lire ces Q&R ici: + +{FAQ_URL} + +----------- + +Vous recevez ce message car vous avez choisi d'\xEAtre averti de la d\xE9cision pour une nouvelle r\xE9ponse propos\xE9es. + +S'il s'agit d'une erreur ou que nous ne souhaitez plus \xEAtre averti, vous pouvez mettre \xE0 jour vos param\xE8tres de notifications en cliquant sur le lien suivant : +{X_UNSUBSCRIBE_URL} + +Merci de ne pas r\xE9pondre \xE0 ce message. + +----------- + +{X_SITENAME} ({X_SITEURL}) +L'administrateur du site +{X_ADMINMAIL} Added: XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/faq_answer_rejected.tpl =================================================================== --- XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/faq_answer_rejected.tpl (rev 0) +++ XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/faq_answer_rejected.tpl 2012-05-23 02:10:13 UTC (rev 9579) @@ -0,0 +1,24 @@ +Bonjour {X_UNAME}, + +Nous sommes d\xE9sol\xE9 de vous informer que votre r\xE9ponse propos\xE9e sur {X_SITENAME} le {SUBDATE} n'a pas \xE9t\xE9 retenue par le mod\xE9rateur. Si vous souhaitez plus d'informations, merci de contacter l'administrateur par email \xE0 {X_ADMINMAIL}. + +Le contenu de la r\xE9ponse propos\xE9e : + +{FAQ_QUESTION} + +{FAQ_ANSWER} + +----------- + +Vous recevez ce message car vous avez choisi d'\xEAtre averti de la d\xE9cision pour une nouvelle r\xE9ponse propos\xE9es. + +S'il s'agit d'une erreur ou que nous ne souhaitez plus \xEAtre averti, vous pouvez mettre \xE0 jour vos param\xE8tres de notifications en cliquant sur le lien suivant : +{X_UNSUBSCRIBE_URL} + +Merci de ne pas r\xE9pondre \xE0 ce message. + +----------- + +{X_SITENAME} ({X_SITEURL}) +L'administrateur du site +{X_ADMINMAIL} Added: XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/faq_approved.tpl =================================================================== --- XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/faq_approved.tpl (rev 0) +++ XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/faq_approved.tpl 2012-05-23 02:10:13 UTC (rev 9579) @@ -0,0 +1,24 @@ +Bonjour {X_UNAME}, + +Nous sommes heureux de vous informez que la Q&R suivante propos\xE9e le {DATESUB} sur {X_SITENAME} a \xE9t\xE9 approuv\xE9e par le mod\xE9rateur et publi\xE9e dans le module {MODULE_NAME} de notre site. + +"{FAQ_NAME}" + +Vous pouvez lire cette Q&R ici : + +{FAQ_URL} + +----------- + +Vous recevez ce message car vous avez choisi d'\xEAtre averti de la d\xE9cision pour une Q&R propos\xE9e. + +S'il s'agit d'une erreur ou que nous ne souhaitez plus \xEAtre averti, vous pouvez mettre \xE0 jour vos param\xE8tres de notifications en cliquant sur le lien suivant : +{X_UNSUBSCRIBE_URL} + +Merci de ne pas r\xE9pondre \xE0 ce message. + +----------- + +{X_SITENAME} ({X_SITEURL}) +L'administrateur du site +{X_ADMINMAIL} Added: XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/faq_rejected.tpl =================================================================== --- XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/faq_rejected.tpl (rev 0) +++ XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/faq_rejected.tpl 2012-05-23 02:10:13 UTC (rev 9579) @@ -0,0 +1,24 @@ +Bonjour {X_UNAME}, + +Nous sommes d\xE9sol\xE9 de vous informer que la Q&R propos\xE9e sur {X_SITENAME} le {SUBDATE} n'a pas \xE9t\xE9 retenue par le mod\xE9rateur. Pour plus d'informations, merci de contacter l'administrateur par email \xE0 {X_ADMINMAIL}. + +Le contenu de la Q&R propos\xE9e : + +{FAQ_QUESTION} + +{FAQ_ANSWER} + +----------- + +Vous recevez ce message car vous avez choisi d'\xEAtre averti de la d\xE9cision pour une Q&R propos\xE9e. + +S'il s'agit d'une erreur ou que nous ne souhaitez plus \xEAtre averti, vous pouvez mettre \xE0 jour vos param\xE8tres de notifications en cliquant sur le lien suivant : +{X_UNSUBSCRIBE_URL} + +Merci de ne pas r\xE9pondre \xE0 ce message. + +----------- + +{X_SITENAME} ({X_SITEURL}) +L'administrateur du site +{X_ADMINMAIL} \ No newline at end of file Added: XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/global_faq_answer_proposed.tpl =================================================================== --- XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/global_faq_answer_proposed.tpl (rev 0) +++ XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/global_faq_answer_proposed.tpl 2012-05-23 02:10:13 UTC (rev 9579) @@ -0,0 +1,24 @@ +Bonjour {X_UNAME}, + +Une nouvelle r\xE9ponse a \xE9t\xE9 propos\xE9e dans la Q&R suivante dans le module {MODULE_NAME} sur {X_SITENAME} : + +"{FAQ_NAME}" + +Vous pouvez lire cette r\xE9ponse ici : + +{FAQ_URL} + +----------- + +Vous recevez ce message car vous avez choisi d'\xEAtre averti quand nouvelles r\xE9ponses sont propos\xE9es dans n'importe quelle Q&R du module {MODULE_NAME} de notre site. + +S'il s'agit d'une erreur ou que nous ne souhaitez plus \xEAtre averti, vous pouvez mettre \xE0 jour vos param\xE8tres de notifications en cliquant sur le lien suivant : +{X_UNSUBSCRIBE_URL} + +Merci de ne pas r\xE9pondre \xE0 ce message. + +----------- + +{X_SITENAME} ({X_SITEURL}) +L'administrateur du site +{X_ADMINMAIL} \ No newline at end of file Added: XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/global_faq_answer_published.tpl =================================================================== --- XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/global_faq_answer_published.tpl (rev 0) +++ XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/global_faq_answer_published.tpl 2012-05-23 02:10:13 UTC (rev 9579) @@ -0,0 +1,24 @@ +Bonjour {X_UNAME}, + +Une nouvelle r\xE9ponse a \xE9t\xE9 publi\xE9e dans la Q&R suivante dans le module {MODULE_NAME} sur {X_SITENAME} : + +"{FAQ_NAME}" + +Vous pouvez lire cette r\xE9ponse ici : + +{FAQ_URL} + +----------- + +Vous recevez ce message car vous avez choisi d'\xEAtre averti quand nouvelles r\xE9ponses sont publi\xE9es dans n'importe quelle Q&R du module {MODULE_NAME} de notre site. + +S'il s'agit d'une erreur ou que nous ne souhaitez plus \xEAtre averti, vous pouvez mettre \xE0 jour vos param\xE8tres de notifications en cliquant sur le lien suivant : +{X_UNSUBSCRIBE_URL} + +Merci de ne pas r\xE9pondre \xE0 ce message. + +----------- + +{X_SITENAME} ({X_SITEURL}) +L'administrateur du site +{X_ADMINMAIL} \ No newline at end of file Added: XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/global_faq_category_created.tpl =================================================================== --- XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/global_faq_category_created.tpl (rev 0) +++ XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/global_faq_category_created.tpl 2012-05-23 02:10:13 UTC (rev 9579) @@ -0,0 +1,24 @@ +Bonjour {X_UNAME}, + +La cat\xE9gorie '{CATEGORY_NAME}' a \xE9t\xE9 cr\xE9\xE9e dans le module {MODULE_NAME} sur {X_SITENAME}. + + + +Vous pouvez suivre ce lien pour voir le contenu de cette nouvelle cat\xE9gorie : + +{CATEGORY_URL} + +----------- + +Vous recevez ce message car vous avez choisi d'\xEAtre averti quand nouvelles cat\xE9gories sont ajout\xE9es au module {MODULE_NAME} de notre site. + +S'il s'agit d'une erreur ou que nous ne souhaitez plus \xEAtre averti, vous pouvez mettre \xE0 jour vos param\xE8tres de notifications en cliquant sur le lien suivant : +{X_UNSUBSCRIBE_URL} + +Merci de ne pas r\xE9pondre \xE0 ce message. + +----------- + +{X_SITENAME} ({X_SITEURL}) +L'administrateur du site +{X_ADMINMAIL} \ No newline at end of file Added: XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/global_faq_published.tpl =================================================================== --- XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/global_faq_published.tpl (rev 0) +++ XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/global_faq_published.tpl 2012-05-23 02:10:13 UTC (rev 9579) @@ -0,0 +1,24 @@ +Bonjour {X_UNAME}, + +La Q&R suivante a \xE9t\xE9 publi\xE9e dans le module {MODULE_NAME} sur {X_SITENAME} : + +"{FAQ_NAME}" + +Vous pouvez lire cette r\xE9ponse ici : + +{FAQ_URL} + +----------- + +Vous recevez ce message car vous avez choisi d'\xEAtre averti quand nouvelles Q&R sont publi\xE9es dans n'importe quelle Q&R du module {MODULE_NAME} de notre site. + +S'il s'agit d'une erreur ou que nous ne souhaitez plus \xEAtre averti, vous pouvez mettre \xE0 jour vos param\xE8tres de notifications en cliquant sur le lien suivant : +{X_UNSUBSCRIBE_URL} + +Merci de ne pas r\xE9pondre \xE0 ce message. + +----------- + +{X_SITENAME} ({X_SITEURL}) +L'administrateur du site +{X_ADMINMAIL} \ No newline at end of file Added: XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/global_faq_submitted.tpl =================================================================== --- XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/global_faq_submitted.tpl (rev 0) +++ XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smartfaq/french/mail_template/global_faq_submitted.tpl 2012-05-23 02:10:13 UTC (rev 9579) @@ -0,0 +1,24 @@ +Bonjour {X_UNAME}, + +La Q&R suivante a \xE9t\xE9 propos\xE9es dans le module {MODULE_NAME} sur {X_SITENAME} : + +"{FAQ_NAME}" + +Vous pouvez lire cette r\xE9ponse ici : + +{WAITINGFILES_URL} + +----------- + +Vous recevez ce message car vous avez choisi d'\xEAtre averti quand nouvelles Q&R sont propos\xE9es dans le module {MODULE_NAME} de notre site. + +S'il s'agit d'une erreur ou que nous ne souhaitez plus \xEAtre averti, vous pouvez mettre \xE0 jour vos param\xE8tres de notifications en cliquant sur le lien suivant : +{X_UNSUBSCRIBE_URL} + +Merci de ne pas r\xE9pondre \xE0 ce message. + +----------- + +{X_SITENAME} ({X_SITEURL}) +L'administrateur du site +{X_ADMINMAIL} \ No newline at end of file Added: XoopsLanguages/french/modules/smartfaq/smartfaq 1.12/smar... [truncated message content] |
From: <ce...@us...> - 2012-05-23 02:05:45
|
Revision: 9578 http://xoops.svn.sourceforge.net/xoops/?rev=9578&view=rev Author: cesag Date: 2012-05-23 02:05:38 +0000 (Wed, 23 May 2012) Log Message: ----------- Small changes, for Smallword in French. Property Changed: ---------------- XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french/admin.php XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french/help/help.html XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french/help/index.html XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french/index.html XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french/js/index.html XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french/js/jquery.countdown.js XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french/js/jquery.ui.datepicker-language.js XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french/js/variables.js XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french/mailTpl/index.html XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french/mailTpl/mail_attencionneeded.html XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french/mailTpl/mail_complaint.html XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french/mailTpl/mail_newcomment.html XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french/mailTpl/mail_register.html XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french/main.php XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french/modinfo.php XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french_iso/admin.php XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french_iso/help/help.html XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french_iso/help/index.html XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french_iso/index.html XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french_iso/js/index.html XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french_iso/js/jquery.countdown.js XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french_iso/js/jquery.ui.datepicker-language.js XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french_iso/js/variables.js XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french_iso/mailTpl/index.html XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french_iso/mailTpl/mail_attencionneeded.html XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french_iso/mailTpl/mail_complaint.html XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french_iso/mailTpl/mail_newcomment.html XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french_iso/mailTpl/mail_register.html XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french_iso/main.php XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french_iso/modinfo.php Property changes on: XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french/admin.php ___________________________________________________________________ Added: svn:keywords + Id Property changes on: XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french/help/help.html ___________________________________________________________________ Added: svn:keywords + Id Property changes on: XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french/help/index.html ___________________________________________________________________ Added: svn:keywords + Id Property changes on: XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french/index.html ___________________________________________________________________ Added: svn:keywords + Id Property changes on: XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french/js/index.html ___________________________________________________________________ Added: svn:keywords + Id Property changes on: XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french/js/jquery.countdown.js ___________________________________________________________________ Added: svn:keywords + Id Property changes on: XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french/js/jquery.ui.datepicker-language.js ___________________________________________________________________ Added: svn:keywords + Id Property changes on: XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french/js/variables.js ___________________________________________________________________ Added: svn:keywords + Id Property changes on: XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french/mailTpl/index.html ___________________________________________________________________ Added: svn:keywords + Id Property changes on: XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french/mailTpl/mail_attencionneeded.html ___________________________________________________________________ Added: svn:keywords + Id Property changes on: XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french/mailTpl/mail_complaint.html ___________________________________________________________________ Added: svn:keywords + Id Property changes on: XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french/mailTpl/mail_newcomment.html ___________________________________________________________________ Added: svn:keywords + Id Property changes on: XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french/mailTpl/mail_register.html ___________________________________________________________________ Added: svn:keywords + Id Property changes on: XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french/main.php ___________________________________________________________________ Added: svn:keywords + Id Property changes on: XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french/modinfo.php ___________________________________________________________________ Added: svn:keywords + Id Property changes on: XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french_iso/admin.php ___________________________________________________________________ Added: svn:keywords + Id Property changes on: XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french_iso/help/help.html ___________________________________________________________________ Added: svn:keywords + Id Property changes on: XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french_iso/help/index.html ___________________________________________________________________ Added: svn:keywords + Id Property changes on: XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french_iso/index.html ___________________________________________________________________ Added: svn:keywords + Id Property changes on: XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french_iso/js/index.html ___________________________________________________________________ Added: svn:keywords + Id Property changes on: XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french_iso/js/jquery.countdown.js ___________________________________________________________________ Added: svn:keywords + Id Property changes on: XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french_iso/js/jquery.ui.datepicker-language.js ___________________________________________________________________ Added: svn:keywords + Id Property changes on: XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french_iso/js/variables.js ___________________________________________________________________ Added: svn:keywords + Id Property changes on: XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french_iso/mailTpl/index.html ___________________________________________________________________ Added: svn:keywords + Id Property changes on: XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french_iso/mailTpl/mail_attencionneeded.html ___________________________________________________________________ Added: svn:keywords + Id Property changes on: XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french_iso/mailTpl/mail_complaint.html ___________________________________________________________________ Added: svn:keywords + Id Property changes on: XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french_iso/mailTpl/mail_newcomment.html ___________________________________________________________________ Added: svn:keywords + Id Property changes on: XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french_iso/mailTpl/mail_register.html ___________________________________________________________________ Added: svn:keywords + Id Property changes on: XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french_iso/main.php ___________________________________________________________________ Added: svn:keywords + Id Property changes on: XoopsLanguages/french/modules/smallworld/smallworld 1.15/smallworld/language/french_iso/modinfo.php ___________________________________________________________________ Added: svn:keywords + Id This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |