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

MaxButtons – Create buttons, version 7.13. 30 lines.

- Page: https://pluginprobe.com/plugins/maxbuttons/7.13/code/includes/maxbuttons-controller.php
- Raw: https://pluginprobe.com/plugins/maxbuttons/7.13/raw/includes/maxbuttons-controller.php
- Modified: 2019-10-11T11:32:46+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/7.13/code/includes/maxbuttons-controller.php#L10-L20`.

```php
<?php
namespace MaxButtons;
exit('XXIT');

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';
          $_GET['page'] = 'maxbuttons-button';
          MB()->loadAdminPage();
			break;
			default:
				//include_once 'maxbuttons-list.php';
        $_GET['page'] = 'maxbuttons-list';
        MB()->loadAdminPage();
			break;

		}

} else {
  $_GET['page'] = 'maxbuttons-list';
  MB()->loadAdminPage();
}

```
