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

?>