use actions
This commit is contained in:
parent
debf73aba4
commit
664edcc1cb
|
@ -117,7 +117,7 @@ $purifier = new HTMLPurifier($purifier_config);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-3 col-md-4 col-sm-12 col-xs-12 random-column">
|
<div class="col-lg-3 col-md-4 col-sm-12 col-xs-12 random-column">
|
||||||
<a role="button" href="?random=true"
|
<a role="button" href="?action=random"
|
||||||
class="btn btn-outline-primary col-sm-12 col-xs-12 random-button">Generate
|
class="btn btn-outline-primary col-sm-12 col-xs-12 random-button">Generate
|
||||||
Random</a>
|
Random</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -38,7 +38,7 @@ class Router {
|
||||||
} elseif ($this->action === "delete_email" && isset($this->get_vars['delete_email_id']) && isset($this->get_vars['address'])) {
|
} elseif ($this->action === "delete_email" && isset($this->get_vars['delete_email_id']) && isset($this->get_vars['address'])) {
|
||||||
return new DeleteEmailPage($this->get_vars['delete_email_id'], $this->get_vars['address'], $this->config['domains']);
|
return new DeleteEmailPage($this->get_vars['delete_email_id'], $this->get_vars['address'], $this->config['domains']);
|
||||||
|
|
||||||
} elseif (isset($this->get_vars['random'])) {
|
} elseif ($this->action === 'random') {
|
||||||
return new RedirectToRandomAddressPage($this->config['domains']);
|
return new RedirectToRandomAddressPage($this->config['domains']);
|
||||||
|
|
||||||
} elseif (empty($this->query_string)) {
|
} elseif (empty($this->query_string)) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user