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 | |
error_reporting(-1); | |
ini_set('display_errors', 'On'); | |
define('EMERGENCY', 'emergency'); | |
define('ALERT', 'alert'); | |
define('CRITICAL', 'critical'); | |
define('ERROR', 'error'); | |
define('WARNING', 'warning'); |
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 | |
error_reporting(); | |
ini_set('display_errors', 'On'); | |
$start = DateTime::createFromFormat('Y-m-d', '2019-12-01'); | |
$end = clone $start; | |
$end->modify('+24 days'); | |
$interval = DateInterval::createFromDateString('1 day'); |
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
<!DOCTYPE html> | |
<html lang="de"> | |
<head> | |
<title>Kontakt</title> | |
<meta charset="UTF-8"> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous"> | |
</head> | |
<body> | |
<header class="jumbotron"> | |
<div class="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 | |
error_reporting(-1); | |
ini_set('display_errors', 'On'); | |
/** | |
* Eingabe | |
*/ | |
$options = [ | |
'help'=> ['title'=> 'Benötige allgemeine Hilfe','selected'=>false], | |
'feedback'=> ['title'=> 'Benötige Feedback zum Script','selected'=>false], | |
'bug'=> ['title'=> 'Fehler entdeckt','selected'=>false], |
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 Noise | |
{ | |
private $boundImage = null; | |
private $cachedValues = []; | |
private $amplitude = 0.5; | |
private $frequency = 2.0; |
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
document.addEventListener("DOMContentLoaded", function (event) { | |
let htmlRoot = document.querySelector('html'); | |
htmlRoot.classList.add('js'); | |
htmlRoot.classList.remove('no-js'); | |
let body = document.querySelector('body'); | |
body.addEventListener('click', function (event) { | |
if (event.target.getAttribute('data-confirm')) { |
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
<form method="POST" action="upload.php" enctype="multipart/form-data"> | |
<input type="file" name="datei[]"> | |
<button type="submit">Upload</button> | |
</form> |
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 | |
error_reporting(E_ALL); | |
ini_set('display_errors','On'); | |
require_once __DIR__.'/vendor/autoload.php'; | |
$imageBase64 = base64_encode(file_get_contents('https://placekitten.com/200/287')); | |
$transport = new Swift_SmtpTransport('smtp.gmail.com', 465,'ssl'); | |
$transport->setUsername('gmail adresse mit @gmail.com'); | |
$transport->setPassword('passwort aus APP Passwords'); |
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
<IfModule mod_rewrite.c> | |
<IfModule mod_negotiation.c> | |
Options -MultiViews | |
</IfModule> | |
Options +FollowSymlinks -Indexes | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME) !-d |
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
<!DOCTYPE html> | |
<html lang="de"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Gewinnspiel</title> | |
<style> | |
body{ | |
position: absolute; | |
top:0; | |
left:0; |