mirror of
https://github.com/e107inc/e107.git
synced 2025-09-02 02:42:40 +02:00
Code cleanup / globals removal etc.
This commit is contained in:
@@ -326,7 +326,7 @@ if ($action == "uopt")
|
||||
global $ns, $sql, $gen, $e107, $tp;
|
||||
|
||||
$frm = new e_form(true); //enable inner tabindex counter
|
||||
$imgd = e_BASE.$IMAGES_DIRECTORY;
|
||||
|
||||
$columnInfo = array(
|
||||
"checkboxes" => array("title" => "", "forced"=> TRUE, "width" => "3%", "thclass" => "center first", "toggle" => "dl_selected"),
|
||||
"upload_id" => array("title"=>DOWLAN_67, "type"=>"", "width"=>"auto", "thclass"=>"", "forced"=>true),
|
||||
@@ -533,18 +533,14 @@ if ($action == "uopt")
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
function show_upload_filetypes() {
|
||||
|
||||
|
||||
|
||||
|
||||
function show_upload_filetypes() {
|
||||
global $ns;
|
||||
|
||||
//TODO is there an e107:: copy of this
|
||||
if (!is_object($e_userclass))
|
||||
{
|
||||
$e_userclass = new user_class;
|
||||
}
|
||||
$ns = e107::getRender();
|
||||
$e_userclass = e107::getUserClass();
|
||||
|
||||
if(!getperms("0")) exit; //TODO still needed?
|
||||
|
||||
|
@@ -65,7 +65,7 @@ if (!e107::isInstalled('download'))
|
||||
|
||||
e107::getComment()->enter_comment($clean_authorname, $clean_comment, "download", $id, $pid, $clean_subject);
|
||||
// $e107cache->clear("comment.download.{$sub_action}"); $sub_action not used here
|
||||
$e107cache->clear("comment.download");
|
||||
e107::getCache()->clear("comment.download");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -467,8 +467,8 @@ $columnInfo = array(
|
||||
$text .= '</tr>';
|
||||
$foundSome = true;
|
||||
}
|
||||
$filesize = (is_readable(e_DOWNLOAD.$row['download_url']) ? $e107->parseMemorySize(filesize(e_DOWNLOAD.$file['fname'])) : DOWLAN_181);
|
||||
$filets = (is_readable(e_DOWNLOAD.$row['download_url']) ? $gen->convert_date(filectime(e_DOWNLOAD.$file['fname']), "long") : DOWLAN_181);
|
||||
$filesize = (is_readable(e_DOWNLOAD.$row['download_url']) ? eHelper::parseMemorySize(filesize(e_DOWNLOAD.$file['fname'])) : DOWLAN_181);
|
||||
$filets = (is_readable(e_DOWNLOAD.$row['download_url']) ? e107::getDate()->convert_date(filectime(e_DOWNLOAD.$file['fname']), "long") : DOWLAN_181);
|
||||
$text .= '<tr>';
|
||||
$text .= '<td>'.$tp->toHTML($file['fname']).'</td>';
|
||||
$text .= '<td>'.$filets.'</td>';
|
||||
|
Reference in New Issue
Block a user