" class="form-control col-12 col-sm-6 col-md-4 col-lg-3" />
$_SESSION['uid'], "permname #logg" => "LOGGEDIN", "permname #link" => "LINK" ]; $pubs = $database->select('publications', [ '[>]pub_permissions' => ['permid' => 'permid'], '[>]page_sizes' => ['page_size' => 'sizeid'] ], [ 'pubid', 'pubname', 'uid', 'pubdate', 'style', 'columns', 'permname', 'pwd', 'publications.permid', "page_size", "sizename", "landscape" ], $where); $usercache = []; foreach ($pubs as $p) { if (is_null($p['uid'])) { $p["username"] = ""; } else { if (!isset($usercache[$p['uid']])) { $usercache[$p['uid']] = getUserByID($p['uid']); } $p["username"] = $usercache[$p['uid']]['name']; } $p["pagesize"] = lang2("page size and orientation", [ "size" => $p["sizename"], "orientation" => ( $p["landscape"] == 0 ? lang("portrait", false) : lang("landscape", false) ) ], false); $p["visibility"] = lang("visibility " . strtolower($p["permname"]), false); $p['date'] = date(DATETIME_FORMAT, strtotime($p["pubdate"])); $p['longdate'] = date("l F j Y", strtotime($p["pubdate"])); if ($p["uid"] == $_SESSION['uid']) { $p["editbtn"] = ' ' . lang("edit", false) . ''; $p["editbtn"] .= ' ' . lang("format", false) . ''; } else { $p["editbtn"] = ' ' . lang("view", false) . ''; } $themedir = __DIR__ . "/../themes/"; $s = $p['style']; $info = json_decode(file_get_contents($themedir . "$s/info.json"), TRUE); $colorvars = json_decode(file_get_contents($themedir . "$s/vars.json"), TRUE); ?>
">