<?php
/* Ulyxex version 1.6.7.8 ***************/
/* code http://ulyxex.logz.org **********/
/* Andre Lozano http://andre-lozano.org */
if (!isset($admin)) exit("not in admin !");
require_once("core/admin_files.php");
/****************************************/
/* page elements */
$o_files = new ViewFiles("files/");
$o_files->level(4);
$userInfos = $o_files->user_params($_SESSION['userid']);
$css = $h->css("css/admin_style.css","external");
$css .= $h->css(
"ul {
list-style-type: none;
margin-left: -1.5em;
}
li.filelinks {
margin-bottom: 3px;
}
li.filelinks a:link {
text-decoration:none;
color:black;
}
li.filelinks a:visited {
text-decoration:none;
color:black;
}
li.filelinks a:hover {
text-decoration:none;
color:black;
font-style:bold;
}
li.filelinks a:active {
text-decoration:none;
color:black;
}"
);
$ico = $h->ico("favicon.png");
$meta = $h->meta("Content-Type","text/html; charset=UTF-8");
$meta .= $h->meta("viewport","width=device-width, initial-scale=".SCALE,"name");
$title = $h->title($t->wr("files of").$userInfos['USERNAME']);
$js = $h->js("js/ulyxex.js","external");
$head = $h->head($meta.$ico.$js.$css.$title);
$topPage = $h->h2($t->wr("files of").$h->span($userInfos['USERNAME'],$h->v("class","username")));
$topPage .= $h->h3($t->wr("double click to select").$h->ahref("javascript:window.close();",$t->w("close tab"),$h->v("class","linkbtn")));
$data = $o_files->getLinkUrl();
/****************************************/
/* show */
$body = $h->bodyadmin($topPage.$data);
$page = $h->html($head.$body,$h->v("lang",$t->getLang(LANG)));
echo $page;
function add_link($link) {
global $h;
global $t;
$id = "file_".rand(100000,999999);
return $h->li(
$h->ahref($link,$t->w("show"),$h->v("class","btn"))." ".
$h->ahref(
"#",$link,
$h->v("onmousedown","javascript:getLink('".$id."','".$link."','".$t->w("show")."')").
$h->alt($t->w("double click to select"))
),$h->v("id",$id).$h->v("class","filelinks")
);
}
?>
page url