This file contains hidden or 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 | |
namespace Deployer; | |
$recipes = [ | |
'common', | |
'symfony', | |
'terminal42/deployer-recipes/recipe/contao', | |
'terminal42/deployer-recipes/recipe/database', |
This file contains hidden or 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/sh | |
# | |
# Creates a database dump right before committing and adds it to | |
# the commit. The database dump is splitted in two sql files, to | |
# the schema and data of the database. | |
# | |
# Called by "git commit" with no arguments. The hook should | |
# exit with non-zero status after issuing an appropriate message if | |
# it wants to stop the commit. | |
# |
This file contains hidden or 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 | |
use ContaoCommunityAlliance\DcGeneral\Event\PreEditModelEvent; | |
use ContaoCommunityAlliance\DcGeneral\Event\PrePersistModelEvent; | |
// Copy-replace following vars: | |
// 'mm_employee' | |
// 'owner' | |
return [ |
This file contains hidden or 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
/* ModalEditing, (c) 2016-2017 Richard Henkenjohann */ | |
(function ($) { | |
$.fn.modalEditing = function (options) { | |
options = $.extend({ | |
/** | |
* The container | |
* | |
* @var null|string The selector, e.g. #id or .class | |
*/ |
This file contains hidden or 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 | |
class DropboxWebhook | |
{ | |
/** | |
* Handle the dropbox webhook request | |
*/ | |
public function handle() | |
{ | |
global $container; |
This file contains hidden or 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 | |
/** | |
* Exemplified DCA for a merging a fileTree and fileUpload field in Contao Open Source CMS | |
* * Files can be via selected in the field "attachments" | |
* * Files can be uploaded in the field "attachments_upload". They will be merged to "attachments" | |
* | |
* @author Richard Henkenjohann <[email protected]> | |
*/ | |
$table = MyModuleModel::getTable(); |
This file contains hidden or 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 | |
/** | |
* Exemplified DCA config for a password field for Contao Open Source CMS | |
* The password will be | |
* * saved encrypted in the database ('encrypt'=>true), | |
* * invisibe when typing in the input ('hideInput'=>true) and | |
* * not readable in the html source code after it was saved initially (load_ and save_callback). | |
* | |
* @author Richard Henkenjohann <[email protected]> | |
*/ |
This file contains hidden or 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 | |
/** | |
* PHP version 5 | |
* | |
* Extracts the Contao archive (downloaded from contao.org) and redirects to the install tool. | |
* | |
* Usage: | |
* * Upload this file and the Contao archive in the desired folder | |
* * Run this script |