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
<?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
<!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(); | |
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
<?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(-1); | |
ini_set('display_errors', 'On'); | |
$url = 'https://www.green-secure.de/podcast/'; | |
$domDocument = new DOMDocument(); |
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 | |
function event(string $name, array $data = [],callable $action = null,int $priority = 0){ | |
static $events = []; | |
if($action){ | |
$events[$name][]=[ | |
'priority' => $priority, | |
'action' => $action | |
]; | |
return null; | |
} |
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 | |
function render(string $path, array $data) { | |
if (defined('TEMPLATE_DIR')) { | |
$path = TEMPLATE_DIR . DIRECTORY_SEPARATOR . $path; | |
} | |
if (!is_file($path)) { | |
trigger_error('Datei "' . $path . '" wurde nicht gefunden'); | |
return null; |
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'); | |
function render(string $path,array $data){ | |
if(!is_file($path)){ | |
trigger_error('Datei "'.$path.'" wurde nicht gefunden'); | |
return null; | |
} |
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'); | |
$array = [ | |
['Row 1','Row 2','Row 3'], | |
['Col 1','Col 2','Col 3'], | |
['Col 1','Col 2','Col 3'], | |
]; |