X7ROOT File Manager
Current Path:
/var/www/vhosts/hwtw.com.tw/httpdocs/libs/Form
var
/
www
/
vhosts
/
hwtw.com.tw
/
httpdocs
/
libs
/
Form
/
📁
..
📄
Val.php
(699 B)
Editing: Val.php
<?php class Val { public function __construct() { } public function minlength($data, $arg) { if (strlen($data) < $arg) { return "Your string can only be $arg long"; } } public function maxlength($data, $arg) { if (strlen($data) > $arg) { return "Your string can only be $arg long"; } } public function digit($data) { if (ctype_digit($data) == false) { return "Your string must be a digit"; } } public function __call($name, $arguments) { throw new Exception("$name does not exist inside of: " . __CLASS__); } }
Upload File
Create Folder