1
1
Fork 0

- Replace TinyMCE-enabled filebrowser.tpl by filebrowser_plain.tpl content

This commit is contained in:
Hypolite Petovan 2017-01-26 23:04:38 -05:00
commit bf6d235b26
5 changed files with 46 additions and 222 deletions

View file

@ -12,24 +12,23 @@ require_once('include/Photo.php');
*/
function fbrowser_content(App $a) {
if (!local_user())
if (!local_user()) {
killme();
}
if ($a->argc==1)
if ($a->argc == 1) {
killme();
}
$template_file = "filebrowser.tpl";
$mode = "";
if (x($_GET,'mode')) {
$template_file = "filebrowser_plain.tpl";
$mode = "?mode=".$_GET['mode'];
}
//echo "<pre>"; var_dump($a->argv); killme();
switch($a->argv[1]){
switch ($a->argv[1]) {
case "image":
$path = array( array("", t("Photos")));
$path = array(array("", t("Photos")));
$albums = false;
$sql_extra = "";
$sql_extra2 = " ORDER BY created DESC LIMIT 0, 10";