@@ -25,132 +25,132 @@ discard block |
||
| 25 | 25 | $moduleDirName = basename(dirname(__DIR__, 2)); |
| 26 | 26 | $moduleDirNameUpper = mb_strtoupper($moduleDirName); |
| 27 | 27 | |
| 28 | -define('CO_' . $moduleDirNameUpper . '_GDLIBSTATUS', 'GD library support: '); |
|
| 29 | -define('CO_' . $moduleDirNameUpper . '_GDLIBVERSION', 'GD Library version: '); |
|
| 30 | -define('CO_' . $moduleDirNameUpper . '_GDOFF', "<span style='font-weight: bold;'>Disabled</span> (No thumbnails available)"); |
|
| 31 | -define('CO_' . $moduleDirNameUpper . '_GDON', "<span style='font-weight: bold;'>Enabled</span> (Thumbsnails available)"); |
|
| 32 | -define('CO_' . $moduleDirNameUpper . '_IMAGEINFO', 'Server status'); |
|
| 33 | -define('CO_' . $moduleDirNameUpper . '_MAXPOSTSIZE', 'Max post size permitted (post_max_size directive in php.ini): '); |
|
| 34 | -define('CO_' . $moduleDirNameUpper . '_MAXUPLOADSIZE', 'Max upload size permitted (upload_max_filesize directive in php.ini): '); |
|
| 35 | -define('CO_' . $moduleDirNameUpper . '_MEMORYLIMIT', 'Memory limit (memory_limit directive in php.ini): '); |
|
| 36 | -define('CO_' . $moduleDirNameUpper . '_METAVERSION', "<span style='font-weight: bold;'>Downloads meta version:</span> "); |
|
| 37 | -define('CO_' . $moduleDirNameUpper . '_OFF', "<span style='font-weight: bold;'>OFF</span>"); |
|
| 38 | -define('CO_' . $moduleDirNameUpper . '_ON', "<span style='font-weight: bold;'>ON</span>"); |
|
| 39 | -define('CO_' . $moduleDirNameUpper . '_SERVERPATH', 'Server path to XOOPS root: '); |
|
| 40 | -define('CO_' . $moduleDirNameUpper . '_SERVERUPLOADSTATUS', 'Server uploads status: '); |
|
| 41 | -define('CO_' . $moduleDirNameUpper . '_SPHPINI', "<span style='font-weight: bold;'>Information taken from PHP ini file:</span>"); |
|
| 42 | -define('CO_' . $moduleDirNameUpper . '_UPLOADPATHDSC', 'Note. Upload path *MUST* contain the full server path of your upload folder.'); |
|
| 43 | - |
|
| 44 | -define('CO_' . $moduleDirNameUpper . '_PRINT', "<span style='font-weight: bold;'>Print</span>"); |
|
| 45 | -define('CO_' . $moduleDirNameUpper . '_PDF', "<span style='font-weight: bold;'>Create PDF</span>"); |
|
| 46 | - |
|
| 47 | -define('CO_' . $moduleDirNameUpper . '_UPGRADEFAILED0', "Update failed - couldn't rename field '%s'"); |
|
| 48 | -define('CO_' . $moduleDirNameUpper . '_UPGRADEFAILED1', "Update failed - couldn't add new fields"); |
|
| 49 | -define('CO_' . $moduleDirNameUpper . '_UPGRADEFAILED2', "Update failed - couldn't rename table '%s'"); |
|
| 50 | -define('CO_' . $moduleDirNameUpper . '_ERROR_COLUMN', 'Could not create column in database : %s'); |
|
| 51 | -define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_XOOPS', 'This module requires XOOPS %s+ (%s installed)'); |
|
| 52 | -define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_PHP', 'This module requires PHP version %s+ (%s installed)'); |
|
| 53 | -define('CO_' . $moduleDirNameUpper . '_ERROR_TAG_REMOVAL', 'Could not remove tags from Tag Module'); |
|
| 54 | - |
|
| 55 | -define('CO_' . $moduleDirNameUpper . '_FOLDERS_DELETED_OK', 'Upload Folders have been deleted'); |
|
| 28 | +define('CO_'.$moduleDirNameUpper.'_GDLIBSTATUS', 'GD library support: '); |
|
| 29 | +define('CO_'.$moduleDirNameUpper.'_GDLIBVERSION', 'GD Library version: '); |
|
| 30 | +define('CO_'.$moduleDirNameUpper.'_GDOFF', "<span style='font-weight: bold;'>Disabled</span> (No thumbnails available)"); |
|
| 31 | +define('CO_'.$moduleDirNameUpper.'_GDON', "<span style='font-weight: bold;'>Enabled</span> (Thumbsnails available)"); |
|
| 32 | +define('CO_'.$moduleDirNameUpper.'_IMAGEINFO', 'Server status'); |
|
| 33 | +define('CO_'.$moduleDirNameUpper.'_MAXPOSTSIZE', 'Max post size permitted (post_max_size directive in php.ini): '); |
|
| 34 | +define('CO_'.$moduleDirNameUpper.'_MAXUPLOADSIZE', 'Max upload size permitted (upload_max_filesize directive in php.ini): '); |
|
| 35 | +define('CO_'.$moduleDirNameUpper.'_MEMORYLIMIT', 'Memory limit (memory_limit directive in php.ini): '); |
|
| 36 | +define('CO_'.$moduleDirNameUpper.'_METAVERSION', "<span style='font-weight: bold;'>Downloads meta version:</span> "); |
|
| 37 | +define('CO_'.$moduleDirNameUpper.'_OFF', "<span style='font-weight: bold;'>OFF</span>"); |
|
| 38 | +define('CO_'.$moduleDirNameUpper.'_ON', "<span style='font-weight: bold;'>ON</span>"); |
|
| 39 | +define('CO_'.$moduleDirNameUpper.'_SERVERPATH', 'Server path to XOOPS root: '); |
|
| 40 | +define('CO_'.$moduleDirNameUpper.'_SERVERUPLOADSTATUS', 'Server uploads status: '); |
|
| 41 | +define('CO_'.$moduleDirNameUpper.'_SPHPINI', "<span style='font-weight: bold;'>Information taken from PHP ini file:</span>"); |
|
| 42 | +define('CO_'.$moduleDirNameUpper.'_UPLOADPATHDSC', 'Note. Upload path *MUST* contain the full server path of your upload folder.'); |
|
| 43 | + |
|
| 44 | +define('CO_'.$moduleDirNameUpper.'_PRINT', "<span style='font-weight: bold;'>Print</span>"); |
|
| 45 | +define('CO_'.$moduleDirNameUpper.'_PDF', "<span style='font-weight: bold;'>Create PDF</span>"); |
|
| 46 | + |
|
| 47 | +define('CO_'.$moduleDirNameUpper.'_UPGRADEFAILED0', "Update failed - couldn't rename field '%s'"); |
|
| 48 | +define('CO_'.$moduleDirNameUpper.'_UPGRADEFAILED1', "Update failed - couldn't add new fields"); |
|
| 49 | +define('CO_'.$moduleDirNameUpper.'_UPGRADEFAILED2', "Update failed - couldn't rename table '%s'"); |
|
| 50 | +define('CO_'.$moduleDirNameUpper.'_ERROR_COLUMN', 'Could not create column in database : %s'); |
|
| 51 | +define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_XOOPS', 'This module requires XOOPS %s+ (%s installed)'); |
|
| 52 | +define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_PHP', 'This module requires PHP version %s+ (%s installed)'); |
|
| 53 | +define('CO_'.$moduleDirNameUpper.'_ERROR_TAG_REMOVAL', 'Could not remove tags from Tag Module'); |
|
| 54 | + |
|
| 55 | +define('CO_'.$moduleDirNameUpper.'_FOLDERS_DELETED_OK', 'Upload Folders have been deleted'); |
|
| 56 | 56 | |
| 57 | 57 | // Error Msgs |
| 58 | -define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_DEL_PATH', 'Could not delete %s directory'); |
|
| 59 | -define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_REMOVE', 'Could not delete %s'); |
|
| 60 | -define('CO_' . $moduleDirNameUpper . '_ERROR_NO_PLUGIN', 'Could not load plugin'); |
|
| 58 | +define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_DEL_PATH', 'Could not delete %s directory'); |
|
| 59 | +define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_REMOVE', 'Could not delete %s'); |
|
| 60 | +define('CO_'.$moduleDirNameUpper.'_ERROR_NO_PLUGIN', 'Could not load plugin'); |
|
| 61 | 61 | |
| 62 | 62 | //Help |
| 63 | -define('CO_' . $moduleDirNameUpper . '_DIRNAME', basename(dirname(__DIR__, 2))); |
|
| 64 | -define('CO_' . $moduleDirNameUpper . '_HELP_HEADER', __DIR__ . '/help/helpheader.tpl'); |
|
| 65 | -define('CO_' . $moduleDirNameUpper . '_BACK_2_ADMIN', 'Back to Administration of '); |
|
| 66 | -define('CO_' . $moduleDirNameUpper . '_OVERVIEW', 'Overview'); |
|
| 63 | +define('CO_'.$moduleDirNameUpper.'_DIRNAME', basename(dirname(__DIR__, 2))); |
|
| 64 | +define('CO_'.$moduleDirNameUpper.'_HELP_HEADER', __DIR__.'/help/helpheader.tpl'); |
|
| 65 | +define('CO_'.$moduleDirNameUpper.'_BACK_2_ADMIN', 'Back to Administration of '); |
|
| 66 | +define('CO_'.$moduleDirNameUpper.'_OVERVIEW', 'Overview'); |
|
| 67 | 67 | |
| 68 | 68 | //define('CO_' . $moduleDirNameUpper . '_HELP_DIR', __DIR__); |
| 69 | 69 | |
| 70 | 70 | //help multi-page |
| 71 | -define('CO_' . $moduleDirNameUpper . '_DISCLAIMER', 'Disclaimer'); |
|
| 72 | -define('CO_' . $moduleDirNameUpper . '_LICENSE', 'License'); |
|
| 73 | -define('CO_' . $moduleDirNameUpper . '_SUPPORT', 'Support'); |
|
| 71 | +define('CO_'.$moduleDirNameUpper.'_DISCLAIMER', 'Disclaimer'); |
|
| 72 | +define('CO_'.$moduleDirNameUpper.'_LICENSE', 'License'); |
|
| 73 | +define('CO_'.$moduleDirNameUpper.'_SUPPORT', 'Support'); |
|
| 74 | 74 | |
| 75 | 75 | //Sample Data |
| 76 | -define('CO_' . $moduleDirNameUpper . '_' . 'ADD_SAMPLEDATA', 'Import Sample Data (will delete ALL current data)'); |
|
| 77 | -define('CO_' . $moduleDirNameUpper . '_' . 'SAMPLEDATA_SUCCESS', 'Sample Date uploaded successfully'); |
|
| 78 | -define('CO_' . $moduleDirNameUpper . '_' . 'SAVE_SAMPLEDATA', 'Export Tables to YAML'); |
|
| 79 | -define('CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLE_BUTTON', 'Show Sample Button?'); |
|
| 80 | -define('CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLE_BUTTON_DESC', 'If yes, the "Add Sample Data" button will be visible to the Admin. It is Yes as a default for first installation.'); |
|
| 81 | -define('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA', 'Export DB Schema to YAML'); |
|
| 82 | -define('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA_SUCCESS', 'Export DB Schema to YAML was a success'); |
|
| 83 | -define('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA_ERROR', 'ERROR: Export of DB Schema to YAML failed'); |
|
| 84 | -define('CO_' . $moduleDirNameUpper . '_' . 'ADD_SAMPLEDATA_OK', 'Are you sure to Import Sample Data? (It will delete ALL current data)'); |
|
| 85 | -define('CO_' . $moduleDirNameUpper . '_' . 'HIDE_SAMPLEDATA_BUTTONS', 'Hide the Import buttons)'); |
|
| 86 | -define('CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLEDATA_BUTTONS', 'Show the Import buttons)'); |
|
| 87 | -define('CO_' . $moduleDirNameUpper . '_' . 'CONFIRM', 'Confirm'); |
|
| 76 | +define('CO_'.$moduleDirNameUpper.'_'.'ADD_SAMPLEDATA', 'Import Sample Data (will delete ALL current data)'); |
|
| 77 | +define('CO_'.$moduleDirNameUpper.'_'.'SAMPLEDATA_SUCCESS', 'Sample Date uploaded successfully'); |
|
| 78 | +define('CO_'.$moduleDirNameUpper.'_'.'SAVE_SAMPLEDATA', 'Export Tables to YAML'); |
|
| 79 | +define('CO_'.$moduleDirNameUpper.'_'.'SHOW_SAMPLE_BUTTON', 'Show Sample Button?'); |
|
| 80 | +define('CO_'.$moduleDirNameUpper.'_'.'SHOW_SAMPLE_BUTTON_DESC', 'If yes, the "Add Sample Data" button will be visible to the Admin. It is Yes as a default for first installation.'); |
|
| 81 | +define('CO_'.$moduleDirNameUpper.'_'.'EXPORT_SCHEMA', 'Export DB Schema to YAML'); |
|
| 82 | +define('CO_'.$moduleDirNameUpper.'_'.'EXPORT_SCHEMA_SUCCESS', 'Export DB Schema to YAML was a success'); |
|
| 83 | +define('CO_'.$moduleDirNameUpper.'_'.'EXPORT_SCHEMA_ERROR', 'ERROR: Export of DB Schema to YAML failed'); |
|
| 84 | +define('CO_'.$moduleDirNameUpper.'_'.'ADD_SAMPLEDATA_OK', 'Are you sure to Import Sample Data? (It will delete ALL current data)'); |
|
| 85 | +define('CO_'.$moduleDirNameUpper.'_'.'HIDE_SAMPLEDATA_BUTTONS', 'Hide the Import buttons)'); |
|
| 86 | +define('CO_'.$moduleDirNameUpper.'_'.'SHOW_SAMPLEDATA_BUTTONS', 'Show the Import buttons)'); |
|
| 87 | +define('CO_'.$moduleDirNameUpper.'_'.'CONFIRM', 'Confirm'); |
|
| 88 | 88 | |
| 89 | 89 | //letter choice |
| 90 | -define('CO_' . $moduleDirNameUpper . '_' . 'BROWSETOTOPIC', "<span style='font-weight: bold;'>Browse items alphabetically</span>"); |
|
| 91 | -define('CO_' . $moduleDirNameUpper . '_' . 'OTHER', 'Other'); |
|
| 92 | -define('CO_' . $moduleDirNameUpper . '_' . 'ALL', 'All'); |
|
| 90 | +define('CO_'.$moduleDirNameUpper.'_'.'BROWSETOTOPIC', "<span style='font-weight: bold;'>Browse items alphabetically</span>"); |
|
| 91 | +define('CO_'.$moduleDirNameUpper.'_'.'OTHER', 'Other'); |
|
| 92 | +define('CO_'.$moduleDirNameUpper.'_'.'ALL', 'All'); |
|
| 93 | 93 | |
| 94 | 94 | // block defines |
| 95 | -define('CO_' . $moduleDirNameUpper . '_' . 'ACCESSRIGHTS', 'Access Rights'); |
|
| 96 | -define('CO_' . $moduleDirNameUpper . '_' . 'ACTION', 'Action'); |
|
| 97 | -define('CO_' . $moduleDirNameUpper . '_' . 'ACTIVERIGHTS', 'Active Rights'); |
|
| 98 | -define('CO_' . $moduleDirNameUpper . '_' . 'BADMIN', 'Block Administration'); |
|
| 99 | -define('CO_' . $moduleDirNameUpper . '_' . 'BLKDESC', 'Description'); |
|
| 100 | -define('CO_' . $moduleDirNameUpper . '_' . 'CBCENTER', 'Center Middle'); |
|
| 101 | -define('CO_' . $moduleDirNameUpper . '_' . 'CBLEFT', 'Center Left'); |
|
| 102 | -define('CO_' . $moduleDirNameUpper . '_' . 'CBRIGHT', 'Center Right'); |
|
| 103 | -define('CO_' . $moduleDirNameUpper . '_' . 'SBLEFT', 'Left'); |
|
| 104 | -define('CO_' . $moduleDirNameUpper . '_' . 'SBRIGHT', 'Right'); |
|
| 105 | -define('CO_' . $moduleDirNameUpper . '_' . 'SIDE', 'Alignment'); |
|
| 106 | -define('CO_' . $moduleDirNameUpper . '_' . 'TITLE', 'Title'); |
|
| 107 | -define('CO_' . $moduleDirNameUpper . '_' . 'VISIBLE', 'Visible'); |
|
| 108 | -define('CO_' . $moduleDirNameUpper . '_' . 'VISIBLEIN', 'Visible In'); |
|
| 109 | -define('CO_' . $moduleDirNameUpper . '_' . 'WEIGHT', 'Weight'); |
|
| 110 | - |
|
| 111 | -define('CO_' . $moduleDirNameUpper . '_' . 'PERMISSIONS', 'Permissions'); |
|
| 112 | -define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS', 'Blocks Admin'); |
|
| 113 | -define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_DESC', 'Blocks/Group Admin'); |
|
| 114 | - |
|
| 115 | -define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_MANAGMENT', 'Manage'); |
|
| 116 | -define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_ADDBLOCK', 'Add a new block'); |
|
| 117 | -define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_EDITBLOCK', 'Edit a block'); |
|
| 118 | -define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_CLONEBLOCK', 'Clone a block'); |
|
| 95 | +define('CO_'.$moduleDirNameUpper.'_'.'ACCESSRIGHTS', 'Access Rights'); |
|
| 96 | +define('CO_'.$moduleDirNameUpper.'_'.'ACTION', 'Action'); |
|
| 97 | +define('CO_'.$moduleDirNameUpper.'_'.'ACTIVERIGHTS', 'Active Rights'); |
|
| 98 | +define('CO_'.$moduleDirNameUpper.'_'.'BADMIN', 'Block Administration'); |
|
| 99 | +define('CO_'.$moduleDirNameUpper.'_'.'BLKDESC', 'Description'); |
|
| 100 | +define('CO_'.$moduleDirNameUpper.'_'.'CBCENTER', 'Center Middle'); |
|
| 101 | +define('CO_'.$moduleDirNameUpper.'_'.'CBLEFT', 'Center Left'); |
|
| 102 | +define('CO_'.$moduleDirNameUpper.'_'.'CBRIGHT', 'Center Right'); |
|
| 103 | +define('CO_'.$moduleDirNameUpper.'_'.'SBLEFT', 'Left'); |
|
| 104 | +define('CO_'.$moduleDirNameUpper.'_'.'SBRIGHT', 'Right'); |
|
| 105 | +define('CO_'.$moduleDirNameUpper.'_'.'SIDE', 'Alignment'); |
|
| 106 | +define('CO_'.$moduleDirNameUpper.'_'.'TITLE', 'Title'); |
|
| 107 | +define('CO_'.$moduleDirNameUpper.'_'.'VISIBLE', 'Visible'); |
|
| 108 | +define('CO_'.$moduleDirNameUpper.'_'.'VISIBLEIN', 'Visible In'); |
|
| 109 | +define('CO_'.$moduleDirNameUpper.'_'.'WEIGHT', 'Weight'); |
|
| 110 | + |
|
| 111 | +define('CO_'.$moduleDirNameUpper.'_'.'PERMISSIONS', 'Permissions'); |
|
| 112 | +define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS', 'Blocks Admin'); |
|
| 113 | +define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_DESC', 'Blocks/Group Admin'); |
|
| 114 | + |
|
| 115 | +define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_MANAGMENT', 'Manage'); |
|
| 116 | +define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_ADDBLOCK', 'Add a new block'); |
|
| 117 | +define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_EDITBLOCK', 'Edit a block'); |
|
| 118 | +define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_CLONEBLOCK', 'Clone a block'); |
|
| 119 | 119 | |
| 120 | 120 | //myblocksadmin |
| 121 | -define('CO_' . $moduleDirNameUpper . '_' . 'AGDS', 'Admin Groups'); |
|
| 122 | -define('CO_' . $moduleDirNameUpper . '_' . 'BCACHETIME', 'Cache Time'); |
|
| 123 | -define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_ADMIN', 'Blocks Admin'); |
|
| 121 | +define('CO_'.$moduleDirNameUpper.'_'.'AGDS', 'Admin Groups'); |
|
| 122 | +define('CO_'.$moduleDirNameUpper.'_'.'BCACHETIME', 'Cache Time'); |
|
| 123 | +define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_ADMIN', 'Blocks Admin'); |
|
| 124 | 124 | |
| 125 | 125 | //Template Admin |
| 126 | -define('CO_' . $moduleDirNameUpper . '_' . 'TPLSETS', 'Template Management'); |
|
| 127 | -define('CO_' . $moduleDirNameUpper . '_' . 'GENERATE', 'Generate'); |
|
| 128 | -define('CO_' . $moduleDirNameUpper . '_' . 'FILENAME', 'File Name'); |
|
| 126 | +define('CO_'.$moduleDirNameUpper.'_'.'TPLSETS', 'Template Management'); |
|
| 127 | +define('CO_'.$moduleDirNameUpper.'_'.'GENERATE', 'Generate'); |
|
| 128 | +define('CO_'.$moduleDirNameUpper.'_'.'FILENAME', 'File Name'); |
|
| 129 | 129 | |
| 130 | 130 | //Menu |
| 131 | -define('CO_' . $moduleDirNameUpper . '_' . 'ADMENU_MIGRATE', 'Migrate'); |
|
| 132 | -define('CO_' . $moduleDirNameUpper . '_' . 'FOLDER_YES', 'Folder "%s" exist'); |
|
| 133 | -define('CO_' . $moduleDirNameUpper . '_' . 'FOLDER_NO', 'Folder "%s" does not exist. Create the specified folder with CHMOD 777.'); |
|
| 134 | -define('CO_' . $moduleDirNameUpper . '_' . 'SHOW_DEV_TOOLS', 'Show Development Tools Button?'); |
|
| 135 | -define('CO_' . $moduleDirNameUpper . '_' . 'SHOW_DEV_TOOLS_DESC', 'If yes, the "Migrate" Tab and other Development tools will be visible to the Admin.'); |
|
| 136 | -define('CO_' . $moduleDirNameUpper . '_' . 'ADMENU_FEEDBACK', 'Feedback'); |
|
| 137 | -define('CO_' . $moduleDirNameUpper . '_' . 'MIGRATE_OK', 'Database migrated to current schema.'); |
|
| 138 | -define('CO_' . $moduleDirNameUpper . '_' . 'MIGRATE_WARNING', 'Warning! This is intended for developers only. Confirm write schema file from current database.'); |
|
| 139 | -define('CO_' . $moduleDirNameUpper . '_' . 'MIGRATE_SCHEMA_OK', 'Current schema file written'); |
|
| 131 | +define('CO_'.$moduleDirNameUpper.'_'.'ADMENU_MIGRATE', 'Migrate'); |
|
| 132 | +define('CO_'.$moduleDirNameUpper.'_'.'FOLDER_YES', 'Folder "%s" exist'); |
|
| 133 | +define('CO_'.$moduleDirNameUpper.'_'.'FOLDER_NO', 'Folder "%s" does not exist. Create the specified folder with CHMOD 777.'); |
|
| 134 | +define('CO_'.$moduleDirNameUpper.'_'.'SHOW_DEV_TOOLS', 'Show Development Tools Button?'); |
|
| 135 | +define('CO_'.$moduleDirNameUpper.'_'.'SHOW_DEV_TOOLS_DESC', 'If yes, the "Migrate" Tab and other Development tools will be visible to the Admin.'); |
|
| 136 | +define('CO_'.$moduleDirNameUpper.'_'.'ADMENU_FEEDBACK', 'Feedback'); |
|
| 137 | +define('CO_'.$moduleDirNameUpper.'_'.'MIGRATE_OK', 'Database migrated to current schema.'); |
|
| 138 | +define('CO_'.$moduleDirNameUpper.'_'.'MIGRATE_WARNING', 'Warning! This is intended for developers only. Confirm write schema file from current database.'); |
|
| 139 | +define('CO_'.$moduleDirNameUpper.'_'.'MIGRATE_SCHEMA_OK', 'Current schema file written'); |
|
| 140 | 140 | |
| 141 | 141 | //Latest Version Check |
| 142 | -define('CO_' . $moduleDirNameUpper . '_' . 'NEW_VERSION', 'New Version: '); |
|
| 142 | +define('CO_'.$moduleDirNameUpper.'_'.'NEW_VERSION', 'New Version: '); |
|
| 143 | 143 | |
| 144 | 144 | //DirectoryChecker |
| 145 | -define('CO_' . $moduleDirNameUpper . '_' . 'AVAILABLE', "<span style='color: green;'>Available</span>"); |
|
| 146 | -define('CO_' . $moduleDirNameUpper . '_' . 'NOTAVAILABLE', "<span style='color: red;'>Not available</span>"); |
|
| 147 | -define('CO_' . $moduleDirNameUpper . '_' . 'NOTWRITABLE', "<span style='color: red;'>Should have permission ( %d ), but it has ( %d )</span>"); |
|
| 148 | -define('CO_' . $moduleDirNameUpper . '_' . 'CREATETHEDIR', 'Create it'); |
|
| 149 | -define('CO_' . $moduleDirNameUpper . '_' . 'SETMPERM', 'Set the permission'); |
|
| 150 | -define('CO_' . $moduleDirNameUpper . '_' . 'DIRCREATED', 'The directory has been created'); |
|
| 151 | -define('CO_' . $moduleDirNameUpper . '_' . 'DIRNOTCREATED', 'The directory cannot be created'); |
|
| 152 | -define('CO_' . $moduleDirNameUpper . '_' . 'PERMSET', 'The permission has been set'); |
|
| 153 | -define('CO_' . $moduleDirNameUpper . '_' . 'PERMNOTSET', 'The permission cannot be set'); |
|
| 145 | +define('CO_'.$moduleDirNameUpper.'_'.'AVAILABLE', "<span style='color: green;'>Available</span>"); |
|
| 146 | +define('CO_'.$moduleDirNameUpper.'_'.'NOTAVAILABLE', "<span style='color: red;'>Not available</span>"); |
|
| 147 | +define('CO_'.$moduleDirNameUpper.'_'.'NOTWRITABLE', "<span style='color: red;'>Should have permission ( %d ), but it has ( %d )</span>"); |
|
| 148 | +define('CO_'.$moduleDirNameUpper.'_'.'CREATETHEDIR', 'Create it'); |
|
| 149 | +define('CO_'.$moduleDirNameUpper.'_'.'SETMPERM', 'Set the permission'); |
|
| 150 | +define('CO_'.$moduleDirNameUpper.'_'.'DIRCREATED', 'The directory has been created'); |
|
| 151 | +define('CO_'.$moduleDirNameUpper.'_'.'DIRNOTCREATED', 'The directory cannot be created'); |
|
| 152 | +define('CO_'.$moduleDirNameUpper.'_'.'PERMSET', 'The permission has been set'); |
|
| 153 | +define('CO_'.$moduleDirNameUpper.'_'.'PERMNOTSET', 'The permission cannot be set'); |
|
| 154 | 154 | |
| 155 | 155 | //FileChecker |
| 156 | 156 | //define('CO_' . $moduleDirNameUpper . '_' . 'AVAILABLE', "<span style='color: green;'>Available</span>"); |
@@ -160,36 +160,36 @@ discard block |
||
| 160 | 160 | //define('CO_' . $moduleDirNameUpper . '_' . 'CREATETHEFILE', 'Create it'); |
| 161 | 161 | //define('CO_' . $moduleDirNameUpper . '_' . 'SETMPERM', 'Set the permission'); |
| 162 | 162 | |
| 163 | -define('CO_' . $moduleDirNameUpper . '_' . 'FILECOPIED', 'The file has been copied'); |
|
| 164 | -define('CO_' . $moduleDirNameUpper . '_' . 'FILENOTCOPIED', 'The file cannot be copied'); |
|
| 163 | +define('CO_'.$moduleDirNameUpper.'_'.'FILECOPIED', 'The file has been copied'); |
|
| 164 | +define('CO_'.$moduleDirNameUpper.'_'.'FILENOTCOPIED', 'The file cannot be copied'); |
|
| 165 | 165 | |
| 166 | 166 | //define('CO_' . $moduleDirNameUpper . '_' . 'PERMSET', 'The permission has been set'); |
| 167 | 167 | //define('CO_' . $moduleDirNameUpper . '_' . 'PERMNOTSET', 'The permission cannot be set'); |
| 168 | 168 | |
| 169 | 169 | //image config |
| 170 | -define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_WIDTH', 'Image Display Width'); |
|
| 171 | -define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_WIDTH_DSC', 'Display width for image'); |
|
| 172 | -define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_HEIGHT', 'Image Display Height'); |
|
| 173 | -define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_HEIGHT_DSC', 'Display height for image'); |
|
| 174 | -define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_CONFIG', '<span style="color: #FF0000; font-size: Small; font-weight: bold;">--- EXTERNAL Image configuration ---</span> '); |
|
| 175 | -define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_CONFIG_DSC', ''); |
|
| 176 | -define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_UPLOAD_PATH', 'Image Upload path'); |
|
| 177 | -define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_UPLOAD_PATH_DSC', 'Path for uploading images'); |
|
| 178 | - |
|
| 179 | -define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_FILE_SIZE', 'Image File Size (in Bytes)'); |
|
| 180 | -define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_FILE_SIZE_DSC', 'The maximum file size of the image file (in Bytes)'); |
|
| 170 | +define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_WIDTH', 'Image Display Width'); |
|
| 171 | +define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_WIDTH_DSC', 'Display width for image'); |
|
| 172 | +define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_HEIGHT', 'Image Display Height'); |
|
| 173 | +define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_HEIGHT_DSC', 'Display height for image'); |
|
| 174 | +define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_CONFIG', '<span style="color: #FF0000; font-size: Small; font-weight: bold;">--- EXTERNAL Image configuration ---</span> '); |
|
| 175 | +define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_CONFIG_DSC', ''); |
|
| 176 | +define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_UPLOAD_PATH', 'Image Upload path'); |
|
| 177 | +define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_UPLOAD_PATH_DSC', 'Path for uploading images'); |
|
| 178 | + |
|
| 179 | +define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_FILE_SIZE', 'Image File Size (in Bytes)'); |
|
| 180 | +define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_FILE_SIZE_DSC', 'The maximum file size of the image file (in Bytes)'); |
|
| 181 | 181 | |
| 182 | 182 | //Preferences |
| 183 | -define('CO_' . $moduleDirNameUpper . '_' . 'TRUNCATE_LENGTH', 'Number of Characters to truncate to the long text field'); |
|
| 184 | -define('CO_' . $moduleDirNameUpper . '_' . 'TRUNCATE_LENGTH_DESC', 'Set the maximum number of characters to truncate the long text fields'); |
|
| 183 | +define('CO_'.$moduleDirNameUpper.'_'.'TRUNCATE_LENGTH', 'Number of Characters to truncate to the long text field'); |
|
| 184 | +define('CO_'.$moduleDirNameUpper.'_'.'TRUNCATE_LENGTH_DESC', 'Set the maximum number of characters to truncate the long text fields'); |
|
| 185 | 185 | |
| 186 | 186 | //Module Stats |
| 187 | -define('CO_' . $moduleDirNameUpper . '_' . 'STATS_SUMMARY', 'Module Statistics'); |
|
| 188 | -define('CO_' . $moduleDirNameUpper . '_' . 'TOTAL_CATEGORIES', 'Categories:'); |
|
| 189 | -define('CO_' . $moduleDirNameUpper . '_' . 'TOTAL_ITEMS', 'Items'); |
|
| 190 | -define('CO_' . $moduleDirNameUpper . '_' . 'TOTAL_OFFLINE', 'Offline'); |
|
| 191 | -define('CO_' . $moduleDirNameUpper . '_' . 'TOTAL_PUBLISHED', 'Published'); |
|
| 192 | -define('CO_' . $moduleDirNameUpper . '_' . 'TOTAL_REJECTED', 'Rejected'); |
|
| 193 | -define('CO_' . $moduleDirNameUpper . '_' . 'TOTAL_SUBMITTED', 'Submitted'); |
|
| 187 | +define('CO_'.$moduleDirNameUpper.'_'.'STATS_SUMMARY', 'Module Statistics'); |
|
| 188 | +define('CO_'.$moduleDirNameUpper.'_'.'TOTAL_CATEGORIES', 'Categories:'); |
|
| 189 | +define('CO_'.$moduleDirNameUpper.'_'.'TOTAL_ITEMS', 'Items'); |
|
| 190 | +define('CO_'.$moduleDirNameUpper.'_'.'TOTAL_OFFLINE', 'Offline'); |
|
| 191 | +define('CO_'.$moduleDirNameUpper.'_'.'TOTAL_PUBLISHED', 'Published'); |
|
| 192 | +define('CO_'.$moduleDirNameUpper.'_'.'TOTAL_REJECTED', 'Rejected'); |
|
| 193 | +define('CO_'.$moduleDirNameUpper.'_'.'TOTAL_SUBMITTED', 'Submitted'); |
|
| 194 | 194 | |
| 195 | 195 | /**#@-*/ |
@@ -73,25 +73,25 @@ discard block |
||
| 73 | 73 | ' |
| 74 | 74 | Available rating systems: |
| 75 | 75 | <br><br> |
| 76 | - ' . _MI_CHESS_RATING_SYSTEM_CXR . ' - Adaptation of the ELO rating system, used by permission of <a target="_blank" href="http://chess-express.com/">Chess Express Ratings, Inc.</a> |
|
| 76 | + ' . _MI_CHESS_RATING_SYSTEM_CXR.' - Adaptation of the ELO rating system, used by permission of <a target="_blank" href="http://chess-express.com/">Chess Express Ratings, Inc.</a> |
|
| 77 | 77 | <br><br> |
| 78 | - ' . _MI_CHESS_RATING_SYSTEM_LINEAR . ' - A very simple system that adds (subtracts) a fixed number of points for a win (loss). |
|
| 78 | + ' . _MI_CHESS_RATING_SYSTEM_LINEAR.' - A very simple system that adds (subtracts) a fixed number of points for a win (loss). |
|
| 79 | 79 | <br><br> |
| 80 | - Select "' . _MI_CHESS_RATING_SYSTEM_NONE . '" to disable the rating feature. |
|
| 80 | + Select "' . _MI_CHESS_RATING_SYSTEM_NONE.'" to disable the rating feature. |
|
| 81 | 81 | <br><br> |
| 82 | 82 | After changing this setting, you should rebuild the player ratings data from Main Menu >> Chess >> |
| 83 | - ' . _MI_CHESS_SMNAME4 . '. |
|
| 83 | + ' . _MI_CHESS_SMNAME4.'. |
|
| 84 | 84 | ' |
| 85 | 85 | ); |
| 86 | 86 | define('_MI_CHESS_INITIAL_RATING', 'Initial player rating'); |
| 87 | 87 | define( |
| 88 | 88 | '_MI_CHESS_INITIAL_RATING_DES', |
| 89 | 89 | ' |
| 90 | - If the "' . _MI_CHESS_RATING_SYSTEM_CXR . '" rating system is selected, this value should be between 800 and 2000. |
|
| 90 | + If the "' . _MI_CHESS_RATING_SYSTEM_CXR.'" rating system is selected, this value should be between 800 and 2000. |
|
| 91 | 91 | <br><br> |
| 92 | 92 | Applies only if a player rating system is selected. |
| 93 | 93 | <br><br> |
| 94 | - If you change this value, you should rebuild the player ratings data from Main Menu >> Chess >> ' . _MI_CHESS_SMNAME4 . '. |
|
| 94 | + If you change this value, you should rebuild the player ratings data from Main Menu >> Chess >> ' . _MI_CHESS_SMNAME4.'. |
|
| 95 | 95 | ' |
| 96 | 96 | ); |
| 97 | 97 | define('_MI_CHESS_ALLOW_UNRATED', 'Allow unrated games?'); |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | |
| 171 | 171 | //Help |
| 172 | 172 | define('_MI_CHESS_DIRNAME', basename(dirname(__DIR__, 2))); |
| 173 | -define('_MI_CHESS_HELP_HEADER', __DIR__ . '/help/helpheader.tpl'); |
|
| 173 | +define('_MI_CHESS_HELP_HEADER', __DIR__.'/help/helpheader.tpl'); |
|
| 174 | 174 | define('_MI_CHESS_BACK_2_ADMIN', 'Back to Administration of '); |
| 175 | 175 | define('_MI_CHESS_OVERVIEW', 'Overview'); |
| 176 | 176 | |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | */ |
| 43 | 43 | function xoops_module_uninstall_chess(\XoopsModule $module) |
| 44 | 44 | { |
| 45 | - require __DIR__ . '/common.php'; |
|
| 45 | + require __DIR__.'/common.php'; |
|
| 46 | 46 | |
| 47 | 47 | $moduleDirName = basename(dirname(__DIR__)); |
| 48 | 48 | |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | // The directory exists so delete it |
| 77 | 77 | |
| 78 | 78 | if (false === $utility::rrmdir($old_dir)) { |
| 79 | - $module->setErrors(sprintf(constant('CO_' . $moduleDirNameUpper . '_ERROR_BAD_DEL_PATH'), $old_dir)); |
|
| 79 | + $module->setErrors(sprintf(constant('CO_'.$moduleDirNameUpper.'_ERROR_BAD_DEL_PATH'), $old_dir)); |
|
| 80 | 80 | |
| 81 | 81 | $success = false; |
| 82 | 82 | } |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | |
| 23 | 23 | if ((!defined('XOOPS_ROOT_PATH')) || !($GLOBALS['xoopsUser'] instanceof \XoopsUser) |
| 24 | 24 | || !$GLOBALS['xoopsUser']->isAdmin()) { |
| 25 | - exit('Restricted access' . PHP_EOL); |
|
| 25 | + exit('Restricted access'.PHP_EOL); |
|
| 26 | 26 | } |
| 27 | 27 | |
| 28 | 28 | /** |
@@ -98,17 +98,17 @@ discard block |
||
| 98 | 98 | |
| 99 | 99 | if (count($configurator->templateFolders) > 0) { |
| 100 | 100 | foreach ($configurator->templateFolders as $folder) { |
| 101 | - $templateFolder = $GLOBALS['xoops']->path('modules/' . $moduleDirName . $folder); |
|
| 101 | + $templateFolder = $GLOBALS['xoops']->path('modules/'.$moduleDirName.$folder); |
|
| 102 | 102 | |
| 103 | 103 | if (is_dir($templateFolder)) { |
| 104 | 104 | $templateList = array_diff(scandir($templateFolder, SCANDIR_SORT_NONE), ['..', '.']); |
| 105 | 105 | |
| 106 | 106 | foreach ($templateList as $k => $v) { |
| 107 | - $fileInfo = new SplFileInfo($templateFolder . $v); |
|
| 107 | + $fileInfo = new SplFileInfo($templateFolder.$v); |
|
| 108 | 108 | |
| 109 | 109 | if ('html' === $fileInfo->getExtension() && 'index.html' !== $fileInfo->getFilename()) { |
| 110 | - if (file_exists($templateFolder . $v)) { |
|
| 111 | - unlink($templateFolder . $v); |
|
| 110 | + if (file_exists($templateFolder.$v)) { |
|
| 111 | + unlink($templateFolder.$v); |
|
| 112 | 112 | } |
| 113 | 113 | } |
| 114 | 114 | } |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | // foreach (array_keys($GLOBALS['uploadFolders']) as $i) { |
| 123 | 123 | |
| 124 | 124 | foreach (array_keys($configurator->oldFiles) as $i) { |
| 125 | - $tempFile = $GLOBALS['xoops']->path('modules/' . $moduleDirName . $configurator->oldFiles[$i]); |
|
| 125 | + $tempFile = $GLOBALS['xoops']->path('modules/'.$moduleDirName.$configurator->oldFiles[$i]); |
|
| 126 | 126 | |
| 127 | 127 | if (is_file($tempFile)) { |
| 128 | 128 | unlink($tempFile); |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | // foreach (array_keys($GLOBALS['uploadFolders']) as $i) { |
| 139 | 139 | |
| 140 | 140 | foreach (array_keys($configurator->oldFolders) as $i) { |
| 141 | - $tempFolder = $GLOBALS['xoops']->path('modules/' . $moduleDirName . $configurator->oldFolders[$i]); |
|
| 141 | + $tempFolder = $GLOBALS['xoops']->path('modules/'.$moduleDirName.$configurator->oldFolders[$i]); |
|
| 142 | 142 | |
| 143 | 143 | /** @var XoopsObjectHandler $folderHandler */ |
| 144 | 144 | |
@@ -161,10 +161,10 @@ discard block |
||
| 161 | 161 | // --- COPY blank.png FILES --------------- |
| 162 | 162 | |
| 163 | 163 | if (count($configurator->copyBlankFiles) > 0) { |
| 164 | - $file = dirname(__DIR__) . '/assets/images/blank.png'; |
|
| 164 | + $file = dirname(__DIR__).'/assets/images/blank.png'; |
|
| 165 | 165 | |
| 166 | 166 | foreach (array_keys($configurator->copyBlankFiles) as $i) { |
| 167 | - $dest = $configurator->copyBlankFiles[$i] . '/blank.png'; |
|
| 167 | + $dest = $configurator->copyBlankFiles[$i].'/blank.png'; |
|
| 168 | 168 | |
| 169 | 169 | $utility::copyFile($file, $dest); |
| 170 | 170 | } |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | |
| 173 | 173 | //delete .html entries from the tpl table |
| 174 | 174 | |
| 175 | - $sql = 'DELETE FROM ' . $GLOBALS['xoopsDB']->prefix('tplfile') . " WHERE `tpl_module` = '" . $module->getVar('dirname', 'n') . "' AND `tpl_file` LIKE '%.html%'"; |
|
| 175 | + $sql = 'DELETE FROM '.$GLOBALS['xoopsDB']->prefix('tplfile')." WHERE `tpl_module` = '".$module->getVar('dirname', 'n')."' AND `tpl_file` LIKE '%.html%'"; |
|
| 176 | 176 | |
| 177 | 177 | $GLOBALS['xoopsDB']->queryF($sql); |
| 178 | 178 | |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | { |
| 29 | 29 | // require dirname(__DIR__) . '/preloads/autoloader.php'; |
| 30 | 30 | |
| 31 | - require __DIR__ . '/common.php'; |
|
| 31 | + require __DIR__.'/common.php'; |
|
| 32 | 32 | |
| 33 | 33 | $utility = new \XoopsModules\Chess\Utility(); |
| 34 | 34 | |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | $moduleTables = &$module->getInfo('tables'); |
| 45 | 45 | |
| 46 | 46 | foreach ($moduleTables as $table) { |
| 47 | - $GLOBALS['xoopsDB']->queryF('DROP TABLE IF EXISTS ' . $GLOBALS['xoopsDB']->prefix($table) . ';'); |
|
| 47 | + $GLOBALS['xoopsDB']->queryF('DROP TABLE IF EXISTS '.$GLOBALS['xoopsDB']->prefix($table).';'); |
|
| 48 | 48 | } |
| 49 | 49 | } |
| 50 | 50 | |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | */ |
| 60 | 60 | function xoops_module_install_chess(\XoopsModule $module) |
| 61 | 61 | { |
| 62 | - require_once dirname(__DIR__) . '/preloads/autoloader.php'; |
|
| 62 | + require_once dirname(__DIR__).'/preloads/autoloader.php'; |
|
| 63 | 63 | |
| 64 | 64 | $moduleDirName = basename(dirname(__DIR__)); |
| 65 | 65 | |
@@ -91,15 +91,15 @@ discard block |
||
| 91 | 91 | |
| 92 | 92 | // access rights ------------------------------------------ |
| 93 | 93 | |
| 94 | - $grouppermHandler->addRight($moduleDirName . '_approve', 1, XOOPS_GROUP_ADMIN, $moduleId); |
|
| 94 | + $grouppermHandler->addRight($moduleDirName.'_approve', 1, XOOPS_GROUP_ADMIN, $moduleId); |
|
| 95 | 95 | |
| 96 | - $grouppermHandler->addRight($moduleDirName . '_submit', 1, XOOPS_GROUP_ADMIN, $moduleId); |
|
| 96 | + $grouppermHandler->addRight($moduleDirName.'_submit', 1, XOOPS_GROUP_ADMIN, $moduleId); |
|
| 97 | 97 | |
| 98 | - $grouppermHandler->addRight($moduleDirName . '_view', 1, XOOPS_GROUP_ADMIN, $moduleId); |
|
| 98 | + $grouppermHandler->addRight($moduleDirName.'_view', 1, XOOPS_GROUP_ADMIN, $moduleId); |
|
| 99 | 99 | |
| 100 | - $grouppermHandler->addRight($moduleDirName . '_view', 1, XOOPS_GROUP_USERS, $moduleId); |
|
| 100 | + $grouppermHandler->addRight($moduleDirName.'_view', 1, XOOPS_GROUP_USERS, $moduleId); |
|
| 101 | 101 | |
| 102 | - $grouppermHandler->addRight($moduleDirName . '_view', 1, XOOPS_GROUP_ANONYMOUS, $moduleId); |
|
| 102 | + $grouppermHandler->addRight($moduleDirName.'_view', 1, XOOPS_GROUP_ANONYMOUS, $moduleId); |
|
| 103 | 103 | |
| 104 | 104 | // --- CREATE FOLDERS --------------- |
| 105 | 105 | |
@@ -114,10 +114,10 @@ discard block |
||
| 114 | 114 | // --- COPY blank.png FILES --------------- |
| 115 | 115 | |
| 116 | 116 | if (count($configurator->copyBlankFiles) > 0) { |
| 117 | - $file = dirname(__DIR__) . '/assets/images/blank.png'; |
|
| 117 | + $file = dirname(__DIR__).'/assets/images/blank.png'; |
|
| 118 | 118 | |
| 119 | 119 | foreach (array_keys($configurator->copyBlankFiles) as $i) { |
| 120 | - $dest = $configurator->copyBlankFiles[$i] . '/blank.png'; |
|
| 120 | + $dest = $configurator->copyBlankFiles[$i].'/blank.png'; |
|
| 121 | 121 | |
| 122 | 122 | $utility::copyFile($file, $dest); |
| 123 | 123 | } |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | |
| 138 | 138 | //delete .html entries from the tpl table |
| 139 | 139 | |
| 140 | - $sql = 'DELETE FROM ' . $GLOBALS['xoopsDB']->prefix('tplfile') . " WHERE `tpl_module` = '" . $module->getVar('dirname', 'n') . "' AND `tpl_file` LIKE '%.html%'"; |
|
| 140 | + $sql = 'DELETE FROM '.$GLOBALS['xoopsDB']->prefix('tplfile')." WHERE `tpl_module` = '".$module->getVar('dirname', 'n')."' AND `tpl_file` LIKE '%.html%'"; |
|
| 141 | 141 | |
| 142 | 142 | $GLOBALS['xoopsDB']->queryF($sql); |
| 143 | 143 | |
@@ -3,15 +3,15 @@ |
||
| 3 | 3 | $moduleDirName = basename(dirname(__DIR__)); |
| 4 | 4 | $moduleDirNameUpper = mb_strtoupper($moduleDirName); |
| 5 | 5 | |
| 6 | -return (object)[ |
|
| 7 | - 'name' => mb_strtoupper($moduleDirName) . ' PathConfigurator', |
|
| 6 | +return (object) [ |
|
| 7 | + 'name' => mb_strtoupper($moduleDirName).' PathConfigurator', |
|
| 8 | 8 | 'paths' => [ |
| 9 | 9 | 'dirname' => $moduleDirName, |
| 10 | - 'admin' => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/admin', |
|
| 11 | - 'modPath' => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName, |
|
| 12 | - 'modUrl' => XOOPS_URL . '/modules/' . $moduleDirName, |
|
| 13 | - 'uploadPath' => XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
| 14 | - 'uploadUrl' => XOOPS_UPLOAD_URL . '/' . $moduleDirName, |
|
| 10 | + 'admin' => XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/admin', |
|
| 11 | + 'modPath' => XOOPS_ROOT_PATH.'/modules/'.$moduleDirName, |
|
| 12 | + 'modUrl' => XOOPS_URL.'/modules/'.$moduleDirName, |
|
| 13 | + 'uploadPath' => XOOPS_UPLOAD_PATH.'/'.$moduleDirName, |
|
| 14 | + 'uploadUrl' => XOOPS_UPLOAD_URL.'/'.$moduleDirName, |
|
| 15 | 15 | ], |
| 16 | 16 | 'uploadFolders' => [ |
| 17 | 17 | ], |
@@ -22,15 +22,15 @@ discard block |
||
| 22 | 22 | |
| 23 | 23 | //@TODO include deleted/moved files, remove extra content, calculate module stats, etc. |
| 24 | 24 | |
| 25 | -return (object)[ |
|
| 26 | - 'name' => mb_strtoupper($moduleDirName) . ' ModuleConfigurator', |
|
| 25 | +return (object) [ |
|
| 26 | + 'name' => mb_strtoupper($moduleDirName).' ModuleConfigurator', |
|
| 27 | 27 | 'paths' => [ |
| 28 | 28 | 'dirname' => $moduleDirName, |
| 29 | - 'admin' => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/admin', |
|
| 30 | - 'modPath' => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName, |
|
| 31 | - 'modUrl' => XOOPS_URL . '/modules/' . $moduleDirName, |
|
| 32 | - 'uploadPath' => XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
| 33 | - 'uploadUrl' => XOOPS_UPLOAD_URL . '/' . $moduleDirName, |
|
| 29 | + 'admin' => XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/admin', |
|
| 30 | + 'modPath' => XOOPS_ROOT_PATH.'/modules/'.$moduleDirName, |
|
| 31 | + 'modUrl' => XOOPS_URL.'/modules/'.$moduleDirName, |
|
| 32 | + 'uploadPath' => XOOPS_UPLOAD_PATH.'/'.$moduleDirName, |
|
| 33 | + 'uploadUrl' => XOOPS_UPLOAD_URL.'/'.$moduleDirName, |
|
| 34 | 34 | ], |
| 35 | 35 | 'uploadFolders' => [ |
| 36 | 36 | ], |
@@ -39,8 +39,8 @@ discard block |
||
| 39 | 39 | |
| 40 | 40 | 'copyTestFolders' => [ |
| 41 | 41 | [ |
| 42 | - XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/testdata/uploads', |
|
| 43 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
| 42 | + XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/testdata/uploads', |
|
| 43 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName, |
|
| 44 | 44 | ], |
| 45 | 45 | // [ |
| 46 | 46 | // XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/testdata/thumbs', |
@@ -77,5 +77,5 @@ discard block |
||
| 77 | 77 | // 'totalsubmitted' => $helper->getHandler('Item')->getItemsCount(-1, [Constants::PUBLISHER_STATUS_SUBMITTED]), |
| 78 | 78 | ], |
| 79 | 79 | 'modCopyright' => "<a href='https://xoops.org' title='XOOPS Project' target='_blank'> |
| 80 | - <img src='" . \Xmf\Module\Admin::iconUrl('xoopsmicrobutton.gif') . "' alt='XOOPS Project'></a>", |
|
| 80 | + <img src='" . \Xmf\Module\Admin::iconUrl('xoopsmicrobutton.gif')."' alt='XOOPS Project'></a>", |
|
| 81 | 81 | ]; |
@@ -35,6 +35,6 @@ |
||
| 35 | 35 | |
| 36 | 36 | /**#@+ |
| 37 | 37 | */ |
| 38 | -require dirname(__DIR__, 2) . '/mainfile.php'; |
|
| 39 | -require XOOPS_ROOT_PATH . '/include/comment_reply.php'; |
|
| 38 | +require dirname(__DIR__, 2).'/mainfile.php'; |
|
| 39 | +require XOOPS_ROOT_PATH.'/include/comment_reply.php'; |
|
| 40 | 40 | /**#@-*/ |
@@ -35,23 +35,23 @@ discard block |
||
| 35 | 35 | |
| 36 | 36 | /**#@+ |
| 37 | 37 | */ |
| 38 | -require_once dirname(__DIR__, 2) . '/mainfile.php'; |
|
| 39 | -require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
| 40 | -require_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
| 41 | -require_once XOOPS_ROOT_PATH . '/modules/chess/include/constants.inc.php'; |
|
| 42 | -require_once XOOPS_ROOT_PATH . '/modules/chess/include/functions.php'; |
|
| 43 | -require_once XOOPS_ROOT_PATH . '/modules/chess/include/ratings.php'; |
|
| 38 | +require_once dirname(__DIR__, 2).'/mainfile.php'; |
|
| 39 | +require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; |
|
| 40 | +require_once XOOPS_ROOT_PATH.'/class/pagenav.php'; |
|
| 41 | +require_once XOOPS_ROOT_PATH.'/modules/chess/include/constants.inc.php'; |
|
| 42 | +require_once XOOPS_ROOT_PATH.'/modules/chess/include/functions.php'; |
|
| 43 | +require_once XOOPS_ROOT_PATH.'/modules/chess/include/ratings.php'; |
|
| 44 | 44 | |
| 45 | 45 | $GLOBALS['xoopsOption']['template_main'] = 'chess_player_stats.tpl'; |
| 46 | 46 | $xoopsConfig['module_cache'][$xoopsModule->getVar('mid')] = 0; // disable caching |
| 47 | -require_once XOOPS_ROOT_PATH . '/header.php'; |
|
| 47 | +require_once XOOPS_ROOT_PATH.'/header.php'; |
|
| 48 | 48 | |
| 49 | 49 | // user input |
| 50 | -$player_uid = (int)($_POST['player_uid'] ?? @$_GET['player_uid']); |
|
| 50 | +$player_uid = (int) ($_POST['player_uid'] ?? @$_GET['player_uid']); |
|
| 51 | 51 | $player_uname = trim(@$_POST['player_uname']); // unsanitized |
| 52 | -$cstart = (int)@$_GET['cstart']; // for page nav: offset of first row of results (challenges) to display (default to 0) |
|
| 53 | -$gstart = (int)@$_GET['gstart']; // for page nav: offset of first row of results (games) to display (default to 0) |
|
| 54 | -$show_option = (int)($_POST['show_option'] ?? @$_GET['show_option']); |
|
| 52 | +$cstart = (int) @$_GET['cstart']; // for page nav: offset of first row of results (challenges) to display (default to 0) |
|
| 53 | +$gstart = (int) @$_GET['gstart']; // for page nav: offset of first row of results (games) to display (default to 0) |
|
| 54 | +$show_option = (int) ($_POST['show_option'] ?? @$_GET['show_option']); |
|
| 55 | 55 | |
| 56 | 56 | #var_dump($_REQUEST);#*#DEBUG# |
| 57 | 57 | |
@@ -69,13 +69,13 @@ discard block |
||
| 69 | 69 | |
| 70 | 70 | // Check that both user ID and username are now defined. |
| 71 | 71 | if (0 == $player_uid || empty($player_uname)) { |
| 72 | - redirect_header(XOOPS_URL . '/modules/chess/index.php', _CHESS_REDIRECT_DELAY_FAILURE, _MD_CHESS_PLAYER_NOT_FOUND); |
|
| 72 | + redirect_header(XOOPS_URL.'/modules/chess/index.php', _CHESS_REDIRECT_DELAY_FAILURE, _MD_CHESS_PLAYER_NOT_FOUND); |
|
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | // Display stats |
| 76 | 76 | chess_player_stats($player_uid, $player_uname, $show_option, $cstart, $gstart); |
| 77 | 77 | |
| 78 | -require_once XOOPS_ROOT_PATH . '/footer.php'; |
|
| 78 | +require_once XOOPS_ROOT_PATH.'/footer.php'; |
|
| 79 | 79 | /**#@-*/ |
| 80 | 80 | |
| 81 | 81 | /** |
@@ -292,7 +292,7 @@ discard block |
||
| 292 | 292 | |
| 293 | 293 | $memberHandler = xoops_getHandler('member'); |
| 294 | 294 | |
| 295 | - $criteria = new \Criteria('uid', '(' . implode(',', array_keys($userids)) . ')', 'IN'); |
|
| 295 | + $criteria = new \Criteria('uid', '('.implode(',', array_keys($userids)).')', 'IN'); |
|
| 296 | 296 | |
| 297 | 297 | $usernames = $memberHandler->getUserList($criteria); |
| 298 | 298 | |