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

MaxButtons – Create buttons, version 6.6. 35 lines.

- Page: https://pluginprobe.com/plugins/maxbuttons/6.6/code/includes/maxbuttons-controller.php
- Raw: https://pluginprobe.com/plugins/maxbuttons/6.6/raw/includes/maxbuttons-controller.php
- Modified: 2016-11-11T12:00:14+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.6/code/includes/maxbuttons-controller.php#L10-L20`.

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

if (isset($_GET['action']) && $_GET['action'] != '') {
		switch ($_GET['action']) {
			case 'button':
			case 'edit': 
				if (isset($_GET["popup"]) && $_GET["popup"] == true) // bugs with save function to name something
					include_once 'button_editor_popup.php'; 
				else
					include_once 'maxbuttons-button.php';
				break;
			case 'copy':
				include_once 'maxbuttons-copy.php';
				break;
			case 'delete':
				include_once 'maxbuttons-delete.php';
				break;
			case 'trash':
				include_once 'maxbuttons-trash.php';
				break;
			case 'restore':
				include_once 'maxbuttons-restore.php';
				break;
 
			default:
				include_once 'maxbuttons-list.php';
				break;
		}

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


```
