@@ -9,385 +9,385 @@ |
||
| 9 | 9 | |
| 10 | 10 | $GLOBALS['CHARSET']['translit'] = [ |
| 11 | 11 | // latin [fausse plage] |
| 12 | - 128 => 'EUR', |
|
| 13 | - 131 => 'f', |
|
| 14 | - 140 => 'OE', |
|
| 15 | - 147 => '\'\'', |
|
| 16 | - 148 => '\'\'', |
|
| 17 | - 153 => '(TM)', |
|
| 18 | - 156 => 'oe', |
|
| 19 | - 159 => 'Y', |
|
| 12 | + 128 => 'EUR', |
|
| 13 | + 131 => 'f', |
|
| 14 | + 140 => 'OE', |
|
| 15 | + 147 => '\'\'', |
|
| 16 | + 148 => '\'\'', |
|
| 17 | + 153 => '(TM)', |
|
| 18 | + 156 => 'oe', |
|
| 19 | + 159 => 'Y', |
|
| 20 | 20 | |
| 21 | 21 | // latin [legal] |
| 22 | - 160 => ' ', |
|
| 23 | - 161 => '!', |
|
| 24 | - 162 => 'c', |
|
| 25 | - 163 => 'L', |
|
| 26 | - 164 => 'O', |
|
| 27 | - 165 => 'yen', |
|
| 28 | - 166 => '|', |
|
| 29 | - 167 => 'p', |
|
| 30 | - 169 => '(c)', |
|
| 31 | - 171 => '<<', |
|
| 32 | - 172 => '-', |
|
| 33 | - 173 => '-', |
|
| 34 | - 174 => '(R)', |
|
| 35 | - 176 => 'o', |
|
| 36 | - 177 => '+-', |
|
| 37 | - 181 => 'mu', |
|
| 38 | - 182 => 'p', |
|
| 39 | - 183 => '.', |
|
| 40 | - 186 => 'o ', |
|
| 41 | - 187 => '>>', |
|
| 42 | - 191 => '?', |
|
| 43 | - 192 => 'A', |
|
| 44 | - 193 => 'A', |
|
| 45 | - 194 => 'A', |
|
| 46 | - 195 => 'A', |
|
| 47 | - 196 => 'A', |
|
| 48 | - 197 => 'A', |
|
| 49 | - 198 => 'AE', |
|
| 50 | - 199 => 'C', |
|
| 51 | - 200 => 'E', |
|
| 52 | - 201 => 'E', |
|
| 53 | - 202 => 'E', |
|
| 54 | - 203 => 'E', |
|
| 55 | - 204 => 'I', |
|
| 56 | - 205 => 'I', |
|
| 57 | - 206 => 'I', |
|
| 58 | - 207 => 'I', |
|
| 59 | - 209 => 'N', |
|
| 60 | - 210 => 'O', |
|
| 61 | - 211 => 'O', |
|
| 62 | - 212 => 'O', |
|
| 63 | - 213 => 'O', |
|
| 64 | - 214 => 'O', |
|
| 65 | - 216 => 'O', |
|
| 66 | - 217 => 'U', |
|
| 67 | - 218 => 'U', |
|
| 68 | - 219 => 'U', |
|
| 69 | - 220 => 'U', |
|
| 70 | - 223 => 'ss', |
|
| 71 | - 224 => 'a', |
|
| 72 | - 225 => 'a', |
|
| 73 | - 226 => 'a', |
|
| 74 | - 227 => 'a', |
|
| 75 | - 228 => 'a', |
|
| 76 | - 229 => 'a', |
|
| 77 | - 230 => 'ae', |
|
| 78 | - 231 => 'c', |
|
| 79 | - 232 => 'e', |
|
| 80 | - 233 => 'e', |
|
| 81 | - 234 => 'e', |
|
| 82 | - 235 => 'e', |
|
| 83 | - 236 => 'i', |
|
| 84 | - 237 => 'i', |
|
| 85 | - 238 => 'i', |
|
| 86 | - 239 => 'i', |
|
| 87 | - 241 => 'n', |
|
| 88 | - 242 => 'o', |
|
| 89 | - 243 => 'o', |
|
| 90 | - 244 => 'o', |
|
| 91 | - 245 => 'o', |
|
| 92 | - 246 => 'o', |
|
| 93 | - 248 => 'o', |
|
| 94 | - 249 => 'u', |
|
| 95 | - 250 => 'u', |
|
| 96 | - 251 => 'u', |
|
| 97 | - 252 => 'u', |
|
| 98 | - 255 => 'y', |
|
| 22 | + 160 => ' ', |
|
| 23 | + 161 => '!', |
|
| 24 | + 162 => 'c', |
|
| 25 | + 163 => 'L', |
|
| 26 | + 164 => 'O', |
|
| 27 | + 165 => 'yen', |
|
| 28 | + 166 => '|', |
|
| 29 | + 167 => 'p', |
|
| 30 | + 169 => '(c)', |
|
| 31 | + 171 => '<<', |
|
| 32 | + 172 => '-', |
|
| 33 | + 173 => '-', |
|
| 34 | + 174 => '(R)', |
|
| 35 | + 176 => 'o', |
|
| 36 | + 177 => '+-', |
|
| 37 | + 181 => 'mu', |
|
| 38 | + 182 => 'p', |
|
| 39 | + 183 => '.', |
|
| 40 | + 186 => 'o ', |
|
| 41 | + 187 => '>>', |
|
| 42 | + 191 => '?', |
|
| 43 | + 192 => 'A', |
|
| 44 | + 193 => 'A', |
|
| 45 | + 194 => 'A', |
|
| 46 | + 195 => 'A', |
|
| 47 | + 196 => 'A', |
|
| 48 | + 197 => 'A', |
|
| 49 | + 198 => 'AE', |
|
| 50 | + 199 => 'C', |
|
| 51 | + 200 => 'E', |
|
| 52 | + 201 => 'E', |
|
| 53 | + 202 => 'E', |
|
| 54 | + 203 => 'E', |
|
| 55 | + 204 => 'I', |
|
| 56 | + 205 => 'I', |
|
| 57 | + 206 => 'I', |
|
| 58 | + 207 => 'I', |
|
| 59 | + 209 => 'N', |
|
| 60 | + 210 => 'O', |
|
| 61 | + 211 => 'O', |
|
| 62 | + 212 => 'O', |
|
| 63 | + 213 => 'O', |
|
| 64 | + 214 => 'O', |
|
| 65 | + 216 => 'O', |
|
| 66 | + 217 => 'U', |
|
| 67 | + 218 => 'U', |
|
| 68 | + 219 => 'U', |
|
| 69 | + 220 => 'U', |
|
| 70 | + 223 => 'ss', |
|
| 71 | + 224 => 'a', |
|
| 72 | + 225 => 'a', |
|
| 73 | + 226 => 'a', |
|
| 74 | + 227 => 'a', |
|
| 75 | + 228 => 'a', |
|
| 76 | + 229 => 'a', |
|
| 77 | + 230 => 'ae', |
|
| 78 | + 231 => 'c', |
|
| 79 | + 232 => 'e', |
|
| 80 | + 233 => 'e', |
|
| 81 | + 234 => 'e', |
|
| 82 | + 235 => 'e', |
|
| 83 | + 236 => 'i', |
|
| 84 | + 237 => 'i', |
|
| 85 | + 238 => 'i', |
|
| 86 | + 239 => 'i', |
|
| 87 | + 241 => 'n', |
|
| 88 | + 242 => 'o', |
|
| 89 | + 243 => 'o', |
|
| 90 | + 244 => 'o', |
|
| 91 | + 245 => 'o', |
|
| 92 | + 246 => 'o', |
|
| 93 | + 248 => 'o', |
|
| 94 | + 249 => 'u', |
|
| 95 | + 250 => 'u', |
|
| 96 | + 251 => 'u', |
|
| 97 | + 252 => 'u', |
|
| 98 | + 255 => 'y', |
|
| 99 | 99 | |
| 100 | 100 | // turc |
| 101 | - 286 => 'G', |
|
| 102 | - 287 => 'g', |
|
| 103 | - 304 => 'I', |
|
| 104 | - 305 => 'i', |
|
| 105 | - 350 => 'S', |
|
| 106 | - 351 => 's', |
|
| 101 | + 286 => 'G', |
|
| 102 | + 287 => 'g', |
|
| 103 | + 304 => 'I', |
|
| 104 | + 305 => 'i', |
|
| 105 | + 350 => 'S', |
|
| 106 | + 351 => 's', |
|
| 107 | 107 | |
| 108 | 108 | // esperanto |
| 109 | - 264 => 'Cx', |
|
| 110 | - 265 => 'cx', |
|
| 111 | - 284 => 'Gx', |
|
| 112 | - 285 => 'gx', |
|
| 113 | - 292 => 'Hx', |
|
| 114 | - 293 => 'hx', |
|
| 115 | - 308 => 'Jx', |
|
| 116 | - 309 => 'jx', |
|
| 117 | - 348 => 'Sx', |
|
| 118 | - 349 => 'sx', |
|
| 119 | - 364 => 'Ux', |
|
| 120 | - 365 => 'ux', |
|
| 109 | + 264 => 'Cx', |
|
| 110 | + 265 => 'cx', |
|
| 111 | + 284 => 'Gx', |
|
| 112 | + 285 => 'gx', |
|
| 113 | + 292 => 'Hx', |
|
| 114 | + 293 => 'hx', |
|
| 115 | + 308 => 'Jx', |
|
| 116 | + 309 => 'jx', |
|
| 117 | + 348 => 'Sx', |
|
| 118 | + 349 => 'sx', |
|
| 119 | + 364 => 'Ux', |
|
| 120 | + 365 => 'ux', |
|
| 121 | 121 | |
| 122 | 122 | |
| 123 | 123 | // latin2 [Czech] |
| 124 | - 283 => 'e', |
|
| 125 | - 353 => 's', |
|
| 126 | - 269 => 'c', |
|
| 127 | - 345 => 'r', |
|
| 128 | - 382 => 'z', |
|
| 129 | - 367 => 'u', |
|
| 130 | - 328 => 'n', |
|
| 131 | - 357 => 't', |
|
| 132 | - 271 => 'd', |
|
| 133 | - 449 => 'o', |
|
| 134 | - 282 => 'E', |
|
| 135 | - 352 => 'S', |
|
| 136 | - 268 => 'C', |
|
| 137 | - 344 => 'R', |
|
| 138 | - 381 => 'Z', |
|
| 139 | - 366 => 'U', |
|
| 140 | - 327 => 'N', |
|
| 141 | - 356 => 'T', |
|
| 142 | - 270 => 'D', |
|
| 143 | - 467 => 'O', |
|
| 124 | + 283 => 'e', |
|
| 125 | + 353 => 's', |
|
| 126 | + 269 => 'c', |
|
| 127 | + 345 => 'r', |
|
| 128 | + 382 => 'z', |
|
| 129 | + 367 => 'u', |
|
| 130 | + 328 => 'n', |
|
| 131 | + 357 => 't', |
|
| 132 | + 271 => 'd', |
|
| 133 | + 449 => 'o', |
|
| 134 | + 282 => 'E', |
|
| 135 | + 352 => 'S', |
|
| 136 | + 268 => 'C', |
|
| 137 | + 344 => 'R', |
|
| 138 | + 381 => 'Z', |
|
| 139 | + 366 => 'U', |
|
| 140 | + 327 => 'N', |
|
| 141 | + 356 => 'T', |
|
| 142 | + 270 => 'D', |
|
| 143 | + 467 => 'O', |
|
| 144 | 144 | |
| 145 | 145 | // francais |
| 146 | - 338 => 'OE', |
|
| 147 | - 339 => 'oe', |
|
| 148 | - 376 => 'Y', |
|
| 149 | - 402 => 'f', |
|
| 146 | + 338 => 'OE', |
|
| 147 | + 339 => 'oe', |
|
| 148 | + 376 => 'Y', |
|
| 149 | + 402 => 'f', |
|
| 150 | 150 | |
| 151 | 151 | //polskie |
| 152 | - 260 => 'A', |
|
| 153 | - 261 => 'a', |
|
| 154 | - 262 => 'C', |
|
| 155 | - 263 => 'c', |
|
| 156 | - 280 => 'E', |
|
| 157 | - 281 => 'e', |
|
| 158 | - 321 => 'L', |
|
| 159 | - 322 => 'l', |
|
| 160 | - 323 => 'N', |
|
| 161 | - 324 => 'n', |
|
| 162 | - 346 => 'S', |
|
| 163 | - 347 => 's', |
|
| 164 | - 377 => 'Z', |
|
| 165 | - 378 => 'z', |
|
| 166 | - 379 => 'Z', |
|
| 167 | - 380 => 'z', |
|
| 152 | + 260 => 'A', |
|
| 153 | + 261 => 'a', |
|
| 154 | + 262 => 'C', |
|
| 155 | + 263 => 'c', |
|
| 156 | + 280 => 'E', |
|
| 157 | + 281 => 'e', |
|
| 158 | + 321 => 'L', |
|
| 159 | + 322 => 'l', |
|
| 160 | + 323 => 'N', |
|
| 161 | + 324 => 'n', |
|
| 162 | + 346 => 'S', |
|
| 163 | + 347 => 's', |
|
| 164 | + 377 => 'Z', |
|
| 165 | + 378 => 'z', |
|
| 166 | + 379 => 'Z', |
|
| 167 | + 380 => 'z', |
|
| 168 | 168 | |
| 169 | 169 | //roumain |
| 170 | - 258 => 'A', |
|
| 171 | - 259 => 'a', |
|
| 172 | - 350 => 'S', |
|
| 173 | - 351 => 's', |
|
| 174 | - 354 => 'T', |
|
| 175 | - 355 => 't', |
|
| 170 | + 258 => 'A', |
|
| 171 | + 259 => 'a', |
|
| 172 | + 350 => 'S', |
|
| 173 | + 351 => 's', |
|
| 174 | + 354 => 'T', |
|
| 175 | + 355 => 't', |
|
| 176 | 176 | |
| 177 | 177 | // cyrillique |
| 178 | - 1026 => 'D%', |
|
| 179 | - 1027 => 'G%', |
|
| 180 | - 8218 => '\'', |
|
| 181 | - 1107 => 'g%', |
|
| 182 | - 8222 => '"', |
|
| 183 | - 8230 => '...', |
|
| 184 | - 8224 => '/-', |
|
| 185 | - 8225 => '/=', |
|
| 186 | - 8364 => 'EUR', |
|
| 187 | - 8240 => '0/00', |
|
| 188 | - 1033 => 'LJ', |
|
| 189 | - 8249 => '<', |
|
| 190 | - 1034 => 'NJ', |
|
| 191 | - 1036 => 'KJ', |
|
| 192 | - 1035 => 'Ts', |
|
| 193 | - 1039 => 'DZ', |
|
| 194 | - 1106 => 'd%', |
|
| 195 | - 8216 => '`', |
|
| 196 | - 8217 => '\'', |
|
| 197 | - 8220 => '"', |
|
| 198 | - 8221 => '"', |
|
| 199 | - 8226 => ' o ', |
|
| 200 | - 8211 => '-', |
|
| 201 | - 8212 => '--', |
|
| 202 | - 8212 => '~', |
|
| 203 | - 8482 => '(TM)', |
|
| 204 | - 1113 => 'lj', |
|
| 205 | - 8250 => '>', |
|
| 206 | - 1114 => 'nj', |
|
| 207 | - 1116 => 'kj', |
|
| 208 | - 1115 => 'ts', |
|
| 209 | - 1119 => 'dz', |
|
| 210 | - 1038 => 'V%', |
|
| 211 | - 1118 => 'v%', |
|
| 212 | - 1032 => 'J%', |
|
| 213 | - 1168 => 'G3', |
|
| 214 | - 1025 => 'IO', |
|
| 215 | - 1028 => 'IE', |
|
| 216 | - 1031 => 'YI', |
|
| 217 | - 1030 => 'II', |
|
| 218 | - 1110 => 'ii', |
|
| 219 | - 1169 => 'g3', |
|
| 220 | - 1105 => 'io', |
|
| 221 | - 8470 => 'No.', |
|
| 222 | - 1108 => 'ie', |
|
| 223 | - 1112 => 'j%', |
|
| 224 | - 1029 => 'DS', |
|
| 225 | - 1109 => 'ds', |
|
| 226 | - 1111 => 'yi', |
|
| 227 | - 1040 => 'A', |
|
| 228 | - 1041 => 'B', |
|
| 229 | - 1042 => 'V', |
|
| 230 | - 1043 => 'G', |
|
| 231 | - 1044 => 'D', |
|
| 232 | - 1045 => 'E', |
|
| 233 | - 1046 => 'ZH', |
|
| 234 | - 1047 => 'Z', |
|
| 235 | - 1048 => 'I', |
|
| 236 | - 1049 => 'J', |
|
| 237 | - 1050 => 'K', |
|
| 238 | - 1051 => 'L', |
|
| 239 | - 1052 => 'M', |
|
| 240 | - 1053 => 'N', |
|
| 241 | - 1054 => 'O', |
|
| 242 | - 1055 => 'P', |
|
| 243 | - 1056 => 'R', |
|
| 244 | - 1057 => 'S', |
|
| 245 | - 1058 => 'T', |
|
| 246 | - 1059 => 'U', |
|
| 247 | - 1060 => 'F', |
|
| 248 | - 1061 => 'H', |
|
| 249 | - 1062 => 'C', |
|
| 250 | - 1063 => 'CH', |
|
| 251 | - 1064 => 'SH', |
|
| 252 | - 1065 => 'SCH', |
|
| 253 | - 1066 => '"', |
|
| 254 | - 1067 => 'Y', |
|
| 255 | - 1068 => '\'', |
|
| 256 | - 1069 => '`E', |
|
| 257 | - 1070 => 'YU', |
|
| 258 | - 1071 => 'YA', |
|
| 259 | - 1072 => 'a', |
|
| 260 | - 1073 => 'b', |
|
| 261 | - 1074 => 'v', |
|
| 262 | - 1075 => 'g', |
|
| 263 | - 1076 => 'd', |
|
| 264 | - 1077 => 'e', |
|
| 265 | - 1078 => 'zh', |
|
| 266 | - 1079 => 'z', |
|
| 267 | - 1080 => 'i', |
|
| 268 | - 1081 => 'j', |
|
| 269 | - 1082 => 'k', |
|
| 270 | - 1083 => 'l', |
|
| 271 | - 1084 => 'm', |
|
| 272 | - 1085 => 'n', |
|
| 273 | - 1086 => 'o', |
|
| 274 | - 1087 => 'p', |
|
| 275 | - 1088 => 'r', |
|
| 276 | - 1089 => 's', |
|
| 277 | - 1090 => 't', |
|
| 278 | - 1091 => 'u', |
|
| 279 | - 1092 => 'f', |
|
| 280 | - 1093 => 'h', |
|
| 281 | - 1094 => 'c', |
|
| 282 | - 1095 => 'ch', |
|
| 283 | - 1096 => 'sh', |
|
| 284 | - 1097 => 'sch', |
|
| 285 | - 1098 => '"', |
|
| 286 | - 1099 => 'y', |
|
| 287 | - 1100 => '\'', |
|
| 288 | - 1101 => '`e', |
|
| 289 | - 1102 => 'yu', |
|
| 290 | - 1103 => 'ya', |
|
| 178 | + 1026 => 'D%', |
|
| 179 | + 1027 => 'G%', |
|
| 180 | + 8218 => '\'', |
|
| 181 | + 1107 => 'g%', |
|
| 182 | + 8222 => '"', |
|
| 183 | + 8230 => '...', |
|
| 184 | + 8224 => '/-', |
|
| 185 | + 8225 => '/=', |
|
| 186 | + 8364 => 'EUR', |
|
| 187 | + 8240 => '0/00', |
|
| 188 | + 1033 => 'LJ', |
|
| 189 | + 8249 => '<', |
|
| 190 | + 1034 => 'NJ', |
|
| 191 | + 1036 => 'KJ', |
|
| 192 | + 1035 => 'Ts', |
|
| 193 | + 1039 => 'DZ', |
|
| 194 | + 1106 => 'd%', |
|
| 195 | + 8216 => '`', |
|
| 196 | + 8217 => '\'', |
|
| 197 | + 8220 => '"', |
|
| 198 | + 8221 => '"', |
|
| 199 | + 8226 => ' o ', |
|
| 200 | + 8211 => '-', |
|
| 201 | + 8212 => '--', |
|
| 202 | + 8212 => '~', |
|
| 203 | + 8482 => '(TM)', |
|
| 204 | + 1113 => 'lj', |
|
| 205 | + 8250 => '>', |
|
| 206 | + 1114 => 'nj', |
|
| 207 | + 1116 => 'kj', |
|
| 208 | + 1115 => 'ts', |
|
| 209 | + 1119 => 'dz', |
|
| 210 | + 1038 => 'V%', |
|
| 211 | + 1118 => 'v%', |
|
| 212 | + 1032 => 'J%', |
|
| 213 | + 1168 => 'G3', |
|
| 214 | + 1025 => 'IO', |
|
| 215 | + 1028 => 'IE', |
|
| 216 | + 1031 => 'YI', |
|
| 217 | + 1030 => 'II', |
|
| 218 | + 1110 => 'ii', |
|
| 219 | + 1169 => 'g3', |
|
| 220 | + 1105 => 'io', |
|
| 221 | + 8470 => 'No.', |
|
| 222 | + 1108 => 'ie', |
|
| 223 | + 1112 => 'j%', |
|
| 224 | + 1029 => 'DS', |
|
| 225 | + 1109 => 'ds', |
|
| 226 | + 1111 => 'yi', |
|
| 227 | + 1040 => 'A', |
|
| 228 | + 1041 => 'B', |
|
| 229 | + 1042 => 'V', |
|
| 230 | + 1043 => 'G', |
|
| 231 | + 1044 => 'D', |
|
| 232 | + 1045 => 'E', |
|
| 233 | + 1046 => 'ZH', |
|
| 234 | + 1047 => 'Z', |
|
| 235 | + 1048 => 'I', |
|
| 236 | + 1049 => 'J', |
|
| 237 | + 1050 => 'K', |
|
| 238 | + 1051 => 'L', |
|
| 239 | + 1052 => 'M', |
|
| 240 | + 1053 => 'N', |
|
| 241 | + 1054 => 'O', |
|
| 242 | + 1055 => 'P', |
|
| 243 | + 1056 => 'R', |
|
| 244 | + 1057 => 'S', |
|
| 245 | + 1058 => 'T', |
|
| 246 | + 1059 => 'U', |
|
| 247 | + 1060 => 'F', |
|
| 248 | + 1061 => 'H', |
|
| 249 | + 1062 => 'C', |
|
| 250 | + 1063 => 'CH', |
|
| 251 | + 1064 => 'SH', |
|
| 252 | + 1065 => 'SCH', |
|
| 253 | + 1066 => '"', |
|
| 254 | + 1067 => 'Y', |
|
| 255 | + 1068 => '\'', |
|
| 256 | + 1069 => '`E', |
|
| 257 | + 1070 => 'YU', |
|
| 258 | + 1071 => 'YA', |
|
| 259 | + 1072 => 'a', |
|
| 260 | + 1073 => 'b', |
|
| 261 | + 1074 => 'v', |
|
| 262 | + 1075 => 'g', |
|
| 263 | + 1076 => 'd', |
|
| 264 | + 1077 => 'e', |
|
| 265 | + 1078 => 'zh', |
|
| 266 | + 1079 => 'z', |
|
| 267 | + 1080 => 'i', |
|
| 268 | + 1081 => 'j', |
|
| 269 | + 1082 => 'k', |
|
| 270 | + 1083 => 'l', |
|
| 271 | + 1084 => 'm', |
|
| 272 | + 1085 => 'n', |
|
| 273 | + 1086 => 'o', |
|
| 274 | + 1087 => 'p', |
|
| 275 | + 1088 => 'r', |
|
| 276 | + 1089 => 's', |
|
| 277 | + 1090 => 't', |
|
| 278 | + 1091 => 'u', |
|
| 279 | + 1092 => 'f', |
|
| 280 | + 1093 => 'h', |
|
| 281 | + 1094 => 'c', |
|
| 282 | + 1095 => 'ch', |
|
| 283 | + 1096 => 'sh', |
|
| 284 | + 1097 => 'sch', |
|
| 285 | + 1098 => '"', |
|
| 286 | + 1099 => 'y', |
|
| 287 | + 1100 => '\'', |
|
| 288 | + 1101 => '`e', |
|
| 289 | + 1102 => 'yu', |
|
| 290 | + 1103 => 'ya', |
|
| 291 | 291 | |
| 292 | 292 | // vietnamien en translitteration de base |
| 293 | - 7843 => 'a', |
|
| 294 | - 7841 => 'a', |
|
| 295 | - 7845 => 'a', |
|
| 296 | - 7847 => 'a', |
|
| 297 | - 7849 => 'a', |
|
| 298 | - 7851 => 'a', |
|
| 299 | - 7853 => 'a', |
|
| 300 | - 7855 => 'a', |
|
| 301 | - 7857 => 'a', |
|
| 302 | - 7859 => 'a', |
|
| 303 | - 7861 => 'a', |
|
| 304 | - 7863 => 'a', |
|
| 305 | - 7842 => 'A', |
|
| 306 | - 7840 => 'A', |
|
| 307 | - 7844 => 'A', |
|
| 308 | - 7846 => 'A', |
|
| 309 | - 7848 => 'A', |
|
| 310 | - 7850 => 'A', |
|
| 311 | - 7852 => 'A', |
|
| 312 | - 7854 => 'A', |
|
| 313 | - 7856 => 'A', |
|
| 314 | - 7858 => 'A', |
|
| 315 | - 7860 => 'A', |
|
| 316 | - 7862 => 'A', |
|
| 317 | - 7867 => 'e', |
|
| 318 | - 7869 => 'e', |
|
| 319 | - 7865 => 'e', |
|
| 320 | - 7871 => 'e', |
|
| 321 | - 7873 => 'e', |
|
| 322 | - 7875 => 'e', |
|
| 323 | - 7877 => 'e', |
|
| 324 | - 7879 => 'e', |
|
| 325 | - 7866 => 'E', |
|
| 326 | - 7868 => 'E', |
|
| 327 | - 7864 => 'E', |
|
| 328 | - 7870 => 'E', |
|
| 329 | - 7872 => 'E', |
|
| 330 | - 7874 => 'E', |
|
| 331 | - 7876 => 'E', |
|
| 332 | - 7878 => 'E', |
|
| 333 | - 7881 => 'i', |
|
| 334 | - 7883 => 'i', |
|
| 335 | - 7880 => 'I', |
|
| 336 | - 7882 => 'I', |
|
| 337 | - 7887 => 'o', |
|
| 338 | - 7885 => 'o', |
|
| 339 | - 7889 => 'o', |
|
| 340 | - 7891 => 'o', |
|
| 341 | - 7893 => 'o', |
|
| 342 | - 7895 => 'o', |
|
| 343 | - 7897 => 'o', |
|
| 344 | - 417 => 'o', |
|
| 345 | - 7899 => 'o', |
|
| 346 | - 7901 => 'o', |
|
| 347 | - 7903 => 'o', |
|
| 348 | - 7905 => 'o', |
|
| 349 | - 7907 => 'o', |
|
| 350 | - 7886 => 'O', |
|
| 351 | - 7884 => 'O', |
|
| 352 | - 7888 => 'O', |
|
| 353 | - 7890 => 'O', |
|
| 354 | - 7892 => 'O', |
|
| 355 | - 7894 => 'O', |
|
| 356 | - 7896 => 'O', |
|
| 357 | - 416 => 'O', |
|
| 358 | - 7898 => 'O', |
|
| 359 | - 7900 => 'O', |
|
| 360 | - 7902 => 'O', |
|
| 361 | - 7904 => 'O', |
|
| 362 | - 7906 => 'O', |
|
| 363 | - 7911 => 'u', |
|
| 364 | - 361 => 'u', |
|
| 365 | - 7909 => 'u', |
|
| 366 | - 432 => 'u', |
|
| 367 | - 7913 => 'u', |
|
| 368 | - 7915 => 'u', |
|
| 369 | - 7917 => 'u', |
|
| 370 | - 7919 => 'u', |
|
| 371 | - 7921 => 'u', |
|
| 372 | - 7910 => 'U', |
|
| 373 | - 360 => 'U', |
|
| 374 | - 7908 => 'U', |
|
| 375 | - 431 => 'U', |
|
| 376 | - 7912 => 'U', |
|
| 377 | - 7914 => 'U', |
|
| 378 | - 7916 => 'U', |
|
| 379 | - 7918 => 'U', |
|
| 380 | - 7920 => 'U', |
|
| 381 | - 253 => 'y', |
|
| 382 | - 7923 => 'y', |
|
| 383 | - 7927 => 'y', |
|
| 384 | - 7929 => 'y', |
|
| 385 | - 7925 => 'y', |
|
| 386 | - 221 => 'Y', |
|
| 387 | - 7922 => 'Y', |
|
| 388 | - 7926 => 'Y', |
|
| 389 | - 7928 => 'Y', |
|
| 390 | - 7924 => 'Y', |
|
| 391 | - 273 => 'd' |
|
| 293 | + 7843 => 'a', |
|
| 294 | + 7841 => 'a', |
|
| 295 | + 7845 => 'a', |
|
| 296 | + 7847 => 'a', |
|
| 297 | + 7849 => 'a', |
|
| 298 | + 7851 => 'a', |
|
| 299 | + 7853 => 'a', |
|
| 300 | + 7855 => 'a', |
|
| 301 | + 7857 => 'a', |
|
| 302 | + 7859 => 'a', |
|
| 303 | + 7861 => 'a', |
|
| 304 | + 7863 => 'a', |
|
| 305 | + 7842 => 'A', |
|
| 306 | + 7840 => 'A', |
|
| 307 | + 7844 => 'A', |
|
| 308 | + 7846 => 'A', |
|
| 309 | + 7848 => 'A', |
|
| 310 | + 7850 => 'A', |
|
| 311 | + 7852 => 'A', |
|
| 312 | + 7854 => 'A', |
|
| 313 | + 7856 => 'A', |
|
| 314 | + 7858 => 'A', |
|
| 315 | + 7860 => 'A', |
|
| 316 | + 7862 => 'A', |
|
| 317 | + 7867 => 'e', |
|
| 318 | + 7869 => 'e', |
|
| 319 | + 7865 => 'e', |
|
| 320 | + 7871 => 'e', |
|
| 321 | + 7873 => 'e', |
|
| 322 | + 7875 => 'e', |
|
| 323 | + 7877 => 'e', |
|
| 324 | + 7879 => 'e', |
|
| 325 | + 7866 => 'E', |
|
| 326 | + 7868 => 'E', |
|
| 327 | + 7864 => 'E', |
|
| 328 | + 7870 => 'E', |
|
| 329 | + 7872 => 'E', |
|
| 330 | + 7874 => 'E', |
|
| 331 | + 7876 => 'E', |
|
| 332 | + 7878 => 'E', |
|
| 333 | + 7881 => 'i', |
|
| 334 | + 7883 => 'i', |
|
| 335 | + 7880 => 'I', |
|
| 336 | + 7882 => 'I', |
|
| 337 | + 7887 => 'o', |
|
| 338 | + 7885 => 'o', |
|
| 339 | + 7889 => 'o', |
|
| 340 | + 7891 => 'o', |
|
| 341 | + 7893 => 'o', |
|
| 342 | + 7895 => 'o', |
|
| 343 | + 7897 => 'o', |
|
| 344 | + 417 => 'o', |
|
| 345 | + 7899 => 'o', |
|
| 346 | + 7901 => 'o', |
|
| 347 | + 7903 => 'o', |
|
| 348 | + 7905 => 'o', |
|
| 349 | + 7907 => 'o', |
|
| 350 | + 7886 => 'O', |
|
| 351 | + 7884 => 'O', |
|
| 352 | + 7888 => 'O', |
|
| 353 | + 7890 => 'O', |
|
| 354 | + 7892 => 'O', |
|
| 355 | + 7894 => 'O', |
|
| 356 | + 7896 => 'O', |
|
| 357 | + 416 => 'O', |
|
| 358 | + 7898 => 'O', |
|
| 359 | + 7900 => 'O', |
|
| 360 | + 7902 => 'O', |
|
| 361 | + 7904 => 'O', |
|
| 362 | + 7906 => 'O', |
|
| 363 | + 7911 => 'u', |
|
| 364 | + 361 => 'u', |
|
| 365 | + 7909 => 'u', |
|
| 366 | + 432 => 'u', |
|
| 367 | + 7913 => 'u', |
|
| 368 | + 7915 => 'u', |
|
| 369 | + 7917 => 'u', |
|
| 370 | + 7919 => 'u', |
|
| 371 | + 7921 => 'u', |
|
| 372 | + 7910 => 'U', |
|
| 373 | + 360 => 'U', |
|
| 374 | + 7908 => 'U', |
|
| 375 | + 431 => 'U', |
|
| 376 | + 7912 => 'U', |
|
| 377 | + 7914 => 'U', |
|
| 378 | + 7916 => 'U', |
|
| 379 | + 7918 => 'U', |
|
| 380 | + 7920 => 'U', |
|
| 381 | + 253 => 'y', |
|
| 382 | + 7923 => 'y', |
|
| 383 | + 7927 => 'y', |
|
| 384 | + 7929 => 'y', |
|
| 385 | + 7925 => 'y', |
|
| 386 | + 221 => 'Y', |
|
| 387 | + 7922 => 'Y', |
|
| 388 | + 7926 => 'Y', |
|
| 389 | + 7928 => 'Y', |
|
| 390 | + 7924 => 'Y', |
|
| 391 | + 273 => 'd' |
|
| 392 | 392 | |
| 393 | 393 | ]; |
@@ -10,127 +10,127 @@ |
||
| 10 | 10 | **/ |
| 11 | 11 | |
| 12 | 12 | $GLOBALS['CHARSET']['cp1250'] = [ |
| 13 | - 0x80 => 0x20AC, |
|
| 14 | - 0x82 => 0x201A, |
|
| 15 | - 0x84 => 0x201E, |
|
| 16 | - 0x85 => 0x2026, |
|
| 17 | - 0x86 => 0x2020, |
|
| 18 | - 0x87 => 0x2021, |
|
| 19 | - 0x89 => 0x2030, |
|
| 20 | - 0x8A => 0x0160, |
|
| 21 | - 0x8B => 0x2039, |
|
| 22 | - 0x8C => 0x015A, |
|
| 23 | - 0x8D => 0x0164, |
|
| 24 | - 0x8E => 0x017D, |
|
| 25 | - 0x8F => 0x0179, |
|
| 26 | - 0x91 => 0x2018, |
|
| 27 | - 0x92 => 0x2019, |
|
| 28 | - 0x93 => 0x201C, |
|
| 29 | - 0x94 => 0x201D, |
|
| 30 | - 0x95 => 0x2022, |
|
| 31 | - 0x96 => 0x2013, |
|
| 32 | - 0x97 => 0x2014, |
|
| 33 | - 0x99 => 0x2122, |
|
| 34 | - 0x9A => 0x0161, |
|
| 35 | - 0x9B => 0x203A, |
|
| 36 | - 0x9C => 0x015B, |
|
| 37 | - 0x9D => 0x0165, |
|
| 38 | - 0x9E => 0x017E, |
|
| 39 | - 0x9F => 0x017A, |
|
| 40 | - 0xA0 => 0x00A0, |
|
| 41 | - 0xA1 => 0x02C7, |
|
| 42 | - 0xA2 => 0x02D8, |
|
| 43 | - 0xA3 => 0x0141, |
|
| 44 | - 0xA4 => 0x00A4, |
|
| 45 | - 0xA5 => 0x0104, |
|
| 46 | - 0xA6 => 0x00A6, |
|
| 47 | - 0xA7 => 0x00A7, |
|
| 48 | - 0xA8 => 0x00A8, |
|
| 49 | - 0xA9 => 0x00A9, |
|
| 50 | - 0xAA => 0x015E, |
|
| 51 | - 0xAB => 0x00AB, |
|
| 52 | - 0xAC => 0x00AC, |
|
| 53 | - 0xAD => 0x00AD, |
|
| 54 | - 0xAE => 0x00AE, |
|
| 55 | - 0xAF => 0x017B, |
|
| 56 | - 0xB0 => 0x00B0, |
|
| 57 | - 0xB1 => 0x00B1, |
|
| 58 | - 0xB2 => 0x02DB, |
|
| 59 | - 0xB3 => 0x0142, |
|
| 60 | - 0xB4 => 0x00B4, |
|
| 61 | - 0xB5 => 0x00B5, |
|
| 62 | - 0xB6 => 0x00B6, |
|
| 63 | - 0xB7 => 0x00B7, |
|
| 64 | - 0xB8 => 0x00B8, |
|
| 65 | - 0xB9 => 0x0105, |
|
| 66 | - 0xBA => 0x015F, |
|
| 67 | - 0xBB => 0x00BB, |
|
| 68 | - 0xBC => 0x013D, |
|
| 69 | - 0xBD => 0x02DD, |
|
| 70 | - 0xBE => 0x013E, |
|
| 71 | - 0xBF => 0x017C, |
|
| 72 | - 0xC0 => 0x0154, |
|
| 73 | - 0xC1 => 0x00C1, |
|
| 74 | - 0xC2 => 0x00C2, |
|
| 75 | - 0xC3 => 0x0102, |
|
| 76 | - 0xC4 => 0x00C4, |
|
| 77 | - 0xC5 => 0x0139, |
|
| 78 | - 0xC6 => 0x0106, |
|
| 79 | - 0xC7 => 0x00C7, |
|
| 80 | - 0xC8 => 0x010C, |
|
| 81 | - 0xC9 => 0x00C9, |
|
| 82 | - 0xCA => 0x0118, |
|
| 83 | - 0xCB => 0x00CB, |
|
| 84 | - 0xCC => 0x011A, |
|
| 85 | - 0xCD => 0x00CD, |
|
| 86 | - 0xCE => 0x00CE, |
|
| 87 | - 0xCF => 0x010E, |
|
| 88 | - 0xD0 => 0x0110, |
|
| 89 | - 0xD1 => 0x0143, |
|
| 90 | - 0xD2 => 0x0147, |
|
| 91 | - 0xD3 => 0x00D3, |
|
| 92 | - 0xD4 => 0x00D4, |
|
| 93 | - 0xD5 => 0x0150, |
|
| 94 | - 0xD6 => 0x00D6, |
|
| 95 | - 0xD7 => 0x00D7, |
|
| 96 | - 0xD8 => 0x0158, |
|
| 97 | - 0xD9 => 0x016E, |
|
| 98 | - 0xDA => 0x00DA, |
|
| 99 | - 0xDB => 0x0170, |
|
| 100 | - 0xDC => 0x00DC, |
|
| 101 | - 0xDD => 0x00DD, |
|
| 102 | - 0xDE => 0x0162, |
|
| 103 | - 0xDF => 0x00DF, |
|
| 104 | - 0xE0 => 0x0155, |
|
| 105 | - 0xE1 => 0x00E1, |
|
| 106 | - 0xE2 => 0x00E2, |
|
| 107 | - 0xE3 => 0x0103, |
|
| 108 | - 0xE4 => 0x00E4, |
|
| 109 | - 0xE5 => 0x013A, |
|
| 110 | - 0xE6 => 0x0107, |
|
| 111 | - 0xE7 => 0x00E7, |
|
| 112 | - 0xE8 => 0x010D, |
|
| 113 | - 0xE9 => 0x00E9, |
|
| 114 | - 0xEA => 0x0119, |
|
| 115 | - 0xEB => 0x00EB, |
|
| 116 | - 0xEC => 0x011B, |
|
| 117 | - 0xED => 0x00ED, |
|
| 118 | - 0xEE => 0x00EE, |
|
| 119 | - 0xEF => 0x010F, |
|
| 120 | - 0xF0 => 0x0111, |
|
| 121 | - 0xF1 => 0x0144, |
|
| 122 | - 0xF2 => 0x0148, |
|
| 123 | - 0xF3 => 0x00F3, |
|
| 124 | - 0xF4 => 0x00F4, |
|
| 125 | - 0xF5 => 0x0151, |
|
| 126 | - 0xF6 => 0x00F6, |
|
| 127 | - 0xF7 => 0x00F7, |
|
| 128 | - 0xF8 => 0x0159, |
|
| 129 | - 0xF9 => 0x016F, |
|
| 130 | - 0xFA => 0x00FA, |
|
| 131 | - 0xFB => 0x0171, |
|
| 132 | - 0xFC => 0x00FC, |
|
| 133 | - 0xFD => 0x00FD, |
|
| 134 | - 0xFE => 0x0163, |
|
| 135 | - 0xFF => 0x02D9 |
|
| 13 | + 0x80 => 0x20AC, |
|
| 14 | + 0x82 => 0x201A, |
|
| 15 | + 0x84 => 0x201E, |
|
| 16 | + 0x85 => 0x2026, |
|
| 17 | + 0x86 => 0x2020, |
|
| 18 | + 0x87 => 0x2021, |
|
| 19 | + 0x89 => 0x2030, |
|
| 20 | + 0x8A => 0x0160, |
|
| 21 | + 0x8B => 0x2039, |
|
| 22 | + 0x8C => 0x015A, |
|
| 23 | + 0x8D => 0x0164, |
|
| 24 | + 0x8E => 0x017D, |
|
| 25 | + 0x8F => 0x0179, |
|
| 26 | + 0x91 => 0x2018, |
|
| 27 | + 0x92 => 0x2019, |
|
| 28 | + 0x93 => 0x201C, |
|
| 29 | + 0x94 => 0x201D, |
|
| 30 | + 0x95 => 0x2022, |
|
| 31 | + 0x96 => 0x2013, |
|
| 32 | + 0x97 => 0x2014, |
|
| 33 | + 0x99 => 0x2122, |
|
| 34 | + 0x9A => 0x0161, |
|
| 35 | + 0x9B => 0x203A, |
|
| 36 | + 0x9C => 0x015B, |
|
| 37 | + 0x9D => 0x0165, |
|
| 38 | + 0x9E => 0x017E, |
|
| 39 | + 0x9F => 0x017A, |
|
| 40 | + 0xA0 => 0x00A0, |
|
| 41 | + 0xA1 => 0x02C7, |
|
| 42 | + 0xA2 => 0x02D8, |
|
| 43 | + 0xA3 => 0x0141, |
|
| 44 | + 0xA4 => 0x00A4, |
|
| 45 | + 0xA5 => 0x0104, |
|
| 46 | + 0xA6 => 0x00A6, |
|
| 47 | + 0xA7 => 0x00A7, |
|
| 48 | + 0xA8 => 0x00A8, |
|
| 49 | + 0xA9 => 0x00A9, |
|
| 50 | + 0xAA => 0x015E, |
|
| 51 | + 0xAB => 0x00AB, |
|
| 52 | + 0xAC => 0x00AC, |
|
| 53 | + 0xAD => 0x00AD, |
|
| 54 | + 0xAE => 0x00AE, |
|
| 55 | + 0xAF => 0x017B, |
|
| 56 | + 0xB0 => 0x00B0, |
|
| 57 | + 0xB1 => 0x00B1, |
|
| 58 | + 0xB2 => 0x02DB, |
|
| 59 | + 0xB3 => 0x0142, |
|
| 60 | + 0xB4 => 0x00B4, |
|
| 61 | + 0xB5 => 0x00B5, |
|
| 62 | + 0xB6 => 0x00B6, |
|
| 63 | + 0xB7 => 0x00B7, |
|
| 64 | + 0xB8 => 0x00B8, |
|
| 65 | + 0xB9 => 0x0105, |
|
| 66 | + 0xBA => 0x015F, |
|
| 67 | + 0xBB => 0x00BB, |
|
| 68 | + 0xBC => 0x013D, |
|
| 69 | + 0xBD => 0x02DD, |
|
| 70 | + 0xBE => 0x013E, |
|
| 71 | + 0xBF => 0x017C, |
|
| 72 | + 0xC0 => 0x0154, |
|
| 73 | + 0xC1 => 0x00C1, |
|
| 74 | + 0xC2 => 0x00C2, |
|
| 75 | + 0xC3 => 0x0102, |
|
| 76 | + 0xC4 => 0x00C4, |
|
| 77 | + 0xC5 => 0x0139, |
|
| 78 | + 0xC6 => 0x0106, |
|
| 79 | + 0xC7 => 0x00C7, |
|
| 80 | + 0xC8 => 0x010C, |
|
| 81 | + 0xC9 => 0x00C9, |
|
| 82 | + 0xCA => 0x0118, |
|
| 83 | + 0xCB => 0x00CB, |
|
| 84 | + 0xCC => 0x011A, |
|
| 85 | + 0xCD => 0x00CD, |
|
| 86 | + 0xCE => 0x00CE, |
|
| 87 | + 0xCF => 0x010E, |
|
| 88 | + 0xD0 => 0x0110, |
|
| 89 | + 0xD1 => 0x0143, |
|
| 90 | + 0xD2 => 0x0147, |
|
| 91 | + 0xD3 => 0x00D3, |
|
| 92 | + 0xD4 => 0x00D4, |
|
| 93 | + 0xD5 => 0x0150, |
|
| 94 | + 0xD6 => 0x00D6, |
|
| 95 | + 0xD7 => 0x00D7, |
|
| 96 | + 0xD8 => 0x0158, |
|
| 97 | + 0xD9 => 0x016E, |
|
| 98 | + 0xDA => 0x00DA, |
|
| 99 | + 0xDB => 0x0170, |
|
| 100 | + 0xDC => 0x00DC, |
|
| 101 | + 0xDD => 0x00DD, |
|
| 102 | + 0xDE => 0x0162, |
|
| 103 | + 0xDF => 0x00DF, |
|
| 104 | + 0xE0 => 0x0155, |
|
| 105 | + 0xE1 => 0x00E1, |
|
| 106 | + 0xE2 => 0x00E2, |
|
| 107 | + 0xE3 => 0x0103, |
|
| 108 | + 0xE4 => 0x00E4, |
|
| 109 | + 0xE5 => 0x013A, |
|
| 110 | + 0xE6 => 0x0107, |
|
| 111 | + 0xE7 => 0x00E7, |
|
| 112 | + 0xE8 => 0x010D, |
|
| 113 | + 0xE9 => 0x00E9, |
|
| 114 | + 0xEA => 0x0119, |
|
| 115 | + 0xEB => 0x00EB, |
|
| 116 | + 0xEC => 0x011B, |
|
| 117 | + 0xED => 0x00ED, |
|
| 118 | + 0xEE => 0x00EE, |
|
| 119 | + 0xEF => 0x010F, |
|
| 120 | + 0xF0 => 0x0111, |
|
| 121 | + 0xF1 => 0x0144, |
|
| 122 | + 0xF2 => 0x0148, |
|
| 123 | + 0xF3 => 0x00F3, |
|
| 124 | + 0xF4 => 0x00F4, |
|
| 125 | + 0xF5 => 0x0151, |
|
| 126 | + 0xF6 => 0x00F6, |
|
| 127 | + 0xF7 => 0x00F7, |
|
| 128 | + 0xF8 => 0x0159, |
|
| 129 | + 0xF9 => 0x016F, |
|
| 130 | + 0xFA => 0x00FA, |
|
| 131 | + 0xFB => 0x0171, |
|
| 132 | + 0xFC => 0x00FC, |
|
| 133 | + 0xFD => 0x00FD, |
|
| 134 | + 0xFE => 0x0163, |
|
| 135 | + 0xFF => 0x02D9 |
|
| 136 | 136 | ]; |
@@ -7,7 +7,7 @@ discard block |
||
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | 9 | if (!defined('_ECRIRE_INC_VERSION')) { |
| 10 | - return; |
|
| 10 | + return; |
|
| 11 | 11 | } |
| 12 | 12 | |
| 13 | 13 | include_spip('inc/actions'); |
@@ -21,23 +21,23 @@ discard block |
||
| 21 | 21 | * @uses ajax_retour() |
| 22 | 22 | */ |
| 23 | 23 | function exec_info_plugin_dist() { |
| 24 | - if (!autoriser('configurer', '_plugins')) { |
|
| 25 | - include_spip('inc/minipres'); |
|
| 26 | - echo minipres(); |
|
| 27 | - } else { |
|
| 28 | - $plug = _DIR_RACINE . htmlspecialchars(_request('plugin')); |
|
| 29 | - $get_infos = charger_fonction('get_infos', 'plugins'); |
|
| 30 | - $dir = ''; |
|
| 31 | - if (strncmp($plug, _DIR_PLUGINS, strlen(_DIR_PLUGINS)) == 0) { |
|
| 32 | - $dir = _DIR_PLUGINS; |
|
| 33 | - } elseif (strncmp($plug, _DIR_PLUGINS_DIST, strlen(_DIR_PLUGINS_DIST)) == 0) { |
|
| 34 | - $dir = _DIR_PLUGINS_DIST; |
|
| 35 | - } |
|
| 36 | - if ($dir) { |
|
| 37 | - $plug = substr($plug, strlen($dir)); |
|
| 38 | - } |
|
| 39 | - $info = $get_infos($plug, false, $dir); |
|
| 40 | - $afficher_plugin = charger_fonction('afficher_plugin', 'plugins'); |
|
| 41 | - ajax_retour(affiche_bloc_plugin($plug, $info, $dir)); |
|
| 42 | - } |
|
| 24 | + if (!autoriser('configurer', '_plugins')) { |
|
| 25 | + include_spip('inc/minipres'); |
|
| 26 | + echo minipres(); |
|
| 27 | + } else { |
|
| 28 | + $plug = _DIR_RACINE . htmlspecialchars(_request('plugin')); |
|
| 29 | + $get_infos = charger_fonction('get_infos', 'plugins'); |
|
| 30 | + $dir = ''; |
|
| 31 | + if (strncmp($plug, _DIR_PLUGINS, strlen(_DIR_PLUGINS)) == 0) { |
|
| 32 | + $dir = _DIR_PLUGINS; |
|
| 33 | + } elseif (strncmp($plug, _DIR_PLUGINS_DIST, strlen(_DIR_PLUGINS_DIST)) == 0) { |
|
| 34 | + $dir = _DIR_PLUGINS_DIST; |
|
| 35 | + } |
|
| 36 | + if ($dir) { |
|
| 37 | + $plug = substr($plug, strlen($dir)); |
|
| 38 | + } |
|
| 39 | + $info = $get_infos($plug, false, $dir); |
|
| 40 | + $afficher_plugin = charger_fonction('afficher_plugin', 'plugins'); |
|
| 41 | + ajax_retour(affiche_bloc_plugin($plug, $info, $dir)); |
|
| 42 | + } |
|
| 43 | 43 | } |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | include_spip('inc/minipres'); |
| 26 | 26 | echo minipres(); |
| 27 | 27 | } else { |
| 28 | - $plug = _DIR_RACINE . htmlspecialchars(_request('plugin')); |
|
| 28 | + $plug = _DIR_RACINE.htmlspecialchars(_request('plugin')); |
|
| 29 | 29 | $get_infos = charger_fonction('get_infos', 'plugins'); |
| 30 | 30 | $dir = ''; |
| 31 | 31 | if (strncmp($plug, _DIR_PLUGINS, strlen(_DIR_PLUGINS)) == 0) { |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | $message = _T('avis_acces_interdit_prive', ['exec' => _request('exec')]); |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | - $contenu = "<h1 class='grostitre'>" . _T('info_acces_interdit') . '</h1>' . $message; |
|
| 40 | + $contenu = "<h1 class='grostitre'>"._T('info_acces_interdit').'</h1>'.$message; |
|
| 41 | 41 | |
| 42 | 42 | if (_request('var_zajax')) { |
| 43 | 43 | include_spip('inc/actions'); |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | */ |
| 18 | 18 | |
| 19 | 19 | if (!defined('_ECRIRE_INC_VERSION')) { |
| 20 | - return; |
|
| 20 | + return; |
|
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | /** |
@@ -27,40 +27,40 @@ discard block |
||
| 27 | 27 | */ |
| 28 | 28 | function exec_403_dist($message = '') { |
| 29 | 29 | |
| 30 | - $exec = _request('exec'); |
|
| 30 | + $exec = _request('exec'); |
|
| 31 | 31 | |
| 32 | - $titre = "exec_$exec"; |
|
| 33 | - $navigation = ''; |
|
| 34 | - $extra = ''; |
|
| 32 | + $titre = "exec_$exec"; |
|
| 33 | + $navigation = ''; |
|
| 34 | + $extra = ''; |
|
| 35 | 35 | |
| 36 | - if (!$message) { |
|
| 37 | - $message = _T('avis_acces_interdit_prive', ['exec' => _request('exec')]); |
|
| 38 | - } |
|
| 36 | + if (!$message) { |
|
| 37 | + $message = _T('avis_acces_interdit_prive', ['exec' => _request('exec')]); |
|
| 38 | + } |
|
| 39 | 39 | |
| 40 | - $contenu = "<h1 class='grostitre'>" . _T('info_acces_interdit') . '</h1>' . $message; |
|
| 40 | + $contenu = "<h1 class='grostitre'>" . _T('info_acces_interdit') . '</h1>' . $message; |
|
| 41 | 41 | |
| 42 | - if (_request('var_zajax')) { |
|
| 43 | - include_spip('inc/actions'); |
|
| 44 | - ajax_retour($contenu); |
|
| 45 | - } else { |
|
| 46 | - include_spip('inc/presentation'); // alleger les inclusions avec un inc/presentation_mini |
|
| 42 | + if (_request('var_zajax')) { |
|
| 43 | + include_spip('inc/actions'); |
|
| 44 | + ajax_retour($contenu); |
|
| 45 | + } else { |
|
| 46 | + include_spip('inc/presentation'); // alleger les inclusions avec un inc/presentation_mini |
|
| 47 | 47 | |
| 48 | - $commencer_page = charger_fonction('commencer_page', 'inc'); |
|
| 49 | - echo $commencer_page($titre); |
|
| 48 | + $commencer_page = charger_fonction('commencer_page', 'inc'); |
|
| 49 | + echo $commencer_page($titre); |
|
| 50 | 50 | |
| 51 | - echo debut_gauche(); |
|
| 52 | - echo recuperer_fond('prive/squelettes/navigation/dist', []); |
|
| 53 | - echo pipeline('affiche_gauche', ['args' => ['exec' => '403', 'exec_erreur' => $exec], 'data' => '']); |
|
| 51 | + echo debut_gauche(); |
|
| 52 | + echo recuperer_fond('prive/squelettes/navigation/dist', []); |
|
| 53 | + echo pipeline('affiche_gauche', ['args' => ['exec' => '403', 'exec_erreur' => $exec], 'data' => '']); |
|
| 54 | 54 | |
| 55 | - echo creer_colonne_droite(); |
|
| 56 | - echo pipeline('affiche_droite', ['args' => ['exec' => '403', 'exec_erreur' => $exec], 'data' => '']); |
|
| 55 | + echo creer_colonne_droite(); |
|
| 56 | + echo pipeline('affiche_droite', ['args' => ['exec' => '403', 'exec_erreur' => $exec], 'data' => '']); |
|
| 57 | 57 | |
| 58 | - echo debut_droite(); |
|
| 59 | - echo pipeline( |
|
| 60 | - 'affiche_milieu', |
|
| 61 | - ['args' => ['exec' => '403', 'exec_erreur' => $exec], 'data' => $contenu] |
|
| 62 | - ); |
|
| 58 | + echo debut_droite(); |
|
| 59 | + echo pipeline( |
|
| 60 | + 'affiche_milieu', |
|
| 61 | + ['args' => ['exec' => '403', 'exec_erreur' => $exec], 'data' => $contenu] |
|
| 62 | + ); |
|
| 63 | 63 | |
| 64 | - echo fin_gauche(), fin_page(); |
|
| 65 | - } |
|
| 64 | + echo fin_gauche(), fin_page(); |
|
| 65 | + } |
|
| 66 | 66 | } |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | */ |
| 18 | 18 | |
| 19 | 19 | if (!defined('_ECRIRE_INC_VERSION')) { |
| 20 | - return; |
|
| 20 | + return; |
|
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | /** |
@@ -27,23 +27,23 @@ discard block |
||
| 27 | 27 | * @uses ajax_retour() |
| 28 | 28 | **/ |
| 29 | 29 | function exec_plonger_dist() { |
| 30 | - include_spip('inc/actions'); |
|
| 30 | + include_spip('inc/actions'); |
|
| 31 | 31 | |
| 32 | - $rac = preg_replace(',[^\w\,/#&;-]+,', ' ', _request('rac')); |
|
| 33 | - $id = intval(_request('id')); |
|
| 34 | - $exclus = intval(_request('exclus')); |
|
| 35 | - $col = intval(_request('col')); |
|
| 36 | - $do = _request('do'); |
|
| 37 | - if (preg_match('/^\w*$/', $do)) { |
|
| 38 | - if (!$do) { |
|
| 39 | - $do = 'aff'; |
|
| 40 | - } |
|
| 32 | + $rac = preg_replace(',[^\w\,/#&;-]+,', ' ', _request('rac')); |
|
| 33 | + $id = intval(_request('id')); |
|
| 34 | + $exclus = intval(_request('exclus')); |
|
| 35 | + $col = intval(_request('col')); |
|
| 36 | + $do = _request('do'); |
|
| 37 | + if (preg_match('/^\w*$/', $do)) { |
|
| 38 | + if (!$do) { |
|
| 39 | + $do = 'aff'; |
|
| 40 | + } |
|
| 41 | 41 | |
| 42 | - $plonger = charger_fonction('plonger', 'inc'); |
|
| 43 | - $r = $plonger($id, spip_htmlentities($rac), [], $col, $exclus, $do); |
|
| 44 | - } else { |
|
| 45 | - $r = ''; |
|
| 46 | - } |
|
| 42 | + $plonger = charger_fonction('plonger', 'inc'); |
|
| 43 | + $r = $plonger($id, spip_htmlentities($rac), [], $col, $exclus, $do); |
|
| 44 | + } else { |
|
| 45 | + $r = ''; |
|
| 46 | + } |
|
| 47 | 47 | |
| 48 | - ajax_retour($r); |
|
| 48 | + ajax_retour($r); |
|
| 49 | 49 | } |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | **/ |
| 18 | 18 | |
| 19 | 19 | if (!defined('_ECRIRE_INC_VERSION')) { |
| 20 | - return; |
|
| 20 | + return; |
|
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | include_spip('inc/presentation'); |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | * @return string Code HTML |
| 33 | 33 | **/ |
| 34 | 34 | function exec_puce_statut_dist() { |
| 35 | - exec_puce_statut_args(_request('id'), _request('type')); |
|
| 35 | + exec_puce_statut_args(_request('id'), _request('type')); |
|
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | /** |
@@ -52,26 +52,26 @@ discard block |
||
| 52 | 52 | * @return string Code HTML |
| 53 | 53 | **/ |
| 54 | 54 | function exec_puce_statut_args($id, $type) { |
| 55 | - $id = intval($id); |
|
| 56 | - if ( |
|
| 57 | - $table_objet_sql = table_objet_sql($type) |
|
| 58 | - and $d = lister_tables_objets_sql($table_objet_sql) |
|
| 59 | - and isset($d['statut_textes_instituer']) |
|
| 60 | - and $d['statut_textes_instituer'] |
|
| 61 | - ) { |
|
| 62 | - $prim = id_table_objet($type); |
|
| 63 | - if (isset($d['field']['id_rubrique'])) { |
|
| 64 | - $select = 'id_rubrique,statut'; |
|
| 65 | - } else { |
|
| 66 | - $select = '0 as id_rubrique,statut'; |
|
| 67 | - } |
|
| 68 | - $r = sql_fetsel($select, $table_objet_sql, "$prim=$id"); |
|
| 69 | - $statut = $r['statut']; |
|
| 70 | - $id_rubrique = $r['id_rubrique']; |
|
| 71 | - } else { |
|
| 72 | - $id_rubrique = $id; |
|
| 73 | - $statut = 'prop'; // arbitraire |
|
| 74 | - } |
|
| 75 | - $puce_statut = charger_fonction('puce_statut', 'inc'); |
|
| 76 | - ajax_retour($puce_statut($id, $statut, $id_rubrique, $type, true)); |
|
| 55 | + $id = intval($id); |
|
| 56 | + if ( |
|
| 57 | + $table_objet_sql = table_objet_sql($type) |
|
| 58 | + and $d = lister_tables_objets_sql($table_objet_sql) |
|
| 59 | + and isset($d['statut_textes_instituer']) |
|
| 60 | + and $d['statut_textes_instituer'] |
|
| 61 | + ) { |
|
| 62 | + $prim = id_table_objet($type); |
|
| 63 | + if (isset($d['field']['id_rubrique'])) { |
|
| 64 | + $select = 'id_rubrique,statut'; |
|
| 65 | + } else { |
|
| 66 | + $select = '0 as id_rubrique,statut'; |
|
| 67 | + } |
|
| 68 | + $r = sql_fetsel($select, $table_objet_sql, "$prim=$id"); |
|
| 69 | + $statut = $r['statut']; |
|
| 70 | + $id_rubrique = $r['id_rubrique']; |
|
| 71 | + } else { |
|
| 72 | + $id_rubrique = $id; |
|
| 73 | + $statut = 'prop'; // arbitraire |
|
| 74 | + } |
|
| 75 | + $puce_statut = charger_fonction('puce_statut', 'inc'); |
|
| 76 | + ajax_retour($puce_statut($id, $statut, $id_rubrique, $type, true)); |
|
| 77 | 77 | } |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | */ |
| 18 | 18 | |
| 19 | 19 | if (!defined('_ECRIRE_INC_VERSION')) { |
| 20 | - return; |
|
| 20 | + return; |
|
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | include_spip('inc/minipres'); |
@@ -42,27 +42,27 @@ discard block |
||
| 42 | 42 | * |
| 43 | 43 | **/ |
| 44 | 44 | function exec_install_dist() { |
| 45 | - $etape = _request('etape'); |
|
| 46 | - $deja = (_FILE_CONNECT and analyse_fichier_connection(_FILE_CONNECT)); |
|
| 45 | + $etape = _request('etape'); |
|
| 46 | + $deja = (_FILE_CONNECT and analyse_fichier_connection(_FILE_CONNECT)); |
|
| 47 | 47 | |
| 48 | - // Si deja installe, on n'a plus le droit qu'a l'etape chmod |
|
| 49 | - // pour chgt post-install ou aux etapes supplementaires |
|
| 50 | - // de declaration de base externes. |
|
| 51 | - // Mais alors il faut authentifier car ecrire/index.php l'a omis |
|
| 48 | + // Si deja installe, on n'a plus le droit qu'a l'etape chmod |
|
| 49 | + // pour chgt post-install ou aux etapes supplementaires |
|
| 50 | + // de declaration de base externes. |
|
| 51 | + // Mais alors il faut authentifier car ecrire/index.php l'a omis |
|
| 52 | 52 | |
| 53 | - if ($deja and in_array($etape, ['chmod', 'sup1', 'sup2'])) { |
|
| 54 | - $auth = charger_fonction('auth', 'inc'); |
|
| 55 | - if (!$auth()) { |
|
| 56 | - verifier_visiteur(); |
|
| 57 | - $deja = (!autoriser('configurer')); |
|
| 58 | - } |
|
| 59 | - } |
|
| 60 | - if ($deja) { |
|
| 61 | - // Rien a faire ici |
|
| 62 | - echo minipres(); |
|
| 63 | - } else { |
|
| 64 | - include_spip('base/create'); |
|
| 65 | - $fonc = charger_fonction("etape_$etape", 'install'); |
|
| 66 | - $fonc(); |
|
| 67 | - } |
|
| 53 | + if ($deja and in_array($etape, ['chmod', 'sup1', 'sup2'])) { |
|
| 54 | + $auth = charger_fonction('auth', 'inc'); |
|
| 55 | + if (!$auth()) { |
|
| 56 | + verifier_visiteur(); |
|
| 57 | + $deja = (!autoriser('configurer')); |
|
| 58 | + } |
|
| 59 | + } |
|
| 60 | + if ($deja) { |
|
| 61 | + // Rien a faire ici |
|
| 62 | + echo minipres(); |
|
| 63 | + } else { |
|
| 64 | + include_spip('base/create'); |
|
| 65 | + $fonc = charger_fonction("etape_$etape", 'install'); |
|
| 66 | + $fonc(); |
|
| 67 | + } |
|
| 68 | 68 | } |
@@ -68,15 +68,15 @@ discard block |
||
| 68 | 68 | $where = preg_split(',\s+,', $type); |
| 69 | 69 | if ($where) { |
| 70 | 70 | foreach ($where as $k => $v) { |
| 71 | - $where[$k] = "'%" . substr(str_replace('%', '\%', sql_quote($v, '', 'string')), 1, -1) . "%'"; |
|
| 71 | + $where[$k] = "'%".substr(str_replace('%', '\%', sql_quote($v, '', 'string')), 1, -1)."%'"; |
|
| 72 | 72 | } |
| 73 | - $where_titre = ('(titre LIKE ' . join(' AND titre LIKE ', $where) . ')'); |
|
| 74 | - $where_desc = ('(descriptif LIKE ' . join(' AND descriptif LIKE ', $where) . ')'); |
|
| 75 | - $where_id = ('(id_rubrique = ' . intval($type) . ')'); |
|
| 73 | + $where_titre = ('(titre LIKE '.join(' AND titre LIKE ', $where).')'); |
|
| 74 | + $where_desc = ('(descriptif LIKE '.join(' AND descriptif LIKE ', $where).')'); |
|
| 75 | + $where_id = ('(id_rubrique = '.intval($type).')'); |
|
| 76 | 76 | |
| 77 | 77 | if ($exclus) { |
| 78 | 78 | include_spip('inc/rubriques'); |
| 79 | - $where_exclus = ' AND ' . sql_in('id_rubrique', calcul_branche_in($exclus), 'NOT'); |
|
| 79 | + $where_exclus = ' AND '.sql_in('id_rubrique', calcul_branche_in($exclus), 'NOT'); |
|
| 80 | 80 | } else { |
| 81 | 81 | $where_exclus = ''; |
| 82 | 82 | } |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | |
| 107 | 107 | if ($points) { |
| 108 | 108 | arsort($points); |
| 109 | - $style = " style='background-image: url(" . chemin_image('secteur-12.png') . ")'"; |
|
| 109 | + $style = " style='background-image: url(".chemin_image('secteur-12.png').")'"; |
|
| 110 | 110 | foreach ($rub as $k => $v) { |
| 111 | 111 | $rub[$k]['atts'] = ($v['id_parent'] ? $style : '') |
| 112 | 112 | . " class='petite-rubrique'"; |
@@ -139,13 +139,13 @@ discard block |
||
| 139 | 139 | if (!$ids) { |
| 140 | 140 | return "<br /><br /><div style='padding: 5px; color: red;'><b>" |
| 141 | 141 | . spip_htmlentities($type) |
| 142 | - . '</b> : ' . _T('avis_aucun_resultat') . '</div>'; |
|
| 142 | + . '</b> : '._T('avis_aucun_resultat').'</div>'; |
|
| 143 | 143 | } |
| 144 | 144 | |
| 145 | 145 | $ret = ''; |
| 146 | 146 | $info = generer_url_ecrire('informer', "type=rubrique&rac=$rac&id="); |
| 147 | 147 | |
| 148 | - $onClick = "aff_selection(this.firstChild.title,'$rac" . "_selection','$info', event)"; |
|
| 148 | + $onClick = "aff_selection(this.firstChild.title,'$rac"."_selection','$info', event)"; |
|
| 149 | 149 | |
| 150 | 150 | $ondbClick = "$do(this.firstChild.firstChild.nodeValue,this.firstChild.title,'selection_rubrique', 'id_parent');"; |
| 151 | 151 | |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | **/ |
| 20 | 20 | |
| 21 | 21 | if (!defined('_ECRIRE_INC_VERSION')) { |
| 22 | - return; |
|
| 22 | + return; |
|
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | include_spip('inc/actions'); |
@@ -32,17 +32,17 @@ discard block |
||
| 32 | 32 | * @uses ajax_retour() |
| 33 | 33 | **/ |
| 34 | 34 | function exec_rechercher_dist() { |
| 35 | - $id = intval(_request('id')); |
|
| 36 | - $exclus = intval(_request('exclus')); |
|
| 37 | - $rac = spip_htmlentities(_request('rac')); |
|
| 38 | - $type = _request('type'); |
|
| 39 | - $do = _request('do'); |
|
| 40 | - if (preg_match('/^\w*$/', $do)) { |
|
| 41 | - $r = exec_rechercher_args($id, $type, $exclus, $rac, $do); |
|
| 42 | - } else { |
|
| 43 | - $r = ''; |
|
| 44 | - } |
|
| 45 | - ajax_retour($r); |
|
| 35 | + $id = intval(_request('id')); |
|
| 36 | + $exclus = intval(_request('exclus')); |
|
| 37 | + $rac = spip_htmlentities(_request('rac')); |
|
| 38 | + $type = _request('type'); |
|
| 39 | + $do = _request('do'); |
|
| 40 | + if (preg_match('/^\w*$/', $do)) { |
|
| 41 | + $r = exec_rechercher_args($id, $type, $exclus, $rac, $do); |
|
| 42 | + } else { |
|
| 43 | + $r = ''; |
|
| 44 | + } |
|
| 45 | + ajax_retour($r); |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | /** |
@@ -59,61 +59,61 @@ discard block |
||
| 59 | 59 | * @return string |
| 60 | 60 | **/ |
| 61 | 61 | function exec_rechercher_args($id, $type, $exclus, $rac, $do) { |
| 62 | - if (!$do) { |
|
| 63 | - $do = 'aff'; |
|
| 64 | - } |
|
| 65 | - |
|
| 66 | - $points = $rub = []; |
|
| 67 | - |
|
| 68 | - $where = preg_split(',\s+,', $type); |
|
| 69 | - if ($where) { |
|
| 70 | - foreach ($where as $k => $v) { |
|
| 71 | - $where[$k] = "'%" . substr(str_replace('%', '\%', sql_quote($v, '', 'string')), 1, -1) . "%'"; |
|
| 72 | - } |
|
| 73 | - $where_titre = ('(titre LIKE ' . join(' AND titre LIKE ', $where) . ')'); |
|
| 74 | - $where_desc = ('(descriptif LIKE ' . join(' AND descriptif LIKE ', $where) . ')'); |
|
| 75 | - $where_id = ('(id_rubrique = ' . intval($type) . ')'); |
|
| 76 | - |
|
| 77 | - if ($exclus) { |
|
| 78 | - include_spip('inc/rubriques'); |
|
| 79 | - $where_exclus = ' AND ' . sql_in('id_rubrique', calcul_branche_in($exclus), 'NOT'); |
|
| 80 | - } else { |
|
| 81 | - $where_exclus = ''; |
|
| 82 | - } |
|
| 83 | - |
|
| 84 | - foreach ( |
|
| 85 | - [ |
|
| 86 | - 3 => $where_titre, |
|
| 87 | - 2 => $where_desc, |
|
| 88 | - 1 => $where_id, |
|
| 89 | - ] as $point => $recherche |
|
| 90 | - ) { |
|
| 91 | - $res = sql_select('id_rubrique, id_parent, titre', 'spip_rubriques', "$recherche$where_exclus"); |
|
| 92 | - while ($row = sql_fetch($res)) { |
|
| 93 | - $id_rubrique = $row['id_rubrique']; |
|
| 94 | - if (!isset($rub[$id_rubrique])) { |
|
| 95 | - $rub[$id_rubrique] = []; |
|
| 96 | - } |
|
| 97 | - $rub[$id_rubrique]['titre'] = typo($row['titre']); |
|
| 98 | - $rub[$id_rubrique]['id_parent'] = $row['id_parent']; |
|
| 99 | - if (!isset($points[$id_rubrique])) { |
|
| 100 | - $points[$id_rubrique] = 0; |
|
| 101 | - } |
|
| 102 | - $points[$id_rubrique] = $points[$id_rubrique] + $point; |
|
| 103 | - } |
|
| 104 | - } |
|
| 105 | - } |
|
| 106 | - |
|
| 107 | - if ($points) { |
|
| 108 | - arsort($points); |
|
| 109 | - $style = " style='background-image: url(" . chemin_image('secteur-12.png') . ")'"; |
|
| 110 | - foreach ($rub as $k => $v) { |
|
| 111 | - $rub[$k]['atts'] = ($v['id_parent'] ? $style : '') |
|
| 112 | - . " class='petite-rubrique'"; |
|
| 113 | - } |
|
| 114 | - } |
|
| 115 | - |
|
| 116 | - return (proposer_item($points, $rub, $rac, $type, $do)); |
|
| 62 | + if (!$do) { |
|
| 63 | + $do = 'aff'; |
|
| 64 | + } |
|
| 65 | + |
|
| 66 | + $points = $rub = []; |
|
| 67 | + |
|
| 68 | + $where = preg_split(',\s+,', $type); |
|
| 69 | + if ($where) { |
|
| 70 | + foreach ($where as $k => $v) { |
|
| 71 | + $where[$k] = "'%" . substr(str_replace('%', '\%', sql_quote($v, '', 'string')), 1, -1) . "%'"; |
|
| 72 | + } |
|
| 73 | + $where_titre = ('(titre LIKE ' . join(' AND titre LIKE ', $where) . ')'); |
|
| 74 | + $where_desc = ('(descriptif LIKE ' . join(' AND descriptif LIKE ', $where) . ')'); |
|
| 75 | + $where_id = ('(id_rubrique = ' . intval($type) . ')'); |
|
| 76 | + |
|
| 77 | + if ($exclus) { |
|
| 78 | + include_spip('inc/rubriques'); |
|
| 79 | + $where_exclus = ' AND ' . sql_in('id_rubrique', calcul_branche_in($exclus), 'NOT'); |
|
| 80 | + } else { |
|
| 81 | + $where_exclus = ''; |
|
| 82 | + } |
|
| 83 | + |
|
| 84 | + foreach ( |
|
| 85 | + [ |
|
| 86 | + 3 => $where_titre, |
|
| 87 | + 2 => $where_desc, |
|
| 88 | + 1 => $where_id, |
|
| 89 | + ] as $point => $recherche |
|
| 90 | + ) { |
|
| 91 | + $res = sql_select('id_rubrique, id_parent, titre', 'spip_rubriques', "$recherche$where_exclus"); |
|
| 92 | + while ($row = sql_fetch($res)) { |
|
| 93 | + $id_rubrique = $row['id_rubrique']; |
|
| 94 | + if (!isset($rub[$id_rubrique])) { |
|
| 95 | + $rub[$id_rubrique] = []; |
|
| 96 | + } |
|
| 97 | + $rub[$id_rubrique]['titre'] = typo($row['titre']); |
|
| 98 | + $rub[$id_rubrique]['id_parent'] = $row['id_parent']; |
|
| 99 | + if (!isset($points[$id_rubrique])) { |
|
| 100 | + $points[$id_rubrique] = 0; |
|
| 101 | + } |
|
| 102 | + $points[$id_rubrique] = $points[$id_rubrique] + $point; |
|
| 103 | + } |
|
| 104 | + } |
|
| 105 | + } |
|
| 106 | + |
|
| 107 | + if ($points) { |
|
| 108 | + arsort($points); |
|
| 109 | + $style = " style='background-image: url(" . chemin_image('secteur-12.png') . ")'"; |
|
| 110 | + foreach ($rub as $k => $v) { |
|
| 111 | + $rub[$k]['atts'] = ($v['id_parent'] ? $style : '') |
|
| 112 | + . " class='petite-rubrique'"; |
|
| 113 | + } |
|
| 114 | + } |
|
| 115 | + |
|
| 116 | + return (proposer_item($points, $rub, $rac, $type, $do)); |
|
| 117 | 117 | } |
| 118 | 118 | |
| 119 | 119 | |
@@ -136,37 +136,37 @@ discard block |
||
| 136 | 136 | **/ |
| 137 | 137 | function proposer_item($ids, $titles, $rac, $type, $do) { |
| 138 | 138 | |
| 139 | - if (!$ids) { |
|
| 140 | - return "<br /><br /><div style='padding: 5px; color: red;'><b>" |
|
| 141 | - . spip_htmlentities($type) |
|
| 142 | - . '</b> : ' . _T('avis_aucun_resultat') . '</div>'; |
|
| 143 | - } |
|
| 144 | - |
|
| 145 | - $ret = ''; |
|
| 146 | - $info = generer_url_ecrire('informer', "type=rubrique&rac=$rac&id="); |
|
| 147 | - |
|
| 148 | - $onClick = "aff_selection(this.firstChild.title,'$rac" . "_selection','$info', event)"; |
|
| 149 | - |
|
| 150 | - $ondbClick = "$do(this.firstChild.firstChild.nodeValue,this.firstChild.title,'selection_rubrique', 'id_parent');"; |
|
| 151 | - |
|
| 152 | - foreach ($ids as $id => $bof) { |
|
| 153 | - $titre = strtr( |
|
| 154 | - str_replace("'", '’', str_replace('"', '"', textebrut($titles[$id]['titre']))), |
|
| 155 | - "\n\r", |
|
| 156 | - ' ' |
|
| 157 | - ); |
|
| 158 | - |
|
| 159 | - $ret .= "<div class='highlight off'\nonclick=\"changerhighlight(this); " |
|
| 160 | - . $onClick |
|
| 161 | - . "\"\nondblclick=\"" |
|
| 162 | - . $ondbClick |
|
| 163 | - . $onClick |
|
| 164 | - . ' "><div' |
|
| 165 | - . $titles[$id]['atts'] |
|
| 166 | - . " title='$id'> " |
|
| 167 | - . $titre |
|
| 168 | - . '</div></div>'; |
|
| 169 | - } |
|
| 170 | - |
|
| 171 | - return $ret; |
|
| 139 | + if (!$ids) { |
|
| 140 | + return "<br /><br /><div style='padding: 5px; color: red;'><b>" |
|
| 141 | + . spip_htmlentities($type) |
|
| 142 | + . '</b> : ' . _T('avis_aucun_resultat') . '</div>'; |
|
| 143 | + } |
|
| 144 | + |
|
| 145 | + $ret = ''; |
|
| 146 | + $info = generer_url_ecrire('informer', "type=rubrique&rac=$rac&id="); |
|
| 147 | + |
|
| 148 | + $onClick = "aff_selection(this.firstChild.title,'$rac" . "_selection','$info', event)"; |
|
| 149 | + |
|
| 150 | + $ondbClick = "$do(this.firstChild.firstChild.nodeValue,this.firstChild.title,'selection_rubrique', 'id_parent');"; |
|
| 151 | + |
|
| 152 | + foreach ($ids as $id => $bof) { |
|
| 153 | + $titre = strtr( |
|
| 154 | + str_replace("'", '’', str_replace('"', '"', textebrut($titles[$id]['titre']))), |
|
| 155 | + "\n\r", |
|
| 156 | + ' ' |
|
| 157 | + ); |
|
| 158 | + |
|
| 159 | + $ret .= "<div class='highlight off'\nonclick=\"changerhighlight(this); " |
|
| 160 | + . $onClick |
|
| 161 | + . "\"\nondblclick=\"" |
|
| 162 | + . $ondbClick |
|
| 163 | + . $onClick |
|
| 164 | + . ' "><div' |
|
| 165 | + . $titles[$id]['atts'] |
|
| 166 | + . " title='$id'> " |
|
| 167 | + . $titre |
|
| 168 | + . '</div></div>'; |
|
| 169 | + } |
|
| 170 | + |
|
| 171 | + return $ret; |
|
| 172 | 172 | } |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | */ |
| 18 | 18 | |
| 19 | 19 | if (!defined('_ECRIRE_INC_VERSION')) { |
| 20 | - return; |
|
| 20 | + return; |
|
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | include_spip('inc/actions'); |
@@ -30,70 +30,70 @@ discard block |
||
| 30 | 30 | **/ |
| 31 | 31 | function exec_upgrade_dist() { |
| 32 | 32 | |
| 33 | - if (!_FILE_CONNECT) { |
|
| 34 | - redirige_url_ecrire('install'); |
|
| 35 | - } |
|
| 33 | + if (!_FILE_CONNECT) { |
|
| 34 | + redirige_url_ecrire('install'); |
|
| 35 | + } |
|
| 36 | 36 | |
| 37 | - // Si reinstallation necessaire, message ad hoc |
|
| 38 | - if (_request('reinstall') == 'oui') { |
|
| 39 | - include_spip('inc/minipres'); |
|
| 40 | - $r = minipres( |
|
| 41 | - _T('titre_page_upgrade'), |
|
| 42 | - '<p><b>' |
|
| 43 | - . _T('texte_nouvelle_version_spip_1') |
|
| 44 | - . '</b><p> ' |
|
| 45 | - . _T( |
|
| 46 | - 'texte_nouvelle_version_spip_2', |
|
| 47 | - ['connect' => '<tt>' . _FILE_CONNECT . '</tt>'] |
|
| 48 | - ) |
|
| 49 | - . generer_form_ecrire( |
|
| 50 | - 'upgrade', |
|
| 51 | - "<input type='hidden' name='reinstall' value='non' />", |
|
| 52 | - '', |
|
| 53 | - _T('bouton_relancer_installation') |
|
| 54 | - ) |
|
| 55 | - ); |
|
| 56 | - echo $r; |
|
| 57 | - } elseif (_request('fin')) { |
|
| 58 | - include_spip('inc/plugin'); |
|
| 59 | - actualise_plugins_actifs(); |
|
| 60 | - include_spip('inc/headers'); |
|
| 61 | - $res = generer_url_ecrire('admin_plugin', 'var_mode=recalcul'); |
|
| 62 | - echo redirige_formulaire($res); |
|
| 63 | - } else { |
|
| 64 | - if (!isset($GLOBALS['meta']['version_installee'])) { |
|
| 65 | - $GLOBALS['meta']['version_installee'] = 0.0; |
|
| 66 | - } else { |
|
| 67 | - $GLOBALS['meta']['version_installee'] = |
|
| 68 | - (double)str_replace(',', '.', $GLOBALS['meta']['version_installee']); |
|
| 69 | - } |
|
| 70 | - # NB: str_replace car, sur club-internet, il semble que version_installe soit |
|
| 71 | - # enregistree au format '1,812' et non '1.812' |
|
| 37 | + // Si reinstallation necessaire, message ad hoc |
|
| 38 | + if (_request('reinstall') == 'oui') { |
|
| 39 | + include_spip('inc/minipres'); |
|
| 40 | + $r = minipres( |
|
| 41 | + _T('titre_page_upgrade'), |
|
| 42 | + '<p><b>' |
|
| 43 | + . _T('texte_nouvelle_version_spip_1') |
|
| 44 | + . '</b><p> ' |
|
| 45 | + . _T( |
|
| 46 | + 'texte_nouvelle_version_spip_2', |
|
| 47 | + ['connect' => '<tt>' . _FILE_CONNECT . '</tt>'] |
|
| 48 | + ) |
|
| 49 | + . generer_form_ecrire( |
|
| 50 | + 'upgrade', |
|
| 51 | + "<input type='hidden' name='reinstall' value='non' />", |
|
| 52 | + '', |
|
| 53 | + _T('bouton_relancer_installation') |
|
| 54 | + ) |
|
| 55 | + ); |
|
| 56 | + echo $r; |
|
| 57 | + } elseif (_request('fin')) { |
|
| 58 | + include_spip('inc/plugin'); |
|
| 59 | + actualise_plugins_actifs(); |
|
| 60 | + include_spip('inc/headers'); |
|
| 61 | + $res = generer_url_ecrire('admin_plugin', 'var_mode=recalcul'); |
|
| 62 | + echo redirige_formulaire($res); |
|
| 63 | + } else { |
|
| 64 | + if (!isset($GLOBALS['meta']['version_installee'])) { |
|
| 65 | + $GLOBALS['meta']['version_installee'] = 0.0; |
|
| 66 | + } else { |
|
| 67 | + $GLOBALS['meta']['version_installee'] = |
|
| 68 | + (double)str_replace(',', '.', $GLOBALS['meta']['version_installee']); |
|
| 69 | + } |
|
| 70 | + # NB: str_replace car, sur club-internet, il semble que version_installe soit |
|
| 71 | + # enregistree au format '1,812' et non '1.812' |
|
| 72 | 72 | |
| 73 | - // Erreur downgrade |
|
| 74 | - // (cas de double installation de fichiers SPIP sur une meme base) |
|
| 75 | - if ($GLOBALS['spip_version_base'] < $GLOBALS['meta']['version_installee']) { |
|
| 76 | - $commentaire = _T('info_mise_a_niveau_base_2'); |
|
| 77 | - } // Commentaire standard upgrade |
|
| 78 | - else { |
|
| 79 | - $commentaire = _T('texte_mise_a_niveau_base_1'); |
|
| 80 | - } |
|
| 73 | + // Erreur downgrade |
|
| 74 | + // (cas de double installation de fichiers SPIP sur une meme base) |
|
| 75 | + if ($GLOBALS['spip_version_base'] < $GLOBALS['meta']['version_installee']) { |
|
| 76 | + $commentaire = _T('info_mise_a_niveau_base_2'); |
|
| 77 | + } // Commentaire standard upgrade |
|
| 78 | + else { |
|
| 79 | + $commentaire = _T('texte_mise_a_niveau_base_1'); |
|
| 80 | + } |
|
| 81 | 81 | |
| 82 | - $commentaire .= '<br />[' . $GLOBALS['meta']['version_installee'] . '/' . $GLOBALS['spip_version_base'] . ']'; |
|
| 82 | + $commentaire .= '<br />[' . $GLOBALS['meta']['version_installee'] . '/' . $GLOBALS['spip_version_base'] . ']'; |
|
| 83 | 83 | |
| 84 | - $_POST['reinstall'] = 'non'; // pour copy_request dans admin |
|
| 85 | - include_spip('inc/headers'); |
|
| 86 | - $admin = charger_fonction('admin', 'inc'); |
|
| 87 | - $res = $admin('upgrade', _T('info_mise_a_niveau_base'), $commentaire); |
|
| 88 | - if ($res) { |
|
| 89 | - echo $res; |
|
| 90 | - } else { |
|
| 91 | - // effacer les alea pour forcer leur relecture |
|
| 92 | - // si jamais ils ont change pendant l'upgrade |
|
| 93 | - unset($GLOBALS['meta']['alea_ephemere']); |
|
| 94 | - unset($GLOBALS['meta']['alea_ephemere_ancien']); |
|
| 95 | - $res = redirige_action_auteur('purger', 'cache', 'upgrade', 'fin=oui', true); |
|
| 96 | - echo redirige_formulaire($res); |
|
| 97 | - } |
|
| 98 | - } |
|
| 84 | + $_POST['reinstall'] = 'non'; // pour copy_request dans admin |
|
| 85 | + include_spip('inc/headers'); |
|
| 86 | + $admin = charger_fonction('admin', 'inc'); |
|
| 87 | + $res = $admin('upgrade', _T('info_mise_a_niveau_base'), $commentaire); |
|
| 88 | + if ($res) { |
|
| 89 | + echo $res; |
|
| 90 | + } else { |
|
| 91 | + // effacer les alea pour forcer leur relecture |
|
| 92 | + // si jamais ils ont change pendant l'upgrade |
|
| 93 | + unset($GLOBALS['meta']['alea_ephemere']); |
|
| 94 | + unset($GLOBALS['meta']['alea_ephemere_ancien']); |
|
| 95 | + $res = redirige_action_auteur('purger', 'cache', 'upgrade', 'fin=oui', true); |
|
| 96 | + echo redirige_formulaire($res); |
|
| 97 | + } |
|
| 98 | + } |
|
| 99 | 99 | } |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | . '</b><p> ' |
| 45 | 45 | . _T( |
| 46 | 46 | 'texte_nouvelle_version_spip_2', |
| 47 | - ['connect' => '<tt>' . _FILE_CONNECT . '</tt>'] |
|
| 47 | + ['connect' => '<tt>'._FILE_CONNECT.'</tt>'] |
|
| 48 | 48 | ) |
| 49 | 49 | . generer_form_ecrire( |
| 50 | 50 | 'upgrade', |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | $GLOBALS['meta']['version_installee'] = 0.0; |
| 66 | 66 | } else { |
| 67 | 67 | $GLOBALS['meta']['version_installee'] = |
| 68 | - (double)str_replace(',', '.', $GLOBALS['meta']['version_installee']); |
|
| 68 | + (double) str_replace(',', '.', $GLOBALS['meta']['version_installee']); |
|
| 69 | 69 | } |
| 70 | 70 | # NB: str_replace car, sur club-internet, il semble que version_installe soit |
| 71 | 71 | # enregistree au format '1,812' et non '1.812' |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | $commentaire = _T('texte_mise_a_niveau_base_1'); |
| 80 | 80 | } |
| 81 | 81 | |
| 82 | - $commentaire .= '<br />[' . $GLOBALS['meta']['version_installee'] . '/' . $GLOBALS['spip_version_base'] . ']'; |
|
| 82 | + $commentaire .= '<br />['.$GLOBALS['meta']['version_installee'].'/'.$GLOBALS['spip_version_base'].']'; |
|
| 83 | 83 | |
| 84 | 84 | $_POST['reinstall'] = 'non'; // pour copy_request dans admin |
| 85 | 85 | include_spip('inc/headers'); |