@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -require dirname(dirname(dirname(__DIR__))) . '/mainfile.php'; |
|
3 | +require dirname(dirname(dirname(__DIR__))).'/mainfile.php'; |
|
4 | 4 | defined('XOOPS_TRUST_PATH') || exit('set XOOPS_TRUST_PATH in mainfile.php'); |
5 | 5 | |
6 | 6 | $mydirname = basename(dirname(__DIR__)); |
7 | 7 | $mydirpath = dirname(__DIR__); |
8 | -require $mydirpath . '/mytrustdirname.php'; // set $mytrustdirname |
|
8 | +require $mydirpath.'/mytrustdirname.php'; // set $mytrustdirname |
|
9 | 9 | |
10 | 10 | //require XOOPS_TRUST_PATH.'/modules/'.$mytrustdirname.'/admin.php' ; |
11 | -require XOOPS_TRUST_PATH . '/modules/' . $mytrustdirname . '/admin/center.php'; |
|
11 | +require XOOPS_TRUST_PATH.'/modules/'.$mytrustdirname.'/admin/center.php'; |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -require dirname(dirname(dirname(__DIR__))) . '/mainfile.php'; |
|
3 | +require dirname(dirname(dirname(__DIR__))).'/mainfile.php'; |
|
4 | 4 | defined('XOOPS_TRUST_PATH') || exit('set XOOPS_TRUST_PATH in mainfile.php'); |
5 | 5 | |
6 | 6 | $mydirname = basename(dirname(__DIR__)); |
7 | 7 | $mydirpath = dirname(__DIR__); |
8 | -require $mydirpath . '/mytrustdirname.php'; // set $mytrustdirname |
|
8 | +require $mydirpath.'/mytrustdirname.php'; // set $mytrustdirname |
|
9 | 9 | |
10 | -require XOOPS_TRUST_PATH . '/modules/' . $mytrustdirname . '/admin/prefix_manager.php'; |
|
10 | +require XOOPS_TRUST_PATH.'/modules/'.$mytrustdirname.'/admin/prefix_manager.php'; |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -require dirname(dirname(dirname(__DIR__))) . '/mainfile.php'; |
|
3 | +require dirname(dirname(dirname(__DIR__))).'/mainfile.php'; |
|
4 | 4 | defined('XOOPS_TRUST_PATH') || exit('set XOOPS_TRUST_PATH in mainfile.php'); |
5 | 5 | |
6 | 6 | $mydirname = basename(dirname(__DIR__)); |
7 | 7 | $mydirpath = dirname(__DIR__); |
8 | -require $mydirpath . '/mytrustdirname.php'; // set $mytrustdirname |
|
8 | +require $mydirpath.'/mytrustdirname.php'; // set $mytrustdirname |
|
9 | 9 | |
10 | -require XOOPS_TRUST_PATH . '/modules/' . $mytrustdirname . '/admin/advisory.php'; |
|
10 | +require XOOPS_TRUST_PATH.'/modules/'.$mytrustdirname.'/admin/advisory.php'; |
@@ -4,6 +4,6 @@ |
||
4 | 4 | |
5 | 5 | $mydirname = basename(__DIR__); |
6 | 6 | $mydirpath = __DIR__; |
7 | -require $mydirpath . '/mytrustdirname.php'; // set $mytrustdirname |
|
7 | +require $mydirpath.'/mytrustdirname.php'; // set $mytrustdirname |
|
8 | 8 | |
9 | -require XOOPS_TRUST_PATH . '/modules/' . $mytrustdirname . '/onupdate.php'; |
|
9 | +require XOOPS_TRUST_PATH.'/modules/'.$mytrustdirname.'/onupdate.php'; |
@@ -4,7 +4,7 @@ |
||
4 | 4 | |
5 | 5 | $mytrustdirname = 'protector'; |
6 | 6 | |
7 | -include_once XOOPS_TRUST_PATH . '/modules/' . $mytrustdirname . '/class/registry.php'; |
|
7 | +include_once XOOPS_TRUST_PATH.'/modules/'.$mytrustdirname.'/class/registry.php'; |
|
8 | 8 | $registry = ProtectorRegistry::getInstance(); |
9 | 9 | $registry->setEntry('mydirname', basename(__DIR__)); |
10 | 10 | $registry->setEntry('mydirpath', __DIR__); |
@@ -4,6 +4,6 @@ |
||
4 | 4 | |
5 | 5 | $mydirname = basename(__DIR__); |
6 | 6 | $mydirpath = __DIR__; |
7 | -require $mydirpath . '/mytrustdirname.php'; // set $mytrustdirname |
|
7 | +require $mydirpath.'/mytrustdirname.php'; // set $mytrustdirname |
|
8 | 8 | |
9 | -require XOOPS_TRUST_PATH . '/modules/' . $mytrustdirname . '/xoops_version.php'; |
|
9 | +require XOOPS_TRUST_PATH.'/modules/'.$mytrustdirname.'/xoops_version.php'; |
@@ -43,167 +43,167 @@ |
||
43 | 43 | } |
44 | 44 | |
45 | 45 | switch ($op) { |
46 | - case 'cancel': |
|
47 | - // FIXME: does this always go back to correct location?? |
|
48 | - redirect_header('index.php'); |
|
49 | - break; |
|
46 | + case 'cancel': |
|
47 | + // FIXME: does this always go back to correct location?? |
|
48 | + redirect_header('index.php'); |
|
49 | + break; |
|
50 | 50 | |
51 | - case 'list': |
|
52 | - // Do we allow other users to see our notifications? Nope, but maybe |
|
53 | - // see who else is monitoring a particular item (or at least how many)? |
|
54 | - // Well, maybe admin can see all... |
|
55 | - // TODO: need to span over multiple pages...??? |
|
56 | - // Get an array of all notifications for the selected user |
|
57 | - $criteria = new Criteria('not_uid', $uid); |
|
58 | - $criteria->setSort('not_modid,not_category,not_itemid'); |
|
59 | - /* @var $notification_handler XoopsNotificationHandler */ |
|
60 | - $notification_handler = xoops_getHandler('notification'); |
|
61 | - $notifications = $notification_handler->getObjects($criteria); |
|
51 | + case 'list': |
|
52 | + // Do we allow other users to see our notifications? Nope, but maybe |
|
53 | + // see who else is monitoring a particular item (or at least how many)? |
|
54 | + // Well, maybe admin can see all... |
|
55 | + // TODO: need to span over multiple pages...??? |
|
56 | + // Get an array of all notifications for the selected user |
|
57 | + $criteria = new Criteria('not_uid', $uid); |
|
58 | + $criteria->setSort('not_modid,not_category,not_itemid'); |
|
59 | + /* @var $notification_handler XoopsNotificationHandler */ |
|
60 | + $notification_handler = xoops_getHandler('notification'); |
|
61 | + $notifications = $notification_handler->getObjects($criteria); |
|
62 | 62 | |
63 | - // Generate the info for the template |
|
64 | - /* @var $module_handler XoopsModuleHandler */ |
|
65 | - $module_handler = xoops_getHandler('module'); |
|
66 | - include_once $GLOBALS['xoops']->path('include/notification_functions.php'); |
|
67 | - $modules = array(); |
|
68 | - $prev_modid = -1; |
|
69 | - $prev_category = -1; |
|
70 | - $prev_item = -1; |
|
71 | - foreach ($notifications as $n) { |
|
72 | - $modid = $n->getVar('not_modid'); |
|
73 | - if ($modid != $prev_modid) { |
|
74 | - $prev_modid = $modid; |
|
75 | - $prev_category = -1; |
|
76 | - $prev_item = -1; |
|
77 | - $module = $module_handler->get($modid); |
|
78 | - $modules[$modid] = array( |
|
79 | - 'id' => $modid, |
|
80 | - 'name' => $module->getVar('name'), |
|
81 | - 'categories' => array()); |
|
82 | - // TODO: note, we could auto-generate the url from the id |
|
83 | - // and category info... (except when category has multiple |
|
84 | - // subscription scripts defined...) |
|
85 | - // OR, add one more option to xoops_version 'view_from' |
|
86 | - // which tells us where to redirect... BUT, e.g. forums, it |
|
87 | - // still wouldn't give us all the required info... e.g. the |
|
88 | - // topic ID doesn't give us the ID of the forum which is |
|
89 | - // a required argument... |
|
90 | - // Get the lookup function, if exists |
|
91 | - $not_config = $module->getInfo('notification'); |
|
92 | - $lookup_func = ''; |
|
93 | - if (!empty($not_config['lookup_file'])) { |
|
94 | - $lookup_file = $GLOBALS['xoops']->path('modules/' . $module->getVar('dirname') . '/' . $not_config['lookup_file']); |
|
95 | - if (file_exists($lookup_file)) { |
|
96 | - include_once $lookup_file; |
|
97 | - if (!empty($not_config['lookup_func']) && function_exists($not_config['lookup_func'])) { |
|
98 | - $lookup_func = $not_config['lookup_func']; |
|
63 | + // Generate the info for the template |
|
64 | + /* @var $module_handler XoopsModuleHandler */ |
|
65 | + $module_handler = xoops_getHandler('module'); |
|
66 | + include_once $GLOBALS['xoops']->path('include/notification_functions.php'); |
|
67 | + $modules = array(); |
|
68 | + $prev_modid = -1; |
|
69 | + $prev_category = -1; |
|
70 | + $prev_item = -1; |
|
71 | + foreach ($notifications as $n) { |
|
72 | + $modid = $n->getVar('not_modid'); |
|
73 | + if ($modid != $prev_modid) { |
|
74 | + $prev_modid = $modid; |
|
75 | + $prev_category = -1; |
|
76 | + $prev_item = -1; |
|
77 | + $module = $module_handler->get($modid); |
|
78 | + $modules[$modid] = array( |
|
79 | + 'id' => $modid, |
|
80 | + 'name' => $module->getVar('name'), |
|
81 | + 'categories' => array()); |
|
82 | + // TODO: note, we could auto-generate the url from the id |
|
83 | + // and category info... (except when category has multiple |
|
84 | + // subscription scripts defined...) |
|
85 | + // OR, add one more option to xoops_version 'view_from' |
|
86 | + // which tells us where to redirect... BUT, e.g. forums, it |
|
87 | + // still wouldn't give us all the required info... e.g. the |
|
88 | + // topic ID doesn't give us the ID of the forum which is |
|
89 | + // a required argument... |
|
90 | + // Get the lookup function, if exists |
|
91 | + $not_config = $module->getInfo('notification'); |
|
92 | + $lookup_func = ''; |
|
93 | + if (!empty($not_config['lookup_file'])) { |
|
94 | + $lookup_file = $GLOBALS['xoops']->path('modules/' . $module->getVar('dirname') . '/' . $not_config['lookup_file']); |
|
95 | + if (file_exists($lookup_file)) { |
|
96 | + include_once $lookup_file; |
|
97 | + if (!empty($not_config['lookup_func']) && function_exists($not_config['lookup_func'])) { |
|
98 | + $lookup_func = $not_config['lookup_func']; |
|
99 | + } |
|
99 | 100 | } |
100 | 101 | } |
101 | 102 | } |
102 | - } |
|
103 | - $category = $n->getVar('not_category'); |
|
104 | - if ($category != $prev_category) { |
|
105 | - $prev_category = $category; |
|
106 | - $prev_item = -1; |
|
107 | - $category_info = ¬ificationCategoryInfo($category, $modid); |
|
108 | - $modules[$modid]['categories'][$category] = array( |
|
109 | - 'name' => $category, |
|
110 | - 'title' => $category_info['title'], |
|
111 | - 'items' => array()); |
|
112 | - } |
|
113 | - $item = $n->getVar('not_itemid'); |
|
114 | - if ($item != $prev_item) { |
|
115 | - $prev_item = $item; |
|
116 | - if (!empty($lookup_func)) { |
|
117 | - $item_info = $lookup_func($category, $item); |
|
118 | - } else { |
|
119 | - $item_info = array( |
|
120 | - 'name' => '[' . _NOT_NAMENOTAVAILABLE . ']', |
|
121 | - 'url' => ''); |
|
103 | + $category = $n->getVar('not_category'); |
|
104 | + if ($category != $prev_category) { |
|
105 | + $prev_category = $category; |
|
106 | + $prev_item = -1; |
|
107 | + $category_info = ¬ificationCategoryInfo($category, $modid); |
|
108 | + $modules[$modid]['categories'][$category] = array( |
|
109 | + 'name' => $category, |
|
110 | + 'title' => $category_info['title'], |
|
111 | + 'items' => array()); |
|
112 | + } |
|
113 | + $item = $n->getVar('not_itemid'); |
|
114 | + if ($item != $prev_item) { |
|
115 | + $prev_item = $item; |
|
116 | + if (!empty($lookup_func)) { |
|
117 | + $item_info = $lookup_func($category, $item); |
|
118 | + } else { |
|
119 | + $item_info = array( |
|
120 | + 'name' => '[' . _NOT_NAMENOTAVAILABLE . ']', |
|
121 | + 'url' => ''); |
|
122 | + } |
|
123 | + $modules[$modid]['categories'][$category]['items'][$item] = array( |
|
124 | + 'id' => $item, |
|
125 | + 'name' => $item_info['name'], |
|
126 | + 'url' => $item_info['url'], |
|
127 | + 'notifications' => array()); |
|
122 | 128 | } |
123 | - $modules[$modid]['categories'][$category]['items'][$item] = array( |
|
124 | - 'id' => $item, |
|
125 | - 'name' => $item_info['name'], |
|
126 | - 'url' => $item_info['url'], |
|
127 | - 'notifications' => array()); |
|
129 | + $event_info =& notificationEventInfo($category, $n->getVar('not_event'), $n->getVar('not_modid')); |
|
130 | + $modules[$modid]['categories'][$category]['items'][$item]['notifications'][] = array( |
|
131 | + 'id' => $n->getVar('not_id'), |
|
132 | + 'module_id' => $n->getVar('not_modid'), |
|
133 | + 'category' => $n->getVar('not_category'), |
|
134 | + 'category_title' => $category_info['title'], |
|
135 | + 'item_id' => $n->getVar('not_itemid'), |
|
136 | + 'event' => $n->getVar('not_event'), |
|
137 | + 'event_title' => $event_info['title'], |
|
138 | + 'user_id' => $n->getVar('not_uid')); |
|
128 | 139 | } |
129 | - $event_info =& notificationEventInfo($category, $n->getVar('not_event'), $n->getVar('not_modid')); |
|
130 | - $modules[$modid]['categories'][$category]['items'][$item]['notifications'][] = array( |
|
131 | - 'id' => $n->getVar('not_id'), |
|
132 | - 'module_id' => $n->getVar('not_modid'), |
|
133 | - 'category' => $n->getVar('not_category'), |
|
134 | - 'category_title' => $category_info['title'], |
|
135 | - 'item_id' => $n->getVar('not_itemid'), |
|
136 | - 'event' => $n->getVar('not_event'), |
|
137 | - 'event_title' => $event_info['title'], |
|
138 | - 'user_id' => $n->getVar('not_uid')); |
|
139 | - } |
|
140 | - $GLOBALS['xoopsOption']['template_main'] = 'system_notification_list.tpl'; |
|
141 | - include $GLOBALS['xoops']->path('header.php'); |
|
142 | - $xoopsTpl->assign('modules', $modules); |
|
143 | - $user_info = array('uid' => $xoopsUser->getVar('uid')); |
|
144 | - $xoopsTpl->assign('user', $user_info); |
|
145 | - $xoopsTpl->assign('lang_cancel', _CANCEL); |
|
146 | - $xoopsTpl->assign('lang_clear', _NOT_CLEAR); |
|
147 | - $xoopsTpl->assign('lang_delete', _DELETE); |
|
148 | - $xoopsTpl->assign('lang_checkall', _NOT_CHECKALL); |
|
149 | - $xoopsTpl->assign('lang_module', _NOT_MODULE); |
|
150 | - $xoopsTpl->assign('lang_event', _NOT_EVENT); |
|
151 | - $xoopsTpl->assign('lang_events', _NOT_EVENTS); |
|
152 | - $xoopsTpl->assign('lang_category', _NOT_CATEGORY); |
|
153 | - $xoopsTpl->assign('lang_itemid', _NOT_ITEMID); |
|
154 | - $xoopsTpl->assign('lang_itemname', _NOT_ITEMNAME); |
|
155 | - $xoopsTpl->assign('lang_activenotifications', _NOT_ACTIVENOTIFICATIONS); |
|
156 | - $xoopsTpl->assign('notification_token', $GLOBALS['xoopsSecurity']->createToken()); |
|
157 | - include $GLOBALS['xoops']->path('footer.php'); |
|
140 | + $GLOBALS['xoopsOption']['template_main'] = 'system_notification_list.tpl'; |
|
141 | + include $GLOBALS['xoops']->path('header.php'); |
|
142 | + $xoopsTpl->assign('modules', $modules); |
|
143 | + $user_info = array('uid' => $xoopsUser->getVar('uid')); |
|
144 | + $xoopsTpl->assign('user', $user_info); |
|
145 | + $xoopsTpl->assign('lang_cancel', _CANCEL); |
|
146 | + $xoopsTpl->assign('lang_clear', _NOT_CLEAR); |
|
147 | + $xoopsTpl->assign('lang_delete', _DELETE); |
|
148 | + $xoopsTpl->assign('lang_checkall', _NOT_CHECKALL); |
|
149 | + $xoopsTpl->assign('lang_module', _NOT_MODULE); |
|
150 | + $xoopsTpl->assign('lang_event', _NOT_EVENT); |
|
151 | + $xoopsTpl->assign('lang_events', _NOT_EVENTS); |
|
152 | + $xoopsTpl->assign('lang_category', _NOT_CATEGORY); |
|
153 | + $xoopsTpl->assign('lang_itemid', _NOT_ITEMID); |
|
154 | + $xoopsTpl->assign('lang_itemname', _NOT_ITEMNAME); |
|
155 | + $xoopsTpl->assign('lang_activenotifications', _NOT_ACTIVENOTIFICATIONS); |
|
156 | + $xoopsTpl->assign('notification_token', $GLOBALS['xoopsSecurity']->createToken()); |
|
157 | + include $GLOBALS['xoops']->path('footer.php'); |
|
158 | 158 | |
159 | - // TODO: another display mode... instead of one notification per line, |
|
160 | - // show one line per item_id, with checkboxes for the available options... |
|
161 | - // and an update button to change them... And still have the delete box |
|
162 | - // to delete all notification for that item |
|
163 | - // How about one line per ID, showing category, name, id, and list of |
|
164 | - // events... |
|
165 | - // TODO: it would also be useful to provide links to other available |
|
166 | - // options so we can say switch from new_message to 'bookmark' if we |
|
167 | - // are receiving too many emails. OR, if we click on 'change options' |
|
168 | - // we get a form for that page... |
|
169 | - // TODO: option to specify one-time??? or other modes?? |
|
170 | - break; |
|
159 | + // TODO: another display mode... instead of one notification per line, |
|
160 | + // show one line per item_id, with checkboxes for the available options... |
|
161 | + // and an update button to change them... And still have the delete box |
|
162 | + // to delete all notification for that item |
|
163 | + // How about one line per ID, showing category, name, id, and list of |
|
164 | + // events... |
|
165 | + // TODO: it would also be useful to provide links to other available |
|
166 | + // options so we can say switch from new_message to 'bookmark' if we |
|
167 | + // are receiving too many emails. OR, if we click on 'change options' |
|
168 | + // we get a form for that page... |
|
169 | + // TODO: option to specify one-time??? or other modes?? |
|
170 | + break; |
|
171 | 171 | |
172 | - case 'delete_ok': |
|
173 | - if (empty($_POST['del_not'])) { |
|
174 | - redirect_header('notifications.php', 2, _NOT_NOTHINGTODELETE); |
|
175 | - } |
|
176 | - include $GLOBALS['xoops']->path('header.php'); |
|
177 | - $hidden_vars = array( |
|
178 | - 'uid' => $uid, |
|
179 | - 'delete_ok' => 1, |
|
180 | - 'del_not' => $_POST['del_not']); |
|
181 | - echo '<h4>' . _NOT_DELETINGNOTIFICATIONS . '</h4>'; |
|
182 | - xoops_confirm($hidden_vars, xoops_getenv('PHP_SELF'), _NOT_RUSUREDEL); |
|
183 | - include $GLOBALS['xoops']->path('footer.php'); |
|
184 | - // FIXME: There is a problem here... in xoops_confirm it treats arrays as |
|
185 | - // optional radio arguments on the confirmation page... change this or |
|
186 | - // write new function... |
|
187 | - break; |
|
172 | + case 'delete_ok': |
|
173 | + if (empty($_POST['del_not'])) { |
|
174 | + redirect_header('notifications.php', 2, _NOT_NOTHINGTODELETE); |
|
175 | + } |
|
176 | + include $GLOBALS['xoops']->path('header.php'); |
|
177 | + $hidden_vars = array( |
|
178 | + 'uid' => $uid, |
|
179 | + 'delete_ok' => 1, |
|
180 | + 'del_not' => $_POST['del_not']); |
|
181 | + echo '<h4>' . _NOT_DELETINGNOTIFICATIONS . '</h4>'; |
|
182 | + xoops_confirm($hidden_vars, xoops_getenv('PHP_SELF'), _NOT_RUSUREDEL); |
|
183 | + include $GLOBALS['xoops']->path('footer.php'); |
|
184 | + // FIXME: There is a problem here... in xoops_confirm it treats arrays as |
|
185 | + // optional radio arguments on the confirmation page... change this or |
|
186 | + // write new function... |
|
187 | + break; |
|
188 | 188 | |
189 | - case 'delete': |
|
190 | - if (!$GLOBALS['xoopsSecurity']->check()) { |
|
191 | - redirect_header('notifications.php', 2, implode('<br>', $GLOBALS['xoopsSecurity']->getErrors())); |
|
192 | - } |
|
193 | - if (empty($_POST['del_not'])) { |
|
194 | - redirect_header('notifications.php', 2, _NOT_NOTHINGTODELETE); |
|
195 | - } |
|
196 | - $notification_handler = xoops_getHandler('notification'); |
|
197 | - foreach ($_POST['del_not'] as $n_array) { |
|
198 | - foreach ($n_array as $n) { |
|
199 | - $notification = $notification_handler->get($n); |
|
200 | - if ($notification->getVar('not_uid') == $uid) { |
|
201 | - $notification_handler->delete($notification); |
|
189 | + case 'delete': |
|
190 | + if (!$GLOBALS['xoopsSecurity']->check()) { |
|
191 | + redirect_header('notifications.php', 2, implode('<br>', $GLOBALS['xoopsSecurity']->getErrors())); |
|
192 | + } |
|
193 | + if (empty($_POST['del_not'])) { |
|
194 | + redirect_header('notifications.php', 2, _NOT_NOTHINGTODELETE); |
|
195 | + } |
|
196 | + $notification_handler = xoops_getHandler('notification'); |
|
197 | + foreach ($_POST['del_not'] as $n_array) { |
|
198 | + foreach ($n_array as $n) { |
|
199 | + $notification = $notification_handler->get($n); |
|
200 | + if ($notification->getVar('not_uid') == $uid) { |
|
201 | + $notification_handler->delete($notification); |
|
202 | + } |
|
202 | 203 | } |
203 | 204 | } |
204 | - } |
|
205 | - redirect_header('notifications.php', 2, _NOT_DELETESUCCESS); |
|
206 | - break; |
|
207 | - default: |
|
208 | - break; |
|
205 | + redirect_header('notifications.php', 2, _NOT_DELETESUCCESS); |
|
206 | + break; |
|
207 | + default: |
|
208 | + break; |
|
209 | 209 | } |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | */ |
17 | 17 | |
18 | 18 | $xoopsOption['pagetype'] = 'notification'; |
19 | -include __DIR__ . '/mainfile.php'; |
|
19 | +include __DIR__.'/mainfile.php'; |
|
20 | 20 | |
21 | 21 | if (!is_object($xoopsUser)) { |
22 | 22 | redirect_header('index.php', 3, _NOT_NOACCESS); |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | $not_config = $module->getInfo('notification'); |
92 | 92 | $lookup_func = ''; |
93 | 93 | if (!empty($not_config['lookup_file'])) { |
94 | - $lookup_file = $GLOBALS['xoops']->path('modules/' . $module->getVar('dirname') . '/' . $not_config['lookup_file']); |
|
94 | + $lookup_file = $GLOBALS['xoops']->path('modules/'.$module->getVar('dirname').'/'.$not_config['lookup_file']); |
|
95 | 95 | if (file_exists($lookup_file)) { |
96 | 96 | include_once $lookup_file; |
97 | 97 | if (!empty($not_config['lookup_func']) && function_exists($not_config['lookup_func'])) { |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | $item_info = $lookup_func($category, $item); |
118 | 118 | } else { |
119 | 119 | $item_info = array( |
120 | - 'name' => '[' . _NOT_NAMENOTAVAILABLE . ']', |
|
120 | + 'name' => '['._NOT_NAMENOTAVAILABLE.']', |
|
121 | 121 | 'url' => ''); |
122 | 122 | } |
123 | 123 | $modules[$modid]['categories'][$category]['items'][$item] = array( |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | 'url' => $item_info['url'], |
127 | 127 | 'notifications' => array()); |
128 | 128 | } |
129 | - $event_info =& notificationEventInfo($category, $n->getVar('not_event'), $n->getVar('not_modid')); |
|
129 | + $event_info = & notificationEventInfo($category, $n->getVar('not_event'), $n->getVar('not_modid')); |
|
130 | 130 | $modules[$modid]['categories'][$category]['items'][$item]['notifications'][] = array( |
131 | 131 | 'id' => $n->getVar('not_id'), |
132 | 132 | 'module_id' => $n->getVar('not_modid'), |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | 'uid' => $uid, |
179 | 179 | 'delete_ok' => 1, |
180 | 180 | 'del_not' => $_POST['del_not']); |
181 | - echo '<h4>' . _NOT_DELETINGNOTIFICATIONS . '</h4>'; |
|
181 | + echo '<h4>'._NOT_DELETINGNOTIFICATIONS.'</h4>'; |
|
182 | 182 | xoops_confirm($hidden_vars, xoops_getenv('PHP_SELF'), _NOT_RUSUREDEL); |
183 | 183 | include $GLOBALS['xoops']->path('footer.php'); |
184 | 184 | // FIXME: There is a problem here... in xoops_confirm it treats arrays as |
@@ -9,5 +9,5 @@ |
||
9 | 9 | define('_AUTH_LDAP_SERVER_NOT_FOUND', "Can't connect to the server"); |
10 | 10 | define('_AUTH_LDAP_USER_NOT_FOUND', 'Member %s not found in the directory server (%s) in %s'); |
11 | 11 | define('_AUTH_LDAP_CANT_READ_ENTRY', "Can't read entry %s"); |
12 | -define('_AUTH_LDAP_XOOPS_USER_NOTFOUND', 'Sorry, no corresponding user information has been found in the XOOPS database for connection: %s <br>' . 'Please verify your user data or set on the automatic provisioning'); |
|
12 | +define('_AUTH_LDAP_XOOPS_USER_NOTFOUND', 'Sorry, no corresponding user information has been found in the XOOPS database for connection: %s <br>'.'Please verify your user data or set on the automatic provisioning'); |
|
13 | 13 | define('_AUTH_LDAP_START_TLS_FAILED', 'Failed to open a TLS connection'); |
@@ -8,256 +8,256 @@ |
||
8 | 8 | * |
9 | 9 | */ |
10 | 10 | |
11 | -define('_COUNTRY_AD','Andorra'); |
|
12 | -define('_COUNTRY_AE','United Arab Emirates'); |
|
13 | -define('_COUNTRY_AF','Afghanistan'); |
|
14 | -define('_COUNTRY_AG','Antigua and Barbuda'); |
|
15 | -define('_COUNTRY_AI','Anguilla'); |
|
16 | -define('_COUNTRY_AL','Albania'); |
|
17 | -define('_COUNTRY_AM','Armenia'); |
|
18 | -define('_COUNTRY_AN','Netherlands Antilles'); |
|
19 | -define('_COUNTRY_AO','Angola'); |
|
20 | -define('_COUNTRY_AQ','Antarctica'); |
|
21 | -define('_COUNTRY_AR','Argentina'); |
|
22 | -define('_COUNTRY_AS','American Samoa'); |
|
23 | -define('_COUNTRY_AT','Austria'); |
|
24 | -define('_COUNTRY_AU','Australia'); |
|
25 | -define('_COUNTRY_AW','Aruba'); |
|
26 | -define('_COUNTRY_AX','Åland Islands'); |
|
27 | -define('_COUNTRY_AZ','Azerbaijan'); |
|
28 | -define('_COUNTRY_BA','Bosnia and Herzegovina'); |
|
29 | -define('_COUNTRY_BB','Barbados'); |
|
30 | -define('_COUNTRY_BD','Bangladesh'); |
|
31 | -define('_COUNTRY_BE','Belgium'); |
|
32 | -define('_COUNTRY_BF','Burkina Faso'); |
|
33 | -define('_COUNTRY_BG','Bulgaria'); |
|
34 | -define('_COUNTRY_BH','Bahrain'); |
|
35 | -define('_COUNTRY_BI','Burundi'); |
|
36 | -define('_COUNTRY_BJ','Benin'); |
|
37 | -define('_COUNTRY_BL','Saint Barthélemy'); |
|
38 | -define('_COUNTRY_BM','Bermuda'); |
|
39 | -define('_COUNTRY_BN','Brunei Darussalam'); |
|
40 | -define('_COUNTRY_BO','Bolivia'); |
|
41 | -define('_COUNTRY_BR','Brazil'); |
|
42 | -define('_COUNTRY_BS','Bahamas'); |
|
43 | -define('_COUNTRY_BT','Bhutan'); |
|
44 | -define('_COUNTRY_BV','Bouvet Island'); |
|
45 | -define('_COUNTRY_BW','Botswana'); |
|
46 | -define('_COUNTRY_BY','Belarus'); |
|
47 | -define('_COUNTRY_BZ','Belize'); |
|
48 | -define('_COUNTRY_CA','Canada'); |
|
49 | -define('_COUNTRY_CC','Cocos (Keeling) Islands'); |
|
50 | -define('_COUNTRY_CD','Congo (Dem. Rep.)'); |
|
51 | -define('_COUNTRY_CF','Central African Republic'); |
|
52 | -define('_COUNTRY_CG','Congo'); |
|
53 | -define('_COUNTRY_CH','Switzerland'); |
|
54 | -define('_COUNTRY_CI',"Côte d'Ivoire"); |
|
55 | -define('_COUNTRY_CK','Cook Islands'); |
|
56 | -define('_COUNTRY_CL','Chile'); |
|
57 | -define('_COUNTRY_CM','Cameroon'); |
|
58 | -define('_COUNTRY_CN','China'); |
|
59 | -define('_COUNTRY_CO','Colombia'); |
|
60 | -define('_COUNTRY_CR','Costa Rica'); |
|
61 | -define('_COUNTRY_CS','Serbia & Montenegro (former)'); // Not listed in ISO 3166 |
|
62 | -define('_COUNTRY_CU','Cuba'); |
|
63 | -define('_COUNTRY_CV','Cape Verde'); |
|
64 | -define('_COUNTRY_CX','Christmas Island'); |
|
65 | -define('_COUNTRY_CY','Cyprus'); |
|
66 | -define('_COUNTRY_CZ','Czech Republic'); |
|
67 | -define('_COUNTRY_DE','Germany'); |
|
68 | -define('_COUNTRY_DJ','Djibouti'); |
|
69 | -define('_COUNTRY_DK','Denmark'); |
|
70 | -define('_COUNTRY_DM','Dominica'); |
|
71 | -define('_COUNTRY_DO','Dominican Republic'); |
|
72 | -define('_COUNTRY_DZ','Algeria'); |
|
73 | -define('_COUNTRY_EC','Ecuador'); |
|
74 | -define('_COUNTRY_EE','Estonia'); |
|
75 | -define('_COUNTRY_EG','Egypt'); |
|
76 | -define('_COUNTRY_EH','Western Sahara'); |
|
77 | -define('_COUNTRY_ER','Eritrea'); |
|
78 | -define('_COUNTRY_ES','Spain'); |
|
79 | -define('_COUNTRY_ET','Ethiopia'); |
|
80 | -define('_COUNTRY_FI','Finland'); |
|
81 | -define('_COUNTRY_FJ','Fiji'); |
|
82 | -define('_COUNTRY_FK','Falkland Islands (Malvinas)'); |
|
83 | -define('_COUNTRY_FM','Micronesia'); |
|
84 | -define('_COUNTRY_FO','Faroe Islands'); |
|
85 | -define('_COUNTRY_FR','France'); |
|
86 | -define('_COUNTRY_FX','France, Metropolitan'); // Not listed in ISO 3166 |
|
87 | -define('_COUNTRY_GA','Gabon'); |
|
88 | -define('_COUNTRY_GB','Great Britain (UK)'); |
|
89 | -define('_COUNTRY_GD','Grenada'); |
|
90 | -define('_COUNTRY_GE','Georgia'); |
|
91 | -define('_COUNTRY_GF','French Guiana'); |
|
92 | -define('_COUNTRY_GG','Guernsey'); |
|
93 | -define('_COUNTRY_GH','Ghana'); |
|
94 | -define('_COUNTRY_GI','Gibraltar'); |
|
95 | -define('_COUNTRY_GL','Greenland'); |
|
96 | -define('_COUNTRY_GM','Gambia'); |
|
97 | -define('_COUNTRY_GN','Guinea'); |
|
98 | -define('_COUNTRY_GP','Guadeloupe'); |
|
99 | -define('_COUNTRY_GQ','Equatorial Guinea'); |
|
100 | -define('_COUNTRY_GR','Greece'); |
|
101 | -define('_COUNTRY_GS','S. Georgia and S. Sandwich Isls.'); |
|
102 | -define('_COUNTRY_GT','Guatemala'); |
|
103 | -define('_COUNTRY_GU','Guam'); |
|
104 | -define('_COUNTRY_GW','Guinea-Bissau'); |
|
105 | -define('_COUNTRY_GY','Guyana'); |
|
106 | -define('_COUNTRY_HK','Hong Kong'); |
|
107 | -define('_COUNTRY_HM','Heard and McDonald Islands'); |
|
108 | -define('_COUNTRY_HN','Honduras'); |
|
109 | -define('_COUNTRY_HR','Croatia'); |
|
110 | -define('_COUNTRY_HT','Haiti'); |
|
111 | -define('_COUNTRY_HU','Hungary'); |
|
112 | -define('_COUNTRY_ID','Indonesia'); |
|
113 | -define('_COUNTRY_IE','Ireland'); |
|
114 | -define('_COUNTRY_IL','Israel'); |
|
115 | -define('_COUNTRY_IM','Isle of Man'); |
|
116 | -define('_COUNTRY_IN','India'); |
|
117 | -define('_COUNTRY_IO','British Indian Ocean Territory'); |
|
118 | -define('_COUNTRY_IQ','Iraq'); |
|
119 | -define('_COUNTRY_IR','Iran'); |
|
120 | -define('_COUNTRY_IS','Iceland'); |
|
121 | -define('_COUNTRY_IT','Italy'); |
|
122 | -define('_COUNTRY_JM','Jamaica'); |
|
123 | -define('_COUNTRY_JO','Jordan'); |
|
124 | -define('_COUNTRY_JP','Japan'); |
|
125 | -define('_COUNTRY_KE','Kenya'); |
|
126 | -define('_COUNTRY_KG','Kyrgyzstan'); |
|
127 | -define('_COUNTRY_KH','Cambodia'); |
|
128 | -define('_COUNTRY_KI','Kiribati'); |
|
129 | -define('_COUNTRY_KM','Comoros'); |
|
130 | -define('_COUNTRY_KN','Saint Kitts and Nevis'); |
|
131 | -define('_COUNTRY_KP','Korea (North)'); |
|
132 | -define('_COUNTRY_KR','Korea (South)'); |
|
133 | -define('_COUNTRY_KW','Kuwait'); |
|
134 | -define('_COUNTRY_KY','Cayman Islands'); |
|
135 | -define('_COUNTRY_KZ','Kazakhstan'); |
|
136 | -define('_COUNTRY_LA','Laos'); |
|
137 | -define('_COUNTRY_LB','Lebanon'); |
|
138 | -define('_COUNTRY_LC','Saint Lucia'); |
|
139 | -define('_COUNTRY_LI','Liechtenstein'); |
|
140 | -define('_COUNTRY_LK','Sri Lanka'); |
|
141 | -define('_COUNTRY_LR','Liberia'); |
|
142 | -define('_COUNTRY_LS','Lesotho'); |
|
143 | -define('_COUNTRY_LT','Lithuania'); |
|
144 | -define('_COUNTRY_LU','Luxembourg'); |
|
145 | -define('_COUNTRY_LV','Latvia'); |
|
146 | -define('_COUNTRY_LY','Libya'); |
|
147 | -define('_COUNTRY_MA','Morocco'); |
|
148 | -define('_COUNTRY_MC','Monaco'); |
|
149 | -define('_COUNTRY_MD','Moldova'); |
|
150 | -define('_COUNTRY_ME','Montenegro'); |
|
151 | -define('_COUNTRY_MF','Saint Martin'); |
|
152 | -define('_COUNTRY_MG','Madagascar'); |
|
153 | -define('_COUNTRY_MH','Marshall Islands'); |
|
154 | -define('_COUNTRY_MK','Macedonia'); //FYROM |
|
155 | -define('_COUNTRY_ML','Mali'); |
|
156 | -define('_COUNTRY_MM','Myanmar'); |
|
157 | -define('_COUNTRY_MN','Mongolia'); |
|
158 | -define('_COUNTRY_MO','Macao'); |
|
159 | -define('_COUNTRY_MP','Northern Mariana Islands'); |
|
160 | -define('_COUNTRY_MQ','Martinique'); |
|
161 | -define('_COUNTRY_MR','Mauritania'); |
|
162 | -define('_COUNTRY_MS','Montserrat'); |
|
163 | -define('_COUNTRY_MT','Malta'); |
|
164 | -define('_COUNTRY_MU','Mauritius'); |
|
165 | -define('_COUNTRY_MV','Maldives'); |
|
166 | -define('_COUNTRY_MW','Malawi'); |
|
167 | -define('_COUNTRY_MX','Mexico'); |
|
168 | -define('_COUNTRY_MY','Malaysia'); |
|
169 | -define('_COUNTRY_MZ','Mozambique'); |
|
170 | -define('_COUNTRY_NA','Namibia'); |
|
171 | -define('_COUNTRY_NC','New Caledonia'); |
|
172 | -define('_COUNTRY_NE','Niger'); |
|
173 | -define('_COUNTRY_NF','Norfolk Island'); |
|
174 | -define('_COUNTRY_NG','Nigeria'); |
|
175 | -define('_COUNTRY_NI','Nicaragua'); |
|
176 | -define('_COUNTRY_NL','Netherlands'); |
|
177 | -define('_COUNTRY_NO','Norway'); |
|
178 | -define('_COUNTRY_NP','Nepal'); |
|
179 | -define('_COUNTRY_NR','Nauru'); |
|
180 | -define('_COUNTRY_NT','Neutral Zone'); |
|
181 | -define('_COUNTRY_NU','Niue'); |
|
182 | -define('_COUNTRY_NZ','New Zealand'); |
|
183 | -define('_COUNTRY_OM','Oman'); |
|
184 | -define('_COUNTRY_PA','Panama'); |
|
185 | -define('_COUNTRY_PE','Peru'); |
|
186 | -define('_COUNTRY_PF','French Polynesia'); |
|
187 | -define('_COUNTRY_PG','Papua New Guinea'); |
|
188 | -define('_COUNTRY_PH','Philippines'); |
|
189 | -define('_COUNTRY_PK','Pakistan'); |
|
190 | -define('_COUNTRY_PL','Poland'); |
|
191 | -define('_COUNTRY_PM','St. Pierre and Miquelon'); |
|
192 | -define('_COUNTRY_PN','Pitcairn'); |
|
193 | -define('_COUNTRY_PR','Puerto Rico'); |
|
194 | -define('_COUNTRY_PS','Palestine Territory (Occupied)'); |
|
195 | -define('_COUNTRY_PT','Portugal'); |
|
196 | -define('_COUNTRY_PW','Palau'); |
|
197 | -define('_COUNTRY_PY','Paraguay'); |
|
198 | -define('_COUNTRY_QA','Qatar'); |
|
199 | -define('_COUNTRY_RE','Reunion'); |
|
200 | -define('_COUNTRY_RO','Romania'); |
|
201 | -define('_COUNTRY_RS','Serbia'); |
|
202 | -define('_COUNTRY_RU','Russian Federation'); |
|
203 | -define('_COUNTRY_RW','Rwanda'); |
|
204 | -define('_COUNTRY_SA','Saudi Arabia'); |
|
205 | -define('_COUNTRY_SB','Solomon Islands'); |
|
206 | -define('_COUNTRY_SC','Seychelles'); |
|
207 | -define('_COUNTRY_SD','Sudan'); |
|
208 | -define('_COUNTRY_SE','Sweden'); |
|
209 | -define('_COUNTRY_SG','Singapore'); |
|
210 | -define('_COUNTRY_SH','St. Helena'); |
|
211 | -define('_COUNTRY_SI','Slovenia'); |
|
212 | -define('_COUNTRY_SJ','Svalbard and Jan Mayen Islands'); |
|
213 | -define('_COUNTRY_SK','Slovakia'); |
|
214 | -define('_COUNTRY_SL','Sierra Leone'); |
|
215 | -define('_COUNTRY_SM','San Marino'); |
|
216 | -define('_COUNTRY_SN','Senegal'); |
|
217 | -define('_COUNTRY_SO','Somalia'); |
|
218 | -define('_COUNTRY_SR','Suriname'); |
|
219 | -define('_COUNTRY_ST','Sao Tome and Principe'); |
|
220 | -define('_COUNTRY_SU','USSR (former)'); // Not listed in ISO 3166 |
|
221 | -define('_COUNTRY_SV','El Salvador'); |
|
222 | -define('_COUNTRY_SY','Syria'); |
|
223 | -define('_COUNTRY_SZ','Swaziland'); |
|
224 | -define('_COUNTRY_TC','Turks and Caicos Islands'); |
|
225 | -define('_COUNTRY_TD','Chad'); |
|
226 | -define('_COUNTRY_TF','French Southern Territories'); |
|
227 | -define('_COUNTRY_TG','Togo'); |
|
228 | -define('_COUNTRY_TH','Thailand'); |
|
229 | -define('_COUNTRY_TJ','Tajikistan'); |
|
230 | -define('_COUNTRY_TK','Tokelau'); |
|
231 | -define('_COUNTRY_TL','Timor-Leste'); |
|
232 | -define('_COUNTRY_TM','Turkmenistan'); |
|
233 | -define('_COUNTRY_TN','Tunisia'); |
|
234 | -define('_COUNTRY_TO','Tonga'); |
|
235 | -define('_COUNTRY_TP','East Timor'); // Not listed in ISO 3166, changed to TL |
|
236 | -define('_COUNTRY_TR','Turkey'); |
|
237 | -define('_COUNTRY_TT','Trinidad and Tobago'); |
|
238 | -define('_COUNTRY_TV','Tuvalu'); |
|
239 | -define('_COUNTRY_TW','Taiwan'); |
|
240 | -define('_COUNTRY_TZ','Tanzania'); |
|
241 | -define('_COUNTRY_UA','Ukraine'); |
|
242 | -define('_COUNTRY_UG','Uganda'); |
|
11 | +define('_COUNTRY_AD', 'Andorra'); |
|
12 | +define('_COUNTRY_AE', 'United Arab Emirates'); |
|
13 | +define('_COUNTRY_AF', 'Afghanistan'); |
|
14 | +define('_COUNTRY_AG', 'Antigua and Barbuda'); |
|
15 | +define('_COUNTRY_AI', 'Anguilla'); |
|
16 | +define('_COUNTRY_AL', 'Albania'); |
|
17 | +define('_COUNTRY_AM', 'Armenia'); |
|
18 | +define('_COUNTRY_AN', 'Netherlands Antilles'); |
|
19 | +define('_COUNTRY_AO', 'Angola'); |
|
20 | +define('_COUNTRY_AQ', 'Antarctica'); |
|
21 | +define('_COUNTRY_AR', 'Argentina'); |
|
22 | +define('_COUNTRY_AS', 'American Samoa'); |
|
23 | +define('_COUNTRY_AT', 'Austria'); |
|
24 | +define('_COUNTRY_AU', 'Australia'); |
|
25 | +define('_COUNTRY_AW', 'Aruba'); |
|
26 | +define('_COUNTRY_AX', 'Åland Islands'); |
|
27 | +define('_COUNTRY_AZ', 'Azerbaijan'); |
|
28 | +define('_COUNTRY_BA', 'Bosnia and Herzegovina'); |
|
29 | +define('_COUNTRY_BB', 'Barbados'); |
|
30 | +define('_COUNTRY_BD', 'Bangladesh'); |
|
31 | +define('_COUNTRY_BE', 'Belgium'); |
|
32 | +define('_COUNTRY_BF', 'Burkina Faso'); |
|
33 | +define('_COUNTRY_BG', 'Bulgaria'); |
|
34 | +define('_COUNTRY_BH', 'Bahrain'); |
|
35 | +define('_COUNTRY_BI', 'Burundi'); |
|
36 | +define('_COUNTRY_BJ', 'Benin'); |
|
37 | +define('_COUNTRY_BL', 'Saint Barthélemy'); |
|
38 | +define('_COUNTRY_BM', 'Bermuda'); |
|
39 | +define('_COUNTRY_BN', 'Brunei Darussalam'); |
|
40 | +define('_COUNTRY_BO', 'Bolivia'); |
|
41 | +define('_COUNTRY_BR', 'Brazil'); |
|
42 | +define('_COUNTRY_BS', 'Bahamas'); |
|
43 | +define('_COUNTRY_BT', 'Bhutan'); |
|
44 | +define('_COUNTRY_BV', 'Bouvet Island'); |
|
45 | +define('_COUNTRY_BW', 'Botswana'); |
|
46 | +define('_COUNTRY_BY', 'Belarus'); |
|
47 | +define('_COUNTRY_BZ', 'Belize'); |
|
48 | +define('_COUNTRY_CA', 'Canada'); |
|
49 | +define('_COUNTRY_CC', 'Cocos (Keeling) Islands'); |
|
50 | +define('_COUNTRY_CD', 'Congo (Dem. Rep.)'); |
|
51 | +define('_COUNTRY_CF', 'Central African Republic'); |
|
52 | +define('_COUNTRY_CG', 'Congo'); |
|
53 | +define('_COUNTRY_CH', 'Switzerland'); |
|
54 | +define('_COUNTRY_CI', "Côte d'Ivoire"); |
|
55 | +define('_COUNTRY_CK', 'Cook Islands'); |
|
56 | +define('_COUNTRY_CL', 'Chile'); |
|
57 | +define('_COUNTRY_CM', 'Cameroon'); |
|
58 | +define('_COUNTRY_CN', 'China'); |
|
59 | +define('_COUNTRY_CO', 'Colombia'); |
|
60 | +define('_COUNTRY_CR', 'Costa Rica'); |
|
61 | +define('_COUNTRY_CS', 'Serbia & Montenegro (former)'); // Not listed in ISO 3166 |
|
62 | +define('_COUNTRY_CU', 'Cuba'); |
|
63 | +define('_COUNTRY_CV', 'Cape Verde'); |
|
64 | +define('_COUNTRY_CX', 'Christmas Island'); |
|
65 | +define('_COUNTRY_CY', 'Cyprus'); |
|
66 | +define('_COUNTRY_CZ', 'Czech Republic'); |
|
67 | +define('_COUNTRY_DE', 'Germany'); |
|
68 | +define('_COUNTRY_DJ', 'Djibouti'); |
|
69 | +define('_COUNTRY_DK', 'Denmark'); |
|
70 | +define('_COUNTRY_DM', 'Dominica'); |
|
71 | +define('_COUNTRY_DO', 'Dominican Republic'); |
|
72 | +define('_COUNTRY_DZ', 'Algeria'); |
|
73 | +define('_COUNTRY_EC', 'Ecuador'); |
|
74 | +define('_COUNTRY_EE', 'Estonia'); |
|
75 | +define('_COUNTRY_EG', 'Egypt'); |
|
76 | +define('_COUNTRY_EH', 'Western Sahara'); |
|
77 | +define('_COUNTRY_ER', 'Eritrea'); |
|
78 | +define('_COUNTRY_ES', 'Spain'); |
|
79 | +define('_COUNTRY_ET', 'Ethiopia'); |
|
80 | +define('_COUNTRY_FI', 'Finland'); |
|
81 | +define('_COUNTRY_FJ', 'Fiji'); |
|
82 | +define('_COUNTRY_FK', 'Falkland Islands (Malvinas)'); |
|
83 | +define('_COUNTRY_FM', 'Micronesia'); |
|
84 | +define('_COUNTRY_FO', 'Faroe Islands'); |
|
85 | +define('_COUNTRY_FR', 'France'); |
|
86 | +define('_COUNTRY_FX', 'France, Metropolitan'); // Not listed in ISO 3166 |
|
87 | +define('_COUNTRY_GA', 'Gabon'); |
|
88 | +define('_COUNTRY_GB', 'Great Britain (UK)'); |
|
89 | +define('_COUNTRY_GD', 'Grenada'); |
|
90 | +define('_COUNTRY_GE', 'Georgia'); |
|
91 | +define('_COUNTRY_GF', 'French Guiana'); |
|
92 | +define('_COUNTRY_GG', 'Guernsey'); |
|
93 | +define('_COUNTRY_GH', 'Ghana'); |
|
94 | +define('_COUNTRY_GI', 'Gibraltar'); |
|
95 | +define('_COUNTRY_GL', 'Greenland'); |
|
96 | +define('_COUNTRY_GM', 'Gambia'); |
|
97 | +define('_COUNTRY_GN', 'Guinea'); |
|
98 | +define('_COUNTRY_GP', 'Guadeloupe'); |
|
99 | +define('_COUNTRY_GQ', 'Equatorial Guinea'); |
|
100 | +define('_COUNTRY_GR', 'Greece'); |
|
101 | +define('_COUNTRY_GS', 'S. Georgia and S. Sandwich Isls.'); |
|
102 | +define('_COUNTRY_GT', 'Guatemala'); |
|
103 | +define('_COUNTRY_GU', 'Guam'); |
|
104 | +define('_COUNTRY_GW', 'Guinea-Bissau'); |
|
105 | +define('_COUNTRY_GY', 'Guyana'); |
|
106 | +define('_COUNTRY_HK', 'Hong Kong'); |
|
107 | +define('_COUNTRY_HM', 'Heard and McDonald Islands'); |
|
108 | +define('_COUNTRY_HN', 'Honduras'); |
|
109 | +define('_COUNTRY_HR', 'Croatia'); |
|
110 | +define('_COUNTRY_HT', 'Haiti'); |
|
111 | +define('_COUNTRY_HU', 'Hungary'); |
|
112 | +define('_COUNTRY_ID', 'Indonesia'); |
|
113 | +define('_COUNTRY_IE', 'Ireland'); |
|
114 | +define('_COUNTRY_IL', 'Israel'); |
|
115 | +define('_COUNTRY_IM', 'Isle of Man'); |
|
116 | +define('_COUNTRY_IN', 'India'); |
|
117 | +define('_COUNTRY_IO', 'British Indian Ocean Territory'); |
|
118 | +define('_COUNTRY_IQ', 'Iraq'); |
|
119 | +define('_COUNTRY_IR', 'Iran'); |
|
120 | +define('_COUNTRY_IS', 'Iceland'); |
|
121 | +define('_COUNTRY_IT', 'Italy'); |
|
122 | +define('_COUNTRY_JM', 'Jamaica'); |
|
123 | +define('_COUNTRY_JO', 'Jordan'); |
|
124 | +define('_COUNTRY_JP', 'Japan'); |
|
125 | +define('_COUNTRY_KE', 'Kenya'); |
|
126 | +define('_COUNTRY_KG', 'Kyrgyzstan'); |
|
127 | +define('_COUNTRY_KH', 'Cambodia'); |
|
128 | +define('_COUNTRY_KI', 'Kiribati'); |
|
129 | +define('_COUNTRY_KM', 'Comoros'); |
|
130 | +define('_COUNTRY_KN', 'Saint Kitts and Nevis'); |
|
131 | +define('_COUNTRY_KP', 'Korea (North)'); |
|
132 | +define('_COUNTRY_KR', 'Korea (South)'); |
|
133 | +define('_COUNTRY_KW', 'Kuwait'); |
|
134 | +define('_COUNTRY_KY', 'Cayman Islands'); |
|
135 | +define('_COUNTRY_KZ', 'Kazakhstan'); |
|
136 | +define('_COUNTRY_LA', 'Laos'); |
|
137 | +define('_COUNTRY_LB', 'Lebanon'); |
|
138 | +define('_COUNTRY_LC', 'Saint Lucia'); |
|
139 | +define('_COUNTRY_LI', 'Liechtenstein'); |
|
140 | +define('_COUNTRY_LK', 'Sri Lanka'); |
|
141 | +define('_COUNTRY_LR', 'Liberia'); |
|
142 | +define('_COUNTRY_LS', 'Lesotho'); |
|
143 | +define('_COUNTRY_LT', 'Lithuania'); |
|
144 | +define('_COUNTRY_LU', 'Luxembourg'); |
|
145 | +define('_COUNTRY_LV', 'Latvia'); |
|
146 | +define('_COUNTRY_LY', 'Libya'); |
|
147 | +define('_COUNTRY_MA', 'Morocco'); |
|
148 | +define('_COUNTRY_MC', 'Monaco'); |
|
149 | +define('_COUNTRY_MD', 'Moldova'); |
|
150 | +define('_COUNTRY_ME', 'Montenegro'); |
|
151 | +define('_COUNTRY_MF', 'Saint Martin'); |
|
152 | +define('_COUNTRY_MG', 'Madagascar'); |
|
153 | +define('_COUNTRY_MH', 'Marshall Islands'); |
|
154 | +define('_COUNTRY_MK', 'Macedonia'); //FYROM |
|
155 | +define('_COUNTRY_ML', 'Mali'); |
|
156 | +define('_COUNTRY_MM', 'Myanmar'); |
|
157 | +define('_COUNTRY_MN', 'Mongolia'); |
|
158 | +define('_COUNTRY_MO', 'Macao'); |
|
159 | +define('_COUNTRY_MP', 'Northern Mariana Islands'); |
|
160 | +define('_COUNTRY_MQ', 'Martinique'); |
|
161 | +define('_COUNTRY_MR', 'Mauritania'); |
|
162 | +define('_COUNTRY_MS', 'Montserrat'); |
|
163 | +define('_COUNTRY_MT', 'Malta'); |
|
164 | +define('_COUNTRY_MU', 'Mauritius'); |
|
165 | +define('_COUNTRY_MV', 'Maldives'); |
|
166 | +define('_COUNTRY_MW', 'Malawi'); |
|
167 | +define('_COUNTRY_MX', 'Mexico'); |
|
168 | +define('_COUNTRY_MY', 'Malaysia'); |
|
169 | +define('_COUNTRY_MZ', 'Mozambique'); |
|
170 | +define('_COUNTRY_NA', 'Namibia'); |
|
171 | +define('_COUNTRY_NC', 'New Caledonia'); |
|
172 | +define('_COUNTRY_NE', 'Niger'); |
|
173 | +define('_COUNTRY_NF', 'Norfolk Island'); |
|
174 | +define('_COUNTRY_NG', 'Nigeria'); |
|
175 | +define('_COUNTRY_NI', 'Nicaragua'); |
|
176 | +define('_COUNTRY_NL', 'Netherlands'); |
|
177 | +define('_COUNTRY_NO', 'Norway'); |
|
178 | +define('_COUNTRY_NP', 'Nepal'); |
|
179 | +define('_COUNTRY_NR', 'Nauru'); |
|
180 | +define('_COUNTRY_NT', 'Neutral Zone'); |
|
181 | +define('_COUNTRY_NU', 'Niue'); |
|
182 | +define('_COUNTRY_NZ', 'New Zealand'); |
|
183 | +define('_COUNTRY_OM', 'Oman'); |
|
184 | +define('_COUNTRY_PA', 'Panama'); |
|
185 | +define('_COUNTRY_PE', 'Peru'); |
|
186 | +define('_COUNTRY_PF', 'French Polynesia'); |
|
187 | +define('_COUNTRY_PG', 'Papua New Guinea'); |
|
188 | +define('_COUNTRY_PH', 'Philippines'); |
|
189 | +define('_COUNTRY_PK', 'Pakistan'); |
|
190 | +define('_COUNTRY_PL', 'Poland'); |
|
191 | +define('_COUNTRY_PM', 'St. Pierre and Miquelon'); |
|
192 | +define('_COUNTRY_PN', 'Pitcairn'); |
|
193 | +define('_COUNTRY_PR', 'Puerto Rico'); |
|
194 | +define('_COUNTRY_PS', 'Palestine Territory (Occupied)'); |
|
195 | +define('_COUNTRY_PT', 'Portugal'); |
|
196 | +define('_COUNTRY_PW', 'Palau'); |
|
197 | +define('_COUNTRY_PY', 'Paraguay'); |
|
198 | +define('_COUNTRY_QA', 'Qatar'); |
|
199 | +define('_COUNTRY_RE', 'Reunion'); |
|
200 | +define('_COUNTRY_RO', 'Romania'); |
|
201 | +define('_COUNTRY_RS', 'Serbia'); |
|
202 | +define('_COUNTRY_RU', 'Russian Federation'); |
|
203 | +define('_COUNTRY_RW', 'Rwanda'); |
|
204 | +define('_COUNTRY_SA', 'Saudi Arabia'); |
|
205 | +define('_COUNTRY_SB', 'Solomon Islands'); |
|
206 | +define('_COUNTRY_SC', 'Seychelles'); |
|
207 | +define('_COUNTRY_SD', 'Sudan'); |
|
208 | +define('_COUNTRY_SE', 'Sweden'); |
|
209 | +define('_COUNTRY_SG', 'Singapore'); |
|
210 | +define('_COUNTRY_SH', 'St. Helena'); |
|
211 | +define('_COUNTRY_SI', 'Slovenia'); |
|
212 | +define('_COUNTRY_SJ', 'Svalbard and Jan Mayen Islands'); |
|
213 | +define('_COUNTRY_SK', 'Slovakia'); |
|
214 | +define('_COUNTRY_SL', 'Sierra Leone'); |
|
215 | +define('_COUNTRY_SM', 'San Marino'); |
|
216 | +define('_COUNTRY_SN', 'Senegal'); |
|
217 | +define('_COUNTRY_SO', 'Somalia'); |
|
218 | +define('_COUNTRY_SR', 'Suriname'); |
|
219 | +define('_COUNTRY_ST', 'Sao Tome and Principe'); |
|
220 | +define('_COUNTRY_SU', 'USSR (former)'); // Not listed in ISO 3166 |
|
221 | +define('_COUNTRY_SV', 'El Salvador'); |
|
222 | +define('_COUNTRY_SY', 'Syria'); |
|
223 | +define('_COUNTRY_SZ', 'Swaziland'); |
|
224 | +define('_COUNTRY_TC', 'Turks and Caicos Islands'); |
|
225 | +define('_COUNTRY_TD', 'Chad'); |
|
226 | +define('_COUNTRY_TF', 'French Southern Territories'); |
|
227 | +define('_COUNTRY_TG', 'Togo'); |
|
228 | +define('_COUNTRY_TH', 'Thailand'); |
|
229 | +define('_COUNTRY_TJ', 'Tajikistan'); |
|
230 | +define('_COUNTRY_TK', 'Tokelau'); |
|
231 | +define('_COUNTRY_TL', 'Timor-Leste'); |
|
232 | +define('_COUNTRY_TM', 'Turkmenistan'); |
|
233 | +define('_COUNTRY_TN', 'Tunisia'); |
|
234 | +define('_COUNTRY_TO', 'Tonga'); |
|
235 | +define('_COUNTRY_TP', 'East Timor'); // Not listed in ISO 3166, changed to TL |
|
236 | +define('_COUNTRY_TR', 'Turkey'); |
|
237 | +define('_COUNTRY_TT', 'Trinidad and Tobago'); |
|
238 | +define('_COUNTRY_TV', 'Tuvalu'); |
|
239 | +define('_COUNTRY_TW', 'Taiwan'); |
|
240 | +define('_COUNTRY_TZ', 'Tanzania'); |
|
241 | +define('_COUNTRY_UA', 'Ukraine'); |
|
242 | +define('_COUNTRY_UG', 'Uganda'); |
|
243 | 243 | //define('_COUNTRY_UK','United Kingdom'); // Not listed in ISO 3166 |
244 | -define('_COUNTRY_UM','US Minor Outlying Islands'); |
|
245 | -define('_COUNTRY_US','United States'); |
|
246 | -define('_COUNTRY_UY','Uruguay'); |
|
247 | -define('_COUNTRY_UZ','Uzbekistan'); |
|
248 | -define('_COUNTRY_VA','Vatican City State (Holy See)'); |
|
249 | -define('_COUNTRY_VC','Saint Vincent and the Grenadines'); |
|
250 | -define('_COUNTRY_VE','Venezuela'); |
|
251 | -define('_COUNTRY_VG','Virgin Islands (British)'); |
|
252 | -define('_COUNTRY_VI','Virgin Islands (US)'); |
|
253 | -define('_COUNTRY_VN','Viet Nam'); |
|
254 | -define('_COUNTRY_VU','Vanuatu'); |
|
255 | -define('_COUNTRY_WF','Wallis and Futuna Islands'); |
|
256 | -define('_COUNTRY_WS','Samoa'); |
|
257 | -define('_COUNTRY_YE','Yemen'); |
|
258 | -define('_COUNTRY_YT','Mayotte'); |
|
259 | -define('_COUNTRY_YU','Yugoslavia (former)'); // Not listed in ISO 3166 |
|
260 | -define('_COUNTRY_ZA','South Africa'); |
|
261 | -define('_COUNTRY_ZM','Zambia'); |
|
262 | -define('_COUNTRY_ZR','Zaire'); // Not listed in ISO 3166 |
|
263 | -define('_COUNTRY_ZW','Zimbabwe'); |
|
244 | +define('_COUNTRY_UM', 'US Minor Outlying Islands'); |
|
245 | +define('_COUNTRY_US', 'United States'); |
|
246 | +define('_COUNTRY_UY', 'Uruguay'); |
|
247 | +define('_COUNTRY_UZ', 'Uzbekistan'); |
|
248 | +define('_COUNTRY_VA', 'Vatican City State (Holy See)'); |
|
249 | +define('_COUNTRY_VC', 'Saint Vincent and the Grenadines'); |
|
250 | +define('_COUNTRY_VE', 'Venezuela'); |
|
251 | +define('_COUNTRY_VG', 'Virgin Islands (British)'); |
|
252 | +define('_COUNTRY_VI', 'Virgin Islands (US)'); |
|
253 | +define('_COUNTRY_VN', 'Viet Nam'); |
|
254 | +define('_COUNTRY_VU', 'Vanuatu'); |
|
255 | +define('_COUNTRY_WF', 'Wallis and Futuna Islands'); |
|
256 | +define('_COUNTRY_WS', 'Samoa'); |
|
257 | +define('_COUNTRY_YE', 'Yemen'); |
|
258 | +define('_COUNTRY_YT', 'Mayotte'); |
|
259 | +define('_COUNTRY_YU', 'Yugoslavia (former)'); // Not listed in ISO 3166 |
|
260 | +define('_COUNTRY_ZA', 'South Africa'); |
|
261 | +define('_COUNTRY_ZM', 'Zambia'); |
|
262 | +define('_COUNTRY_ZR', 'Zaire'); // Not listed in ISO 3166 |
|
263 | +define('_COUNTRY_ZW', 'Zimbabwe'); |