mots/load.php

6 lignes
149 B
PHP

<?php
if(empty($_POST['hash'])) exit;
$hash = substr($_POST['hash'],1);
if (is_readable('saved/'.$hash)) {
echo file_get_contents('saved/'.$hash);
}