mirror of
https://github.com/hak5/nano-tetra-modules.git
synced 2025-10-29 16:58:09 +00:00
35 lines
672 B
PHP
Executable File
35 lines
672 B
PHP
Executable File
<?php namespace evilportal;
|
|
|
|
class MyPortal extends Portal
|
|
{
|
|
|
|
public function handleAuthorization()
|
|
{
|
|
// handle form input or other extra things there
|
|
|
|
// Call parent to handle basic authorization first
|
|
parent::handleAuthorization();
|
|
|
|
}
|
|
|
|
/**
|
|
* Override this to do something when the client is successfully authorized.
|
|
* By default it just notifies the Web UI.
|
|
*/
|
|
public function onSuccess()
|
|
{
|
|
// Calls default success message
|
|
parent::onSuccess();
|
|
}
|
|
|
|
/**
|
|
* If an error occurs then do something here.
|
|
* Override to provide your own functionality.
|
|
*/
|
|
public function showError()
|
|
{
|
|
// Calls default error message
|
|
parent::showError();
|
|
}
|
|
}
|