Changeset 4486
- Timestamp:
- Dec 13, 2009, 10:28:25 PM (14 years ago)
- Location:
- extensions/event_cats
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/event_cats/admin/evntcats_admin.php
r4443 r4486 204 204 $c = $ec_lists['types_granted']; 205 205 if (isset($_POST['deny_types'])) 206 foreach ($_POST['deny_types'] as $v) $c = $c & ~ $v;206 foreach ($_POST['deny_types'] as $v) $c = $c & ~intval($v); 207 207 if (isset($_POST['deny_generic'])) $c = $c & 7; 208 208 $q = ($dup_types_exist) ? " … … 228 228 $c = $ec_lists['types_granted']; 229 229 if (isset($_POST['grant_types'])) 230 foreach ($_POST['grant_types'] as $v) $c = $c | $v;230 foreach ($_POST['grant_types'] as $v) $c = $c | intval($v); 231 231 if (isset($_POST['grant_generic'])) $c = $c | 8; 232 232 $q = ($dup_types_exist) ? " … … 331 331 // +-----------------------------------------------------------------------+ 332 332 333 check_DB(); $ec_debug['ec_exist_entries'] = $ec_exist_entries;333 check_DB(); 334 334 335 335 if ( -
extensions/event_cats/admin/template/autolog_new.tpl
r4472 r4486 104 104 — 105 105 <label for = "ec_in_up_comment_id" style = "margin:0;" title = "{'Optional'|@translate}"> 106 <span style = "font-weight:bold; 106 <span style = "font-weight:bold; font-style:italic;">{'Comment'|@translate}</span> 107 107 <input type = "text" name = "ec_in_up_comment" maxlength = "100" size = "50" id = "ec_in_up_comment_id" 108 108 onchange = "ec_new_comment_text = this.value;" -
extensions/event_cats/include/evntcats_main_funcs.inc.php
r4436 r4486 447 447 SELECT `user_id` 448 448 FROM `".USER_INFOS_TABLE."` 449 WHERE `status` = 'generic';", 449 WHERE `status` = 'generic' 450 AND `user_id` > 2;", 450 451 'user_id' 451 452 ), … … 474 475 SELECT `user_id`, `level` 475 476 FROM `".USER_INFOS_TABLE."` 476 WHERE `level` IN (".implode(',', $types_granted_ids)."); 477 WHERE `level` IN (".implode(',', $types_granted_ids).") 478 AND `user_id` > 2; 477 479 "); 478 480 while ($row = mysql_fetch_array($result)) { … … 512 514 SELECT `user_id`, `group_id` 513 515 FROM `".USER_GROUP_TABLE."` 514 WHERE `group_id` IN (".implode(',', $ec_lists['groups_granted_ids'])."); 516 WHERE `group_id` IN (".implode(',', $ec_lists['groups_granted_ids']).") 517 AND `user_id` > 2; 515 518 "); 516 519 while ($row = mysql_fetch_array($result)) { -
extensions/event_cats/language/en_UK/plugin.lang.php
r4472 r4486 202 202 203 203 // Help banner 204 // Entries tab 205 $lang['ec_help_banner1_entries'] = '<ul><li style = "list-style-image:url(plugins/event_cats/icon/disable.png);"><span style = "font-weight:bold;">Make entry outdated</span>: to make a code unusable any more, but with a customized message;</li><li style = "list-style-image:url(plugins/event_cats/icon/nforced.png);"><span style = "font-weight:bold;">Force</span>: to make impossible to reach other pages by modifying the URL;<li style = "list-style-image:url(plugins/event_cats/icon/forced.png);"><span style = "font-weight:bold;">Don\'t force</span>: to be able to use the same code to reach different pages;</li><li style = "list-style-image:url(plugins/event_cats/icon/duplicate.png);"><span style = "font-weight:bold;">Copy</span>: to create a new entry using the same code but heading to a different page;</li><li style = "list-style-image:url(plugins/event_cats/icon/url2.png);"><span style = "font-weight:bold;">Test</span>: to check whether it works or not ;-) ;</li><li style = "list-style-image:url(plugins/event_cats/icon/delete.png);"><span style = "font-weight:bold;">Delete</span>: Delete entry;</li><li style = "list-style-image:url(plugins/event_cats/icon/modify.png);"><span style = "font-weight:bold;">Modify</span>: Modify entry.</ul>'; 206 207 // New entry tab, general case 208 $lang['ec_help_banner1_new_c'] = 'Link here a <span style = "font-weight:bold; font-style:italic;">code</span> to an <span style = "font-weight:bold; font-style:italic;">identified user</span> and to a <span style = "font-weight:bold; font-style:italic;">displayed page</span>; it will create a corresponding URL in tab "Autolog entries", and you will then be able to copy and transmit it to concerned people. (It is too complicated, too heavy to provide here a list of all images, thus you must mark an image identifier ("<span style = "font-weight:bold;">Image id</span>"), if you want to use this field.) <span style = "font-weight:bold;">Generate a username</span> and <span style = "font-weight:bold;">Full auto</span>: select a <span style = "font-weight:bold; font-style:italic;">displayed page</span> first, as the username creation is based on the name of this page. <span style = "font-weight:bold;">Comment</span>: memo, personal note, visible only in administration part. <span style = "font-weight:bold;">Existing code</span>: to use the same code to identify the same account, making it head to another displayed page. Displayed page <span style = "font-weight:bold;">Forced</span>: to impose the displayed page whatever are the parameters <span style = "font-weight:bold; font-style:italic;">&cat=</span>, <span style = "font-weight:bold; font-style:italic;">&img=</span>, <span style = "font-weight:bold; font-style:italic;">&ap=</span> in the URL.'; 209 210 // New entry tab, "copy an entry" (duplicate entry) case 211 $lang['ec_help_banner2_new_c'] = 'If you wish to provide access to another event (thus a different category) to the same group of people for which you had alreday created an entry, you can provide them the same <span style = "font-weight:bold; font-style:italic;">code</span> (of course associated to the same <span style = "font-weight:bold; font-style:italic;">identified user</span>), and head the account to a different <span style = "font-weight:bold; font-style:italic;">displayed page</span>. <span style = "font-weight:bold;">Reset</span> to come back to a "normal" entry creation.'; 212 204 213 205 214 unset($t_ap1, $t_ap2); -
extensions/event_cats/language/fr_FR/plugin.lang.php
r4472 r4486 206 206 207 207 // New entry tab, general case 208 $lang['ec_help_banner1_new_c'] = 'Associez un <span style = "font-weight:bold; font-style:italic;">code</span> à un <span style = "font-weight:bold; font-style:italic;">utilisateur à identifier</span> et à une <span style = "font-weight:bold; font-style:italic;">page à afficher</span> ; récupérez l\'URL ainsi construit dans l\'onglet "Entrées autolog" pour le transmettre aux intéressés. (Il est trop lourd, trop compliqué de proposer une liste de toutes les images, aussi devez-vous récupérer le n° d\'identification de l\'image (" Id. image"), si vous voulez utiliser ce champ.) <span style = "font-weight:bold;">Générer un nom d\'utilisateur</span> et <span style = "font-weight:bold;">Tout automatique</span> : sélectionnez d\'abord une <span style = "font-weight:bold; font-style:italic;">page à afficher</span> car le nom d\'utilisateur est construit sur la basede cette page. <span style = "font-weight:bold;">Commentaire</span> : mémo, note personnelle visible uniquement dans l\'administration. <span style = "font-weight:bold;">Code existant</span> : pour identifier le même compte, mais le rediriger vers une autre page. <span style = "font-weight:bold;">Page affichée forcée</span> : pour imposer l\'affichage d\'une page quels que soient les paramètres <span style = "font-weight:bold; font-style:italic;">&cat=</span>, <span style = "font-weight:bold; font-style:italic;">&img=</span>, <span style = "font-weight:bold; font-style:italic;">&ap=</span> présents dans l\'URL.';208 $lang['ec_help_banner1_new_c'] = 'Associez un <span style = "font-weight:bold; font-style:italic;">code</span> à un <span style = "font-weight:bold; font-style:italic;">utilisateur à identifier</span> et à une <span style = "font-weight:bold; font-style:italic;">page à afficher</span> ; récupérez l\'URL ainsi construit dans l\'onglet "Entrées autolog" pour le transmettre aux intéressés. (Il est trop lourd, trop compliqué de proposer une liste de toutes les images, aussi devez-vous récupérer le n° d\'identification de l\'image ("<span style = "font-weight:bold;">Id. image</span>"), si vous voulez utiliser ce champ.) <span style = "font-weight:bold;">Générer un nom d\'utilisateur</span> et <span style = "font-weight:bold;">Tout automatique</span> : sélectionnez d\'abord une <span style = "font-weight:bold; font-style:italic;">page à afficher</span> car le nom d\'utilisateur est construit sur la base du nom de cette page. <span style = "font-weight:bold;">Commentaire</span> : mémo, note personnelle visible uniquement dans l\'administration. <span style = "font-weight:bold;">Code existant</span> : pour identifier le même compte, mais le rediriger vers une autre page. <span style = "font-weight:bold;">Page affichée forcée</span> : pour imposer l\'affichage d\'une page quels que soient les paramètres <span style = "font-weight:bold; font-style:italic;">&cat=</span>, <span style = "font-weight:bold; font-style:italic;">&img=</span>, <span style = "font-weight:bold; font-style:italic;">&ap=</span> présents dans l\'URL.'; 209 209 210 210 // New entry tab, "copy an entry" (duplicate entry) case
Note: See TracChangeset
for help on using the changeset viewer.