| 1 |
<?php |
| 2 |
namespace MaxButtons; |
| 3 |
defined('ABSPATH') or die('No direct access permitted'); |
| 4 |
|
| 5 |
$colID = (isset($_GET["colID"])) ? intval($_GET["colID"]) : ''; |
| 6 |
$action = isset($_GET["action"]) ? sanitize_text_field($_GET["action"]) : ''; |
| 7 |
|
| 8 |
|
| 9 |
if (! extension_loaded('simplexml') ) |
| 10 |
$action = 'nosimplexml'; |
| 11 |
|
| 12 |
switch($action) |
| 13 |
{ |
| 14 |
case "edit": |
| 15 |
require_once("maxbuttons-collection-edit.php"); |
| 16 |
break; |
| 17 |
case 'nosimplexml': |
| 18 |
require_once('maxbuttons-no-simplexml.php'); |
| 19 |
break; |
| 20 |
default; |
| 21 |
require_once("maxbuttons-collection-list.php"); |
| 22 |
break; |
| 23 |
} |
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
?> |
| 30 |
|