Añadir 'public_html/ascii/random.php'
This commit is contained in:
parent
2707a15b2a
commit
631c8fbeb0
|
@ -0,0 +1,5 @@
|
|||
<?php include "blog_config.php";
|
||||
$selcted=rand(0,count($posts)-1);
|
||||
header("Content-type: aplication/json");
|
||||
if(strpos($posts[$selected][2],"\n")){$ascii=str_replace("\n","\\n",$posts[$selected][2]);}else{$ascii=$posts[$selected][2];}
|
||||
echo "{'date':'$posts[$selected][0]','title':'$posts[$selected][1]','art':'$ascii'}"; ?>
|
Loading…
Reference in New Issue