. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . AnonSec Shell
AnonSec Shell
Server IP : 94.23.64.18  /  Your IP : 216.73.216.185   [ Reverse IP ]
Web Server : Apache
System : Linux webm005.cluster107.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
User : villadal ( 6036)
PHP Version : 7.4.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/villadal/www/old/wp-content/plugins/awesome-weather/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /home/villadal/www/old/wp-content/plugins/awesome-weather/awesome-weather-widget-admin.js

// SEARCH FOR LOCATION ID
jQuery(document).ready(function()
{
	
	jQuery(document.body).on('keyup', '.awe-location-search-field-openweathermaps', _.debounce( function()
	{
		if( jQuery(this).val() != "")
		{
			var units_val				= jQuery('#c-' + jQuery(this).data('unitsfield')).prop('checked') ? "f" : "c";
			var location_id 			= jQuery(this).attr('id');
			var owm_city_id_selector	= "#" + jQuery(this).data('cityidfield');

			jQuery('#awe-owm-spinner-' + location_id).removeClass("hidden");
		
			// PING
			var data = { action: 'awe_ping_owm_for_id', location: jQuery(this).val(), units: units_val };
			jQuery.getJSON(ajaxurl, data, function(response) 
			{
				var place_count = response.count;
				var places 		= response.list;
				
				jQuery( owm_city_id_selector ).val( '' );
				
				// IF NO PLACES DISPLAY AN ERROR
				if( !places )
				{
					jQuery('#owmid-selector-' + location_id).html( "<span style='color:red;'>" + awe_script.no_owm_city + "</span>");
				}
				else
				{
					if(place_count == 1)
					{
						jQuery( owm_city_id_selector ).val( places[0].id );
						jQuery( '#owmid-selector-' + location_id ).html( "<span style='color:red;'>" + awe_script.one_city_found + "</span>" );
					}
					else
					{
						var rtn = awe_script.confirm_city;
					
						for( p = 0; p < places.length; p++)
						{	
							if( places[p].id && places[p].id != 0 )
							{
								// SET TO FIRST
								if(p == 0)
								{
									jQuery( owm_city_id_selector ).val( places[p].id );
								}
							
								rtn = rtn + "<div style='padding: 5px 5px 0 10px;'> - <a href='javascript:;' onclick=\"jQuery('" + owm_city_id_selector + "').val(" + places[p].id + ");\" style='text-decoration:none;'>" + places[p].name + ", " + places[p].sys.country + " ( " + places[p].id + " )</a></div>"; 
							}
						}
						jQuery('#owmid-selector-' + location_id).html( rtn );
					}
				}
				jQuery('#awe-owm-spinner-' + location_id).addClass("hidden");
			});
		}	
	}, 250));
});

Anon7 - 2022
AnonSec Team