I hereby claim:
- I am quenerapu on github.
- I am quenerapu (https://keybase.io/quenerapu) on keybase.
- I have a public key ASBYXo5g9kFgt-oSkCIrJQht93sPsbZjpdqE1XYkpE98cgo
To claim this, I am signing this object:
<!doctype html><html lang="es"><title>.</title> |
<?php | |
//here is my initial string | |
$sJson = $_POST['json']; | |
//try to decode it | |
$json = json_decode($sJson); | |
if (json_last_error() === JSON_ERROR_NONE) { | |
//do something with $json. It's ready to use | |
} else { | |
//yep, it's not JSON. Log error or alert someone or do nothing | |
} |
function getUrlFriendlyString(str,space="-"){ // Generates a SEO friendly URL (ok, the artisan way) | |
// https://jakubmarian.com/wp-content/uploads/2017/02/special-characters-european-languages.jpg | |
// Covers Spanish, Turkish, Romanian, German, French... | |
let findArray = ["á","à","â","ä","ã","å","ă","æ", | |
"é","è","ê","ë", | |
"í","ì","î","ï","ı", | |
"ó","ò","ô","ö","õ","ø", | |
"ú","ù","û","ü", | |
"þ","ß","ð","ğ","ñ","ç","š","ş","ș","ț","ý","ÿ","ž", |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Change transparent PNG color with CSS</title> | |
</head> | |
<body> | |
<label>Color</label> | |
<input class="target" type="text" placeholder="target hex" value="#00a4d6"> |
<?php if(!defined("TRECE")):header("location:/");die();endif;?> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<link rel="stylesheet" type="text/css" media="screen" href="<?=REALPATH.$conf["dir"]["themes"].$conf["trece"]["theme"];?>/<?=$conf["file"]["styles"];?>.php?pt=<?=$conf["css"]["paddingtop_h"];?>&sf=<?=$conf["css"]["stickyfooter_h"];?>&<?=time();?>"> | |
<script src="<?=REALPATH.$conf["dir"]["themes"].$conf["trece"]["theme"];?>/<?=$conf["file"]["scripts"];?>.php?<?=time();?>"></script> | |
</head> | |
<body> |
<?php | |
header("content-type:application/javascript"); | |
echo <<<ENDJS | |
@charset "UTF-8"; | |
/* Your Javascript here */ | |
function(foo){ |
<?php | |
header("content-type:text/css"); | |
echo <<<ENDCSS | |
@charset "UTF-8"; | |
/* Your CSS here */ | |
body{background:pink;} |
<?php | |
function rrmdir($dir) { | |
if(is_dir($dir)): $files=scandir($dir); foreach($files as $file): if($file != "." && $file != ".."): rrmdir("$dir/$file"); endif; endforeach; rmdir($dir); | |
elseif(file_exists($dir)): unlink($dir); | |
endif; | |
} | |
function rcopy($src,$dst){ | |
if(is_dir($src)): mkdir($dst); $files=scandir($src); foreach($files as $file): if($file != "." && $file != ".."): rcopy("$src/$file","$dst/$file"); endif; endforeach; |
I hereby claim:
To claim this, I am signing this object: