SnippetVamp

Parce que yen a marre de chercher ses bouts de code partout...



TODO 1 ajax 3 astuce 68 auto_ 2 bash 1 bootstrap 14 conversion 2 crossbrowser 3 css 50 debug 10 dothtaccess 1 effets 1 erreurs 1 evenements 2 fallback 1 fichiers 27 filter 1 fonctions 73 form 1 graphisme 11 html 39 javascript 39 jquery 26 lib 2 mail 1 markdown 2 mobile 2 parser 13 php 91 pluXML 4 python 10 responsive 8 securite 17 social 1 texte 16 vanilla 4

.

fallback

glob - fallback

    if (function_exists('glob')){
        function _glob($path,$pattern='*'){return glob($path.$pattern);}
    }else{
        function _glob($path,$pattern='') {
            # glob function fallback by Cyril MAGUIRE (thx bro' ;-)
            $liste =  array();
            $pattern=str_replace('*','',$pattern);
            if ($handle = opendir($path)) {
                while (false !== ($file = readdir($handle))) {
                    if(stripos($file, $pattern)!==false || $pattern=='') {
                        $liste[] = $path.$file;
                    }
                }
                closedir($handle);
            }
            if (!empty($liste)) {
                return $liste;
            } else {
                return array();
            }
        }
    }

fallback fichiers fonctions php

<iframe width="100%" height="578" src="http://snippetvamp.warriordudimanche.net/snippetvamp.php?embed=55abcadfc9c32" type="text/html"></iframe>

Texte seul - Permalink - Snippet public posté le 19/07/2015

Flux RSS de cette page


SnippetVamp 1.84 par Bronco - Page générée en 0.054 s