mirror of
https://github.com/hak5/nano-tetra-modules.git
synced 2025-10-29 16:58:09 +00:00
Add modules to repository
This commit is contained in:
26
PortalAuth/includes/scripts/skeleton/MyPortal.php
Executable file
26
PortalAuth/includes/scripts/skeleton/MyPortal.php
Executable file
@@ -0,0 +1,26 @@
|
||||
<?php namespace evilportal;
|
||||
|
||||
class MyPortal extends Portal
|
||||
{
|
||||
|
||||
public function handleAuthorization()
|
||||
{
|
||||
// Call parent to handle basic authorization first
|
||||
parent::handleAuthorization();
|
||||
|
||||
// Check for other form data here
|
||||
}
|
||||
|
||||
public function showSuccess()
|
||||
{
|
||||
// Calls default success message
|
||||
//parent::showSuccess();
|
||||
parent::redirect();
|
||||
}
|
||||
|
||||
public function showError()
|
||||
{
|
||||
// Calls default error message
|
||||
parent::showError();
|
||||
}
|
||||
}
|
||||
1
PortalAuth/includes/scripts/skeleton/injectCSS.txt
Executable file
1
PortalAuth/includes/scripts/skeleton/injectCSS.txt
Executable file
@@ -0,0 +1 @@
|
||||
// Replace me with your code //
|
||||
1
PortalAuth/includes/scripts/skeleton/injectHTML.txt
Executable file
1
PortalAuth/includes/scripts/skeleton/injectHTML.txt
Executable file
@@ -0,0 +1 @@
|
||||
// Replace me with your code //
|
||||
1
PortalAuth/includes/scripts/skeleton/injectJS.txt
Executable file
1
PortalAuth/includes/scripts/skeleton/injectJS.txt
Executable file
@@ -0,0 +1 @@
|
||||
// Replace me with your code //
|
||||
3
PortalAuth/includes/scripts/skeleton/injectPHP.txt
Executable file
3
PortalAuth/includes/scripts/skeleton/injectPHP.txt
Executable file
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
$destination = "http://". $_SERVER['HTTP_HOST'] . $_SERVER['HTTP_URI'] . "";
|
||||
?>
|
||||
Reference in New Issue
Block a user