| @@ 210-216 (lines=7) @@ | ||
| 207 | ]; |
|
| 208 | break; |
|
| 209 | ||
| 210 | case '404': |
|
| 211 | $array = [ |
|
| 212 | 'trash_url' => ltrim($this->input->post('url'), '/'), |
|
| 213 | 'trash_type' => $this->input->post('type'), |
|
| 214 | 'trash_redirect_type' => '404', |
|
| 215 | ]; |
|
| 216 | break; |
|
| 217 | ||
| 218 | default : |
|
| 219 | $array = [ |
|
| @@ 218-224 (lines=7) @@ | ||
| 215 | ]; |
|
| 216 | break; |
|
| 217 | ||
| 218 | default : |
|
| 219 | $array = [ |
|
| 220 | 'trash_url' => ltrim($this->input->post('url'), '/'), |
|
| 221 | 'trash_type' => $this->input->post('type'), |
|
| 222 | 'trash_redirect_type' => '404', |
|
| 223 | ]; |
|
| 224 | break; |
|
| 225 | } |
|
| 226 | ||
| 227 | $this->db->set($array); |
|
| @@ 324-332 (lines=9) @@ | ||
| 321 | ]; |
|
| 322 | break; |
|
| 323 | ||
| 324 | case '404': |
|
| 325 | $array = [ |
|
| 326 | 'id' => $this->input->post('id'), |
|
| 327 | 'trash_redirect_type' => $this->input->post('redirect_type'), |
|
| 328 | 'trash_type' => $this->input->post('type'), |
|
| 329 | 'trash_redirect' => '', |
|
| 330 | ]; |
|
| 331 | ||
| 332 | break; |
|
| 333 | ||
| 334 | default : |
|
| 335 | $array = [ |
|
| @@ 334-340 (lines=7) @@ | ||
| 331 | ||
| 332 | break; |
|
| 333 | ||
| 334 | default : |
|
| 335 | $array = [ |
|
| 336 | 'id' => $this->input->post('id'), |
|
| 337 | 'trash_url' => $this->input->post('old_url'), |
|
| 338 | 'trash_redirect_type' => $this->input->post('redirect_type'), |
|
| 339 | ]; |
|
| 340 | break; |
|
| 341 | } |
|
| 342 | ||
| 343 | $this->db->where('id', $this->input->post('id')); |
|