# maxbuttons/6.28/includes/maxbuttons-controller.php

MaxButtons – Create buttons, version 6.28. 23 lines.

- Page: https://pluginprobe.com/plugins/maxbuttons/6.28/code/includes/maxbuttons-controller.php
- Raw: https://pluginprobe.com/plugins/maxbuttons/6.28/raw/includes/maxbuttons-controller.php
- Modified: 2017-06-19T10:34:04+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.28/code/includes/maxbuttons-controller.php#L10-L20`.

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

if (isset($_GET['action']) && $_GET['action'] != '') {
		// extra safety. 
		$action = sanitize_text_field($_GET['action']); 
		
		switch ($action) {
			case 'button':
			case 'edit': 
					include_once 'maxbuttons-button.php';
			break;
			default:
				include_once 'maxbuttons-list.php';
				break;
		}

} else {
	include_once 'maxbuttons-list.php';
}


```
