Skip to content

Instantly share code, notes, and snippets.

View katgirl's full-sized avatar

Kirsten Roschanski katgirl

View GitHub Profile
@katgirl
katgirl / tl_iso_orders.php
Last active December 18, 2015 10:10
Bestellungen exportieren
<?php if (!defined('TL_ROOT')) die('You can not access this file directly!');
/**
* IsotopeOrderExport
*
* @copyright Kirsten Roschanski 2013 <http://kirsten-roschanski.de>
* @author Kirsten Roschanski <kirsten.roschanski@kirsten-roschanski.de>
* @package IsotopeFilterMember
* @license LGPL
* @link https://github.com/katgirl/isotope_order_export
@katgirl
katgirl / UserData.php
Created July 27, 2013 14:15
XML-Output of User
<?php
class UserData extends \Frontend
{
public function __construct($intId, $strLanguage=null)
{
parent::__construct();
$this->import('Database');
}
@katgirl
katgirl / ProductPriceFinder.php
Created August 2, 2013 08:45
Zeile 247 - 271 muss noch optimiert werden, aber die Logik erschließt sich mir noch nicht ;-)
<?php if (!defined('TL_ROOT')) die('You can not access this file directly!');
/**
* Contao Open Source CMS
* Copyright (C) 2005-2010 Leo Feyer
*
* Formerly known as TYPOlight Open Source CMS.
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@katgirl
katgirl / replace.php
Created August 8, 2013 16:23
sucht alle .htaccess Dateien und ersetzt den Inhalt gegen Anweisungen, die vom Apache 2.4 interpretiert werden können.
<?php
function rglob($pattern, $flags = 0) {
$files = glob($pattern, $flags);
foreach (glob(dirname($pattern).'/*', GLOB_ONLYDIR|GLOB_NOSORT) as $dir) {
$files = array_merge($files, rglob($dir.'/'.basename($pattern), $flags));
}
return $files;
}
@katgirl
katgirl / IsotopeDeliveryNote.php
Last active December 23, 2015 11:39
Dateien für https://community.contao.org/de/newreply.php?p=287291 Neue Anforderung - Verkaufte Artikel zählen und QRCode generieren
<?php if (!defined('TL_ROOT')) die('You cannot access this file directly!');
/**
* PHP version 5
* @copyright Copyright (C) 2012-2013 Kirsten Roschanski
* @author Kirsten Roschanski <kat@kirsten-roschanski.de>
* @license http://opensource.org/licenses/lgpl-3.0.html
*/
/**
@katgirl
katgirl / IsotopeProductCollection.php
Last active January 4, 2016 06:29
Isotope mit PDF-Footer
<?php
/**
* Generate a PDF file and optionally send it to the browser
* @param string
* @param object
* @param boolean
*/
public function generatePDF($strTemplate=null, $pdf=null, $blnOutput=true)
{
if (!is_object($pdf))
@katgirl
katgirl / contao.conf
Last active August 29, 2015 14:01 — forked from psi-4ward/contao.conf
index index.php index.html index.html;
client_max_body_size 200M;
sendfile on;
error_page 404 /404.html;
location / {
try_files $uri $uri/ /index.php?$args;
}
location = /favicon.ico {
/**
* Save path in file, not a uuid by save dca
*
* @param uuid
*/
public function saveFile($value)
{
if(version_compare(VERSION, '3.2', '>='))
{
return \String::binToUuid($value);
<?php
/**
* Contao Open Source CMS
*
* Copyright (C) 2014 Kirsten Roschanski
*
* @package registration_gtc
* @link https://contao.org
* @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL
@katgirl
katgirl / iso_reader_default.html5
Created October 21, 2014 09:52
Mikrodaten für Google Shopping
<form action="<?php echo $this->action; ?>" id="<?php echo $this->formId; ?>" name="iso<?php echo rand(); ?>" method="post" enctype="<?php echo $this->enctype; ?>">
<div class="formbody" itemscope itemtype="http://schema.org/Product">
<input type="hidden" name="FORM_SUBMIT" value="<?php echo $this->formSubmit; ?>">
<input type="hidden" name="REQUEST_TOKEN" value="{{request_token}}">
<h2 itemprop="name"><?php echo $this->name; ?></h2>
<?php if ($this->sku): ?>
<meta itemprop="sku" content="<?php echo $this->sku; ?>" />
<?php endif; ?>