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 | |
/** | |
* http://interface.api.webfan.de/v1/public/registry/type/ | |
* */ | |
$webfanApplicationMimetypeFilter = array( | |
'mime' => function($str){ | |
return true; | |
}, | |
'type' => function($str){ |
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
/* | |
* from µ.Flow | |
* http://api.webfan.de/api-d/4/js-api/library.js | |
*/ | |
this.whenEver=function(condition, callback, args, delay){ | |
if(('function'===typeof condition && true === condition()) | |
|| (true === (condition)) | |
){ |
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
<script type="text/javascript"> | |
var util = require('util'); | |
var opts = { | |
showHidden : true, | |
depth : 4 | |
}; | |
console.on('*', function(type, data){ | |
var color = 'black'; |
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
function compileTemplateUrl(directives, $compileNode, tAttrs, | |
$rootElement, childTranscludeFn, preLinkFns, postLinkFns, previousCompileContext) { | |
var linkQueue = [], | |
afterTemplateNodeLinkFn, | |
afterTemplateChildLinkFn, | |
beforeTemplateCompileNode = $compileNode[0], | |
origAsyncDirective = directives.shift(), | |
derivedSyncDirective = inherit(origAsyncDirective, { | |
templateUrl: null, transclude: null, replace: null, $$originalDirective: origAsyncDirective | |
}), |
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 | |
/** | |
* Copyright (c) 2017, Till Wehowski | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are met: | |
* 1. Redistributions of source code must retain the above copyright | |
* notice, this list of conditions and the following disclaimer. | |
* 2. Redistributions in binary form must reproduce the above copyright |
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 | |
$regexp = "<a\s[^>]*href=(\"??)([^\" >]*?)\\1[^>]*>(.*)<\/a>"; | |
preg_match_all("/$regexp/siU", $content, $matches); |
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: |
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 | |
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 | |
namespace frdl; | |
/* | |
https://webfan.de/install/?salt={{salt}}&source=\frdl\Context.php | |
*/ | |
class Context | |
{ | |
OlderNewer