use actions
This commit is contained in:
parent
e66fd86dc7
commit
debf73aba4
|
@ -182,7 +182,7 @@ $purifier = new HTMLPurifier($purifier_config);
|
||||||
|
|
||||||
<a class="btn btn-sm btn-outline-danger"
|
<a class="btn btn-sm btn-outline-danger"
|
||||||
role="button"
|
role="button"
|
||||||
href="?delete_email_id=<?php echo $safe_email_id; ?>&address=<?php echo $user->address ?>">Delete
|
href="?action=delete_email&delete_email_id=<?php echo $safe_email_id; ?>&address=<?php echo $user->address ?>">Delete
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -35,7 +35,7 @@ class Router {
|
||||||
} elseif ($this->action === "download_email" && isset($this->get_vars['download_email_id']) && isset($this->get_vars['address'])) {
|
} elseif ($this->action === "download_email" && isset($this->get_vars['download_email_id']) && isset($this->get_vars['address'])) {
|
||||||
return new DownloadEmailPage($this->get_vars['download_email_id'], $this->get_vars['address'], $this->config['domains']);
|
return new DownloadEmailPage($this->get_vars['download_email_id'], $this->get_vars['address'], $this->config['domains']);
|
||||||
|
|
||||||
} elseif (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 (isset($this->get_vars['random'])) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user