# maxbuttons/6.23/includes/maxbuttons-collections.php

MaxButtons – Create buttons, version 6.23. 30 lines.

- Page: https://pluginprobe.com/plugins/maxbuttons/6.23/code/includes/maxbuttons-collections.php
- Raw: https://pluginprobe.com/plugins/maxbuttons/6.23/raw/includes/maxbuttons-collections.php
- Modified: 2017-09-28T17:08:40+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/maxbuttons/6.23/code/includes/maxbuttons-collections.php#L10-L20`.

```php
<?php 
namespace MaxButtons;
defined('ABSPATH') or die('No direct access permitted');

$colID = (isset($_GET["colID"])) ? intval($_GET["colID"]) : ''; 
$action = isset($_GET["action"]) ? sanitize_text_field($_GET["action"]) : ''; 


if (! extension_loaded('simplexml') )
	$action = 'nosimplexml'; 	

switch($action)
{
	case "edit": 
		require_once("maxbuttons-collection-edit.php"); 
	break;
	case 'nosimplexml': 
		require_once('maxbuttons-no-simplexml.php'); 
	break;	
	default; 
		require_once("maxbuttons-collection-list.php"); 
	break; 
}
 




?>

```
