AnonSec Shell
Server IP : 54.36.91.62  /  Your IP : 216.73.217.111
Web Server : Apache
System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : coopiak ( 151928)
PHP Version : 8.3.23
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/coopiak/amisdesseniors-fr/nimes/modules/mod_mymaplocations/tmpl/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/amisdesseniors-fr/nimes/modules/mod_mymaplocations/tmpl/default.php
<?php
/*
 * @version    4.5.2
 * @package     com_mymaplocations
 * @copyright   JoomUnited (C) 2011. All rights reserved.
 * @license     http://www.gnu.org/copyleft/gpl.html GNU/GPL
 * ***@author      Created by JoomUnited (C)
 */

defined('_JEXEC') or die;
?>
<script type="text/javascript">
    function useGeocode_<?php echo $module->id; ?>()
    {
        if (navigator.geolocation)
        {
            navigator.geolocation.getCurrentPosition(showPosition);
        }
        else
        {
            x.innerHTML="Geolocation is not supported by this browser.";
        }
    }
	    
    function showPosition(position)
    {
        document.getElementById("searchmodinput_<?php echo $module->id; ?>").value=position.coords.latitude+','+position.coords.longitude;
        document.getElementById("map-location_<?php echo $module->id; ?>").submit();
    }
	<?php if($mode==2) {?>
			function submitForm_<?php echo $module->id; ?>() {
             
					var localSearch = new google.maps.Geocoder();
                    var postcode = document.getElementById("searchpostal_<?php echo $module->id; ?>").value;
                    localSearch.geocode({ 'address': postcode },
							function(results, status) {
                                                    if (results.length) {
                                                        var result = results[0];
                                                        var location = result.geometry.location;
														document.getElementById("searchmodinput_<?php echo $module->id; ?>").value=roundNumber(location.lat(), 6)+','+roundNumber(location.lng(), 6);
														document.getElementById("map-location_<?php echo $module->id; ?>").submit(); 
                                                    }
                                                    else {
														document.getElementById("searchmodinput_<?php echo $module->id; ?>").value=postcode;
                                                        document.getElementById("map-location_<?php echo $module->id; ?>").submit(); 
                                                    }
													
													
											  });	
					
					
            }
			function roundNumber(num, dec) {
				return Math.round(num*Math.pow(10,dec))/Math.pow(10,dec);
			}
			 
		<?php } ?>
    
</script>
<style type="text/css">
    .locationmodule .resultbtn
    {
	   	    background: none repeat scroll 0 0 <?php echo $globalcolor;?>;
    border-color: -moz-use-text-color -moz-use-text-color <?php echo $globalcolor;?>;
    box-shadow: 0 -2px <?php echo $globalcolor;?> inset;
    font-size:13px;
     -moz-border-bottom-colors: none;
    -moz-border-left-colors: none;
    -moz-border-right-colors: none;
    -moz-border-top-colors: none;
    border-image: none;
    border-radius: 2px;
    border-style: none none solid;
    border-width: 0 0 2px;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    line-height: 22px;
    margin-left: 3px;
    text-align: center;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    
    }
    
#filter_catid,#radius
{
    background: none repeat scroll 0 0 #EEEEEE;
}
<?php if($geocode==0) {?>
.locationmodule .btn.btn-success.button.resultbtn
{
	display:none;
}
<?php } ?>
</style>
<div id="Locationsearch" class="locationmodule">
    <form role="search" method="post"
          action="<?php echo JRoute::_('index.php?option=com_mymaplocations&Itemid=' . $itemid); ?>" class="form-inline" id="map-location_<?php echo $module->id; ?>" <?php if($mode==2) {?> onsubmit="return false;" <?php } ?>>


        <div class="controls">
            <div>
				<?php if($mode==2) {?>
								 <input type="text" class="span9 search-query" id="searchpostal_<?php echo $module->id; ?>" name="searchpostal" value="<?php echo $searchpostal; ?>"
                                       autocomplete="off" 	/>
								 <?php } ?>
                <input <?php if($mode==2){ ?>type="hidden"<?php } else {?>type="text"<?php } ?> class="inputbox search-query" style="width:<?php echo $width ?>px" id="searchmodinput_<?php echo $module->id; ?>" name="searchzip"
                       value="<?php echo $filterzip; ?>"
                       autocomplete="off"> <input type="hidden" value="search" name="task">
<?php
if ($showcat == 1) {
    if($category)
    {
	echo $category;
    }
}
?>

                       <?php if ($distance_hide == 1) { ?>
                    <input type="hidden" value="<?php echo $filterradius;?>" name="radius">
                <?php } else { ?>
                    <select name="radius" id="radius" class="small chzn-select">
                    <?php
                    foreach ($distances as $distance) {
                        ?>
                            <option value="<?php echo $distance; ?>"  <?php if ($filterradius== ($distance)) { ?>
                                                    selected="selected" <?php } ?> ><?php echo $distance; ?><?php
                    if ($distance_type == 1) {
                        echo JText::_('COM_MYMAPLOCATIONS_MILES');
                    } else {
                        echo JText::_('COM_MYMAPLOCATIONS_KM');
                    }
                    ?></option>
                            <?php } ?>
                            <?php if ($anywhere == 1) { ?>
                            <option  value="-1" <?php if ($filterradius== -1) { ?>
                                                    selected="selected" <?php } ?>><?php echo JText::_('COM_MYMAPLOCATIONS_ANYWHERE'); ?></option>
                        <?php } ?>
                    </select>
                    <?php } ?>

		    <?php echo $advsearch; ?>
                <input <?php if($mode==2) {?>type="button" onClick="javascript:submitForm_<?php echo $module->id; ?>()" <?php }else {?>type="submit"<?php } ?> class="btn btn-primary button resultbtn" 
                       value="<?php echo JText::_('COM_MYMAPLOCATIONS_SUBMIT'); ?>"
                       id="Locationsubmit">
                <input
                    type="hidden" value="com_mymaplocations" name="option">
		     <input
                    type="hidden" value="locations" name="view">
                <input
                    type="hidden" value="<?php echo $itemid; ?>" name="Itemid">
                <input type="hidden" name="component" value="<?php echo $component; ?>">
		          <input type="hidden" name="limit" value="<?php echo $limit; ?>">
                <button class="btn btn-success button resultbtn" onClick="javascript:useGeocode_<?php echo $module->id; ?>()" type="button"><i class="icon-map-marker"></i><?php echo JTEXT::_('COM_MYMAPLOCATIONS_SEARCH_BYGEO'); ?></button>

            </div>
        </div>

        <div class="controls">
        </div>
    </form>

</div>
<?php $country=$param->get('country',null);

?>
 <?php
 if(method_exists('MyMapLocationsHelper','getAutocomplete'))
	{}
 else{
 echo MyMaplocationsHelper::loadGoogleJs();
 } ?>
<script type="text/javascript">
    /*<![CDATA[*/
  <?php if(method_exists('MyMapLocationsHelper','getAutocomplete'))
	{
  echo MyMapLocationsHelper::getAutocomplete($module->id,$mode,$country,'Locationsearch');
 } else {?>
    var spSearchDefStr = "search..."
    function initRSA_<?php echo $module->id; ?>() {var input = document.getElementById("<?php if($mode==2) {?>searchpostal<?php }else {?>searchmodinput<?php }?>_<?php echo $module->id; ?>");var options = {types:['geocode']};var ac = new google.maps.places.Autocomplete(input, options);<?php if(!empty($country)) { ?> ac.setComponentRestrictions({'country': <?php echo MyMaplocationsHelper::getCountryformat($country);?>});<?php } ?>google.maps.event.addListener(ac, "place_changed", function() {var pl = ac.getPlace();jQuery("#mj_rs_ref_lat").val(pl.geometry.location.lat()) ;jQuery("#mj_rs_ref_lng").val(pl.geometry.location.lng()) ;});}
 <?php }
  ?>
  <?php if($autocomplete_type!=2) {?>
    if (typeof jQuery == 'undefined') {
	<?php echo JHtml::_('jquery.framework');?>
    }
    jQuery(document).ready(function () {
	initRSA_<?php echo $module->id; ?>();
    });
    <?php } ?>
	/*]]>*/
</script>

Anon7 - 2022
AnonSec Team