Skip to content

Instantly share code, notes, and snippets.

View BugBuster1701's full-sized avatar
🏠
Working from home

Glen Langer BugBuster1701

🏠
Working from home
  • T-Systems
  • Berlin, Germany
View GitHub Profile
@chani
chani / Contao2srcTo3.php
Last active December 26, 2015 12:39
Script to convert old contao 2 src format to the new one by simply replacing the path with the id's. check comment in file for details.
<?php
/**
* Copyright (c) 2013 Jean Bruenn
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
/* ... basics ...
-------------------------------------------------------------------------------------------------*/
nav {
border: 1px solid #000;
border-radius: 8px;
float: left;
}
ul,
li,
a,
@andreasisaak
andreasisaak / fe_page.html5
Created June 5, 2014 19:34
footerStickAlt
<?php $this->extend('fe_page'); ?>
<?php $this->block('footer'); $this->endblock(); ?>
<?php $this->block('body'); ?>
<?php $this->parent(); ?>
<?php if ($this->footer): ?>
<footer id="footer">
<div class="inside">
<?php echo $this->footer; ?>
</div>
@stefansl
stefansl / contao-db-update.php
Last active October 17, 2019 21:01
Modified path upgrade script for contao. No config editing necessary. Copy in your Contao root and run.
<?php
/*
When updating from Contao 2 to Contao 3, you must not rename the tl_files folder to files!
If you want to re­name the folder, you have to take the following steps:
· Complete the version 3 update in the install tool
· Then rename the upload folder in the back end settings to files
· Last run the modified version of Tristan's script
@andreasisaak
andreasisaak / composer.json
Created June 26, 2014 11:12
Reference single commit in composer
"isotope/isotope-core": "dev-develop#1ab3bfb62b99349d80722ffa05c4b9f7502cf003 as 2.1.3"
@fiedsch
fiedsch / Contao backup script
Last active October 20, 2018 16:42
Contao Backup
moved to repository https://github.com/fiedsch/contao-backup-script
see also https://github.com/fiedsch/contao-4-backup-script (for Contao 4)
@kikmedia
kikmedia / .htaccess
Last active August 29, 2015 14:15
New .htaccess settings for Contao 2.11.x / Apache 2.4
##
# New Apache 2.4 syntax
##
# Prevent access to the Contao template files
##
<FilesMatch "\.(tpl|html5|xhtml)$">
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>
@RavuAlHemio
RavuAlHemio / contao3.conf
Last active July 21, 2017 21:51
Contao 3 and 4 nginx.conf
index index.php index.html;
location ~ ^/(favicon\.ico|robots\.txt)$ {
allow all;
log_not_found off;
access_log off;
}
# don't show templates
location ~* \.(tpl|html5|xhtml)$ {
@evantoli
evantoli / GitConfigHttpProxy.md
Last active December 25, 2025 13:34
Configure Git to use a proxy

Configure Git to use a proxy

In Brief

You may need to configure a proxy server if you're having trouble cloning or fetching from a remote repository or getting an error like unable to access '...' Couldn't resolve host '...'.

Consider something like:

@fritzmg
fritzmg / be_rebuild_index.html5
Last active August 23, 2016 11:32
Contao RebuildIndex template with more feedback
<div id="tl_maintenance_index" class="maintenance_<?= $this->isActive ? 'active' : 'inactive' ?>">
<h2 class="sub_headline_index"><?= $this->indexHeadline ?></h2>
<?php if ($this->indexMessage): ?>
<div class="tl_message">
<p class="tl_error"><?= $this->indexMessage ?></p>
</div>
<?php endif; ?>