summaryrefslogtreecommitdiff
path: root/inc/db.inc.php
blob: 73560763fe7f90797a3f6ce3b323e42c3b68f16a (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-z0-9]{4}$/', $key)) {
  $json = file_get_contents($SESSION_DIR."/".$key."/data.json");
}
$db = json_decode($json);

?>