Current Path: > home > codekrsu > > ameliagraphics.com > wp-content > plugins > uipress-lite > admin > classes > Utils
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
Ajax.php | File | 986 bytes | May 13 2025 16:28:30. | |
Dates.php | File | 471 bytes | May 13 2025 16:28:30. | |
Objects.php | File | 2281 bytes | May 13 2025 16:28:30. | |
Posts.php | File | 4862 bytes | May 13 2025 16:28:30. | |
Sanitize.php | File | 5438 bytes | May 13 2025 16:28:30. | |
URL.php | File | 1610 bytes | May 13 2025 16:28:30. | |
UserRoles.php | File | 5771 bytes | May 13 2025 16:28:30. | |
Users.php | File | 3789 bytes | May 13 2025 16:28:30. |
<?php namespace UipressLite\Classes\Utils; !defined("ABSPATH") ? exit() : ""; class URL { /** * Returns the current URL * * @return string * @since 3.2.13 */ public static function current() { //Clean input $uri = sanitize_url($_SERVER["REQUEST_URI"]); $host_s = ""; if (isset($_SERVER["HTTPS"])) { $host_s = sanitize_url($_SERVER["HTTPS"]); } $port = ""; if (isset($_SERVER["SERVER_PORT"])) { $port = sanitize_url($_SERVER["SERVER_PORT"]); } $http_host = ""; if (isset($_SERVER["HTTP_HOST"])) { $http_host = sanitize_url($_SERVER["HTTP_HOST"]); } //Build protocol $protocol = (!empty($host_s) && $host_s != "off") || $port == 443 ? "https://" : "http://"; $url = $protocol . $http_host . $uri; return $url; } /** * Converts string to url safe slug * * @since 3.0.0 * Credit: from https://stackoverflow.com/questions/2955251/php-function-to-make-slug-url-string */ public static function urlSafe($text, $divider = "-") { // replace non letter or digits by divider $text = preg_replace("~[^\pL\d]+~u", $divider, $text); // transliterate $text = function_exists("iconv") ? iconv("utf-8", "us-ascii//TRANSLIT", $text) : $text; // remove unwanted characters $text = preg_replace("~[^-\w]+~", "", $text); // trim $text = trim($text, $divider); // remove duplicate divider $text = preg_replace("~-+~", $divider, $text); // lowercase $text = strtolower($text); if (empty($text)) { return "n-a"; } return $text; } }
SILENT KILLER Tool