Skip to content

Instantly share code, notes, and snippets.

@01-Scripts
01-Scripts / contact.php
Last active May 26, 2020 19:16
Einfache Kontakt-Formular-Funktion in PHP, die auf jeder Seite eingesetzt werden kann. Mit Captcha und Datei-Upload!
<?PHP session_start(); ?>
<!-- Einfaches Kontaktformular -->
<?php
include_once("kontaktformular.php");
echo kontaktformular(array("email1@adress.de","email2@adress.de"),"Kontaktformular","form1");
?>
<!-- Kontaktformular mit Datei-Upload -->
<!-- Another contact-form -->
@01-Scripts
01-Scripts / functions.php
Last active May 3, 2020 14:18
Welcome file
<?PHP
function HelloWorld() {
echo "Hello World";
}
HelloWorld();
?>
@01-Scripts
01-Scripts / teaser.php
Last active August 8, 2018 13:58
Artikelteaser für 01-Artikelsystem V3 http://www.01-scripts.de/01article.php
<?PHP
/*
01-Artikelsystem V3 - Copyright 2006-2018 by Michael Lorer - 01-Scripts.de
Lizenz: Creative-Commons: Namensnennung-Keine kommerzielle Nutzung-Weitergabe unter gleichen Bedingungen 3.0 Deutschland
Weitere Lizenzinformationen unter: http://www.01-scripts.de/lizenz.php
Modul: 01article
Dateiinfo: Teaser-Ausgabe
*/
@01-Scripts
01-Scripts / demo.php
Last active August 8, 2018 09:57
PHP-Funktion um Bilder aus einer 01Gallery V2-Bildergalerie an anderer Stelle auszugeben http://www.01-scripts.de
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<?PHP
//Beispiel-Datei zur Nutzung von echo_galpics.php
include_once("echo_galpics.php");
@01-Scripts
01-Scripts / fa-icon-external-link.css
Created June 28, 2012 10:24 — forked from chsh/fa-icon-external-link.css
Show icon after external link using Font Awesome
@01-Scripts
01-Scripts / 01gallery.php
Last active July 13, 2016 20:32
Bildtitel unter dem Thumbnails anzeigen zulassen.
// Vorher (Zeile 471):
echo "<li".$class."><a ".$href." title=\"".$lightbox_title." - ".$echo_text."\">"._01gallery_getThumb($galverz,stripslashes($pics['filename']),"_tb")."</a></li>\n";
// Nachher
echo "<li".$class."><a ".$href." title=\"".$lightbox_title."\">"._01gallery_getThumb($galverz,stripslashes($pics['filename']),"_tb")."</a></li>\n";
@01-Scripts
01-Scripts / hook.php
Created August 18, 2015 19:34
Add Post Deploy-Hook as HTTP POST Notification for deployhq.com deploys. Put the following file in the root directory of your project or adjust the path in line 24.
<?PHP
$publicKey = "-----BEGIN PUBLIC KEY-----
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDXJcP2N6NtcN26Q8nVaidXOA0w
RxWK2HQTblIaQdGRDjqTvhrSlFuV5N4jz7w/w8uskP20G7ZQ+CkHwIXrWk76KZJn
pdoOHPO6AqRmEFgV5Q6Y1CR77mvnT9O21hTnfzfyyiAdQC2oO8M9/jeLRPTAqmkG
xdQa8iepUz4BwrrHmwIDAQAB
-----END PUBLIC KEY-----";
// Verify integrity of Payload
$result = openssl_verify($_POST['payload'], base64_decode($_POST['signature']), $publicKey);
@01-Scripts
01-Scripts / mantis_reconnect.php
Created June 7, 2013 18:03
Reconnect commits that were imported into Mantis using the Source integration plugin but weren't linked to the correct issues.
<?PHP
// MySQL-Einstellungen:
$host = "localhost"; //Host/Server ihrer Mysql-Datenbank
$database = "test"; //Datenbankname
$user = "user"; //Usernamen für Mysql-Datenbank
$passw = ""; //Passwort zur Mysql-Datenbank
$table = "mantis_plugin_source_changeset_table";
@01-Scripts
01-Scripts / artikelteaser.php
Created October 7, 2012 17:39
Angepasster Artikelteaser
<?PHP
/*
01-Artikelsystem V3 - Copyright 2006-2008 by Michael Lorer - 01-Scripts.de
Lizenz: Creative-Commons: Namensnennung-Keine kommerzielle Nutzung-Weitergabe unter gleichen Bedingungen 3.0 Deutschland
Weitere Lizenzinformationen unter: http://www.01-scripts.de/lizenz.php
Modul: 01article
Dateiinfo: Teaser-Ausgabe
*/
@01-Scripts
01-Scripts / include_archiv.php
Created September 25, 2012 19:20
Archiv includen
<?PHP
$subfolder = "01scripts/"; // Unterverzeichnis
$modul = "01article"; // Modul- und Verzeichnisname (=ID-Name)
// ggf. ändern
$show['artid'] = "archiv";
include($subfolder."01module/".$modul."/01article.php");
?>