Completed
Push — master ( 99eb82...6dab8b )
by Michael
19s
created
xoops_trust_path/libs/altsys/language/french/mytplsform.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-define('_MD_A_MYTPLSFORM_TPLSADMIN', 'Templates') ;
4
-define('_MD_A_MYTPLSFORM_EDIT', 'Edition du template') ;
5
-define('_MD_A_MYTPLSFORM_UPDATED', 'Mise à jour avec succès du template') ;
6
-define('_MD_A_MYTPLSFORM_CREATED', 'Template créé avec succès') ;
7
-define('_MD_A_MYTPLSFORM_LABEL_TPLFILE', 'Nom du Template') ;
8
-define('_MD_A_MYTPLSFORM_BTN_MODIFYCONT', 'Renvoyer') ;
9
-define('_MD_A_MYTPLSFORM_BTN_MODIFYEND', 'Sauvegarder et Terminer') ;
10
-define('_MD_A_MYTPLSFORM_BTN_CREATE', 'Créer') ;
11
-define('_MD_A_MYTPLSFORM_BTN_RESET', 'Annuler') ;
3
+define('_MD_A_MYTPLSFORM_TPLSADMIN', 'Templates');
4
+define('_MD_A_MYTPLSFORM_EDIT', 'Edition du template');
5
+define('_MD_A_MYTPLSFORM_UPDATED', 'Mise à jour avec succès du template');
6
+define('_MD_A_MYTPLSFORM_CREATED', 'Template créé avec succès');
7
+define('_MD_A_MYTPLSFORM_LABEL_TPLFILE', 'Nom du Template');
8
+define('_MD_A_MYTPLSFORM_BTN_MODIFYCONT', 'Renvoyer');
9
+define('_MD_A_MYTPLSFORM_BTN_MODIFYEND', 'Sauvegarder et Terminer');
10
+define('_MD_A_MYTPLSFORM_BTN_CREATE', 'Créer');
11
+define('_MD_A_MYTPLSFORM_BTN_RESET', 'Annuler');
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/language/french/modinfo.php 1 patch
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -1,37 +1,37 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-define('_MI_ALTSYS_MODULENAME', 'ALTSYS') ;
4
-define('_MI_ALTSYS_MODULEDESC', 'Gestion simplifiée du système') ;
3
+define('_MI_ALTSYS_MODULENAME', 'ALTSYS');
4
+define('_MI_ALTSYS_MODULEDESC', 'Gestion simplifiée du système');
5 5
 
6 6
 // menus
7
-define('_MI_ALTSYS_MENU_CUSTOMBLOCKS', 'Blocs personnalisés') ;
8
-define('_MI_ALTSYS_MENU_NEWCUSTOMBLOCK', 'Créer un Nouveau Bloc') ;
9
-define('_MI_ALTSYS_MENU_MYBLOCKSADMIN', 'Blocs des Modules') ;
10
-define('_MI_ALTSYS_MENU_MYTPLSADMIN', 'Templates') ;
11
-define('_MI_ALTSYS_MENU_COMPILEHOOKADMIN', 'Templates Advancés') ;
12
-define('_MI_ALTSYS_MENU_MYLANGADMIN', 'Langages') ;
13
-define('_MI_ALTSYS_MENU_ADVANCEDLANGADMIN', 'Langages Advancés') ;
14
-define('_MI_ALTSYS_MENU_MYAVATAR', 'Avatars') ;
15
-define('_MI_ALTSYS_MENU_MYSMILEY', 'Emoticones') ;
7
+define('_MI_ALTSYS_MENU_CUSTOMBLOCKS', 'Blocs personnalisés');
8
+define('_MI_ALTSYS_MENU_NEWCUSTOMBLOCK', 'Créer un Nouveau Bloc');
9
+define('_MI_ALTSYS_MENU_MYBLOCKSADMIN', 'Blocs des Modules');
10
+define('_MI_ALTSYS_MENU_MYTPLSADMIN', 'Templates');
11
+define('_MI_ALTSYS_MENU_COMPILEHOOKADMIN', 'Templates Advancés');
12
+define('_MI_ALTSYS_MENU_MYLANGADMIN', 'Langages');
13
+define('_MI_ALTSYS_MENU_ADVANCEDLANGADMIN', 'Langages Advancés');
14
+define('_MI_ALTSYS_MENU_MYAVATAR', 'Avatars');
15
+define('_MI_ALTSYS_MENU_MYSMILEY', 'Emoticones');
16 16
 
17 17
 // blocks
18
-define('_MI_ALTSYS_BNAME_ADMIN_MENU', 'Menu Admin') ;
18
+define('_MI_ALTSYS_BNAME_ADMIN_MENU', 'Menu Admin');
19 19
 
20 20
 // configs
21
-define('_MI_ALTSYS_ADMINMENU_HFT', 'Rewrite admin menu') ;
22
-define('_MI_ALTSYS_ADMINMENU_HFTDSC', 'If your admin menu is broken, remove cache/adminmenu.php. This feature works only with XOOPS 2.0.x') ;
23
-define('_MI_ALTSYS_AMHFT_OPT_2COL', 'Two columns of module icons') ;
24
-define('_MI_ALTSYS_AMHFT_OPT_NOIMG', 'IMG to TEXT') ;
25
-define('_MI_ALTSYS_AMHFT_OPT_XCSTY', 'Like XoopsCube Legacy 2.1') ;
21
+define('_MI_ALTSYS_ADMINMENU_HFT', 'Rewrite admin menu');
22
+define('_MI_ALTSYS_ADMINMENU_HFTDSC', 'If your admin menu is broken, remove cache/adminmenu.php. This feature works only with XOOPS 2.0.x');
23
+define('_MI_ALTSYS_AMHFT_OPT_2COL', 'Two columns of module icons');
24
+define('_MI_ALTSYS_AMHFT_OPT_NOIMG', 'IMG to TEXT');
25
+define('_MI_ALTSYS_AMHFT_OPT_XCSTY', 'Like XoopsCube Legacy 2.1');
26 26
 
27
-define('_MI_ALTSYS_ADMINMENU_IM', 'Copy mymenu links into admin menu') ;
28
-define('_MI_ALTSYS_ADMINMENU_IMDSC', 'If your admin menu is broken, remove cache/adminmenu.php. This feature works only with XOOPS 2.0.x') ;
27
+define('_MI_ALTSYS_ADMINMENU_IM', 'Copy mymenu links into admin menu');
28
+define('_MI_ALTSYS_ADMINMENU_IMDSC', 'If your admin menu is broken, remove cache/adminmenu.php. This feature works only with XOOPS 2.0.x');
29 29
 
30
-define('_MI_ALTSYS_ADMIN_IN_THEME', 'Theme set for admin') ;
31
-define('_MI_ALTSYS_ADMIN_IN_THEMEDSC', 'Set the name of the theme displaying admin area. Insert a line just after including common.php in mainfile.php<br />include XOOPS_TRUST_PATH.\'/libs/altsys/include/admin_in_theme.inc.php\';<br /> to enable this. This feature works only with XOOPS 2.0.x') ;
30
+define('_MI_ALTSYS_ADMIN_IN_THEME', 'Theme set for admin');
31
+define('_MI_ALTSYS_ADMIN_IN_THEMEDSC', 'Set the name of the theme displaying admin area. Insert a line just after including common.php in mainfile.php<br />include XOOPS_TRUST_PATH.\'/libs/altsys/include/admin_in_theme.inc.php\';<br /> to enable this. This feature works only with XOOPS 2.0.x');
32 32
 
33
-define('_MI_ALTSYS_ENABLEFORCECLONE', 'Forcer tous les blocs à CLONABLE') ;
34
-define('_MI_ALTSYS_ENABLEFORCECLONEDSC', 'Vous devriez savoir que l\'utilisation de multiples instances d\'un bloc sur une même page peut provoquer des erreurs d\'affichage') ;
33
+define('_MI_ALTSYS_ENABLEFORCECLONE', 'Forcer tous les blocs à CLONABLE');
34
+define('_MI_ALTSYS_ENABLEFORCECLONEDSC', 'Vous devriez savoir que l\'utilisation de multiples instances d\'un bloc sur une même page peut provoquer des erreurs d\'affichage');
35 35
 
36 36
 define('_MI_ALTSYS_IMAGES_DIR', 'Répertoire pour les fichiers image');
37 37
 define('_MI_ALTSYS_IMAGES_DIRDSC', 'chemin relatif dans le répertoire du module. par défaut: images');
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/language/french/mypreferences.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-define('_MD_A_MYPREFERENCES_FORMTITLE', 'Préférences Modules') ;
4
-define('_MD_A_MYPREFERENCES_UPDATED', 'Mise à jour avec succès des préférences') ;
3
+define('_MD_A_MYPREFERENCES_FORMTITLE', 'Préférences Modules');
4
+define('_MD_A_MYPREFERENCES_UPDATED', 'Mise à jour avec succès des préférences');
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/language/french/mylangadmin.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -1,27 +1,27 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/language/french/mytplsadmin.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -1,27 +1,27 @@
 block discarded – undo
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é');
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/put_templates.php 1 patch
Spacing   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -5,25 +5,25 @@  discard block
 block discarded – undo
5 5
 //                        GIJOE <http://www.peak.ne.jp/>                     //
6 6
 // ------------------------------------------------------------------------- //
7 7
 
8
-include_once __DIR__.'/include/gtickets.php' ;
9
-include_once __DIR__.'/include/altsys_functions.php' ;
10
-include_once __DIR__.'/include/tpls_functions.php' ;
8
+include_once __DIR__.'/include/gtickets.php';
9
+include_once __DIR__.'/include/altsys_functions.php';
10
+include_once __DIR__.'/include/tpls_functions.php';
11 11
 
12 12
 
13 13
 // this page can be called only from altsys
14 14
 if ($xoopsModule->getVar('dirname') != 'altsys') {
15
-    die('this page can be called only from altsys') ;
15
+    die('this page can be called only from altsys');
16 16
 }
17 17
 
18 18
 
19 19
 // language file
20
-altsys_include_language_file('compilehookadmin') ;
20
+altsys_include_language_file('compilehookadmin');
21 21
 
22 22
 
23
-$db = XoopsDatabaseFactory::getDatabaseConnection() ;
23
+$db = XoopsDatabaseFactory::getDatabaseConnection();
24 24
 
25
-if (empty($_FILES['tplset_archive']['tmp_name']) || ! is_uploaded_file($_FILES['tplset_archive']['tmp_name'])) {
26
-    die(_TPLSADMIN_ERR_NOTUPLOADED) ;
25
+if (empty($_FILES['tplset_archive']['tmp_name']) || !is_uploaded_file($_FILES['tplset_archive']['tmp_name'])) {
26
+    die(_TPLSADMIN_ERR_NOTUPLOADED);
27 27
 }
28 28
 //fix for mb_http_output setting and for add any browsers
29 29
     if (function_exists('mb_http_output')) {
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 //ob_buffer over flow
33 33
 //HACK by suin & nao-pon 2012/01/06
34 34
     while (ob_get_level() > 0) {
35
-        if (! ob_end_clean()) {
35
+        if (!ob_end_clean()) {
36 36
             break;
37 37
         }
38 38
     }
@@ -41,62 +41,62 @@  discard block
 block discarded – undo
41 41
 // EXTRACT STAGE
42 42
 //
43 43
 
44
-$orig_filename4check = strtolower($_FILES['tplset_archive']['name']) ;
44
+$orig_filename4check = strtolower($_FILES['tplset_archive']['name']);
45 45
 if (strtolower(substr($orig_filename4check, -4)) == '.zip') {
46 46
 
47 47
     // zip
48
-    require_once __DIR__.'/include/Archive_Zip.php' ;
49
-    $reader = new Archive_Zip($_FILES['tplset_archive']['tmp_name']) ;
50
-    $files = $reader->extract(array( 'extract_as_string' => true )) ;
51
-    if (! is_array(@$files)) {
52
-        die($reader->errorName()) ;
48
+    require_once __DIR__.'/include/Archive_Zip.php';
49
+    $reader = new Archive_Zip($_FILES['tplset_archive']['tmp_name']);
50
+    $files = $reader->extract(array('extract_as_string' => true));
51
+    if (!is_array(@$files)) {
52
+        die($reader->errorName());
53 53
     }
54
-    $do_upload = true ;
54
+    $do_upload = true;
55 55
 } elseif (substr($orig_filename4check, -4) == '.tgz' || substr($orig_filename4check, -7) == '.tar.gz') {
56 56
 
57 57
     // tar.gz
58
-    require_once XOOPS_ROOT_PATH.'/class/class.tar.php' ;
59
-    $tar = new tar() ;
60
-    $tar->openTAR($_FILES['tplset_archive']['tmp_name']) ;
61
-    $files = array() ;
58
+    require_once XOOPS_ROOT_PATH.'/class/class.tar.php';
59
+    $tar = new tar();
60
+    $tar->openTAR($_FILES['tplset_archive']['tmp_name']);
61
+    $files = array();
62 62
     foreach ($tar->files as $id => $info) {
63 63
         $files[] = array(
64
-            'filename' => $info['name'] ,
65
-            'mtime' => $info['time'] ,
64
+            'filename' => $info['name'],
65
+            'mtime' => $info['time'],
66 66
             'content' => $info['file']
67
-        ) ;
67
+        );
68 68
     }
69 69
     if (empty($files)) {
70
-        die(_TPLSADMIN_ERR_INVALIDARCHIVE) ;
70
+        die(_TPLSADMIN_ERR_INVALIDARCHIVE);
71 71
     }
72
-    $do_upload = true ;
72
+    $do_upload = true;
73 73
 }
74 74
 
75 75
 if (empty($do_upload)) {
76
-    die(_TPLSADMIN_ERR_EXTENSION) ;
76
+    die(_TPLSADMIN_ERR_EXTENSION);
77 77
 }
78 78
 
79 79
 //
80 80
 // IMPORT STAGE
81 81
 //
82 82
 
83
-$tplset = @$_POST['tplset'] ;
84
-if (! preg_match('/^[0-9A-Za-z_-]{1,16}$/', $tplset)) {
85
-    die(_TPLSADMIN_ERR_INVALIDTPLSET) ;
83
+$tplset = @$_POST['tplset'];
84
+if (!preg_match('/^[0-9A-Za-z_-]{1,16}$/', $tplset)) {
85
+    die(_TPLSADMIN_ERR_INVALIDTPLSET);
86 86
 }
87 87
 
88
-$imported = 0 ;
88
+$imported = 0;
89 89
 foreach ($files as $file) {
90
-    if (! empty($file['folder'])) {
91
-        continue ;
90
+    if (!empty($file['folder'])) {
91
+        continue;
92 92
     }
93
-    $pos = strrpos($file['filename'], '/') ;
94
-    $tpl_file = $pos === false ? $file['filename'] : substr($file['filename'], $pos + 1) ;
93
+    $pos = strrpos($file['filename'], '/');
94
+    $tpl_file = $pos === false ? $file['filename'] : substr($file['filename'], $pos + 1);
95 95
 
96 96
     if (tplsadmin_import_data($tplset, $tpl_file, rtrim($file['content']), $file['mtime'])) {
97
-        $imported ++ ;
97
+        $imported++;
98 98
     }
99 99
 }
100 100
 
101
-redirect_header('?mode=admin&lib=altsys&page=compilehookadmin', 3, sprintf(_TPLSADMIN_FMT_MSG_PUTTEMPLATES, $imported)) ;
102
-exit ;
101
+redirect_header('?mode=admin&lib=altsys&page=compilehookadmin', 3, sprintf(_TPLSADMIN_FMT_MSG_PUTTEMPLATES, $imported));
102
+exit;
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/include/autoupdate_from_module.inc.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -1,45 +1,45 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (! $xoopsConfig['theme_fromfile']) {
4
-    return ;
3
+if (!$xoopsConfig['theme_fromfile']) {
4
+    return;
5 5
 }
6 6
 
7 7
 // templates/ under modules
8 8
 // $tplsadmin_autoupdate_path = XOOPS_THEME_PATH . '/' . $xoopsConfig['theme_set'] . '/templates' ;
9 9
 
10
-if (! is_array(@$tplsadmin_autoupdate_dirnames)) {
11
-    return ;
10
+if (!is_array(@$tplsadmin_autoupdate_dirnames)) {
11
+    return;
12 12
 }
13 13
 
14 14
 foreach ($tplsadmin_autoupdate_dirnames as $dirname) {
15
-    $dirname = preg_replace('/[^a-zA-Z0-9_-]/', '', $dirname) ;
16
-    $tplsadmin_autoupdate_path = XOOPS_ROOT_PATH . '/modules/' . $dirname . '/templates' ;
15
+    $dirname = preg_replace('/[^a-zA-Z0-9_-]/', '', $dirname);
16
+    $tplsadmin_autoupdate_path = XOOPS_ROOT_PATH.'/modules/'.$dirname.'/templates';
17 17
 
18 18
     // modules
19
-    if ($handler = @opendir($tplsadmin_autoupdate_path . '/')) {
19
+    if ($handler = @opendir($tplsadmin_autoupdate_path.'/')) {
20 20
         while (($file = readdir($handler)) !== false) {
21
-            $file_path = $tplsadmin_autoupdate_path . '/' . $file ;
21
+            $file_path = $tplsadmin_autoupdate_path.'/'.$file;
22 22
             if (is_file($file_path) && substr($file, -5) == '.html') {
23 23
                 $mtime = (int)(@filemtime($file_path));
24
-                list($count) = $xoopsDB->fetchRow($xoopsDB->query('SELECT COUNT(*) FROM ' . $xoopsDB->prefix('tplfile') . " WHERE tpl_tplset='" . addslashes($xoopsConfig['template_set']) . "' AND tpl_file='" . addslashes($file) . "' AND tpl_lastmodified >= $mtime")) ;
24
+                list($count) = $xoopsDB->fetchRow($xoopsDB->query('SELECT COUNT(*) FROM '.$xoopsDB->prefix('tplfile')." WHERE tpl_tplset='".addslashes($xoopsConfig['template_set'])."' AND tpl_file='".addslashes($file)."' AND tpl_lastmodified >= $mtime"));
25 25
                 if ($count <= 0) {
26
-                    include_once XOOPS_TRUST_PATH.'/libs/altsys/include/tpls_functions.php' ;
27
-                    tplsadmin_import_data($xoopsConfig['template_set'], $file, implode('', file($file_path)), $mtime) ;
26
+                    include_once XOOPS_TRUST_PATH.'/libs/altsys/include/tpls_functions.php';
27
+                    tplsadmin_import_data($xoopsConfig['template_set'], $file, implode('', file($file_path)), $mtime);
28 28
                 }
29 29
             }
30 30
         }
31 31
     }
32 32
 
33 33
     // blocks
34
-    if ($handler = @opendir($tplsadmin_autoupdate_path . '/blocks/')) {
34
+    if ($handler = @opendir($tplsadmin_autoupdate_path.'/blocks/')) {
35 35
         while (($file = readdir($handler)) !== false) {
36
-            $file_path = $tplsadmin_autoupdate_path . '/blocks/' . $file ;
36
+            $file_path = $tplsadmin_autoupdate_path.'/blocks/'.$file;
37 37
             if (is_file($file_path) && substr($file, -5) == '.html') {
38 38
                 $mtime = (int)(@filemtime($file_path));
39
-                list($count) = $xoopsDB->fetchRow($xoopsDB->query('SELECT COUNT(*) FROM ' . $xoopsDB->prefix('tplfile') . " WHERE tpl_tplset='" . addslashes($xoopsConfig['template_set']) . "' AND tpl_file='" . addslashes($file) . "' AND tpl_lastmodified >= $mtime")) ;
39
+                list($count) = $xoopsDB->fetchRow($xoopsDB->query('SELECT COUNT(*) FROM '.$xoopsDB->prefix('tplfile')." WHERE tpl_tplset='".addslashes($xoopsConfig['template_set'])."' AND tpl_file='".addslashes($file)."' AND tpl_lastmodified >= $mtime"));
40 40
                 if ($count <= 0) {
41
-                    include_once XOOPS_TRUST_PATH.'/libs/altsys/include/tpls_functions.php' ;
42
-                    tplsadmin_import_data($xoopsConfig['template_set'], $file, implode('', file($file_path)), $mtime) ;
41
+                    include_once XOOPS_TRUST_PATH.'/libs/altsys/include/tpls_functions.php';
42
+                    tplsadmin_import_data($xoopsConfig['template_set'], $file, implode('', file($file_path)), $mtime);
43 43
                 }
44 44
             }
45 45
         }
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/include/autoupdate_from_theme.inc.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,21 +1,21 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (! $xoopsConfig['theme_fromfile']) {
4
-    return ;
3
+if (!$xoopsConfig['theme_fromfile']) {
4
+    return;
5 5
 }
6 6
 
7 7
 // templates/ under the theme
8
-$tplsadmin_autoupdate_path = XOOPS_THEME_PATH . '/' . $xoopsConfig['theme_set'] . '/templates' ;
8
+$tplsadmin_autoupdate_path = XOOPS_THEME_PATH.'/'.$xoopsConfig['theme_set'].'/templates';
9 9
 
10
-if ($handler = @opendir($tplsadmin_autoupdate_path . '/')) {
10
+if ($handler = @opendir($tplsadmin_autoupdate_path.'/')) {
11 11
     while (($file = readdir($handler)) !== false) {
12
-        $file_path = $tplsadmin_autoupdate_path . '/' . $file ;
12
+        $file_path = $tplsadmin_autoupdate_path.'/'.$file;
13 13
         if (is_file($file_path) && substr($file, -5) == '.html') {
14 14
             $mtime = (int)(@filemtime($file_path));
15
-            list($count) = $xoopsDB->fetchRow($xoopsDB->query('SELECT COUNT(*) FROM ' . $xoopsDB->prefix('tplfile') . " WHERE tpl_tplset='" . addslashes($xoopsConfig['template_set']) . "' AND tpl_file='" . addslashes($file) . "' AND tpl_lastmodified >= $mtime")) ;
15
+            list($count) = $xoopsDB->fetchRow($xoopsDB->query('SELECT COUNT(*) FROM '.$xoopsDB->prefix('tplfile')." WHERE tpl_tplset='".addslashes($xoopsConfig['template_set'])."' AND tpl_file='".addslashes($file)."' AND tpl_lastmodified >= $mtime"));
16 16
             if ($count <= 0) {
17
-                include_once XOOPS_TRUST_PATH.'/libs/altsys/include/tpls_functions.php' ;
18
-                tplsadmin_import_data($xoopsConfig['template_set'], $file, implode('', file($file_path)), $mtime) ;
17
+                include_once XOOPS_TRUST_PATH.'/libs/altsys/include/tpls_functions.php';
18
+                tplsadmin_import_data($xoopsConfig['template_set'], $file, implode('', file($file_path)), $mtime);
19 19
             }
20 20
         }
21 21
     }
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/xoops_version.php 1 patch
Spacing   +56 added lines, -56 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-include_once __DIR__.'/include/altsys_functions.php' ;
3
+include_once __DIR__.'/include/altsys_functions.php';
4 4
 
5 5
 // language file (modinfo.php)
6
-altsys_include_language_file('modinfo') ;
6
+altsys_include_language_file('modinfo');
7 7
 
8
-$modversion['name'] = _MI_ALTSYS_MODULENAME ;
9
-$modversion['version'] = '0.83' ;
10
-$modversion['detailed_version'] = '0.83.0' ;
11
-$modversion['description'] = _MI_ALTSYS_MODULEDESC ;
8
+$modversion['name'] = _MI_ALTSYS_MODULENAME;
9
+$modversion['version'] = '0.83';
10
+$modversion['detailed_version'] = '0.83.0';
11
+$modversion['description'] = _MI_ALTSYS_MODULEDESC;
12 12
 $modversion['credits'] = 'PEAK Corp.';
13 13
 $modversion['author'] = 'GIJ=CHECKMATE<br />PEAK Corp.(http://www.peak.ne.jp/), XOOPS X Distribution(https://github.com/XoopsX)';
14 14
 $modversion['license'] = 'GPL see LICENSE';
@@ -26,18 +26,18 @@  discard block
 block discarded – undo
26 26
 $modversion['adminmenu'] = 'admin/admin_menu.php';
27 27
 
28 28
 // All Templates can't be touched by modulesadmin.
29
-$modversion['templates'] = array() ;
29
+$modversion['templates'] = array();
30 30
 
31 31
 // Blocks
32 32
 $modversion['blocks'][1] = array(
33
-    'file'            => 'blocks.php' ,
34
-    'name'            => _MI_ALTSYS_BNAME_ADMIN_MENU ,
35
-    'description'    => '' ,
36
-    'show_func'        => 'b_altsys_admin_menu_show' ,
37
-    'edit_func'        => 'b_altsys_admin_menu_edit' ,
38
-    'options'        => "$mydirname" ,
39
-    'template'        => '' , // use "module" template instead
40
-) ;
33
+    'file'            => 'blocks.php',
34
+    'name'            => _MI_ALTSYS_BNAME_ADMIN_MENU,
35
+    'description'    => '',
36
+    'show_func'        => 'b_altsys_admin_menu_show',
37
+    'edit_func'        => 'b_altsys_admin_menu_edit',
38
+    'options'        => "$mydirname",
39
+    'template'        => '', // use "module" template instead
40
+);
41 41
 
42 42
 // Menu
43 43
 $modversion['hasMain'] = 1;
@@ -50,64 +50,64 @@  discard block
 block discarded – undo
50 50
 
51 51
 // Configurations
52 52
 $modversion['config'][1] = array(
53
-    'name'            => 'adminmenu_hack_ft' ,
54
-    'title'            => '_MI_ALTSYS_ADMINMENU_HFT' ,
55
-    'description'    => '_MI_ALTSYS_ADMINMENU_HFTDSC' ,
56
-    'formtype'        => 'select' ,
57
-    'valuetype'        => 'int' ,
58
-    'default'        => 0 ,
59
-    'options'        => array( '_NONE' => 0 , '_MI_ALTSYS_AMHFT_OPT_2COL' => 1 , '_MI_ALTSYS_AMHFT_OPT_NOIMG' => 2 , '_MI_ALTSYS_AMHFT_OPT_XCSTY' => 3 )
60
-) ;
53
+    'name'            => 'adminmenu_hack_ft',
54
+    'title'            => '_MI_ALTSYS_ADMINMENU_HFT',
55
+    'description'    => '_MI_ALTSYS_ADMINMENU_HFTDSC',
56
+    'formtype'        => 'select',
57
+    'valuetype'        => 'int',
58
+    'default'        => 0,
59
+    'options'        => array('_NONE' => 0, '_MI_ALTSYS_AMHFT_OPT_2COL' => 1, '_MI_ALTSYS_AMHFT_OPT_NOIMG' => 2, '_MI_ALTSYS_AMHFT_OPT_XCSTY' => 3)
60
+);
61 61
 
62 62
 $modversion['config'][] = array(
63
-    'name'            => 'adminmenu_insert_mymenu' ,
64
-    'title'            => '_MI_ALTSYS_ADMINMENU_IM' ,
65
-    'description'    => '_MI_ALTSYS_ADMINMENU_IMDSC' ,
66
-    'formtype'        => 'yesno' ,
67
-    'valuetype'        => 'int' ,
68
-    'default'        => 0 ,
63
+    'name'            => 'adminmenu_insert_mymenu',
64
+    'title'            => '_MI_ALTSYS_ADMINMENU_IM',
65
+    'description'    => '_MI_ALTSYS_ADMINMENU_IMDSC',
66
+    'formtype'        => 'yesno',
67
+    'valuetype'        => 'int',
68
+    'default'        => 0,
69 69
     'options'        => array()
70
-) ;
70
+);
71 71
 
72 72
 $modversion['config'][] = array(
73
-    'name'            => 'admin_in_theme' ,
74
-    'title'            => '_MI_ALTSYS_ADMIN_IN_THEME' ,
75
-    'description'    => '_MI_ALTSYS_ADMIN_IN_THEMEDSC' ,
76
-    'formtype'        => 'textbox' ,
77
-    'valuetype'        => 'text' ,
78
-    'default'        => 'default' ,
73
+    'name'            => 'admin_in_theme',
74
+    'title'            => '_MI_ALTSYS_ADMIN_IN_THEME',
75
+    'description'    => '_MI_ALTSYS_ADMIN_IN_THEMEDSC',
76
+    'formtype'        => 'textbox',
77
+    'valuetype'        => 'text',
78
+    'default'        => 'default',
79 79
     'options'        => array()
80
-) ;
80
+);
81 81
 
82 82
 $modversion['config'][] = array(
83
-    'name'            => 'enable_force_clone' ,
84
-    'title'            => '_MI_ALTSYS_ENABLEFORCECLONE' ,
85
-    'description'    => '_MI_ALTSYS_ENABLEFORCECLONEDSC' ,
86
-    'formtype'        => 'yesno' ,
87
-    'valuetype'        => 'int' ,
88
-    'default'        => 1 ,
83
+    'name'            => 'enable_force_clone',
84
+    'title'            => '_MI_ALTSYS_ENABLEFORCECLONE',
85
+    'description'    => '_MI_ALTSYS_ENABLEFORCECLONEDSC',
86
+    'formtype'        => 'yesno',
87
+    'valuetype'        => 'int',
88
+    'default'        => 1,
89 89
     'options'        => array()
90
-) ;
90
+);
91 91
 
92 92
 $modversion['config'][] = array(
93
-    'name'            => 'images_dir' ,
94
-    'title'            => '_MI_ALTSYS_IMAGES_DIR' ,
95
-    'description'    => '_MI_ALTSYS_IMAGES_DIRDSC' ,
96
-    'formtype'        => 'textbox' ,
97
-    'valuetype'        => 'text' ,
98
-    'default'        => 'images' ,
93
+    'name'            => 'images_dir',
94
+    'title'            => '_MI_ALTSYS_IMAGES_DIR',
95
+    'description'    => '_MI_ALTSYS_IMAGES_DIRDSC',
96
+    'formtype'        => 'textbox',
97
+    'valuetype'        => 'text',
98
+    'default'        => 'images',
99 99
     'options'        => array()
100
-) ;
100
+);
101 101
 
102 102
 // Notification
103 103
 
104 104
 $modversion['hasNotification'] = 0;
105 105
 
106
-$modversion['onInstall'] = 'include/oninstall.php' ;
107
-$modversion['onUpdate'] = 'include/onupdate.php' ;
108
-$modversion['onUninstall'] = 'include/onuninstall.php' ;
106
+$modversion['onInstall'] = 'include/oninstall.php';
107
+$modversion['onUpdate'] = 'include/onupdate.php';
108
+$modversion['onUninstall'] = 'include/onuninstall.php';
109 109
 
110 110
 // keep block's options
111
-if (! defined('XOOPS_CUBE_LEGACY') && substr(XOOPS_VERSION, 6, 3) < 2.1 && ! empty($_POST['fct']) && ! empty($_POST['op']) && $_POST['fct'] == 'modulesadmin' && $_POST['op'] == 'update_ok' && $_POST['dirname'] == $modversion['dirname']) {
112
-    include __DIR__.'/include/x20_keepblockoptions.inc.php' ;
111
+if (!defined('XOOPS_CUBE_LEGACY') && substr(XOOPS_VERSION, 6, 3) < 2.1 && !empty($_POST['fct']) && !empty($_POST['op']) && $_POST['fct'] == 'modulesadmin' && $_POST['op'] == 'update_ok' && $_POST['dirname'] == $modversion['dirname']) {
112
+    include __DIR__.'/include/x20_keepblockoptions.inc.php';
113 113
 }
Please login to merge, or discard this patch.