X7ROOT File Manager
Current Path:
/home/hamdjcne/app.hamdalillahitravel.com/system/Helpers
home
/
hamdjcne
/
app.hamdalillahitravel.com
/
system
/
Helpers
/
ðŸ“
..
📄
array_helper.php
(6.44 KB)
📄
cookie_helper.php
(3.14 KB)
📄
date_helper.php
(2.09 KB)
📄
filesystem_helper.php
(14.82 KB)
📄
form_helper.php
(21.34 KB)
📄
html_helper.php
(15.52 KB)
📄
inflector_helper.php
(10.12 KB)
📄
number_helper.php
(6.86 KB)
📄
security_helper.php
(1.15 KB)
📄
test_helper.php
(1.68 KB)
📄
text_helper.php
(20.27 KB)
📄
url_helper.php
(18.05 KB)
📄
xml_helper.php
(1.38 KB)
Editing: cookie_helper.php
<?php /** * This file is part of 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. */ use Config\App; use Config\Services; //============================================================================= // CodeIgniter Cookie Helpers //============================================================================= if (! function_exists('set_cookie')) { /** * Set cookie * * Accepts seven parameters, or you can submit an associative * array in the first parameter containing all the values. * * @param array|string $name Cookie name or array containing binds * @param string $value The value of the cookie * @param string $expire The number of seconds until expiration * @param string $domain For site-wide cookie. Usually: .yourdomain.com * @param string $path The cookie path * @param string $prefix The cookie prefix * @param bool $secure True makes the cookie secure * @param bool $httpOnly True makes the cookie accessible via http(s) only (no javascript) * @param string|null $sameSite The cookie SameSite value * * @see \CodeIgniter\HTTP\Response::setCookie() */ function set_cookie( $name, string $value = '', string $expire = '', string $domain = '', string $path = '/', string $prefix = '', bool $secure = false, bool $httpOnly = false, ?string $sameSite = null ) { $response = Services::response(); $response->setCookie($name, $value, $expire, $domain, $path, $prefix, $secure, $httpOnly, $sameSite); } } if (! function_exists('get_cookie')) { /** * Fetch an item from the $_COOKIE array * * @param string $index * * @return mixed * * @see \CodeIgniter\HTTP\IncomingRequest::getCookie() */ function get_cookie($index, bool $xssClean = false) { $prefix = isset($_COOKIE[$index]) ? '' : config(App::class)->cookiePrefix; $request = Services::request(); $filter = $xssClean ? FILTER_SANITIZE_FULL_SPECIAL_CHARS : FILTER_DEFAULT; return $request->getCookie($prefix . $index, $filter); } } if (! function_exists('delete_cookie')) { /** * Delete a cookie * * @param mixed $name * @param string $domain the cookie domain. Usually: .yourdomain.com * @param string $path the cookie path * @param string $prefix the cookie prefix * * @see \CodeIgniter\HTTP\Response::deleteCookie() */ function delete_cookie($name, string $domain = '', string $path = '/', string $prefix = '') { Services::response()->deleteCookie($name, $domain, $path, $prefix); } } if (! function_exists('has_cookie')) { /** * Checks if a cookie exists by name. */ function has_cookie(string $name, ?string $value = null, string $prefix = ''): bool { return Services::response()->hasCookie($name, $value, $prefix); } }
Upload File
Create Folder