isInstalled('forum')) { header('Location: '.e_BASE.'index.php'); exit; } if(!USER) { header("location:".e_PLUGIN."forum/forum.php"); exit; } include_lan(e_PLUGIN.'forum/languages/'.e_LANGUAGE.'/lan_forum_uploads.php'); e107::lan('forum','front'); if(is_array($_POST['delete'])) { foreach(array_keys($_POST['delete']) as $fname) { $f = explode("_", $fname); if($f[1] == USERID) { $path = e_UPLOAD.$fname; if(unlink($path) == TRUE) { $msg = LAN_FORUM_7002.": $path"; } else { $msg = LAN_FORUM_7003.": $path"; } } } } include_once(e_HANDLER."file_class.php"); include_once(HEADERF); if($msg) { $ns->tablerender(LAN_FORUM_7004, $msg); } $fi = new e_file; $mask = ".*_".USERID."_FT.*"; $fileList = $fi->get_files(e_UPLOAD, $mask); if($sql->db_Select('forum_thread','thread_id, thread_thread, thread_parent', "thread_thread REGEXP '.*_".USERID."_FT.*'")) // FIXME new forum db structure { $threadList = $sql->db_getList(); } $filecount = 0; if(is_array($fileList)) { $txt = "
"; foreach($fileList as $finfo) { if($finfo['fname']) { $filecount++; $txt .= ""; $found = FALSE; if(is_array($threadList)) { foreach($threadList as $tinfo) { if(strpos($tinfo['thread_thread'], $finfo['fname']) != FALSE) { $found = $tinfo; break; } } } if($found != FALSE) { if($tinfo['thread_parent']) { $txt .= ""; } else { $txt .= ""; } } else { $txt .= ""; } $txt .= ""; } } $txt .= "
".FRMUP_5." ".LAN_FORUM_7006."
{$finfo['fname']}".LAN_FORUM_7007.": {$tinfo['thread_parent']}".LAN_FORUM_7007.": {$tinfo['thread_id']}".LAN_FORUM_7008."
"; } if(!$filecount) { $ns->tablerender(LAN_FORUM_7001,LAN_FORUM_7009); include_once(FOOTERF); exit; } $ns->tablerender(LAN_FORUM_7001, $txt); include_once(FOOTERF); ?>