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
CREATE TABLE `bestellungen` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`kunden_id` int(11) NOT NULL, | |
`bestellnummer` varchar(100) NOT NULL, | |
PRIMARY KEY (`id`), | |
KEY `kunden_id` (`kunden_id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; | |
-- -------------------------------------------------------- |
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
<?php | |
/** | |
* prueft, ob der Zugriff von einem Page Analyzer, wie Google PageSPeed Insights, | |
* aus erfolgt. | |
* | |
* Da wir keinen Einfluss auf den Brwoser-Cache der Google Analytics JS haben, | |
* spielen wir kein Google Analytics aus, wenn ein Page Analyzer auf die Seite | |
* zugreift. Das verschönert unsere Werte ;-) | |
* | |
* @param string $ua User-Agent |
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
function get_imagepath_from_contao() | |
{ | |
$wpdb_contao = new \wpdb('USER', 'PASSWORD', 'DBNAME', 'localhost'); | |
$result = $wpdb_contao->get_col(" | |
SELECT DISTINCT `product_imageSrc` | |
FROM `tl_zenner_products_language` | |
WHERE `id` = '1' | |
"); |
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
mkdir ~/bin | |
mkdir ~/bin/composer | |
cd ~/bin/composer | |
wget https://getcomposer.org/composer.phar | |
echo "# php version" >> ~/.bashrc | |
echo "export PHPVERSION=8.0 " >> ~/.bashrc | |
echo "" >> ~/.bashrc | |
echo "# composer alias" >> ~/.bashrc | |
echo "alias composer='php -d allow_url_fopen=on ~/bin/composer/composer.phar'" >> ~/.bashrc | |
source ~/.bashrc |