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
#!/usr/bin/env php | |
<?php | |
use Stati\Command\GenerateCommand; | |
use Symfony\Component\Console\Application; | |
use Stati\Command\ServeCommand; | |
$file = __DIR__.\DIRECTORY_SEPARATOR.'webfat.php'; | |
if(!file_exists($file)){ | |
$file = __DIR__.\DIRECTORY_SEPARATOR.'index.php'; |
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
import watchFor from './../watchFor'; // = insertionQ Alias | |
function watch(cssQuery, cb){ | |
var sel = cssQuery; | |
var Func = function(selector, _callback){ | |
var callback = el =>{ |
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
// :target ??? | |
(()=>{ | |
'use strict'; | |
var config = { | |
childList: true, | |
subtree: true | |
}; | |
var oldHref = document.location.href; |
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 | |
$settings = [ | |
'redirect'=> [ | |
'href' => '/', | |
'delay' => 5, | |
], | |
]; | |
if(!isset($output)){ |
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 Wehowski\Gist\Http\Response; | |
/** | |
* @toDo: use libs | |
*/ | |
class Helper | |
{ | |
public static $protocoll = 'HTTP/1.1'; |
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 Webfan\Psr4Loader; | |
class RemoteFromWebfan | |
{ |
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 frdl; | |
/* | |
https://webfan.de/install/?salt={{salt}}&source=\frdl\Context.php | |
*/ | |
class Context | |
{ | |
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 foldersize($path) { | |
// if (is_file($path)) | |
$total_size = 0; | |
$files = scandir($path); | |
$cleanPath = rtrim($path, '/'). '/'; | |
foreach($files as $t) { | |
if ($t<>"." && $t<>"..") { | |
$currentFile = $cleanPath . $t; |
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 | |
define('weB36Notation_Latin1_clean_finaloutput', "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"); | |
//show: | |
if(substr($row['WEID'], 0, 18) == '1-3-6-1-4-1-SZ5-8-' ){ | |
$row['WEID'] = substr($row['WEID'], 18, strlen($row['WEID'])-1); | |
$row['WEID'] = 'weid:'.$row['WEID']; | |
} | |
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 | |
// ----- GET: | |
$_SESSION[__DIR__.'::spamschutz'] = mt_rand(10, 99999999); | |
$_SESSION[__DIR__.'::spamschutz_key'] =mt_rand(10, 99999999); | |
echo '<input type="hidden" name="check_'.$_SESSION[__DIR__.'::spamschutz_key'] .'" value="'.sha1($_SESSION[__DIR__.'::spamschutz'] ).'" />'; | |
// ----- POST: |
NewerOlder