hfkfhkfhgjkuhgfkjfghkj

This commit is contained in:
Local Dev
2025-02-03 12:03:51 -05:00
commit fd36f0f4bf
302 changed files with 22625 additions and 0 deletions

51
app/plugins/bugreport/forms.php Executable file
View File

@ -0,0 +1,51 @@
<?php
/**
* app/plugins/bugreport/forms.php
*
* This houses all of the form checking functions for this plugin.
*
* @package TP BugReports
* @version 3.0
* @author Joey Kimsey <Joey@thetempusproject.com>
* @link https://TheTempusProject.com
* @license https://opensource.org/licenses/MIT [MIT LICENSE]
*/
namespace TheTempusProject\Plugins\Bugreport;
use TheTempusProject\Bedrock\Functions\Input;
use TheTempusProject\Classes\Forms;
class BugReportForms extends Forms {
/**
* Adds these functions to the form list.
*/
public function __construct() {
self::addHandler( 'bugreport', __CLASS__, 'bugreport' );
}
/**
* Validates the bug report form.
*
* @return {bool}
*/
public static function bugreport() {
if ( !self::url( Input::post( 'url' ) ) ) {
self::addUserError( 'Invalid url.' );
return false;
}
if ( !self::url( Input::post( 'ourl' ) ) ) {
self::addUserError( 'Invalid original url.' );
return false;
}
if ( !self::tf( Input::post( 'repeat' ) ) ) {
self::addUserError( 'Invalid repeat value.' );
return false;
}
if ( !self::token() ) {
return false;
}
return true;
}
}
new BugReportForms;