@@ -1,27 +1,27 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -define('_MYLANGADMIN_H3_MODULE', 'Module cible') ; |
|
4 | -define('_MYLANGADMIN_CACHEUPDATED', 'Le fichier de cache a été mis à jour') ; |
|
5 | -define('_MYLANGADMIN_BTN_UPDATE', 'Mise à jour') ; |
|
6 | -define('_MYLANGADMIN_BTN_RESET', 'réinitialiser') ; |
|
3 | +define('_MYLANGADMIN_H3_MODULE', 'Module cible'); |
|
4 | +define('_MYLANGADMIN_CACHEUPDATED', 'Le fichier de cache a été mis à jour'); |
|
5 | +define('_MYLANGADMIN_BTN_UPDATE', 'Mise à jour'); |
|
6 | +define('_MYLANGADMIN_BTN_RESET', 'réinitialiser'); |
|
7 | 7 | |
8 | -define('_MYLANGADMIN_TH_CONSTANTNAME', 'Nom de la Constante') ; |
|
9 | -define('_MYLANGADMIN_TH_DEFAULTVALUE', 'Valeur par défaut') ; |
|
10 | -define('_MYLANGADMIN_TH_USERVALUE', 'Valeur de Utilisateur') ; |
|
8 | +define('_MYLANGADMIN_TH_CONSTANTNAME', 'Nom de la Constante'); |
|
9 | +define('_MYLANGADMIN_TH_DEFAULTVALUE', 'Valeur par défaut'); |
|
10 | +define('_MYLANGADMIN_TH_USERVALUE', 'Valeur de Utilisateur'); |
|
11 | 11 | |
12 | -define('_MYLANGADMIN_NOTE_ADDEDBYMYLANG', '(constante ajoutée par utilisateur)') ; |
|
13 | -define('_MYLANGADMIN_DT_MYLANGFILENAME', 'Reécriture partielle du nom de fichier') ; |
|
12 | +define('_MYLANGADMIN_NOTE_ADDEDBYMYLANG', '(constante ajoutée par utilisateur)'); |
|
13 | +define('_MYLANGADMIN_DT_MYLANGFILENAME', 'Reécriture partielle du nom de fichier'); |
|
14 | 14 | |
15 | -define('_MYLANGADMIN_DT_CACHEFILENAME', 'Nom du fichier en Cache') ; |
|
16 | -define('_MYLANGADMIN_DT_CACHESTATUS', 'Mise en Cache du statut') ; |
|
17 | -define('_MYLANGADMIN_CREATED', 'Créé') ; |
|
18 | -define('_MYLANGADMIN_NOTCREATED', 'N\'a pas été créé pour l\'instant') ; |
|
15 | +define('_MYLANGADMIN_DT_CACHEFILENAME', 'Nom du fichier en Cache'); |
|
16 | +define('_MYLANGADMIN_DT_CACHESTATUS', 'Mise en Cache du statut'); |
|
17 | +define('_MYLANGADMIN_CREATED', 'Créé'); |
|
18 | +define('_MYLANGADMIN_NOTCREATED', 'N\'a pas été créé pour l\'instant'); |
|
19 | 19 | |
20 | -define('_MYLANGADMIN_ERR_MODNOLANGUAGE', 'Le module sélectionné n\'a pas de dossier de la langue') ; |
|
21 | -define('_MYLANGADMIN_ERR_MODLANGINCOMPATIBLE', 'Le module sélectionné a une structure incompatible') ; |
|
22 | -define('_MYLANGADMIN_ERR_MODEMPTYLANGDIR', 'Le module sélectionné n\'a pas de fichier langue de reécriture') ; |
|
20 | +define('_MYLANGADMIN_ERR_MODNOLANGUAGE', 'Le module sélectionné n\'a pas de dossier de la langue'); |
|
21 | +define('_MYLANGADMIN_ERR_MODLANGINCOMPATIBLE', 'Le module sélectionné a une structure incompatible'); |
|
22 | +define('_MYLANGADMIN_ERR_MODEMPTYLANGDIR', 'Le module sélectionné n\'a pas de fichier langue de reécriture'); |
|
23 | 23 | |
24 | -define('_MYLANGADMIN_MSG_D3LANGMANENABLED', 'Le système de reécriture est activé dès maintenant.') ; |
|
25 | -define('_MYLANGADMIN_FMT_HOWTOENABLED3LANGMAN4XCL', 'Le système de reécriture est désormais désactivé. Pour l\'activer, copiez "%s" dans "%s"') ; |
|
26 | -define('_MYLANGADMIN_MSG_HOWTOENABLED3LANGMAN4X2', 'Le système de reécriture ne peut pas fonctionner avec ce noyau de XOOPS, sauf quelques modules D3. Si vous souhaitez l\'activer avec ce noyau, essayez de modifier comme ceci:') ; |
|
27 | -define('_MYLANGADMIN_MSG_NOTICE4ALREADYREAD', 'Puisque ce fichier a déjà été lu par le système, cette colonne représente la valeur actuelle') ; |
|
24 | +define('_MYLANGADMIN_MSG_D3LANGMANENABLED', 'Le système de reécriture est activé dès maintenant.'); |
|
25 | +define('_MYLANGADMIN_FMT_HOWTOENABLED3LANGMAN4XCL', 'Le système de reécriture est désormais désactivé. Pour l\'activer, copiez "%s" dans "%s"'); |
|
26 | +define('_MYLANGADMIN_MSG_HOWTOENABLED3LANGMAN4X2', 'Le système de reécriture ne peut pas fonctionner avec ce noyau de XOOPS, sauf quelques modules D3. Si vous souhaitez l\'activer avec ce noyau, essayez de modifier comme ceci:'); |
|
27 | +define('_MYLANGADMIN_MSG_NOTICE4ALREADYREAD', 'Puisque ce fichier a déjà été lu par le système, cette colonne représente la valeur actuelle'); |
@@ -1,27 +1,27 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -define('_MYTPLSADMIN_CREATE_NEW_TPLSET', 'Créer une nouvelle série') ; |
|
4 | -define('_MYTPLSADMIN_CAPTION_BASE', 'Base') ; |
|
5 | -define('_MYTPLSADMIN_CAPTION_SETNAME', 'nom') ; |
|
6 | -define('_MYTPLSADMIN_OPT_BLANKSET', '(vide)') ; |
|
7 | -define('_MYTPLSADMIN_CAPTION_COPYTO', 'à') ; |
|
8 | -define('_MYTPLSADMIN_BTN_COPY', 'COPIER') ; |
|
9 | -define('_MYTPLSADMIN_TITLE_CHECKALL', 'Activer / désactiver toutes les cases de cette ligne') ; |
|
10 | -define('_MYTPLSADMIN_CNF_DELETE_SELECTED_TEMPLATES', 'Tous les templates sélectionnés dans l\'ensemble (ligne) seront supprimés. Voulez-vous confirmer?') ; |
|
11 | -define('_MYTPLSADMIN_CNF_COPY_SELECTED_TEMPLATES', 'Tous les templates sélectionnés dans l\'ensemble (ligne) seront copiés/écrasé dans l\'ensemble sélectionné. Voulez-vous confirmer?') ; |
|
12 | -define('_MYTPLSADMIN_TH_NAME', 'Nom template name') ; |
|
13 | -define('_MYTPLSADMIN_TH_TYPE', 'type') ; |
|
14 | -define('_MYTPLSADMIN_TH_FILE', 'fichier source') ; |
|
15 | -define('_MYTPLSADMIN_ERR_NOTPLFILE', 'Aucun template sélectionné.') ; |
|
16 | -define('_MYTPLSADMIN_ERR_INVALIDTPLSET', "L\'ensemble de destination est le même que la source, ou aucun ensemble de templates n\'a été spécifié.") ; |
|
17 | -define('_MYTPLSADMIN_ERR_CANTREMOVEDEFAULT', "Vous ne pouvez pas supprimer l'ensemble 'default'.") ; |
|
18 | -define('_MYTPLSADMIN_ERR_DUPLICATEDSETNAME', "Ce nom d'ensemble de templates existe déjà.") ; |
|
19 | -define('_MYTPLSADMIN_ERR_INVALIDSETNAME', "un mauvais nom d'ensemble de templates a été spécifié.") ; |
|
3 | +define('_MYTPLSADMIN_CREATE_NEW_TPLSET', 'Créer une nouvelle série'); |
|
4 | +define('_MYTPLSADMIN_CAPTION_BASE', 'Base'); |
|
5 | +define('_MYTPLSADMIN_CAPTION_SETNAME', 'nom'); |
|
6 | +define('_MYTPLSADMIN_OPT_BLANKSET', '(vide)'); |
|
7 | +define('_MYTPLSADMIN_CAPTION_COPYTO', 'à'); |
|
8 | +define('_MYTPLSADMIN_BTN_COPY', 'COPIER'); |
|
9 | +define('_MYTPLSADMIN_TITLE_CHECKALL', 'Activer / désactiver toutes les cases de cette ligne'); |
|
10 | +define('_MYTPLSADMIN_CNF_DELETE_SELECTED_TEMPLATES', 'Tous les templates sélectionnés dans l\'ensemble (ligne) seront supprimés. Voulez-vous confirmer?'); |
|
11 | +define('_MYTPLSADMIN_CNF_COPY_SELECTED_TEMPLATES', 'Tous les templates sélectionnés dans l\'ensemble (ligne) seront copiés/écrasé dans l\'ensemble sélectionné. Voulez-vous confirmer?'); |
|
12 | +define('_MYTPLSADMIN_TH_NAME', 'Nom template name'); |
|
13 | +define('_MYTPLSADMIN_TH_TYPE', 'type'); |
|
14 | +define('_MYTPLSADMIN_TH_FILE', 'fichier source'); |
|
15 | +define('_MYTPLSADMIN_ERR_NOTPLFILE', 'Aucun template sélectionné.'); |
|
16 | +define('_MYTPLSADMIN_ERR_INVALIDTPLSET', "L\'ensemble de destination est le même que la source, ou aucun ensemble de templates n\'a été spécifié."); |
|
17 | +define('_MYTPLSADMIN_ERR_CANTREMOVEDEFAULT', "Vous ne pouvez pas supprimer l'ensemble 'default'."); |
|
18 | +define('_MYTPLSADMIN_ERR_DUPLICATEDSETNAME', "Ce nom d'ensemble de templates existe déjà."); |
|
19 | +define('_MYTPLSADMIN_ERR_INVALIDSETNAME', "un mauvais nom d'ensemble de templates a été spécifié."); |
|
20 | 20 | |
21 | -define('_MYTPLSADMIN_H3_MODULE', 'Module') ; |
|
22 | -define('_MYTPLSADMIN_BTN_NEWTPLSET', 'créer') ; |
|
21 | +define('_MYTPLSADMIN_H3_MODULE', 'Module'); |
|
22 | +define('_MYTPLSADMIN_BTN_NEWTPLSET', 'créer'); |
|
23 | 23 | |
24 | -define('_MYTPLSADMIN_DBUPDATED', 'Mise à jour avec succès des Templates') ; |
|
24 | +define('_MYTPLSADMIN_DBUPDATED', 'Mise à jour avec succès des Templates'); |
|
25 | 25 | |
26 | -define('_MYTPLSADMIN_CUSTOMTEMPLATE', 'Template personnalisé') ; |
|
27 | -define('_MYTPLSADMIN_CREATENEWCUSTOMTEMPLATE', 'Créer un nouveau template personnalisé') ; |
|
26 | +define('_MYTPLSADMIN_CUSTOMTEMPLATE', 'Template personnalisé'); |
|
27 | +define('_MYTPLSADMIN_CREATENEWCUSTOMTEMPLATE', 'Créer un nouveau template personnalisé'); |
@@ -5,56 +5,56 @@ discard block |
||
5 | 5 | // GIJOE <http://www.peak.ne.jp/> // |
6 | 6 | // ------------------------------------------------------------------------- // |
7 | 7 | |
8 | -require_once __DIR__.'/class/AltsysBreadcrumbs.class.php' ; |
|
9 | -require_once __DIR__.'/include/gtickets.php' ; |
|
10 | -include_once __DIR__.'/include/altsys_functions.php' ; |
|
11 | -include_once __DIR__.'/include/mygrouppermform.php' ; |
|
12 | -include_once XOOPS_ROOT_PATH.'/class/xoopsblock.php' ; |
|
8 | +require_once __DIR__.'/class/AltsysBreadcrumbs.class.php'; |
|
9 | +require_once __DIR__.'/include/gtickets.php'; |
|
10 | +include_once __DIR__.'/include/altsys_functions.php'; |
|
11 | +include_once __DIR__.'/include/mygrouppermform.php'; |
|
12 | +include_once XOOPS_ROOT_PATH.'/class/xoopsblock.php'; |
|
13 | 13 | |
14 | 14 | // language file |
15 | -altsys_include_language_file('myblocksadmin') ; |
|
15 | +altsys_include_language_file('myblocksadmin'); |
|
16 | 16 | |
17 | 17 | // fork by core types |
18 | 18 | switch (altsys_get_core_type()) { |
19 | 19 | case ALTSYS_CORE_TYPE_X22: |
20 | - include_once __DIR__.'/class/MyBlocksAdminForX22.class.php' ; |
|
21 | - $myba = MyBlocksAdminForX22::getInstance() ; |
|
22 | - break ; |
|
20 | + include_once __DIR__.'/class/MyBlocksAdminForX22.class.php'; |
|
21 | + $myba = MyBlocksAdminForX22::getInstance(); |
|
22 | + break; |
|
23 | 23 | case ALTSYS_CORE_TYPE_X25: |
24 | - include_once __DIR__.'/class/MyBlocksAdminForX25.class.php' ; |
|
25 | - $myba = MyBlocksAdminForX25::getInstance() ; |
|
26 | - break ; |
|
24 | + include_once __DIR__.'/class/MyBlocksAdminForX25.class.php'; |
|
25 | + $myba = MyBlocksAdminForX25::getInstance(); |
|
26 | + break; |
|
27 | 27 | case ALTSYS_CORE_TYPE_XCL21: |
28 | - include_once __DIR__.'/class/MyBlocksAdminForXCL21.class.php' ; |
|
29 | - $myba = MyBlocksAdminForXCL21::getInstance() ; |
|
30 | - break ; |
|
28 | + include_once __DIR__.'/class/MyBlocksAdminForXCL21.class.php'; |
|
29 | + $myba = MyBlocksAdminForXCL21::getInstance(); |
|
30 | + break; |
|
31 | 31 | case ALTSYS_CORE_TYPE_ICMS: |
32 | - include_once __DIR__.'/class/MyBlocksAdminForICMS.class.php' ; |
|
33 | - $myba = MyBlocksAdminForICMS::getInstance() ; |
|
34 | - break ; |
|
32 | + include_once __DIR__.'/class/MyBlocksAdminForICMS.class.php'; |
|
33 | + $myba = MyBlocksAdminForICMS::getInstance(); |
|
34 | + break; |
|
35 | 35 | case ALTSYS_CORE_TYPE_X20S: |
36 | 36 | case ALTSYS_CORE_TYPE_X23P: |
37 | - include_once __DIR__.'/class/MyBlocksAdminForX20S.class.php' ; |
|
38 | - $myba = MyBlocksAdminForX20S::getInstance() ; |
|
39 | - break ; |
|
37 | + include_once __DIR__.'/class/MyBlocksAdminForX20S.class.php'; |
|
38 | + $myba = MyBlocksAdminForX20S::getInstance(); |
|
39 | + break; |
|
40 | 40 | default: |
41 | - include_once __DIR__.'/class/MyBlocksAdmin.class.php' ; |
|
42 | - $myba = MyBlocksAdmin::getInstance() ; |
|
43 | - break ; |
|
41 | + include_once __DIR__.'/class/MyBlocksAdmin.class.php'; |
|
42 | + $myba = MyBlocksAdmin::getInstance(); |
|
43 | + break; |
|
44 | 44 | } |
45 | 45 | // permission |
46 | -$myba->checkPermission() ; |
|
46 | +$myba->checkPermission(); |
|
47 | 47 | |
48 | 48 | // set parameters target_mid , target_dirname etc. |
49 | -$myba->init($xoopsModule) ; |
|
49 | +$myba->init($xoopsModule); |
|
50 | 50 | |
51 | 51 | |
52 | 52 | // |
53 | 53 | // transaction stage |
54 | 54 | // |
55 | 55 | |
56 | -if (! empty($_POST)) { |
|
57 | - $myba->processPost() ; |
|
56 | +if (!empty($_POST)) { |
|
57 | + $myba->processPost(); |
|
58 | 58 | } |
59 | 59 | |
60 | 60 | // |
@@ -62,12 +62,12 @@ discard block |
||
62 | 62 | // |
63 | 63 | |
64 | 64 | // header |
65 | -xoops_cp_header() ; |
|
65 | +xoops_cp_header(); |
|
66 | 66 | |
67 | 67 | // mymenu |
68 | -altsys_include_mymenu() ; |
|
68 | +altsys_include_mymenu(); |
|
69 | 69 | |
70 | -$myba->processGet() ; |
|
70 | +$myba->processGet(); |
|
71 | 71 | |
72 | 72 | // footer |
73 | -xoops_cp_footer() ; |
|
73 | +xoops_cp_footer(); |
@@ -1,50 +1,50 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -define('_TPLSADMIN_FMT_MSG_ENCLOSEBYCOMMENT', '%d template caches have been enclosed by tplsadmin comments') ; |
|
4 | -define('_TPLSADMIN_DT_ENCLOSEBYCOMMENT', 'Implant comments') ; |
|
5 | -define('_TPLSADMIN_DD_ENCLOSEBYCOMMENT', 'Two HTML comments will be implanted in the begging/ending point of each templates. Since this rarely breaks its design, it is recommended to professionals can read HTML itself') ; |
|
6 | -define('_TPLSADMIN_CNF_ENCLOSEBYCOMMENT', 'Compiled template caches will be enclosed by tplsadmin comments. Are you OK?') ; |
|
3 | +define('_TPLSADMIN_FMT_MSG_ENCLOSEBYCOMMENT', '%d template caches have been enclosed by tplsadmin comments'); |
|
4 | +define('_TPLSADMIN_DT_ENCLOSEBYCOMMENT', 'Implant comments'); |
|
5 | +define('_TPLSADMIN_DD_ENCLOSEBYCOMMENT', 'Two HTML comments will be implanted in the begging/ending point of each templates. Since this rarely breaks its design, it is recommended to professionals can read HTML itself'); |
|
6 | +define('_TPLSADMIN_CNF_ENCLOSEBYCOMMENT', 'Compiled template caches will be enclosed by tplsadmin comments. Are you OK?'); |
|
7 | 7 | |
8 | 8 | |
9 | -define('_TPLSADMIN_FMT_MSG_ENCLOSEBYBORDEREDDIV', '%d template caches have been enclosed by div tags') ; |
|
10 | -define('_TPLSADMIN_DT_ENCLOSEBYBORDEREDDIV', 'Implant div tags') ; |
|
11 | -define('_TPLSADMIN_DD_ENCLOSEBYBORDEREDDIV', 'Each templates will be enclosed by black-bordered div tags. A link for editing controller of tplsadmin will be implanted into each templates. Though this often cause destructions in designing, you can edit each templates the most instictively and easily.') ; |
|
12 | -define('_TPLSADMIN_CNF_ENCLOSEBYBORDEREDDIV', 'Compiled template caches will be enclosed by div tags. Are you OK?') ; |
|
9 | +define('_TPLSADMIN_FMT_MSG_ENCLOSEBYBORDEREDDIV', '%d template caches have been enclosed by div tags'); |
|
10 | +define('_TPLSADMIN_DT_ENCLOSEBYBORDEREDDIV', 'Implant div tags'); |
|
11 | +define('_TPLSADMIN_DD_ENCLOSEBYBORDEREDDIV', 'Each templates will be enclosed by black-bordered div tags. A link for editing controller of tplsadmin will be implanted into each templates. Though this often cause destructions in designing, you can edit each templates the most instictively and easily.'); |
|
12 | +define('_TPLSADMIN_CNF_ENCLOSEBYBORDEREDDIV', 'Compiled template caches will be enclosed by div tags. Are you OK?'); |
|
13 | 13 | |
14 | -define('_TPLSADMIN_FMT_MSG_HOOKSAVEVARS', '%d template caches have been implanted hooking logics to collect template varibles') ; |
|
15 | -define('_TPLSADMIN_DT_HOOKSAVEVARS', 'Implant logics to collect template variables') ; |
|
16 | -define('_TPLSADMIN_DD_HOOKSAVEVARS', 'The first step of getting the informations of template variables in your site. The template vars infos will be collected when public sides of your site is displayed. If all templates you want to edit are displayed, get template vars info by underlying buttons.') ; |
|
17 | -define('_TPLSADMIN_CNF_HOOKSAVEVARS', 'Compiled template caches will be implanted the logics to collect template variables. Are you OK?') ; |
|
14 | +define('_TPLSADMIN_FMT_MSG_HOOKSAVEVARS', '%d template caches have been implanted hooking logics to collect template varibles'); |
|
15 | +define('_TPLSADMIN_DT_HOOKSAVEVARS', 'Implant logics to collect template variables'); |
|
16 | +define('_TPLSADMIN_DD_HOOKSAVEVARS', 'The first step of getting the informations of template variables in your site. The template vars infos will be collected when public sides of your site is displayed. If all templates you want to edit are displayed, get template vars info by underlying buttons.'); |
|
17 | +define('_TPLSADMIN_CNF_HOOKSAVEVARS', 'Compiled template caches will be implanted the logics to collect template variables. Are you OK?'); |
|
18 | 18 | |
19 | -define('_TPLSADMIN_FMT_MSG_REMOVEHOOKS', '%d template caches have been normalized') ; |
|
20 | -define('_TPLSADMIN_DT_REMOVEHOOKS', 'Normalize compiled template caches') ; |
|
21 | -define('_TPLSADMIN_DD_REMOVEHOOKS', 'This removes comments/div tags/logics implanted by upper operations from each compiled template caches.') ; |
|
22 | -define('_TPLSADMIN_CNF_REMOVEHOOKS', 'Are you OK for normlizing?') ; |
|
19 | +define('_TPLSADMIN_FMT_MSG_REMOVEHOOKS', '%d template caches have been normalized'); |
|
20 | +define('_TPLSADMIN_DT_REMOVEHOOKS', 'Normalize compiled template caches'); |
|
21 | +define('_TPLSADMIN_DD_REMOVEHOOKS', 'This removes comments/div tags/logics implanted by upper operations from each compiled template caches.'); |
|
22 | +define('_TPLSADMIN_CNF_REMOVEHOOKS', 'Are you OK for normlizing?'); |
|
23 | 23 | |
24 | 24 | |
25 | -define('_TPLSADMIN_MSG_CLEARCACHE', 'Template caches are removed') ; |
|
26 | -define('_TPLSADMIN_MSG_CREATECOMPILECACHEFIRST', 'There are no compiled template caches. Create complied template caches by displaying public sides of your site, first') ; |
|
25 | +define('_TPLSADMIN_MSG_CLEARCACHE', 'Template caches are removed'); |
|
26 | +define('_TPLSADMIN_MSG_CREATECOMPILECACHEFIRST', 'There are no compiled template caches. Create complied template caches by displaying public sides of your site, first'); |
|
27 | 27 | |
28 | -define('_TPLSADMIN_CNF_DELETEOK', 'Delete OK?') ; |
|
28 | +define('_TPLSADMIN_CNF_DELETEOK', 'Delete OK?'); |
|
29 | 29 | |
30 | 30 | |
31 | -define('_TPLSADMIN_DT_GETTPLSVARSINFO_DW', 'Get info of template variables as DreamWeaver Extensions') ; |
|
32 | -define('_TPLSADMIN_DD_GETTPLSVARSINFO_DW', 'Open Macromedia Extension Manager, first.<br />Extract the download archive.<br />Execute the files which extensions are .mxi and you will meet installing dialogs.<br />The snippets for template variables of your site will be usable after restarting Dream Weaver.') ; |
|
31 | +define('_TPLSADMIN_DT_GETTPLSVARSINFO_DW', 'Get info of template variables as DreamWeaver Extensions'); |
|
32 | +define('_TPLSADMIN_DD_GETTPLSVARSINFO_DW', 'Open Macromedia Extension Manager, first.<br />Extract the download archive.<br />Execute the files which extensions are .mxi and you will meet installing dialogs.<br />The snippets for template variables of your site will be usable after restarting Dream Weaver.'); |
|
33 | 33 | |
34 | -define('_TPLSADMIN_DT_GETTEMPLATES', 'Download templates') ; |
|
35 | -define('_TPLSADMIN_DD_GETTEMPLATES', 'Select a set before pushing either button') ; |
|
34 | +define('_TPLSADMIN_DT_GETTEMPLATES', 'Download templates'); |
|
35 | +define('_TPLSADMIN_DD_GETTEMPLATES', 'Select a set before pushing either button'); |
|
36 | 36 | |
37 | -define('_TPLSADMIN_FMT_MSG_PUTTEMPLATES', '%d templates are imported.') ; |
|
38 | -define('_TPLSADMIN_DT_PUTTEMPLATES', 'Upload templates') ; |
|
39 | -define('_TPLSADMIN_DD_PUTTEMPLATES', 'Select a set you want to upload/overwrite before uploading zip/tgz archive including template files (.html). You need not to check depths of the paths in the archive.') ; |
|
37 | +define('_TPLSADMIN_FMT_MSG_PUTTEMPLATES', '%d templates are imported.'); |
|
38 | +define('_TPLSADMIN_DT_PUTTEMPLATES', 'Upload templates'); |
|
39 | +define('_TPLSADMIN_DD_PUTTEMPLATES', 'Select a set you want to upload/overwrite before uploading zip/tgz archive including template files (.html). You need not to check depths of the paths in the archive.'); |
|
40 | 40 | |
41 | 41 | |
42 | -define('_TPLSADMIN_ERR_NOTUPLOADED', 'No files are uploaded.') ; |
|
43 | -define('_TPLSADMIN_ERR_EXTENSION', 'This extension cannot be recognized.') ; |
|
44 | -define('_TPLSADMIN_ERR_INVALIDARCHIVE', 'The archive is not extractable.') ; |
|
45 | -define('_TPLSADMIN_ERR_INVALIDTPLSET', 'Invalid set name has been specified.') ; |
|
42 | +define('_TPLSADMIN_ERR_NOTUPLOADED', 'No files are uploaded.'); |
|
43 | +define('_TPLSADMIN_ERR_EXTENSION', 'This extension cannot be recognized.'); |
|
44 | +define('_TPLSADMIN_ERR_INVALIDARCHIVE', 'The archive is not extractable.'); |
|
45 | +define('_TPLSADMIN_ERR_INVALIDTPLSET', 'Invalid set name has been specified.'); |
|
46 | 46 | |
47 | -define('_TPLSADMIN_ERR_NOTPLSVARSINFO', 'There are no template vars info files.') ; |
|
47 | +define('_TPLSADMIN_ERR_NOTPLSVARSINFO', 'There are no template vars info files.'); |
|
48 | 48 | |
49 | -define('_TPLSADMIN_NUMCAP_COMPILEDCACHES', 'Compiled template caches') ; |
|
50 | -define('_TPLSADMIN_NUMCAP_TPLSVARS', 'Template vars info files') ; |
|
49 | +define('_TPLSADMIN_NUMCAP_COMPILEDCACHES', 'Compiled template caches'); |
|
50 | +define('_TPLSADMIN_NUMCAP_TPLSVARS', 'Template vars info files'); |
@@ -1,4 +1,4 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -define('_MD_A_AINTHEME_FMT_PUBLICTOP', 'Public Top of %s') ; |
|
4 | -define('_MD_A_AINTHEME_FMT_ADMINTOP', 'Admin Top of %s') ; |
|
3 | +define('_MD_A_AINTHEME_FMT_PUBLICTOP', 'Public Top of %s'); |
|
4 | +define('_MD_A_AINTHEME_FMT_ADMINTOP', 'Admin Top of %s'); |
@@ -1,4 +1,4 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -define('_MD_A_MYPREFERENCES_FORMTITLE', 'Module\'s preferences') ; |
|
4 | -define('_MD_A_MYPREFERENCES_UPDATED', 'Preferences are updated successfully') ; |
|
3 | +define('_MD_A_MYPREFERENCES_FORMTITLE', 'Module\'s preferences'); |
|
4 | +define('_MD_A_MYPREFERENCES_UPDATED', 'Preferences are updated successfully'); |
@@ -1,15 +1,15 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -if (! defined('XOOPS_ROOT_PATH')) { |
|
4 | - exit ; |
|
3 | +if (!defined('XOOPS_ROOT_PATH')) { |
|
4 | + exit; |
|
5 | 5 | } |
6 | 6 | |
7 | -if (! defined('XOOPS_TRUST_PATH') || XOOPS_TRUST_PATH == '') { |
|
8 | - header('Location: '.XOOPS_URL.'/modules/altsys/setup_xoops_trust_path.php') ; |
|
9 | - exit ; |
|
7 | +if (!defined('XOOPS_TRUST_PATH') || XOOPS_TRUST_PATH == '') { |
|
8 | + header('Location: '.XOOPS_URL.'/modules/altsys/setup_xoops_trust_path.php'); |
|
9 | + exit; |
|
10 | 10 | } |
11 | 11 | |
12 | -define('ALTSYS_MYLANGUAGE_ROOT_PATH', XOOPS_ROOT_PATH . '/my_language'); |
|
12 | +define('ALTSYS_MYLANGUAGE_ROOT_PATH', XOOPS_ROOT_PATH.'/my_language'); |
|
13 | 13 | |
14 | 14 | |
15 | 15 | class SetupAltsysLangMgr extends XCube_ActionFilter |
@@ -26,23 +26,23 @@ discard block |
||
26 | 26 | } |
27 | 27 | |
28 | 28 | |
29 | -require_once XOOPS_ROOT_PATH . "/core/XCube_LanguageManager.class.php"; |
|
30 | -require_once XOOPS_ROOT_PATH . "/modules/legacy/kernel/Legacy_LanguageManager.class.php"; |
|
29 | +require_once XOOPS_ROOT_PATH."/core/XCube_LanguageManager.class.php"; |
|
30 | +require_once XOOPS_ROOT_PATH."/modules/legacy/kernel/Legacy_LanguageManager.class.php"; |
|
31 | 31 | |
32 | 32 | class AltsysLangMgr_LanguageManager extends Legacy_LanguageManager |
33 | 33 | { |
34 | - public $langman = null ; |
|
35 | - public $theme_lang_checked = false ; |
|
34 | + public $langman = null; |
|
35 | + public $theme_lang_checked = false; |
|
36 | 36 | |
37 | 37 | public function prepare() |
38 | 38 | { |
39 | - $langmanpath = XOOPS_TRUST_PATH.'/libs/altsys/class/D3LanguageManager.class.php' ; |
|
40 | - if (! file_exists($langmanpath)) { |
|
41 | - die('install the latest altsys') ; |
|
39 | + $langmanpath = XOOPS_TRUST_PATH.'/libs/altsys/class/D3LanguageManager.class.php'; |
|
40 | + if (!file_exists($langmanpath)) { |
|
41 | + die('install the latest altsys'); |
|
42 | 42 | } |
43 | - require_once($langmanpath) ; |
|
44 | - $this->langman = D3LanguageManager::getInstance() ; |
|
45 | - $this->langman->language = $this->mLanguageName ; |
|
43 | + require_once($langmanpath); |
|
44 | + $this->langman = D3LanguageManager::getInstance(); |
|
45 | + $this->langman->language = $this->mLanguageName; |
|
46 | 46 | |
47 | 47 | parent::prepare(); |
48 | 48 | } |
@@ -50,40 +50,40 @@ discard block |
||
50 | 50 | public function _loadLanguage($dirname, $fileBodyName) |
51 | 51 | { |
52 | 52 | // read/check once (selected_theme)/language/(lang).php |
53 | - if (! $this->theme_lang_checked) { |
|
54 | - $root =& XCube_Root::getSingleton() ; |
|
55 | - if (! empty($root->mContext->mXoopsConfig['theme_set'])) { |
|
56 | - $langdir = XOOPS_THEME_PATH.'/'.$root->mContext->mXoopsConfig['theme_set'].'/language' ; |
|
53 | + if (!$this->theme_lang_checked) { |
|
54 | + $root = & XCube_Root::getSingleton(); |
|
55 | + if (!empty($root->mContext->mXoopsConfig['theme_set'])) { |
|
56 | + $langdir = XOOPS_THEME_PATH.'/'.$root->mContext->mXoopsConfig['theme_set'].'/language'; |
|
57 | 57 | if (file_exists($langdir)) { |
58 | - $langfile = $langdir.'/'.$this->mLanguageName.'.php' ; |
|
59 | - $engfile = $langdir.'/english.php' ; |
|
58 | + $langfile = $langdir.'/'.$this->mLanguageName.'.php'; |
|
59 | + $engfile = $langdir.'/english.php'; |
|
60 | 60 | if (file_exists($langfile)) { |
61 | - require_once $langfile ; |
|
61 | + require_once $langfile; |
|
62 | 62 | } elseif (file_exists($engfile)) { |
63 | - require_once $engfile ; |
|
63 | + require_once $engfile; |
|
64 | 64 | } |
65 | 65 | } |
66 | - $this->theme_lang_checked = true ; |
|
66 | + $this->theme_lang_checked = true; |
|
67 | 67 | } |
68 | 68 | } |
69 | 69 | |
70 | 70 | // read normal |
71 | - $this->langman->read($fileBodyName.'.php', $dirname) ; |
|
71 | + $this->langman->read($fileBodyName.'.php', $dirname); |
|
72 | 72 | } |
73 | 73 | |
74 | 74 | public function loadPageTypeMessageCatalog($type) |
75 | 75 | { |
76 | 76 | // I dare not to use langman... |
77 | 77 | if (strpos($type, '.') === false && $this->langman->my_language) { |
78 | - $mylang_file = $this->langman->my_language.'/'.$this->mLanguageName.'/'.$type.'.php' ; |
|
78 | + $mylang_file = $this->langman->my_language.'/'.$this->mLanguageName.'/'.$type.'.php'; |
|
79 | 79 | if (file_exists($mylang_file)) { |
80 | - require_once $mylang_file ; |
|
80 | + require_once $mylang_file; |
|
81 | 81 | } |
82 | 82 | } |
83 | - $original_error_level = error_reporting() ; |
|
84 | - error_reporting($original_error_level & ~ E_NOTICE) ; |
|
83 | + $original_error_level = error_reporting(); |
|
84 | + error_reporting($original_error_level & ~ E_NOTICE); |
|
85 | 85 | parent::loadPageTypeMessageCatalog($type); |
86 | - error_reporting($original_error_level) ; |
|
86 | + error_reporting($original_error_level); |
|
87 | 87 | } |
88 | 88 | |
89 | 89 | public function loadGlobalMessageCatalog() |
@@ -91,8 +91,8 @@ discard block |
||
91 | 91 | /* if (!$this->_loadFile(XOOPS_ROOT_PATH . "/modules/legacy/language/" . $this->mLanguageName . "/global.php")) { |
92 | 92 | $this->_loadFile(XOOPS_ROOT_PATH . "/modules/legacy/language/english/global.php"); |
93 | 93 | } */ |
94 | - $this->_loadLanguage('legacy', 'global') ; |
|
95 | - $this->_loadLanguage('legacy', 'setting') ; |
|
94 | + $this->_loadLanguage('legacy', 'global'); |
|
95 | + $this->_loadLanguage('legacy', 'setting'); |
|
96 | 96 | |
97 | 97 | // |
98 | 98 | // Now, if XOOPS_USE_MULTIBYTES isn't defined, set zero to it. |
@@ -6,7 +6,7 @@ discard block |
||
6 | 6 | class altsysUtils |
7 | 7 | { |
8 | 8 | /** |
9 | - * @param $name |
|
9 | + * @param string $name |
|
10 | 10 | * @param bool $doRegist |
11 | 11 | * @return array |
12 | 12 | */ |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | * @param int $flags |
81 | 81 | * @param null $encoding |
82 | 82 | * @param bool $double_encode |
83 | - * @return mixed|string |
|
83 | + * @return string |
|
84 | 84 | */ |
85 | 85 | |
86 | 86 | public static function htmlSpecialChars($str, $flags = ENT_COMPAT, $encoding = null, $double_encode = true) |
@@ -59,7 +59,7 @@ |
||
59 | 59 | } |
60 | 60 | |
61 | 61 | /** |
62 | - * @param $resource |
|
62 | + * @param string $resource |
|
63 | 63 | * @param $mydirname |
64 | 64 | * @param null $mytrustdirname |
65 | 65 | * @param bool $read_once |
@@ -29,9 +29,9 @@ discard block |
||
29 | 29 | { |
30 | 30 | $this->language = preg_replace('/[^0-9a-zA-Z_-]/', '', @$GLOBALS['xoopsConfig']['language']); |
31 | 31 | |
32 | - $this->salt = mb_substr(md5(XOOPS_ROOT_PATH . XOOPS_DB_USER . XOOPS_DB_PREFIX), 0, 6); |
|
32 | + $this->salt = mb_substr(md5(XOOPS_ROOT_PATH.XOOPS_DB_USER.XOOPS_DB_PREFIX), 0, 6); |
|
33 | 33 | |
34 | - $this->cache_path = XOOPS_TRUST_PATH . '/cache'; |
|
34 | + $this->cache_path = XOOPS_TRUST_PATH.'/cache'; |
|
35 | 35 | |
36 | 36 | if (defined('ALTSYS_MYLANGUAGE_ROOT_PATH') && file_exists(ALTSYS_MYLANGUAGE_ROOT_PATH)) { |
37 | 37 | $this->my_language = ALTSYS_MYLANGUAGE_ROOT_PATH; |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | |
68 | 68 | public function read($resource, $mydirname, $mytrustdirname = null, $read_once = true) |
69 | 69 | { |
70 | - $d3file = XOOPS_ROOT_PATH . '/modules/' . $mydirname . '/mytrustdirname.php'; |
|
70 | + $d3file = XOOPS_ROOT_PATH.'/modules/'.$mydirname.'/mytrustdirname.php'; |
|
71 | 71 | |
72 | 72 | if (empty($mytrustdirname) && is_file($d3file)) { |
73 | 73 | require $d3file; |
@@ -79,12 +79,12 @@ discard block |
||
79 | 79 | |
80 | 80 | $cache_file = $this->getCacheFileName($resource, $mydirname); |
81 | 81 | |
82 | - $root_file = XOOPS_ROOT_PATH . '/modules/' . $mydirname . '/language/' . $this->language . '/' . $resource; |
|
82 | + $root_file = XOOPS_ROOT_PATH.'/modules/'.$mydirname.'/language/'.$this->language.'/'.$resource; |
|
83 | 83 | |
84 | 84 | // language overriding by XOOPS_ROOT_PATH/my_language |
85 | 85 | |
86 | 86 | if ($this->my_language) { |
87 | - $mylang_file = $this->my_language . '/modules/' . $mydirname . '/' . $this->language . '/' . $resource; |
|
87 | + $mylang_file = $this->my_language.'/modules/'.$mydirname.'/'.$this->language.'/'.$resource; |
|
88 | 88 | |
89 | 89 | if (is_file($mylang_file)) { |
90 | 90 | require_once $mylang_file; |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | if (empty($mytrustdirname)) { |
99 | 99 | // conventional module |
100 | 100 | |
101 | - $default_file = XOOPS_ROOT_PATH . '/modules/' . $mydirname . '/language/' . $this->default_language . '/' . $resource; |
|
101 | + $default_file = XOOPS_ROOT_PATH.'/modules/'.$mydirname.'/language/'.$this->default_language.'/'.$resource; |
|
102 | 102 | |
103 | 103 | if (is_file($cache_file)) { |
104 | 104 | require_once $cache_file; |
@@ -112,9 +112,9 @@ discard block |
||
112 | 112 | } else { |
113 | 113 | // D3 modules |
114 | 114 | |
115 | - $trust_file = XOOPS_TRUST_PATH . '/modules/' . $mytrustdirname . '/language/' . $this->language . '/' . $resource; |
|
115 | + $trust_file = XOOPS_TRUST_PATH.'/modules/'.$mytrustdirname.'/language/'.$this->language.'/'.$resource; |
|
116 | 116 | |
117 | - $default_file = XOOPS_TRUST_PATH . '/modules/' . $mytrustdirname . '/language/' . $this->default_language . '/' . $resource; |
|
117 | + $default_file = XOOPS_TRUST_PATH.'/modules/'.$mytrustdirname.'/language/'.$this->default_language.'/'.$resource; |
|
118 | 118 | |
119 | 119 | if (is_file($cache_file)) { |
120 | 120 | require_once $cache_file; |
@@ -155,6 +155,6 @@ discard block |
||
155 | 155 | $language = $this->language; |
156 | 156 | } |
157 | 157 | |
158 | - return $this->cache_path . '/' . $this->cache_prefix . '_' . $this->salt . '_' . $mydirname . '_' . $language . '_' . $resource; |
|
158 | + return $this->cache_path.'/'.$this->cache_prefix.'_'.$this->salt.'_'.$mydirname.'_'.$language.'_'.$resource; |
|
159 | 159 | } |
160 | 160 | } |