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 | |
/** | |
**/ | |
define('TL_MODE', 'FE'); | |
define('BYPASS_TOKEN_CHECK', true); | |
/*Cache-Control:*/ | |
header("Cache-Control: no-cache, must-revalidate"); //HTTP 1.1 | |
header("Pragma: no-cache"); //HTTP 1.0 | |
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past |
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 static function generateUniqueId() | |
{ | |
# Zeichenvorrat | |
$zeichenvorrat = self::$zeichenvorrat; | |
$position = 0; | |
$uniqueId = ''; | |
for ($i = 0; $i < 6; $i++) | |
{ | |
$position = ($position + rand(1000, 9999)) % strlen($zeichenvorrat); |
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 | |
public static function generateUniqueId() | |
{ | |
$charSet = "ABCDEFGHJKLMNPQRSTUVWXYZ123456789"; | |
$position = 0; | |
$uniqueId = ''; | |
for ($i = 0; $i < 6; $i++) | |
{ |
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
/*! | |
* @preserve | |
* | |
* Readmore.js jQuery plugin | |
* Author: @jed_foster | |
* Project home: http://jedfoster.github.io/Readmore.js | |
* Licensed under the MIT license | |
* | |
*############## | |
*https://github.com/jedfoster/Readmore.js/issues/183 |
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
// /vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php | |
private function _establishSocketConnection() | |
{ | |
$host = $this->_params['host']; | |
if (!empty($this->_params['protocol'])) { | |
$host = $this->_params['protocol'].'://'.$host; | |
} | |
$timeout = 15; | |
if (!empty($this->_params['timeout'])) { |
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
1) Contao lokal installieren (WAMP) | |
2) vhost lokal einrichten und Windows Hosts-File | |
3) CMD (admin) npm installieren | |
4) CMD (admin) BrowserSync für das jeweilige Projekt installieren: npm install -i browser-sync | |
5) BrowserSync starten: browser-sync start --proxy vbeat:8080 --files **/*, !vendor/**, !/.history/**, !var/** --no-notify (proxy == vhost) | |
6) Verzeichniss ausschließen mit ! | |
7) Fehlermeldung wenn zu viele Files watched werden. | |
INFO: Die externe IP kann falsch sein, dazu einfach mit ipconfig die IP des Systems suchen und diese mit dem Port auf externen Geräten eintragen | |
https://www.youtube.com/watch?v=Bxhr6OmNOJE |
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
Helper Sheet for Contao | |
PHP Binary | |
Netcup: /usr/local/php74/bin/php -v | |
Hetzner: /usr/bin/php80 -v | |
Create a Contao installation: | |
/usr/local/php74/bin/php -d memory_limit=-1 -d max_execution_time=900 composer.phar create-project contao/managed-edition example 4.12 | |
Load Contao Manager File into /web/ bzw. /public/ |
OlderNewer