$lat = $this->getState('filter.lat');
$lng = $this->getState('filter.lng');
$distance = $this->getState('filter.distance');
if (!empty($lat) && !empty($lng))
{
//$query->select('( 6371 * acos( cos( radians(' . $lat . ') ) * cos( radians( a.lat ) ) * cos( radians( a.lng ) - radians(' . $lng . ') ) + sin( radians(' . $lat . ') ) * sin( radians( a.lat ) ) ) ) AS distance')
//->having('distance <= ' . $distance);
$query->select('( 6371 * acos( cos( radians(' . $lat . ') ) * cos( radians( a.lat ) ) * cos( radians( a.lng ) - radians(' . $lng . ') ) + sin( radians(' . $lat . ') ) * sin( radians( a.lat ) ) ) ) AS distance');
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ALTER TABLE `#__kickconsentmanager_categories` | |
CHANGE `checked_out` `checked_out` int(10) unsigned NULL DEFAULT NULL, | |
CHANGE `checked_out_time` `checked_out_time` datetime NULL DEFAULT NULL; | |
ALTER TABLE `#__kickconsentmanager_cookies` | |
CHANGE `checked_out` `checked_out` int(10) unsigned NULL DEFAULT NULL, | |
CHANGE `checked_out_time` `checked_out_time` datetime NULL DEFAULT NULL; | |
ALTER TABLE `#__kickconsentmanager_scripts` | |
CHANGE `checked_out` `checked_out` int(10) unsigned NULL DEFAULT NULL, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"de-DE": { | |
location: { | |
headline: "Bitte wählen Sie ihr gewünschtes Behandlungszentrum aus:", | |
select: "Bitte einen Behandlungsort wählen.", | |
}, | |
customer: { | |
headline: "Besuchen Sie uns zum ersten Mal?", | |
new: "Ich bin bin Neukunde bei S-Thetic", | |
old: "Ich bin bereits Kunde bei S-Thetic", | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
# @package Joomla | |
# @copyright Copyright (C) 2005 - 2020 Open Source Matters. All rights reserved. | |
# @license GNU General Public License version 2 or later; see LICENSE.txt | |
## | |
## | |
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE! | |
# | |
# The line 'Options +FollowSymLinks' may cause problems with some server configurations. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function geocode($address = null) | |
{ | |
if (is_null($address)) | |
return false; | |
// url encode the address | |
$address = urlencode($address); | |
// google map geocode api url | |
$url = "https://maps.googleapis.com/maps/api/geocode/json?sensor=false&components=country:de&address={$address}&key={$this->compoParams->get('maps_api', 0)}"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
BACKUP="/var/www/vhosts/PATH/scripts/kicktemp/kicktemp.sql" | |
BACKUPCONFIG="/var/www/vhosts/PATH/scripts/kicktemp/configuration.php" | |
BACKUPZIP="/var/www/vhosts/PATH/scripts/kicktemp/backup.zip" | |
DELETDIR="/var/www/vhosts/PATH/demo.kicktemp.com/" | |
CONFIG="/var/www/vhosts/PATH/demo.kicktemp.com/configuration.php" | |
REMOVEADMINDIR=("com_installer/" "com_media/"); | |
REMOVESITEDIR=("com_users/"); | |
OWNER="USER" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
BACKUP="/var/www/vhosts/PATH/scripts/kicktemp/kicktemp.sql" | |
BACKUPZIP="/var/www/vhosts/PATH/scripts/kicktemp/backup.zip" | |
BACKUPPATH="/var/www/vhosts/PATH/dev.kicktemp.com/" | |
SCRIPTPATH="/var/www/vhosts/PATH/scripts/kicktemp/" | |
MUSER="DBUSER" | |
MPASS="DBPASS" | |
MDB="DATABASE" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get update && apt-get install -y git zip | |
curl -L https://phar.phpunit.de/phpunit.phar -o /usr/local/bin/phpunit | |
curl -L https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar -o /usr/local/bin/phpcs | |
curl -L https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar -o /usr/local/bin/phpcbf | |
chmod +x /usr/local/bin/phpunit | |
chmod +x /usr/local/bin/phpcs | |
chmod +x /usr/local/bin/phpcbf | |
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | |
composer global require joomla/coding-standards "~2.0@alpha" | |
phpcs --config-set installed_paths /root/.composer/vendor/joomla/coding-standards/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
# TOWER APP | |
PATH="$PATH:/usr/local/bin" | |
# PATH | |
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )" | |
GITREPO=$SCRIPTPATH/../../ | |
JCONF=$GITREPO/configuration.php | |
MYSQL=$(which mysql) | |
DIR=$(pwd) |
NewerOlder