SnippetVamp

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



TODO 1 ajax 3 astuce 64 auto_ 2 bootstrap 14 conversion 2 crossbrowser 3 css 46 debug 10 dothtaccess 1 effets 1 erreurs 1 evenements 2 fallback 1 fichiers 27 filter 1 fonctions 72 form 1 graphisme 11 html 39 javascript 38 jquery 26 lib 2 mail 1 markdown 2 mobile 2 parser 13 php 88 pluXML 4 python 10 responsive 7 securite 16 social 1 texte 16 vanilla 4

.

astuce sécurité PHP - Le Hollandais Volant

astuce sécurité PHP - Le Hollandais Volant

# en début de script
if (basename($_SERVER['SCRIPT_NAME']) === 'index.php' and strpos(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH), 'index.php') === FALSE ) {
    $var_request_URI = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH).'index.php';
} else {
    $var_request_URI = $_SERVER['REQUEST_URI'];
}
if (parse_url($var_request_URI, PHP_URL_PATH) !== $_SERVER['SCRIPT_NAME']) {
    header('Location: '.$_SERVER['SCRIPT_NAME']);
}


php securite

http://lehollandaisvolant.net/?mode=links&id=20160319122329

<iframe width="100%" height="380" src="http://snippetvamp.warriordudimanche.net/snippetvamp.php?embed=56ed5e21d245b" type="text/html"></iframe>

Texte seul - Permalink - Snippet public posté le 19/03/2016

Flux RSS de cette page


SnippetVamp 1.83 par Bronco - Page générée en 0.061 s