XOOPS  2.6.0
_modulesadmin.php
Go to the documentation of this file.
1 <?php
10 // Navigation
11 //define("_AM_SYSTEM_MODULES_ADMIN", "Modules Administration");
12 //define("_AM_SYSTEM_MODULES_MAIN", "Main");
13 
14 // Messages
15 //define("_AM_SYSTEM_MODULES_MSG_INSTALL", "Install module");
16 //define("_AM_SYSTEM_MODULES_MSG_UPDATE", "Update module");
17 //define("_AM_SYSTEM_MODULES_MSG_UNINSTALL", "Uninstall module");
18 
19 //define("_AM_SYSTEM_MODULES_RUSUREINS","Press the button below to install this module");
20 //define("_AM_SYSTEM_MODULES_RUSUREUNINS","Are you sure you would like to uninstall this module?");
21 //define("_AM_SYSTEM_MODULES_RUSUREUPD","Press the button below to update this module");
22 //define("_AM_SYSTEM_MODULES_BTOMADMIN","Manage Module");
23 //define("_AM_SYSTEM_MODULES_BLOCKADMIN","Manage Blocks");
24 //define("_AM_SYSTEM_MODULES_PREFADMIN","Manage Preferences");
25 //define("_AM_SYSTEM_MODULES_INSTALLING","Installing ");
26 //define("_AM_SYSTEM_MODULES_UNINSTAL","Uninstall ");
27 //define("_AM_SYSTEM_MODULES_DEACTIVATE","Deactivate ");
28 //define("_AM_SYSTEM_MODULES_ACTIVATE","Activate ");
29 //define("_AM_SYSTEM_MODULES_UPDATING","Updating ");
30 
31 // Main
32 //define("_AM_SYSTEM_MODULES_LIST", "Installed modules");
33 //define("_AM_SYSTEM_MODULES_AVAILABLE", "Available Modules");
34 //define("_AM_SYSTEM_MODULES_VIEWLARGE","Large View");
35 //define("_AM_SYSTEM_MODULES_VIEWLINE","Line View");
36 //define("_AM_SYSTEM_MODULES_EDIT","Click to edit module name...");
37 
38 // Buttons
39 //define("_AM_SYSTEM_MODULES_STATUS","Enable/Disable");
40 //define("_AM_SYSTEM_MODULES_INSTALL","Install");
41 //define("_AM_SYSTEM_MODULES_UNINSTALL","Uninstall");
42 //define("_AM_SYSTEM_MODULES_UPDATE","Update");
43 //define("_AM_SYSTEM_MODULES_DETAIL","Detail");
44 //define("_AM_SYSTEM_MODULES_DELETE","Delete");
45 //define("_AM_SYSTEM_MODULES_DISABLE","Disable");
46 //define("_AM_SYSTEM_MODULES_ENABLE","Enable");
47 //define("_AM_SYSTEM_MODULES_CLOSE","Close");
48 //define("_AM_SYSTEM_MODULES_MENU","Manage Menu");
49 //define("_AM_SYSTEM_MODULES_MENUBLOCK","Menu Block");
50 
51 // Other
52 //define("_AM_SYSTEM_MODULES_VERSION","Version:");
53 //define("_AM_SYSTEM_MODULES_AUTHOR","Author:");
54 //define("_AM_SYSTEM_MODULES_LICENSE","License:");
55 //define("_AM_SYSTEM_MODULES_LASTUP","Last Update:");
56 //define("_AM_SYSTEM_MODULES_WEB","Web:");
57 
58 // %s represents module name
59 //define("_AM_SYSTEM_MODULES_FAILINS","Unable to install %s.");
60 //define("_AM_SYSTEM_MODULES_FAILUPD","Unable to update %s.");
61 //define("_AM_SYSTEM_MODULES_FAILACT","Unable to activate %s.");
62 //define("_AM_SYSTEM_MODULES_FAILDEACT","Unable to deactivate %s.");
63 //define("_AM_SYSTEM_MODULES_FAILUNINS","Unable to uninstall %s.");
64 //define("_AM_SYSTEM_MODULES_FAILORDER","Unable to reorder %s.");
65 //define("_AM_SYSTEM_MODULES_FAILWRITE","Unable to write to main menu.");
66 //define("_AM_SYSTEM_MODULES_ALEXISTS","Module %s already exists.");
67 //define("_AM_SYSTEM_MODULES_ERRORSC","Error(s):");
68 //define("_AM_SYSTEM_MODULES_OKINS","Module %s installed successfully.");
69 //define("_AM_SYSTEM_MODULES_OKACT","Module %s activated successfully.");
70 //define("_AM_SYSTEM_MODULES_OKDEACT","Module %s deactivated successfully.");
71 //define("_AM_SYSTEM_MODULES_OKUPD","Module %s updated successfully.");
72 //define("_AM_SYSTEM_MODULES_OKUNINS","Module %s uninstalled successfully.");
73 //define("_AM_SYSTEM_MODULES_OKORDER","Module %s changed successfully.");
74 
75 //define("_AM_SYSTEM_MODULES_DUPEN","Duplicate entry in modules table!");
76 //define("_AM_SYSTEM_MODULES_DEACTED","The selected module has been deactivated. You can now safely uninstall the module.");
77 //define("_AM_SYSTEM_MODULES_ACTED","The selected module has been activated!");
78 //define("_AM_SYSTEM_MODULES_UPDTED","The selected module has been updated!");
79 //define("_AM_SYSTEM_MODULES_SYSNO","System module cannot be deactivated.");
80 //define("_AM_SYSTEM_MODULES_STRTNO","This module is set as your default start page. Please change the start module to whatever suits your preferences.");
81 
82 //define("_AM_SYSTEM_MODULES_ORDER","Order");
83 //define("_AM_SYSTEM_MODULES_ORDER0","(0 = hide)");
84 //define("_AM_SYSTEM_MODULES_ACTIVE","Active");
85 //define("_AM_SYSTEM_MODULES_INACTIVE","Inactive");
86 //define("_AM_SYSTEM_MODULES_NOTINSTALLED","Not Installed");
87 //define("_AM_SYSTEM_MODULES_NOCHANGE","No Change");
88 //define("_AM_SYSTEM_MODULES_SUBMIT","Submit");
89 //define("_AM_SYSTEM_MODULES_CANCEL","Cancel");
90 //define("_AM_SYSTEM_MODULES_DBUPDATE",_AM_SYSTEM_DBUPDATED);
91 //define("_AM_SYSTEM_MODULES_LISTUPBLKS","The following blocks will be updated.<br />Select the blocks of which contents (template and options) may be overwritten.<br />");
92 //define("_AM_SYSTEM_MODULES_NEWBLKS","New Blocks");
93 //define("_AM_SYSTEM_MODULES_DEPREBLKS","Deprecated Blocks");
94 
95 // Logger
96 //define("_AM_SYSTEM_MODULES_TABLE_RESERVED","%s is a reserved table!");
97 //define("_AM_SYSTEM_MODULES_CREATE_TABLES","Creating tables...");
98 //define("_AM_SYSTEM_MODULES_TABLE_CREATED","Table %s created");
99 //define("_AM_SYSTEM_MODULES_INSERT_DATA","&nbsp;&nbsp; Data inserted to table %s");
100 //define("_AM_SYSTEM_MODULES_INSERT_DATA_FAILD","Could not insert %s to database.");
101 //define("_AM_SYSTEM_MODULES_INSERT_DATA_DONE","Module data inserted successfully.");
102 //define("_AM_SYSTEM_MODULES_MODULEID"," Module ID: %s");
103 //define("_AM_SYSTEM_MODULES_SQL_FOUND","SQL file found at %s ");
104 //define("_AM_SYSTEM_MODULES_SQL_NOT_FOUND","SQL file not found at %s");
105 //define("_AM_SYSTEM_MODULES_SQL_NOT_CREATE","ERROR: Could not create %s ");
106 //define("_AM_SYSTEM_MODULES_SQL_NOT_VALID","%s is not a valid SQL!");
107 //define("_AM_SYSTEM_MODULES_GROUP_ID"," Group ID: %s ");
108 //define("_AM_SYSTEM_MODULES_NAME"," Name: ");
109 //define("_AM_SYSTEM_MODULES_VALUE"," Value: ");
110 
111 // Templates
112 //define("_AM_SYSTEM_MODULES_TEMPLATES_ADD","Adding templates...");
113 //define("_AM_SYSTEM_MODULES_TEMPLATES_DELETE","Deleting templates...");
114 //define("_AM_SYSTEM_MODULES_TEMPLATES_UPDATE","Updating templates...");
115 //define("_AM_SYSTEM_MODULES_TEMPLATE_ID","Template ID: %s ");
116 //define("_AM_SYSTEM_MODULES_TEMPLATE_ADD_DATA","Template %s added to the database");
117 //define("_AM_SYSTEM_MODULES_TEMPLATE_ADD_ERROR","ERROR: Could not insert template %s to the database.");
118 //define("_AM_SYSTEM_MODULES_TEMPLATE_COMPILED","Template %s compiled ");
119 //define("_AM_SYSTEM_MODULES_TEMPLATE_COMPILED_FAILED","ERROR: Failed compiling template %s ");
120 //define("_AM_SYSTEM_MODULES_TEMPLATE_DELETE_DATA","Template %s deleted from the database. ");
121 //define("_AM_SYSTEM_MODULES_TEMPLATE_DELETE_DATA_FAILD","ERROR: Could not delete template %s from the database. ");
122 //define("_AM_SYSTEM_MODULES_TEMPLATE_INSERT_DATA","Template %s inserted to the database. ");
123 //define("_AM_SYSTEM_MODULES_TEMPLATE_RECOMPILE","Template %s recompiled");
124 //define("_AM_SYSTEM_MODULES_TEMPLATE_RECOMPILE_FAILD","ERROR: Template %s recompile failed");
125 //define("_AM_SYSTEM_MODULES_TEMPLATE_RECOMPILE_ERROR","ERROR: Could not recompile template %s ");
126 //define("_AM_SYSTEM_MODULES_TEMPLATE_DELETE_OLD_ERROR","ERROR: Could not delete old template %s. Aborting update of this file. ");
127 //define("_AM_SYSTEM_MODULES_TEMPLATE_UPDATE","Template %s updated. ");
128 //define("_AM_SYSTEM_MODULES_TEMPLATE_UPDATE_ERROR","ERROR: Could not update %s template. ");
129 
130 // Blocks
131 //define("_AM_SYSTEM_MODULES_BLOCKS_ADD","Adding blocks...");
132 //define("_AM_SYSTEM_MODULES_BLOCKS_DELETE","Deleting block...");
133 //define("_AM_SYSTEM_MODULES_BLOCKS_REBUILD","Rebuilding blocks...");
134 //define("_AM_SYSTEM_MODULES_BLOCK_ID"," Block ID: %s ");
135 //define("_AM_SYSTEM_MODULES_BLOCK_ACCESS","Added block access right");
136 //define("_AM_SYSTEM_MODULES_BLOCK_ACCESS_ERROR","ERROR: Could not add block access right");
137 //define("_AM_SYSTEM_MODULES_BLOCK_ADD","Block %s added ");
138 //define("_AM_SYSTEM_MODULES_BLOCK_ADD_ERROR","ERROR: Could not add block %s to the database! ");
139 //define("_AM_SYSTEM_MODULES_BLOCK_ADD_ERROR_DATABASE","Database error: %s ");
140 //define("_AM_SYSTEM_MODULES_BLOCK_CREATED","Block %s created ");
141 //define("_AM_SYSTEM_MODULES_BLOCK_DELETE","Block %s deleted. ");
142 //define("_AM_SYSTEM_MODULES_BLOCK_DELETE_DATA","Block template %s deleted from the database. ");
143 //define("_AM_SYSTEM_MODULES_BLOCK_DELETE_ERROR","ERROR: Could not delete block %s");
144 //define("_AM_SYSTEM_MODULES_BLOCK_DELETE_TEMPLATE_ERROR","ERROR: Could not delete block template %s from the database");
145 //define("_AM_SYSTEM_MODULES_BLOCK_DEPRECATED","Block template %s deprecated ");
146 //define("_AM_SYSTEM_MODULES_BLOCK_DEPRECATED_ERROR","ERROR: Could not remove deprecated block template. ");
147 //define("_AM_SYSTEM_MODULES_BLOCK_UPDATE","Block %s updated. ");
148 
149 // Configs
150 //define("_AM_SYSTEM_MODULES_CONFIG_ID","Config ID: %s");
151 //define("_AM_SYSTEM_MODULES_MODULE_DATA_ADD","Adding module config data...");
152 //define("_AM_SYSTEM_MODULES_MODULE_DATA_DELETE","Deleting module config options...");
153 //define("_AM_SYSTEM_MODULES_MODULE_DATA_UPDATE","Module data updated.");
154 //define("_AM_SYSTEM_MODULES_CONFIG_ADD"," Config option added");
155 //define("_AM_SYSTEM_MODULES_CONFIG_DATA_ADD"," Config %s added to the database");
156 //define("_AM_SYSTEM_MODULES_CONFIG_DATA_ADD_ERROR"," ERROR: Could not insert config %s to the database. ");
157 //define("_AM_SYSTEM_MODULES_CONFIG_DATA_DELETE","Config data deleted from the database. ");
158 //define("_AM_SYSTEM_MODULES_CONFIG_DATA_DELETE_ERROR","ERROR: Could not delete config data from the database");
159 
160 // Access
161 //define("_AM_SYSTEM_MODULES_GROUP_SETTINGS_ADD","Setting group rights...");
162 //define("_AM_SYSTEM_MODULES_GROUP_PERMS_DELETE_ERROR","ERROR: Could not delete group permissions ");
163 //define("_AM_SYSTEM_MODULES_GROUP_PERMS_DELETED","Group permissions deleted ");
164 //define("_AM_SYSTEM_MODULES_ACCESS_ADMIN_ADD","Added admin access right for Group ID %s");
165 //define("_AM_SYSTEM_MODULES_ACCESS_ADMIN_ADD_ERROR","ERROR: Could not add admin access right for Group ID %s");
166 //define("_AM_SYSTEM_MODULES_ACCESS_USER_ADD_ERROR","Added user access right for Group ID: %s");
167 //define("_AM_SYSTEM_MODULES_ACCESS_USER_ADD_ERROR_ERROR","ERROR: Could not add user access right for Group ID: %s");
168 
169 // execute module specific install script if any
170 //define("_AM_SYSTEM_MODULES_FAILED_EXECUTE","Failed to execute %s");
171 //define("_AM_SYSTEM_MODULES_FAILED_SUCESS","%s executed successfully.");
172 //define("_AM_SYSTEM_MODULES_DELETE_ERROR","ERROR: Could not delete %s");
173 //define("_AM_SYSTEM_MODULES_UPDATE_ERROR","ERROR: Could not update %s");
174 //define("_AM_SYSTEM_MODULES_DELETE_MOD_TABLES","Deleting module tables...");
175 //define("_AM_SYSTEM_MODULES_COMMENTS_DELETE","Deleting comments...");
176 //define("_AM_SYSTEM_MODULES_COMMENTS_DELETE_ERROR","ERROR: Could not delete comments");
177 //define("_AM_SYSTEM_MODULES_COMMENTS_DELETED","Comments deleted");
178 //define("_AM_SYSTEM_MODULES_NOTIFICATIONS_DELETE","Deleting notifications...");
179 //define("_AM_SYSTEM_MODULES_NOTIFICATIONS_DELETE_ERROR","ERROR: Could not delete notifications");
180 //define("_AM_SYSTEM_MODULES_NOTIFICATIONS_DELETED","Notifications deleted");
181 //define("_AM_SYSTEM_MODULES_TABLE_DROPPED","Table %s dropped!");
182 //define("_AM_SYSTEM_MODULES_TABLE_DROPPED_ERROR","ERROR: Could not drop table %s");
183 //define("_AM_SYSTEM_MODULES_TABLE_DROPPED_FAILDED", "ERROR: Not allowed to drop table %s !");
184 
185 // Tips
186 /*
187 define("_AM_SYSTEM_MODULES_TIPS",
188 "<ul>
189 <li>If you install a new module, remember to setup module preferences, blocks and users permissions!</li>
190 <li>For hide module into Main Menu block, set order to 0</li>
191 <li>Delete unused module files from your server to avoid security issues and keep your website safe.</li>
192 </ul>");
193 /*define("_AM_SYSTEM_MODULES_CONFIRM_TIPS",
194 "<ul>
195 <li>Check all modifications for validate.</li>
196 </ul>");*/
197 /*
198 define("_AM_SYSTEM_MODULES_MENU_TIPS",
199 "<ul><li>To change order of modules (which will be reflected in the Menu), you just need to drag and drop the modules to the desired placement.</li></ul>"
200 );*/