@@ -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,37 +1,37 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -define('_MI_ALTSYS_MODULENAME', 'ALTSYS') ; |
|
4 | -define('_MI_ALTSYS_MODULEDESC', 'Managing system easily') ; |
|
3 | +define('_MI_ALTSYS_MODULENAME', 'ALTSYS'); |
|
4 | +define('_MI_ALTSYS_MODULEDESC', 'Managing system easily'); |
|
5 | 5 | |
6 | 6 | // menus |
7 | -define('_MI_ALTSYS_MENU_CUSTOMBLOCKS', 'Custom Blocks') ; |
|
8 | -define('_MI_ALTSYS_MENU_NEWCUSTOMBLOCK', '(new)') ; |
|
9 | -define('_MI_ALTSYS_MENU_MYBLOCKSADMIN', 'Module Blocks') ; |
|
10 | -define('_MI_ALTSYS_MENU_MYTPLSADMIN', 'Templates') ; |
|
11 | -define('_MI_ALTSYS_MENU_COMPILEHOOKADMIN', 'Advanced Templates') ; |
|
12 | -define('_MI_ALTSYS_MENU_MYLANGADMIN', 'Languages') ; |
|
13 | -define('_MI_ALTSYS_MENU_ADVANCEDLANGADMIN', 'Advanced Languages') ; |
|
14 | -define('_MI_ALTSYS_MENU_MYAVATAR', 'Avatars') ; |
|
15 | -define('_MI_ALTSYS_MENU_MYSMILEY', 'Smileys') ; |
|
7 | +define('_MI_ALTSYS_MENU_CUSTOMBLOCKS', 'Custom Blocks'); |
|
8 | +define('_MI_ALTSYS_MENU_NEWCUSTOMBLOCK', '(new)'); |
|
9 | +define('_MI_ALTSYS_MENU_MYBLOCKSADMIN', 'Module Blocks'); |
|
10 | +define('_MI_ALTSYS_MENU_MYTPLSADMIN', 'Templates'); |
|
11 | +define('_MI_ALTSYS_MENU_COMPILEHOOKADMIN', 'Advanced Templates'); |
|
12 | +define('_MI_ALTSYS_MENU_MYLANGADMIN', 'Languages'); |
|
13 | +define('_MI_ALTSYS_MENU_ADVANCEDLANGADMIN', 'Advanced Languages'); |
|
14 | +define('_MI_ALTSYS_MENU_MYAVATAR', 'Avatars'); |
|
15 | +define('_MI_ALTSYS_MENU_MYSMILEY', 'Smileys'); |
|
16 | 16 | |
17 | 17 | // blocks |
18 | -define('_MI_ALTSYS_BNAME_ADMIN_MENU', 'Admin Menu') ; |
|
18 | +define('_MI_ALTSYS_BNAME_ADMIN_MENU', 'Admin Menu'); |
|
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', 'Force all blocks to be clonable') ; |
|
34 | -define('_MI_ALTSYS_ENABLEFORCECLONEDSC', 'You should know there are blocks cause errors if multiple instances is displayed on a page') ; |
|
33 | +define('_MI_ALTSYS_ENABLEFORCECLONE', 'Force all blocks to be clonable'); |
|
34 | +define('_MI_ALTSYS_ENABLEFORCECLONEDSC', 'You should know there are blocks cause errors if multiple instances is displayed on a page'); |
|
35 | 35 | |
36 | 36 | define('_MI_ALTSYS_IMAGES_DIR', 'Directory for image files'); |
37 | 37 | define('_MI_ALTSYS_IMAGES_DIRDSC', 'relative path should be set in the module directory. default: images'); |
@@ -1,52 +1,52 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -define('_MD_A_MYBLOCKSADMIN_PERMUPDATED', 'Permissions updated successfully') ; |
|
4 | -define('_MD_A_MYBLOCKSADMIN_BLOCKADMIN', 'Blocks administration') ; |
|
5 | -define('_MD_A_MYBLOCKSADMIN_NAME', 'Name') ; |
|
6 | -define('_MD_A_MYBLOCKSADMIN_TITLE', 'Title') ; |
|
7 | -define('_MD_A_MYBLOCKSADMIN_SIDE', 'Side') ; |
|
8 | -define('_MD_A_MYBLOCKSADMIN_SBLEFT', 'o --- - LEFT') ; |
|
9 | -define('_MD_A_MYBLOCKSADMIN_SBRIGHT', '- --- o RIGHT') ; |
|
10 | -define('_MD_A_MYBLOCKSADMIN_CBLEFT', '- o-- - CENTERLEFT') ; |
|
11 | -define('_MD_A_MYBLOCKSADMIN_CBRIGHT', '- --o - CENTERRIGHT') ; |
|
12 | -define('_MD_A_MYBLOCKSADMIN_CBCENTER', '- -o- - CENTER') ; |
|
13 | -define('_MD_A_MYBLOCKSADMIN_VISIBLE', 'Visible') ; |
|
14 | -define('_MD_A_MYBLOCKSADMIN_WEIGHT', 'Weight') ; |
|
15 | -define('_MD_A_MYBLOCKSADMIN_VISIBLEIN', 'Visible in') ; |
|
16 | -define('_MD_A_MYBLOCKSADMIN_CONTENT', 'Content') ; |
|
17 | -define('_MD_A_MYBLOCKSADMIN_CAPT_USABLETAGS', 'Usable tags') ; |
|
18 | -define('_MD_A_MYBLOCKSADMIN_FMT_TAGRULE', '%s will be replaced into %s in the view') ; |
|
19 | -define('_MD_A_MYBLOCKSADMIN_CTYPE', 'Cutom Type') ; |
|
20 | -define('_MD_A_MYBLOCKSADMIN_EDITTPL', 'Edit the template') ; |
|
21 | -define('_MD_A_MYBLOCKSADMIN_OPTIONS', 'Block\'s option') ; |
|
22 | -define('_MD_A_MYBLOCKSADMIN_BCACHETIME', 'Cache Time') ; |
|
23 | -define('_MD_A_MYBLOCKSADMIN_ACTION', 'Action') ; |
|
24 | -define('_MD_A_MYBLOCKSADMIN_DESCRIPTION', 'Description') ; |
|
25 | -define('_MD_A_MYBLOCKSADMIN_TOPPAGE', 'Top Page') ; |
|
26 | -define('_MD_A_MYBLOCKSADMIN_ALLPAGES', 'All Pages') ; |
|
27 | -define('_MD_A_MYBLOCKSADMIN_PERMFORM', 'Permissions') ; |
|
28 | -define('_MD_A_MYBLOCKSADMIN_PERM_MADMIN', 'module admin') ; |
|
29 | -define('_MD_A_MYBLOCKSADMIN_PERM_MREAD', 'module read') ; |
|
30 | -define('_MD_A_MYBLOCKSADMIN_DBUPDATED', 'Database updated successfully') ; |
|
31 | -define('_MD_A_MYBLOCKSADMIN_FMT_REMOVEBLOCK', '%s will be removed. really OK?') ; |
|
32 | - |
|
33 | - |
|
34 | -define('_MD_A_MYBLOCKSADMIN_CLONEFORM', 'Clone the block') ; |
|
35 | -define('_MD_A_MYBLOCKSADMIN_NEWFORM', 'Create a block') ; |
|
36 | -define('_MD_A_MYBLOCKSADMIN_EDITFORM', 'Edit the block') ; |
|
37 | - |
|
38 | -define('_MD_A_MYBLOCKSADMIN_LINK_FORCECLONE', 'Force clone') ; |
|
39 | - |
|
40 | -define('_MD_A_MYBLOCKSADMIN_BTN_CLONE', 'Clone') ; |
|
41 | -define('_MD_A_MYBLOCKSADMIN_BTN_NEW', 'Create') ; |
|
42 | -define('_MD_A_MYBLOCKSADMIN_BTN_EDIT', 'Update') ; |
|
43 | - |
|
44 | -define('_MD_A_MYBLOCKSADMIN_CTYPE_HTML', 'Custom (plain HTML)') ; |
|
45 | -define('_MD_A_MYBLOCKSADMIN_CTYPE_NOSMILE', 'Custom (HTML+BBCODE+AutoLink)') ; |
|
46 | -define('_MD_A_MYBLOCKSADMIN_CTYPE_SMILE', 'Custom (HTML+BBCODE+AutoLink+Smiley)') ; |
|
47 | -define('_MD_A_MYBLOCKSADMIN_CTYPE_PHP', 'Custom (PHP eval())') ; |
|
48 | - |
|
49 | -define('_MD_A_MYBLOCKSADMIN_NOTICE4COMMONFCK', 'If you want to use WYSIWYG editor, install common/fckeditor') ; |
|
3 | +define('_MD_A_MYBLOCKSADMIN_PERMUPDATED', 'Permissions updated successfully'); |
|
4 | +define('_MD_A_MYBLOCKSADMIN_BLOCKADMIN', 'Blocks administration'); |
|
5 | +define('_MD_A_MYBLOCKSADMIN_NAME', 'Name'); |
|
6 | +define('_MD_A_MYBLOCKSADMIN_TITLE', 'Title'); |
|
7 | +define('_MD_A_MYBLOCKSADMIN_SIDE', 'Side'); |
|
8 | +define('_MD_A_MYBLOCKSADMIN_SBLEFT', 'o --- - LEFT'); |
|
9 | +define('_MD_A_MYBLOCKSADMIN_SBRIGHT', '- --- o RIGHT'); |
|
10 | +define('_MD_A_MYBLOCKSADMIN_CBLEFT', '- o-- - CENTERLEFT'); |
|
11 | +define('_MD_A_MYBLOCKSADMIN_CBRIGHT', '- --o - CENTERRIGHT'); |
|
12 | +define('_MD_A_MYBLOCKSADMIN_CBCENTER', '- -o- - CENTER'); |
|
13 | +define('_MD_A_MYBLOCKSADMIN_VISIBLE', 'Visible'); |
|
14 | +define('_MD_A_MYBLOCKSADMIN_WEIGHT', 'Weight'); |
|
15 | +define('_MD_A_MYBLOCKSADMIN_VISIBLEIN', 'Visible in'); |
|
16 | +define('_MD_A_MYBLOCKSADMIN_CONTENT', 'Content'); |
|
17 | +define('_MD_A_MYBLOCKSADMIN_CAPT_USABLETAGS', 'Usable tags'); |
|
18 | +define('_MD_A_MYBLOCKSADMIN_FMT_TAGRULE', '%s will be replaced into %s in the view'); |
|
19 | +define('_MD_A_MYBLOCKSADMIN_CTYPE', 'Cutom Type'); |
|
20 | +define('_MD_A_MYBLOCKSADMIN_EDITTPL', 'Edit the template'); |
|
21 | +define('_MD_A_MYBLOCKSADMIN_OPTIONS', 'Block\'s option'); |
|
22 | +define('_MD_A_MYBLOCKSADMIN_BCACHETIME', 'Cache Time'); |
|
23 | +define('_MD_A_MYBLOCKSADMIN_ACTION', 'Action'); |
|
24 | +define('_MD_A_MYBLOCKSADMIN_DESCRIPTION', 'Description'); |
|
25 | +define('_MD_A_MYBLOCKSADMIN_TOPPAGE', 'Top Page'); |
|
26 | +define('_MD_A_MYBLOCKSADMIN_ALLPAGES', 'All Pages'); |
|
27 | +define('_MD_A_MYBLOCKSADMIN_PERMFORM', 'Permissions'); |
|
28 | +define('_MD_A_MYBLOCKSADMIN_PERM_MADMIN', 'module admin'); |
|
29 | +define('_MD_A_MYBLOCKSADMIN_PERM_MREAD', 'module read'); |
|
30 | +define('_MD_A_MYBLOCKSADMIN_DBUPDATED', 'Database updated successfully'); |
|
31 | +define('_MD_A_MYBLOCKSADMIN_FMT_REMOVEBLOCK', '%s will be removed. really OK?'); |
|
32 | + |
|
33 | + |
|
34 | +define('_MD_A_MYBLOCKSADMIN_CLONEFORM', 'Clone the block'); |
|
35 | +define('_MD_A_MYBLOCKSADMIN_NEWFORM', 'Create a block'); |
|
36 | +define('_MD_A_MYBLOCKSADMIN_EDITFORM', 'Edit the block'); |
|
37 | + |
|
38 | +define('_MD_A_MYBLOCKSADMIN_LINK_FORCECLONE', 'Force clone'); |
|
39 | + |
|
40 | +define('_MD_A_MYBLOCKSADMIN_BTN_CLONE', 'Clone'); |
|
41 | +define('_MD_A_MYBLOCKSADMIN_BTN_NEW', 'Create'); |
|
42 | +define('_MD_A_MYBLOCKSADMIN_BTN_EDIT', 'Update'); |
|
43 | + |
|
44 | +define('_MD_A_MYBLOCKSADMIN_CTYPE_HTML', 'Custom (plain HTML)'); |
|
45 | +define('_MD_A_MYBLOCKSADMIN_CTYPE_NOSMILE', 'Custom (HTML+BBCODE+AutoLink)'); |
|
46 | +define('_MD_A_MYBLOCKSADMIN_CTYPE_SMILE', 'Custom (HTML+BBCODE+AutoLink+Smiley)'); |
|
47 | +define('_MD_A_MYBLOCKSADMIN_CTYPE_PHP', 'Custom (PHP eval())'); |
|
48 | + |
|
49 | +define('_MD_A_MYBLOCKSADMIN_NOTICE4COMMONFCK', 'If you want to use WYSIWYG editor, install common/fckeditor'); |
|
50 | 50 | |
51 | 51 | |
52 | 52 | // Group permission phrases |
@@ -1,3 +1,3 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -define('_MD_A_DBUPDATED', 'Database updated successfully') ; |
|
3 | +define('_MD_A_DBUPDATED', 'Database updated successfully'); |
@@ -1,12 +1,12 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | if (defined('FOR_XOOPS_LANG_CHECKER')) { |
4 | - $mydirname = 'd3forum' ; |
|
4 | + $mydirname = 'd3forum'; |
|
5 | 5 | } |
6 | -$constpref = '_MB_' . strtoupper($mydirname) ; |
|
6 | +$constpref = '_MB_'.strtoupper($mydirname); |
|
7 | 7 | |
8 | -if (defined('FOR_XOOPS_LANG_CHECKER') || ! defined($constpref.'_LOADED')) { |
|
9 | - define($constpref.'_LOADED', 1) ; |
|
8 | +if (defined('FOR_XOOPS_LANG_CHECKER') || !defined($constpref.'_LOADED')) { |
|
9 | + define($constpref.'_LOADED', 1); |
|
10 | 10 | |
11 | 11 | // definitions for displaying blocks |
12 | 12 | // Since altsys is a singleton moudle, this file has non-sense. |
@@ -1,63 +1,63 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -eval(' function xoops_module_install_'.$mydirname.'( $module ) { return altsys_oninstall_base( $module , "'.$mydirname.'" ) ; } ') ; |
|
3 | +eval(' function xoops_module_install_'.$mydirname.'( $module ) { return altsys_oninstall_base( $module , "'.$mydirname.'" ) ; } '); |
|
4 | 4 | |
5 | 5 | |
6 | -if (! function_exists('altsys_oninstall_base')) { |
|
6 | +if (!function_exists('altsys_oninstall_base')) { |
|
7 | 7 | function altsys_oninstall_base($module, $mydirname) |
8 | 8 | { |
9 | 9 | // transations on module install |
10 | 10 | |
11 | - global $ret ; // TODO :-D |
|
11 | + global $ret; // TODO :-D |
|
12 | 12 | |
13 | 13 | // for Cube 2.1 |
14 | 14 | if (defined('XOOPS_CUBE_LEGACY')) { |
15 | - $root =& XCube_Root::getSingleton(); |
|
16 | - $root->mDelegateManager->add('Legacy.Admin.Event.ModuleInstall.' . ucfirst($mydirname) . '.Success', 'altsys_message_append_oninstall') ; |
|
17 | - $ret = array() ; |
|
15 | + $root = & XCube_Root::getSingleton(); |
|
16 | + $root->mDelegateManager->add('Legacy.Admin.Event.ModuleInstall.'.ucfirst($mydirname).'.Success', 'altsys_message_append_oninstall'); |
|
17 | + $ret = array(); |
|
18 | 18 | } else { |
19 | - if (! is_array($ret)) { |
|
20 | - $ret = array() ; |
|
19 | + if (!is_array($ret)) { |
|
20 | + $ret = array(); |
|
21 | 21 | } |
22 | 22 | } |
23 | 23 | |
24 | - $db =& XoopsDatabaseFactory::getDatabaseConnection() ; |
|
25 | - $mid = $module->getVar('mid') ; |
|
24 | + $db = & XoopsDatabaseFactory::getDatabaseConnection(); |
|
25 | + $mid = $module->getVar('mid'); |
|
26 | 26 | |
27 | 27 | /*************** BEGIN ALTSYS SPECIFIC PART ******************/ |
28 | 28 | // set weight=0 |
29 | - $db->queryF("UPDATE ".$db->prefix("modules")." SET weight=0 WHERE mid=$mid") ; |
|
29 | + $db->queryF("UPDATE ".$db->prefix("modules")." SET weight=0 WHERE mid=$mid"); |
|
30 | 30 | /*************** END ALTSYS SPECIFIC PART ******************/ |
31 | 31 | |
32 | 32 | // TABLES (loading mysql.sql) |
33 | - $sql_file_path = dirname(__FILE__).'/sql/mysql.sql' ; |
|
34 | - $prefix_mod = $db->prefix() . '_' . $mydirname ; |
|
33 | + $sql_file_path = dirname(__FILE__).'/sql/mysql.sql'; |
|
34 | + $prefix_mod = $db->prefix().'_'.$mydirname; |
|
35 | 35 | if (file_exists($sql_file_path)) { |
36 | 36 | $ret[] = "SQL file found at <b>".htmlspecialchars($sql_file_path)."</b>.<br /> Creating tables..."; |
37 | 37 | |
38 | 38 | if (file_exists(XOOPS_ROOT_PATH.'/class/database/oldsqlutility.php')) { |
39 | - include_once XOOPS_ROOT_PATH.'/class/database/oldsqlutility.php' ; |
|
40 | - $sqlutil = new OldSqlUtility ; |
|
39 | + include_once XOOPS_ROOT_PATH.'/class/database/oldsqlutility.php'; |
|
40 | + $sqlutil = new OldSqlUtility; |
|
41 | 41 | } else { |
42 | - include_once XOOPS_ROOT_PATH.'/class/database/sqlutility.php' ; |
|
43 | - $sqlutil = new SqlUtility ; |
|
42 | + include_once XOOPS_ROOT_PATH.'/class/database/sqlutility.php'; |
|
43 | + $sqlutil = new SqlUtility; |
|
44 | 44 | } |
45 | 45 | |
46 | - $sql_query = trim(file_get_contents($sql_file_path)) ; |
|
47 | - $sqlutil->splitMySqlFile($pieces, $sql_query) ; |
|
48 | - $created_tables = array() ; |
|
46 | + $sql_query = trim(file_get_contents($sql_file_path)); |
|
47 | + $sqlutil->splitMySqlFile($pieces, $sql_query); |
|
48 | + $created_tables = array(); |
|
49 | 49 | foreach ($pieces as $piece) { |
50 | - $prefixed_query = $sqlutil->prefixQuery($piece, $prefix_mod) ; |
|
51 | - if (! $prefixed_query) { |
|
50 | + $prefixed_query = $sqlutil->prefixQuery($piece, $prefix_mod); |
|
51 | + if (!$prefixed_query) { |
|
52 | 52 | $ret[] = "Invalid SQL <b>".htmlspecialchars($piece)."</b><br />"; |
53 | - return false ; |
|
53 | + return false; |
|
54 | 54 | } |
55 | - if (! $db->query($prefixed_query[0])) { |
|
56 | - $ret[] = '<b>'.htmlspecialchars($db->error()).'</b><br />' ; |
|
55 | + if (!$db->query($prefixed_query[0])) { |
|
56 | + $ret[] = '<b>'.htmlspecialchars($db->error()).'</b><br />'; |
|
57 | 57 | //var_dump( $db->error() ) ; |
58 | - return false ; |
|
58 | + return false; |
|
59 | 59 | } else { |
60 | - if (! in_array($prefixed_query[4], $created_tables)) { |
|
60 | + if (!in_array($prefixed_query[4], $created_tables)) { |
|
61 | 61 | $ret[] = 'Table <b>'.htmlspecialchars($prefix_mod.'_'.$prefixed_query[4]).'</b> created.<br />'; |
62 | 62 | $created_tables[] = $prefixed_query[4]; |
63 | 63 | } else { |
@@ -68,33 +68,33 @@ discard block |
||
68 | 68 | } |
69 | 69 | |
70 | 70 | // TEMPLATES |
71 | - $tplfile_handler =& xoops_gethandler('tplfile') ; |
|
72 | - $tpl_path = dirname(__FILE__).'/templates' ; |
|
73 | - if ($handler = @opendir($tpl_path . '/')) { |
|
71 | + $tplfile_handler = & xoops_gethandler('tplfile'); |
|
72 | + $tpl_path = dirname(__FILE__).'/templates'; |
|
73 | + if ($handler = @opendir($tpl_path.'/')) { |
|
74 | 74 | while (($file = readdir($handler)) !== false) { |
75 | 75 | if (substr($file, 0, 1) == '.') { |
76 | - continue ; |
|
76 | + continue; |
|
77 | 77 | } |
78 | - $file_path = $tpl_path . '/' . $file ; |
|
78 | + $file_path = $tpl_path.'/'.$file; |
|
79 | 79 | if (is_file($file_path)) { |
80 | - $mtime = intval(@filemtime($file_path)) ; |
|
81 | - $tplfile =& $tplfile_handler->create() ; |
|
82 | - $tplfile->setVar('tpl_source', file_get_contents($file_path), true) ; |
|
83 | - $tplfile->setVar('tpl_refid', $mid) ; |
|
84 | - $tplfile->setVar('tpl_tplset', 'default') ; |
|
85 | - $tplfile->setVar('tpl_file', $mydirname . '_' . $file) ; |
|
86 | - $tplfile->setVar('tpl_desc', '', true) ; |
|
87 | - $tplfile->setVar('tpl_module', $mydirname) ; |
|
88 | - $tplfile->setVar('tpl_lastmodified', $mtime) ; |
|
89 | - $tplfile->setVar('tpl_lastimported', 0) ; |
|
90 | - $tplfile->setVar('tpl_type', 'module') ; |
|
91 | - if (! $tplfile_handler->insert($tplfile)) { |
|
80 | + $mtime = intval(@filemtime($file_path)); |
|
81 | + $tplfile = & $tplfile_handler->create(); |
|
82 | + $tplfile->setVar('tpl_source', file_get_contents($file_path), true); |
|
83 | + $tplfile->setVar('tpl_refid', $mid); |
|
84 | + $tplfile->setVar('tpl_tplset', 'default'); |
|
85 | + $tplfile->setVar('tpl_file', $mydirname.'_'.$file); |
|
86 | + $tplfile->setVar('tpl_desc', '', true); |
|
87 | + $tplfile->setVar('tpl_module', $mydirname); |
|
88 | + $tplfile->setVar('tpl_lastmodified', $mtime); |
|
89 | + $tplfile->setVar('tpl_lastimported', 0); |
|
90 | + $tplfile->setVar('tpl_type', 'module'); |
|
91 | + if (!$tplfile_handler->insert($tplfile)) { |
|
92 | 92 | $ret[] = '<span style="color:#ff0000;">ERROR: Could not insert template <b>'.htmlspecialchars($mydirname.'_'.$file).'</b> to the database.</span><br />'; |
93 | 93 | } else { |
94 | - $tplid = $tplfile->getVar('tpl_id') ; |
|
94 | + $tplid = $tplfile->getVar('tpl_id'); |
|
95 | 95 | $ret[] = 'Template <b>'.htmlspecialchars($mydirname.'_'.$file).'</b> added to the database. (ID: <b>'.$tplid.'</b>)<br />'; |
96 | - require_once XOOPS_TRUST_PATH.'/libs/altsys/include/altsys_functions.php' ; |
|
97 | - altsys_clear_templates_c() ; |
|
96 | + require_once XOOPS_TRUST_PATH.'/libs/altsys/include/altsys_functions.php'; |
|
97 | + altsys_clear_templates_c(); |
|
98 | 98 | // generate compiled file |
99 | 99 | /*include_once XOOPS_ROOT_PATH.'/class/xoopsblock.php' ; |
100 | 100 | include_once XOOPS_ROOT_PATH.'/class/template.php' ; |
@@ -106,20 +106,20 @@ discard block |
||
106 | 106 | } |
107 | 107 | } |
108 | 108 | } |
109 | - closedir($handler) ; |
|
109 | + closedir($handler); |
|
110 | 110 | } |
111 | - include_once XOOPS_ROOT_PATH.'/class/xoopsblock.php' ; |
|
112 | - include_once XOOPS_ROOT_PATH.'/class/template.php' ; |
|
113 | - xoops_template_clear_module_cache($mid) ; |
|
111 | + include_once XOOPS_ROOT_PATH.'/class/xoopsblock.php'; |
|
112 | + include_once XOOPS_ROOT_PATH.'/class/template.php'; |
|
113 | + xoops_template_clear_module_cache($mid); |
|
114 | 114 | |
115 | - return true ; |
|
115 | + return true; |
|
116 | 116 | } |
117 | 117 | |
118 | 118 | function altsys_message_append_oninstall(&$module_obj, &$log) |
119 | 119 | { |
120 | 120 | if (is_array(@$GLOBALS['ret'])) { |
121 | 121 | foreach ($GLOBALS['ret'] as $message) { |
122 | - $log->add(strip_tags($message)) ; |
|
122 | + $log->add(strip_tags($message)); |
|
123 | 123 | } |
124 | 124 | } |
125 | 125 |
@@ -1,16 +1,16 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -include_once dirname(__FILE__).'/include/altsys_functions.php' ; |
|
3 | +include_once dirname(__FILE__).'/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.82' ; |
|
10 | -$modversion['detailed_version'] = '0.82.5' ; |
|
11 | -$modversion['description'] = _MI_ALTSYS_MODULEDESC ; |
|
8 | +$modversion['name'] = _MI_ALTSYS_MODULENAME; |
|
9 | +$modversion['version'] = '0.82'; |
|
10 | +$modversion['detailed_version'] = '0.82.5'; |
|
11 | +$modversion['description'] = _MI_ALTSYS_MODULEDESC; |
|
12 | 12 | $modversion['credits'] = "PEAK Corp."; |
13 | -$modversion['author'] = "GIJ=CHECKMATE<br />PEAK Corp.(http://www.peak.ne.jp/), XOOPS X Distribution(https://github.com/XoopsX)" ; |
|
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"; |
15 | 15 | $modversion['official'] = 0; |
16 | 16 | $modversion['image'] = "images/module_icon.png"; |
@@ -18,22 +18,22 @@ discard block |
||
18 | 18 | |
19 | 19 | // Admin things |
20 | 20 | $modversion['hasAdmin'] = 1; |
21 | -$modversion['adminindex'] = "admin/index.php" ; |
|
21 | +$modversion['adminindex'] = "admin/index.php"; |
|
22 | 22 | $modversion['adminmenu'] = "admin/admin_menu.php"; |
23 | 23 | |
24 | 24 | // All Templates can't be touched by modulesadmin. |
25 | -$modversion['templates'] = array() ; |
|
25 | +$modversion['templates'] = array(); |
|
26 | 26 | |
27 | 27 | // Blocks |
28 | 28 | $modversion['blocks'][1] = array( |
29 | - 'file' => 'blocks.php' , |
|
30 | - 'name' => _MI_ALTSYS_BNAME_ADMIN_MENU , |
|
31 | - 'description' => '' , |
|
32 | - 'show_func' => 'b_altsys_admin_menu_show' , |
|
33 | - 'edit_func' => 'b_altsys_admin_menu_edit' , |
|
34 | - 'options' => "$mydirname" , |
|
35 | - 'template' => '' , // use "module" template instead |
|
36 | -) ; |
|
29 | + 'file' => 'blocks.php', |
|
30 | + 'name' => _MI_ALTSYS_BNAME_ADMIN_MENU, |
|
31 | + 'description' => '', |
|
32 | + 'show_func' => 'b_altsys_admin_menu_show', |
|
33 | + 'edit_func' => 'b_altsys_admin_menu_edit', |
|
34 | + 'options' => "$mydirname", |
|
35 | + 'template' => '', // use "module" template instead |
|
36 | +); |
|
37 | 37 | |
38 | 38 | // Menu |
39 | 39 | $modversion['hasMain'] = 1; |
@@ -46,64 +46,64 @@ discard block |
||
46 | 46 | |
47 | 47 | // Configurations |
48 | 48 | $modversion['config'][1] = array( |
49 | - 'name' => 'adminmenu_hack_ft' , |
|
50 | - 'title' => '_MI_ALTSYS_ADMINMENU_HFT' , |
|
51 | - 'description' => '_MI_ALTSYS_ADMINMENU_HFTDSC' , |
|
52 | - 'formtype' => 'select' , |
|
53 | - 'valuetype' => 'int' , |
|
54 | - 'default' => 0 , |
|
55 | - 'options' => array( '_NONE' => 0 , '_MI_ALTSYS_AMHFT_OPT_2COL' => 1 , '_MI_ALTSYS_AMHFT_OPT_NOIMG' => 2 , '_MI_ALTSYS_AMHFT_OPT_XCSTY' => 3 ) |
|
56 | -) ; |
|
49 | + 'name' => 'adminmenu_hack_ft', |
|
50 | + 'title' => '_MI_ALTSYS_ADMINMENU_HFT', |
|
51 | + 'description' => '_MI_ALTSYS_ADMINMENU_HFTDSC', |
|
52 | + 'formtype' => 'select', |
|
53 | + 'valuetype' => 'int', |
|
54 | + 'default' => 0, |
|
55 | + 'options' => array('_NONE' => 0, '_MI_ALTSYS_AMHFT_OPT_2COL' => 1, '_MI_ALTSYS_AMHFT_OPT_NOIMG' => 2, '_MI_ALTSYS_AMHFT_OPT_XCSTY' => 3) |
|
56 | +); |
|
57 | 57 | |
58 | 58 | $modversion['config'][] = array( |
59 | - 'name' => 'adminmenu_insert_mymenu' , |
|
60 | - 'title' => '_MI_ALTSYS_ADMINMENU_IM' , |
|
61 | - 'description' => '_MI_ALTSYS_ADMINMENU_IMDSC' , |
|
62 | - 'formtype' => 'yesno' , |
|
63 | - 'valuetype' => 'int' , |
|
64 | - 'default' => 0 , |
|
59 | + 'name' => 'adminmenu_insert_mymenu', |
|
60 | + 'title' => '_MI_ALTSYS_ADMINMENU_IM', |
|
61 | + 'description' => '_MI_ALTSYS_ADMINMENU_IMDSC', |
|
62 | + 'formtype' => 'yesno', |
|
63 | + 'valuetype' => 'int', |
|
64 | + 'default' => 0, |
|
65 | 65 | 'options' => array() |
66 | -) ; |
|
66 | +); |
|
67 | 67 | |
68 | 68 | $modversion['config'][] = array( |
69 | - 'name' => 'admin_in_theme' , |
|
70 | - 'title' => '_MI_ALTSYS_ADMIN_IN_THEME' , |
|
71 | - 'description' => '_MI_ALTSYS_ADMIN_IN_THEMEDSC' , |
|
72 | - 'formtype' => 'textbox' , |
|
73 | - 'valuetype' => 'text' , |
|
74 | - 'default' => 'default' , |
|
69 | + 'name' => 'admin_in_theme', |
|
70 | + 'title' => '_MI_ALTSYS_ADMIN_IN_THEME', |
|
71 | + 'description' => '_MI_ALTSYS_ADMIN_IN_THEMEDSC', |
|
72 | + 'formtype' => 'textbox', |
|
73 | + 'valuetype' => 'text', |
|
74 | + 'default' => 'default', |
|
75 | 75 | 'options' => array() |
76 | -) ; |
|
76 | +); |
|
77 | 77 | |
78 | 78 | $modversion['config'][] = array( |
79 | - 'name' => 'enable_force_clone' , |
|
80 | - 'title' => '_MI_ALTSYS_ENABLEFORCECLONE' , |
|
81 | - 'description' => '_MI_ALTSYS_ENABLEFORCECLONEDSC' , |
|
82 | - 'formtype' => 'yesno' , |
|
83 | - 'valuetype' => 'int' , |
|
84 | - 'default' => 1 , |
|
79 | + 'name' => 'enable_force_clone', |
|
80 | + 'title' => '_MI_ALTSYS_ENABLEFORCECLONE', |
|
81 | + 'description' => '_MI_ALTSYS_ENABLEFORCECLONEDSC', |
|
82 | + 'formtype' => 'yesno', |
|
83 | + 'valuetype' => 'int', |
|
84 | + 'default' => 1, |
|
85 | 85 | 'options' => array() |
86 | -) ; |
|
86 | +); |
|
87 | 87 | |
88 | 88 | $modversion['config'][] = array( |
89 | - 'name' => 'images_dir' , |
|
90 | - 'title' => '_MI_ALTSYS_IMAGES_DIR' , |
|
91 | - 'description' => '_MI_ALTSYS_IMAGES_DIRDSC' , |
|
92 | - 'formtype' => 'textbox' , |
|
93 | - 'valuetype' => 'text' , |
|
94 | - 'default' => 'images' , |
|
89 | + 'name' => 'images_dir', |
|
90 | + 'title' => '_MI_ALTSYS_IMAGES_DIR', |
|
91 | + 'description' => '_MI_ALTSYS_IMAGES_DIRDSC', |
|
92 | + 'formtype' => 'textbox', |
|
93 | + 'valuetype' => 'text', |
|
94 | + 'default' => 'images', |
|
95 | 95 | 'options' => array() |
96 | -) ; |
|
96 | +); |
|
97 | 97 | |
98 | 98 | // Notification |
99 | 99 | |
100 | 100 | $modversion['hasNotification'] = 0; |
101 | 101 | |
102 | -$modversion['onInstall'] = 'include/oninstall.php' ; |
|
103 | -$modversion['onUpdate'] = 'include/onupdate.php' ; |
|
104 | -$modversion['onUninstall'] = 'include/onuninstall.php' ; |
|
102 | +$modversion['onInstall'] = 'include/oninstall.php'; |
|
103 | +$modversion['onUpdate'] = 'include/onupdate.php'; |
|
104 | +$modversion['onUninstall'] = 'include/onuninstall.php'; |
|
105 | 105 | |
106 | 106 | // keep block's options |
107 | -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']) { |
|
108 | - include dirname(__FILE__).'/include/x20_keepblockoptions.inc.php' ; |
|
107 | +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']) { |
|
108 | + include dirname(__FILE__).'/include/x20_keepblockoptions.inc.php'; |
|
109 | 109 | } |
@@ -1,21 +1,21 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -$mytrustdirname = basename(dirname(__FILE__)) ; |
|
4 | -$mytrustdirpath = dirname(__FILE__) ; |
|
3 | +$mytrustdirname = basename(dirname(__FILE__)); |
|
4 | +$mytrustdirpath = dirname(__FILE__); |
|
5 | 5 | |
6 | 6 | // language files |
7 | -$language = empty($GLOBALS['xoopsConfig']['language']) ? 'english' : $GLOBALS['xoopsConfig']['language'] ; |
|
7 | +$language = empty($GLOBALS['xoopsConfig']['language']) ? 'english' : $GLOBALS['xoopsConfig']['language']; |
|
8 | 8 | if (file_exists("$mydirpath/language/$language/blocks.php")) { |
9 | 9 | // user customized language file (already read by class/xoopsblock.php etc) |
10 | 10 | // include_once "$mydirpath/language/$language/blocks.php" ; |
11 | 11 | } elseif (file_exists("$mytrustdirpath/language/$language/blocks_common.php")) { |
12 | 12 | // default language file |
13 | - include_once "$mytrustdirpath/language/$language/blocks_common.php" ; |
|
14 | - include "$mytrustdirpath/language/$language/blocks_each.php" ; |
|
13 | + include_once "$mytrustdirpath/language/$language/blocks_common.php"; |
|
14 | + include "$mytrustdirpath/language/$language/blocks_each.php"; |
|
15 | 15 | } else { |
16 | 16 | // fallback english |
17 | - include_once "$mytrustdirpath/language/english/blocks_common.php" ; |
|
18 | - include "$mytrustdirpath/language/english/blocks_each.php" ; |
|
17 | + include_once "$mytrustdirpath/language/english/blocks_common.php"; |
|
18 | + include "$mytrustdirpath/language/english/blocks_each.php"; |
|
19 | 19 | } |
20 | 20 | |
21 | -require_once "$mytrustdirpath/blocks/block_functions.php" ; |
|
21 | +require_once "$mytrustdirpath/blocks/block_functions.php"; |
@@ -5,56 +5,56 @@ discard block |
||
5 | 5 | // GIJOE <http://www.peak.ne.jp/> // |
6 | 6 | // ------------------------------------------------------------------------- // |
7 | 7 | |
8 | -require_once dirname(__FILE__).'/class/AltsysBreadcrumbs.class.php' ; |
|
9 | -require_once dirname(__FILE__).'/include/gtickets.php' ; |
|
10 | -include_once dirname(__FILE__).'/include/altsys_functions.php' ; |
|
11 | -include_once dirname(__FILE__).'/include/mygrouppermform.php' ; |
|
12 | -include_once XOOPS_ROOT_PATH.'/class/xoopsblock.php' ; |
|
8 | +require_once dirname(__FILE__).'/class/AltsysBreadcrumbs.class.php'; |
|
9 | +require_once dirname(__FILE__).'/include/gtickets.php'; |
|
10 | +include_once dirname(__FILE__).'/include/altsys_functions.php'; |
|
11 | +include_once dirname(__FILE__).'/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 dirname(__FILE__).'/class/MyBlocksAdminForX22.class.php' ; |
|
21 | - $myba =& MyBlocksAdminForX22::getInstance() ; |
|
22 | - break ; |
|
20 | + include_once dirname(__FILE__).'/class/MyBlocksAdminForX22.class.php'; |
|
21 | + $myba = & MyBlocksAdminForX22::getInstance(); |
|
22 | + break; |
|
23 | 23 | case ALTSYS_CORE_TYPE_X25 : |
24 | - include_once dirname(__FILE__).'/class/MyBlocksAdminForX25.class.php' ; |
|
25 | - $myba =& MyBlocksAdminForX25::getInstance() ; |
|
26 | - break ; |
|
24 | + include_once dirname(__FILE__).'/class/MyBlocksAdminForX25.class.php'; |
|
25 | + $myba = & MyBlocksAdminForX25::getInstance(); |
|
26 | + break; |
|
27 | 27 | case ALTSYS_CORE_TYPE_XCL21 : |
28 | - include_once dirname(__FILE__).'/class/MyBlocksAdminForXCL21.class.php' ; |
|
29 | - $myba =& MyBlocksAdminForXCL21::getInstance() ; |
|
30 | - break ; |
|
28 | + include_once dirname(__FILE__).'/class/MyBlocksAdminForXCL21.class.php'; |
|
29 | + $myba = & MyBlocksAdminForXCL21::getInstance(); |
|
30 | + break; |
|
31 | 31 | case ALTSYS_CORE_TYPE_ICMS : |
32 | - include_once dirname(__FILE__).'/class/MyBlocksAdminForICMS.class.php' ; |
|
33 | - $myba =& MyBlocksAdminForICMS::getInstance() ; |
|
34 | - break ; |
|
32 | + include_once dirname(__FILE__).'/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 dirname(__FILE__).'/class/MyBlocksAdminForX20S.class.php' ; |
|
38 | - $myba =& MyBlocksAdminForX20S::getInstance() ; |
|
39 | - break ; |
|
37 | + include_once dirname(__FILE__).'/class/MyBlocksAdminForX20S.class.php'; |
|
38 | + $myba = & MyBlocksAdminForX20S::getInstance(); |
|
39 | + break; |
|
40 | 40 | default : |
41 | - include_once dirname(__FILE__).'/class/MyBlocksAdmin.class.php' ; |
|
42 | - $myba =& MyBlocksAdmin::getInstance() ; |
|
43 | - break ; |
|
41 | + include_once dirname(__FILE__).'/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(); |