One Hat Cyber Team
Your IP :
172.69.130.199
Server IP :
188.114.97.3
Server :
Linux thuru 6.5.11-4-pve #1 SMP PREEMPT_DYNAMIC PMX 6.5.11-4 (2023-11-20T10:19Z) x86_64
Server Software :
Apache/2.4.51 (Unix) OpenSSL/1.0.2k-fips
PHP Version :
7.3.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
thuruk
/
public_html
/
App
/
web
/
Edit File:
Plugins.php
<?php /** * This file is part of the CodeIgniter 4 framework. * * (c) CodeIgniter Foundation <admin@codeigniter.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace CodeIgniter\View; use CodeIgniter\HTTP\URI; use Config\Services; /** * View plugins */ class Plugins { /** * Wrap helper function to use as view plugin. * * @return string|URI */ public static function currentURL() { return current_url(); } //-------------------------------------------------------------------- /** * Wrap helper function to use as view plugin. * * @return URI|mixed|string */ public static function previousURL() { return previous_url(); } //-------------------------------------------------------------------- /** * Wrap helper function to use as view plugin. * * @param array $params * * @return string */ public static function mailto(array $params = []): string { $email = $params['email'] ?? ''; $title = $params['title'] ?? ''; $attrs = $params['attributes'] ?? ''; return mailto($email, $title, $attrs); } //-------------------------------------------------------------------- /** * Wrap helper function to use as view plugin. * * @param array $params * * @return string */ public static function safeMailto(array $params = []): string { $email = $params['email'] ?? ''; $title = $params['title'] ?? ''; $attrs = $params['attributes'] ?? ''; return safe_mailto($email, $title, $attrs); } //-------------------------------------------------------------------- /** * Wrap helper function to use as view plugin. * * @param array $params * * @return string */ public static function lang(array $params = []): string { $line = array_shift($params); return lang($line, $params); } //-------------------------------------------------------------------- /** * Wrap helper function to use as view plugin. * * @param array $params * * @return string */ public static function ValidationErrors(array $params = []): string { $validator = Services::validation(); if (empty($params)) { return $validator->listErrors(); } return $validator->showError($params['field']); } //-------------------------------------------------------------------- /** * Wrap helper function to use as view plugin. * * @param array $params * * @return string|false */ public static function route(array $params = []) { return route_to(...$params); } //-------------------------------------------------------------------- /** * Wrap helper function to use as view plugin. * * @param array $params * * @return string */ public static function siteURL(array $params = []): string { return site_url(...$params); } }
Simpan