403Webshell
Server IP : 209.209.40.120  /  Your IP : 216.73.217.112
Web Server : Microsoft-IIS/10.0
System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586
User : NEWWWW$ ( 0)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/HostingSpaces/admin/chatme24.com/wwwroot/_include/current/places/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/HostingSpaces/admin/chatme24.com/wwwroot/_include/current/places/header.php
<?php
/* (C) Websplosion LLC, 2001-2021

IMPORTANT: This is a commercial software product
and any kind of using it must agree to the Websplosion's license agreement.
It can be found at http://www.chameleonsocial.com/license.doc

This notice may not be removed from the source code. */

payment_check('places');

class CPlacesHeader extends CHtmlBlock
{
	function parseBlock(&$html)
	{
		global $g_user;
		global $l;

		$country = null;
		if($g_user['country_id'])
			$country = DB::result("SELECT country_title FROM geo_country WHERE country_id = " . $g_user['country_id']);
		if(!$country)
			$country = "unknown";

		$city = null;
		$city_id = null;
		if($g_user['city_id'])
		{
			$city_id = $g_user['city_id'];
			$city = DB::result("SELECT city_title FROM geo_city WHERE city_id = " . $g_user['city_id']);
		}

		$html->setvar('country', $country);
		$html->setvar('city', $city);
		$html->setvar('city_id', $city_id);

		$location = ($city ? ($city . ', ') : '') . $country;
		$html->setvar('location', strcut($location, 18));
		$html->setvar('location_full', $location);

        if(guid()) {
            $html->parse('places_header_location');
        }

		DB::query("SELECT * FROM places_category ORDER BY position");
		$categories = array();
		while($category = DB::fetch_row())
		{
			$categories[] = $category;
		}

		for($category_n = 0; $category_n != count($categories); ++$category_n)
		{
			$html->setvar('category_id', $categories[$category_n]['id']);
			$html->setvar('category_title', l($categories[$category_n]['title'],false,'places_category'));

			if($category_n == count($categories) - 1)
				$html->parse("places_category_last", false);
			$html->parse("places_category", true);
		}

		parent::parseBlock($html);
	}
}


Youez - 2016 - github.com/yon3zu
LinuXploit