This project does not seem to handle request data directly as such no vulnerable execution paths were found.
include
, or for example
via PHP's auto-loading mechanism.
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | View Code Duplication | if (defined('FOR_XOOPS_LANG_CHECKER') || !defined('_MI_APCAL_APCALLOADED')) { |
|
0 ignored issues
–
show
|
|||
4 | define('_MI_APCAL_APCALLOADED', 1); |
||
5 | |||
6 | // Module Info |
||
7 | |||
8 | // The name of this module |
||
9 | define('_MI_APCAL_NAME', 'APCal'); |
||
10 | |||
11 | // A brief description of this module |
||
12 | define('_MI_APCAL_DESC', 'Calendar module with Scheduler'); |
||
13 | |||
14 | // Default Locale |
||
15 | define('_MI_APCAL_DEFAULTLOCALE', 'usa'); |
||
16 | |||
17 | // Names of blocks for this module (Not all module has blocks) |
||
18 | define('_MI_APCAL_BNAME_MINICAL', 'MiniCalendar'); |
||
19 | define('_MI_APCAL_BNAME_MINICAL_DESC', 'Display MiniCalendar block'); |
||
20 | define('_MI_APCAL_BNAME_MINICALEX', 'MiniCalendarEx'); |
||
21 | define('_MI_APCAL_BNAME_MINICALEX_DESC', 'Extensible minicalendar with plugin system'); |
||
22 | define('_MI_APCAL_BNAME_MONTHCAL', 'Monthly calendar'); |
||
23 | define('_MI_APCAL_BNAME_MONTHCAL_DESC', 'Display full size of Monthly calendar'); |
||
24 | define('_MI_APCAL_BNAME_TODAYS', "Today's events"); |
||
25 | define('_MI_APCAL_BNAME_TODAYS_DESC', 'Display events for today'); |
||
26 | define('_MI_APCAL_BNAME_THEDAYS', 'Events on %s'); |
||
27 | define('_MI_APCAL_BNAME_THEDAYS_DESC', 'Display events for the day indicated'); |
||
28 | define('_MI_APCAL_BNAME_COMING', 'Coming Events'); |
||
29 | define('_MI_APCAL_BNAME_COMING_DESC', 'Display Coming Events'); |
||
30 | define('_MI_APCAL_BNAME_AFTER', 'Events after %s'); |
||
31 | define('_MI_APCAL_BNAME_AFTER_DESC', 'Display events after the day indicated'); |
||
32 | define('_MI_APCAL_BNAME_NEW', 'Events newly posted'); |
||
33 | define('_MI_APCAL_BNAME_NEW_DESC', 'Display events ordered like that newer is upper'); |
||
34 | define('_MI_APCAL_BNAME_MAP', 'Map of events for this month'); |
||
35 | define('_MI_APCAL_BNAME_MAP_DESC', ''); |
||
36 | |||
37 | // Names of submenu |
||
38 | define('_MI_APCAL_SM_SUBMIT', 'Submit'); |
||
39 | |||
40 | //define("_MI_APCAL_ADMENU1",""); |
||
41 | |||
42 | // Title of config items |
||
43 | define('_MI_APCAL_USERS_AUTHORITY', 'Authorities of Users'); |
||
44 | define('_MI_APCAL_GUESTS_AUTHORITY', 'Authorities of Guests'); |
||
45 | define('_MI_APCAL_DEFAULT_VIEW', 'Default View in center'); |
||
46 | define('_MI_APCAL_MINICAL_TARGET', 'Target View from MiniCalendar'); |
||
47 | define('_MI_APCAL_COMING_NUMROWS', 'The number of events in Coming Events block'); |
||
48 | define('_MI_APCAL_SKINFOLDER', 'Name of skin folder'); |
||
49 | define('_MI_APCAL_LOCALE', 'Display Holidays in:'); |
||
50 | define('_MI_APCAL_SUNDAYCOLOR', 'Color of Sunday'); |
||
51 | define('_MI_APCAL_WEEKDAYCOLOR', 'Color of weekday'); |
||
52 | define('_MI_APCAL_SATURDAYCOLOR', 'Color of Saturday'); |
||
53 | define('_MI_APCAL_HOLIDAYCOLOR', 'Color of holiday'); |
||
54 | define('_MI_APCAL_TARGETDAYCOLOR', 'Color of targeted day'); |
||
55 | define('_MI_APCAL_SUNDAYBGCOLOR', 'Bgcolor of Sunday'); |
||
56 | define('_MI_APCAL_WEEKDAYBGCOLOR', 'Bgcolor of weekday'); |
||
57 | define('_MI_APCAL_SATURDAYBGCOLOR', 'Bgcolor of Saturday'); |
||
58 | define('_MI_APCAL_HOLIDAYBGCOLOR', 'Bgcolor of holiday'); |
||
59 | define('_MI_APCAL_TARGETDAYBGCOLOR', 'Bgcolor of targeted day'); |
||
60 | define('_MI_APCAL_CALHEADCOLOR', 'Color of header part of calendar'); |
||
61 | define('_MI_APCAL_CALHEADBGCOLOR', 'Bgcolor of header part of calendar'); |
||
62 | define('_MI_APCAL_CALFRAMECSS', 'Style for the frame of calendar'); |
||
63 | define('_MI_APCAL_CANOUTPUTICS', 'Permission of outputting ics files'); |
||
64 | define('_MI_APCAL_MAXRRULEEXTRACT', 'Upper limit of events extracted by Rrule.(COUNT)'); |
||
65 | define('_MI_APCAL_WEEKSTARTFROM', 'Beginning day of the week'); |
||
66 | define('_MI_APCAL_WEEKNUMBERING', 'Numbering rule for weeks'); |
||
67 | define('_MI_APCAL_DAYSTARTFROM', 'Borderline to separate days'); |
||
68 | define('_MI_APCAL_TIMEZONE_USING', 'Timezone of the server'); |
||
69 | define('_MI_APCAL_USE24HOUR', '24hours system (No means 12hours system)'); |
||
70 | define('_MI_APCAL_NAMEORUNAME', 'Poster name displayed'); |
||
71 | |||
72 | define('_MI_APCAL_GMLAT', '"Google Map" default latitude'); |
||
73 | define('_MI_APCAL_GMLNG', '"Google Map" default longitude'); |
||
74 | define('_MI_APCAL_GMZOOM', '"Google Map" default zoom level'); |
||
75 | define('_MI_APCAL_GMHEIGHT', '"Google Map" height (in pixels)'); |
||
76 | define('_MI_APCAL_USEURLREWRITE', 'Use URL rewriting'); |
||
77 | define('_MI_APCAL_WIDERWEEKEND', 'Wider columns in month view for:'); |
||
78 | define('_MI_APCAL_GETTHMCOLOR', 'Main css filename in your theme folder'); |
||
79 | define('_MI_APCAL_THMORDEFAULT', 'Colors from:'); |
||
80 | define('_MI_APCAL_ENABLECALMAP', 'Show google map in calendar view'); |
||
81 | define('_MI_APCAL_ENABLEEVENTMAP', 'Show google map in event view'); |
||
82 | define('_MI_APCAL_ENABLESHARING', 'Enable users to share your calendar on their website'); |
||
83 | define('_MI_APCAL_EVENTNAVENABLED', 'Enable navigation menu in event view'); |
||
84 | define('_MI_APCAL_DISPLAYCATTITLE', 'Display category tilte as module page title'); |
||
85 | define('_MI_APCAL_ENABLESOCIAL', 'Enable social networks links'); |
||
86 | define('_MI_APCAL_ENABLETELLAFRIEND', 'Enable "Tell a friend" email form'); |
||
87 | define('_MI_APCAL_ENABLETELLAFRIEND_DESC', ''); |
||
88 | define('_MI_APCAL_NBPICS', 'Maximum number of pictures allowed (0 if you don\'t want any)'); |
||
89 | define('_MI_APCAL_PICSWIDTH', 'Maximum width of pictures for display in event view'); |
||
90 | define('_MI_APCAL_PICSHEIGHT', 'Maximum height of pictures for display in event view'); |
||
91 | define('_MI_APCAL_SHOWPICMONTHLY', 'Show main picture in monthly view'); |
||
92 | define('_MI_APCAL_SHOWPICWEEKLY', 'Show main picture in weekly view'); |
||
93 | define('_MI_APCAL_SHOWPICDAILY', 'Show main picture in daily view'); |
||
94 | define('_MI_APCAL_SHOWPICLIST', 'Show main picture in list view'); |
||
95 | define('_MI_APCAL_EVENTBGCOLOR', ' Bgcolor of event\'s row'); |
||
96 | define('_MI_APCAL_EVENTCOLOR', 'Color of event\'s row'); |
||
97 | define('_MI_APCAL_ALLCATSCOLOR', 'Color for the default category'); |
||
98 | define('_MI_APCAL_DISPLAYTIMEZONE', 'Display Timezone when showing time'); |
||
99 | define('_MI_APCAL_ICSNEWCAL', 'Create a new calendar for ical exportation'); |
||
100 | define('_MI_APCAL_ENABLEREGISTRATION', 'Enable online registration'); |
||
101 | |||
102 | define('_MI_APCAL_USERS', 'Users'); |
||
103 | define('_MI_APCAL_COLORS', 'Colors'); |
||
104 | define('_MI_APCAL_SETTINGS', 'General Settings'); |
||
105 | define('_MI_APCAL_CALSETTINGS', 'Calendar Settings'); |
||
106 | define('_MI_APCAL_CALDISPLAY', 'Calendar Display'); |
||
107 | define('_MI_APCAL_EVENTS', 'Events'); |
||
108 | define('_MI_APCAL_PICTURES', 'Pictures'); |
||
109 | define('_MI_APCAL_MAP', 'Google Map'); |
||
110 | define('_MI_APCAL_COMMENTSNOT', 'Comments & Notifications'); |
||
111 | |||
112 | // Description of each config items |
||
113 | define('_MI_APCAL_EDITBYGUESTDSC', 'Permission of adding events by Guest'); |
||
114 | define('_MI_APCAL_LOCALEDESC', 'N.B.: Holidays are perpetual for USA, Canada, Canada-fr and France only. For all other countries, you must make it yourself.'); |
||
115 | define('_MI_APCAL_DESCNAMEORUNAME', "Select which 'name' is displayed"); |
||
116 | define('_MI_APCAL_DESCUSEURLREWRITE', "<b>In order to make it works, copy /modules/apcal/doc/.htaccess to /modules/apcal/.</b><br><br>N.B.: If you don't have the apache \"mod_rewrite\" installed on your server, it might not work. Please contact your system admin for details."); |
||
117 | define('_MI_APCAL_WIDERWEEKENDDESC', 'Hold down the "Ctrl" key on your keyboard while you click to select more than one day.'); |
||
118 | define('_MI_APCAL_THMORDEFAULTDESC', 'Theme: Give your main css filename in the next field. (Recommended)<br>Custom: Fill up the next 13 fields.<br>Default: Use the default colors.'); |
||
119 | |||
120 | // Options of each config items |
||
121 | define('_MI_APCAL_OPT_AUTH_NONE', 'cannot add'); |
||
122 | define('_MI_APCAL_OPT_AUTH_WAIT', 'can add but Events need approval'); |
||
123 | define('_MI_APCAL_OPT_AUTH_POST', 'can add Events without approval'); |
||
124 | define('_MI_APCAL_OPT_AUTH_BYGROUP', "Specified in Group's permissions"); |
||
125 | define('_MI_APCAL_OPT_MINI_PHPSELF', 'Current Page'); |
||
126 | define('_MI_APCAL_OPT_MINI_MONTHLY', 'Monthly Calendar'); |
||
127 | define('_MI_APCAL_OPT_MINI_WEEKLY', 'Weekly Calendar'); |
||
128 | define('_MI_APCAL_OPT_MINI_DAILY', 'Daily Calendar'); |
||
129 | define('_MI_APCAL_OPT_MINI_LIST', 'Event List'); |
||
130 | define('_MI_APCAL_OPT_CANOUTPUTICS', 'can output'); |
||
131 | define('_MI_APCAL_OPT_CANNOTOUTPUTICS', 'cannot output'); |
||
132 | define('_MI_APCAL_OPT_STARTFROMSUN', 'Sunday'); |
||
133 | define('_MI_APCAL_OPT_STARTFROMMON', 'Monday'); |
||
134 | define('_MI_APCAL_OPT_WEEKNOEACHMONTH', 'by each month'); |
||
135 | define('_MI_APCAL_OPT_WEEKNOWHOLEYEAR', 'by whole year'); |
||
136 | define('_MI_APCAL_OPT_USENAME', 'Real Name'); |
||
137 | define('_MI_APCAL_OPT_USEUNAME', 'Login Name'); |
||
138 | define('_MI_APCAL_OPT_TZ_USEXOOPS', 'value of XOOPS config'); |
||
139 | define('_MI_APCAL_OPT_TZ_USEWINTER', 'value told from the server as winter time (recommended)'); |
||
140 | define('_MI_APCAL_OPT_TZ_USESUMMER', 'value told from the server as summer time'); |
||
141 | define('_MI_APCAL_OPT_THM', 'Theme'); |
||
142 | define('_MI_APCAL_OPT_CUSTOM', 'Custom'); |
||
143 | define('_MI_APCAL_OPT_DEFAULT', 'Default'); |
||
144 | define('_MI_APCAL_OPT_NONE', 'None'); |
||
145 | define('_MI_APCAL_SUNDAY', 'Sunday'); |
||
146 | define('_MI_APCAL_MONDAY', 'Monday'); |
||
147 | define('_MI_APCAL_TUESDAY', 'Tuesday'); |
||
148 | define('_MI_APCAL_WEDNESDAY', 'Wednesday'); |
||
149 | define('_MI_APCAL_THURSDAY', 'Thursday'); |
||
150 | define('_MI_APCAL_FRIDAY', 'Friday'); |
||
151 | define('_MI_APCAL_SATURDAY', 'Saturday'); |
||
152 | |||
153 | // Admin Menus |
||
154 | define('_MI_APCAL_INDEX', 'Index'); |
||
155 | define('_MI_APCAL_ADMENU0', 'Admitting Events'); |
||
156 | define('_MI_APCAL_ADMENU1', 'Events Manager'); |
||
157 | define('_MI_APCAL_ADMENU_CAT', 'Categories Manager'); |
||
158 | define('_MI_APCAL_ADMENU_CAT2GROUP', "Category's Permissions"); |
||
159 | define('_MI_APCAL_ADMENU2', 'Global Permissions'); |
||
160 | define('_MI_APCAL_ADMENU_TM', 'Table Maintenance'); |
||
161 | define('_MI_APCAL_ADMENU_PLUGINS', 'Plugins Manager'); |
||
162 | define('_MI_APCAL_ADMENU_ICAL', 'Importing iCalendar'); |
||
163 | define('_MI_APCAL_ADMENU_MYTPLSADMIN', 'Templates'); |
||
164 | define('_MI_APCAL_ADMENU_MYBLOCKSADMIN', 'Blocks & Groups Admin'); |
||
165 | |||
166 | // Text for notifications |
||
167 | define('_MI_APCAL_GLOBAL_NOTIFY', 'Global'); |
||
168 | define('_MI_APCAL_GLOBAL_NOTIFYDSC', 'Global APCal notification options.'); |
||
169 | define('_MI_APCAL_CATEGORY_NOTIFY', 'Category'); |
||
170 | define('_MI_APCAL_CATEGORY_NOTIFYDSC', 'Notification options that apply to the current category.'); |
||
171 | define('_MI_APCAL_EVENT_NOTIFY', 'Event'); |
||
172 | define('_MI_APCAL_EVENT_NOTIFYDSC', 'Notification options that apply to the current event.'); |
||
173 | |||
174 | define('_MI_APCAL_GLOBAL_NEWEVENT_NOTIFY', 'New Event'); |
||
175 | define('_MI_APCAL_GLOBAL_NEWEVENT_NOTIFYCAP', 'Notify me when a new event is created.'); |
||
176 | define('_MI_APCAL_GLOBAL_NEWEVENT_NOTIFYDSC', 'Notify me with the description included when a new event is created.'); |
||
177 | define('_MI_APCAL_GLOBAL_NEWEVENT_NOTIFYSBJ', '[{X_SITENAME}] {X_MODULE} auto-notify : New event'); |
||
178 | |||
179 | define('_MI_APCAL_CATEGORY_NEWEVENT_NOTIFY', 'New Event in the Category'); |
||
180 | define('_MI_APCAL_CATEGORY_NEWEVENT_NOTIFYCAP', 'Notify me when a new event is created in the Category.'); |
||
181 | define('_MI_APCAL_CATEGORY_NEWEVENT_NOTIFYDSC', 'Notify me with the description included when a new event is created in the Category.'); |
||
182 | define('_MI_APCAL_CATEGORY_NEWEVENT_NOTIFYSBJ', '[{X_SITENAME}] {X_MODULE} auto-notify : New event in {CATEGORY_TITLE}'); |
||
183 | |||
184 | //Help |
||
185 | define('_MI_APCAL_DIRNAME', basename(dirname(dirname(__DIR__)))); |
||
186 | define('_MI_APCAL_HELP_HEADER', __DIR__.'/help/helpheader.html'); |
||
187 | define('_MI_APCAL_BACK_2_ADMIN', 'Back to Administration of '); |
||
188 | define('_MI_APCAL_OVERVIEW', 'Overview'); |
||
189 | |||
190 | //define('_MI_APCAL_HELP_DIR', __DIR__); |
||
191 | |||
192 | //help multi-page |
||
193 | define('_MI_APCAL_DISCLAIMER', 'Disclaimer'); |
||
194 | define('_MI_APCAL_LICENSE', 'License'); |
||
195 | define('_MI_APCAL_SUPPORT', 'Support'); |
||
196 | |||
197 | //Google Maps API Key |
||
198 | define('_MI_APCAL_GMAPS_API', 'Paste your Google Maps API key for http://www.yoursite.com/ here.'); |
||
199 | define('_MI_APCAL_GMAPS_API_DESC', 'Get keys from <a href="https://developers.google.com/maps/documentation/javascript/get-api-key/">https://developers.google.com/maps/documentation/javascript/get-api-key/</a> |
||
200 | <br>necessary APIs: Geocoding API, Maps JavaScript API, Places API'); |
||
201 | // version 2.23 |
||
202 | define('_MI_APCAL_REGONLINE', 'Online registration'); |
||
203 | define('_MI_APCAL_RO_EXTRA1', 'Extra Info 1, which should be entered during registration'); |
||
204 | define('_MI_APCAL_RO_EXTRA2', 'Extra Info 2'); |
||
205 | define('_MI_APCAL_RO_EXTRA3', 'Extra Info 3'); |
||
206 | define('_MI_APCAL_RO_EXTRA4', 'Extra Info 4'); |
||
207 | define('_MI_APCAL_RO_EXTRA5', 'Extra Info 5'); |
||
208 | define('_MI_APCAL_RO_EXTRA1_OBL', 'Extra Info 1 is obligatory'); |
||
209 | define('_MI_APCAL_RO_EXTRA2_OBL', 'Extra Info 2 is obligatory'); |
||
210 | define('_MI_APCAL_RO_EXTRA3_OBL', 'Extra Info 3 is obligatory'); |
||
211 | define('_MI_APCAL_RO_EXTRA4_OBL', 'Extra Info 4 is obligatory'); |
||
212 | define('_MI_APCAL_RO_EXTRA5_OBL', 'Extra Info 5 is obligatory'); |
||
213 | define('_MI_APCAL_ENABLE_PRINT', 'Enable print of events'); |
||
214 | define('_MI_APCAL_RO_SETTINGS', 'Settings for online registration'); |
||
215 | define('_MI_APCAL_RO_ENABLE', 'Enable online registration'); |
||
216 | define('_MI_APCAL_RO_MAIL_SENDER','Sender for confirmation mail'); |
||
217 | define('_MI_APCAL_RO_MAIL_SENDERNAME','Sendername for confirmation mail'); |
||
218 | define('_MI_APCAL_RO_MAIL_SIGNATURE','Signature for confirmation mail'); |
||
219 | define('_MI_APCAL_RO_SHOW_TIP','Show tip for online registration below the calendar'); |
||
220 | |||
221 | define('_MI_APCAL_ROC_SETTINGS', 'Settings for convert contact information'); |
||
222 | define('_MI_APCAL_ROC_ENABLE', 'Convert the contact name in field contact into a link to the member account, if member name and contact name is the equal.'); |
||
223 | |||
224 | } |
||
225 |
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.