| 1 |
<?php |
| 2 |
namespace MaxButtons; |
| 3 |
defined('ABSPATH') or die('No direct access permitted'); |
| 4 |
|
| 5 |
if (isset($_GET['action']) && $_GET['action'] != '') { |
| 6 |
// extra safety. |
| 7 |
$action = sanitize_text_field($_GET['action']); |
| 8 |
|
| 9 |
switch ($action) { |
| 10 |
case 'button': |
| 11 |
case 'edit': |
| 12 |
include_once 'maxbuttons-button.php'; |
| 13 |
break; |
| 14 |
case 'test': |
| 15 |
include_once 'maxbuttons-fa-test.php'; |
| 16 |
break; |
| 17 |
default: |
| 18 |
include_once 'maxbuttons-list.php'; |
| 19 |
break; |
| 20 |
|
| 21 |
} |
| 22 |
|
| 23 |
} else { |
| 24 |
include_once 'maxbuttons-list.php'; |
| 25 |
} |
| 26 |
|