Changeset 4002 for extensions/event_cats/admin/autolog_entries.inc.php
- Timestamp:
- Oct 9, 2009, 10:36:31 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/event_cats/admin/autolog_entries.inc.php
r3999 r4002 55 55 56 56 $code_list = array(); 57 build_ec_lists(); // in evntcats_funcs.php 58 59 if (isset($_GET['delete'])) { 60 if (array_key_exists($_GET['delete'],$ec_lists['ec_table'])) { 61 $t = $ec_lists['ec_table'][$_GET['delete']]['code']; 62 $q = pwg_query(' 63 DELETE FROM '.EVNTCATS_TABLE.' 64 WHERE id = '.$_GET['delete'] 65 ); 66 if ($q = 1) { 67 $page['infos']['infos'] = l10n('ec_entry_del_ok_pre').$t. 68 l10n('ec_entry_del_ok_end'); 69 } 70 else { 71 $page['errors'][] = l10n('ec_entry_del_nok_pre').$t. 72 l10n('ec_entry_del_nok_end'); 73 } 74 build_ec_table(); 75 } 76 } 77 78 if (isset($_GET['disable'])) { 79 if (array_key_exists($_GET['disable'],$ec_lists['ec_table'])) { 80 $t = $ec_lists['ec_table'][$_GET['disable']]['code']; 81 $q = pwg_query(' 82 UPDATE '.EVNTCATS_TABLE.' 83 SET action = \'ec_outdated\' 84 WHERE id = '.$_GET['disable'] 85 ); 86 if ($q = 1) { 87 $page['infos']['infos'] = l10n('ec_entry_dis_ok_pre1').$t. 88 l10n('ec_entry_dis_ok_end1'); 89 if (isset($_GET['add_p'])) { 90 if (array_key_exists($_GET['add_p'],$ec_lists['add_pages'])) { 91 $q = pwg_query(' 92 UPDATE '.EVNTCATS_TABLE.' 93 SET arg1 = '.$_GET['add_p'].' 94 WHERE id = '.$_GET['disable'] 95 ); 96 if ($q = 1) { 97 $page['infos']['infos'].= 98 l10n('ec_entry_dis_ok_pre2'). 99 $_GET['add_p']. 100 l10n('ec_entry_dis_ok_mid2'). 101 $ec_lists['add_pages'][$_GET['add_p']]. 102 l10n('ec_entry_dis_ok_end2'); 103 } 104 else { 105 $page['errors'][] = 106 l10n('ec_entry_dis_nok_pre2'). 107 $t. 108 l10n('ec_entry_dis_nok_mid2'). 109 $_GET['add_p']. 110 l10n('ec_entry_dis_nok_end2'); 111 } 112 } 113 } 114 else { 115 $q = pwg_query(' 116 UPDATE '.EVNTCATS_TABLE.' 117 SET arg1 = NULL 118 WHERE id = '.$_GET['disable'] 119 ); 120 if ($q != 1) { 121 $page['errors'][] = 122 l10n('ec_entry_dis_nok_pre3'). 123 $t. 124 l10n('ec_entry_dis_nok_end3'); 125 } 126 } 127 } 128 else { 129 $page['errors'][] = l10n('ec_entry_dis_nok_pre1').$t. 130 l10n('ec_entry_dis_nok_end1'); 131 } 132 build_ec_table(); 133 } 134 } 135 136 if (isset($_GET[''])) { 137 } 138 139 if (isset($_GET[''])) { 140 } 141 142 if (isset($_GET[''])) { 143 } 144 145 if (isset($_GET[''])) { 146 } 57 build_ec_lists(); // in evntcats_funcs.inc.php 147 58 148 59 /****************************************************************
Note: See TracChangeset
for help on using the changeset viewer.