summaryrefslogtreecommitdiff
path: root/inc/db.inc.php
blob: bc18e16e9e75c4b13f82734310246b3704c4cbf4 (plain)
1
2
3
4
5
6
7
8
9
10
11
<?php

$SESSION_DIR="/srv/postedit/sessions";
$key = $_GET["key"];
if (preg_match('/^[a-f0-9]{1,4}$/', $key)) {
  $json = file_get_contents($SESSION_DIR."/".$key."/data.json");
}
$db = json_decode($json);

?>