1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-14 02:24:08 +02:00

Code cleanup / globals removal etc.

This commit is contained in:
Cameron
2015-02-15 16:07:27 -08:00
parent 83ea70f881
commit 9a21cad851
39 changed files with 198 additions and 154 deletions

View File

@@ -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?