mirror of
https://github.com/e107inc/e107.git
synced 2025-08-29 17:19:56 +02:00
Code cleanup
This commit is contained in:
@@ -84,10 +84,10 @@ class adminDownload extends download
|
||||
// {
|
||||
// $this->_observe_newsCommentsRecalc();
|
||||
// }
|
||||
if(isset($_POST['etrigger_ecolumns']))
|
||||
{
|
||||
//if(isset($_POST['etrigger_ecolumns']))
|
||||
//{
|
||||
// $this->_observe_saveColumns();
|
||||
}
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
|
@@ -166,10 +166,10 @@ class download
|
||||
|
||||
|
||||
|
||||
if($this->qry['action'] == 'maincats')
|
||||
{
|
||||
//if($this->qry['action'] == 'maincats')
|
||||
// {
|
||||
//
|
||||
}
|
||||
// }
|
||||
|
||||
if($this->qry['action'] == 'list')
|
||||
{
|
||||
@@ -186,15 +186,15 @@ class download
|
||||
$this->loadReport();
|
||||
}
|
||||
|
||||
if($this->qry['action'] == 'mirror')
|
||||
{
|
||||
//if($this->qry['action'] == 'mirror')
|
||||
// {
|
||||
//
|
||||
}
|
||||
// }
|
||||
|
||||
if($this->qry['action'] == 'error')
|
||||
{
|
||||
// if($this->qry['action'] == 'error')
|
||||
// {
|
||||
|
||||
}
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
@@ -720,11 +720,11 @@ class download
|
||||
return $ns->tablerender(LAN_PLUGIN_DOWNLOAD_NAME, "<div class='alert alert-info' style='text-align:center'>".LAN_NO_RECORDS_FOUND."</div>",'download-list',true);
|
||||
}
|
||||
|
||||
if ($dlrow['download_category_parent'] == 0) // It's a main category - change the listing type required
|
||||
{
|
||||
//if ($dlrow['download_category_parent'] == 0) // It's a main category - change the listing type required
|
||||
// {
|
||||
// $action = 'maincats';
|
||||
// $maincatval = $id;
|
||||
}
|
||||
// }
|
||||
|
||||
$dl_text = $tp->parseTemplate($this->templateHeader, TRUE, $sc);
|
||||
|
||||
|
@@ -1321,10 +1321,10 @@ $columnInfo = array(
|
||||
$etext = "";
|
||||
}
|
||||
|
||||
if (!$found && $download_url)
|
||||
{
|
||||
//if (!$found && $download_url)
|
||||
// {
|
||||
// $text .= "<option value='".$download_url."' selected='selected'>".$download_url.$etext."</option>\n";
|
||||
}
|
||||
// }
|
||||
|
||||
// $text .= " </select>";
|
||||
|
||||
|
@@ -265,8 +265,8 @@ if ($type == "file")
|
||||
}
|
||||
}
|
||||
}
|
||||
else if(strstr(e_QUERY, "pub_"))
|
||||
{
|
||||
//else if(strstr(e_QUERY, "pub_"))
|
||||
// {
|
||||
/* check to see if public upload and not in download table ... */
|
||||
/*$bid = str_replace("pub_", "", e_QUERY);
|
||||
if($result = @mysql_query("SELECT * FROM ".MPREFIX."rbinary WHERE binary_id = '$bid' "))
|
||||
@@ -281,7 +281,7 @@ if ($type == "file")
|
||||
echo $binary_data;
|
||||
exit();
|
||||
}*/
|
||||
}
|
||||
// }
|
||||
|
||||
|
||||
$log->addError("Line".__LINE__.": Couldn't find ".e_DOWNLOAD.e_QUERY);
|
||||
|
Reference in New Issue
Block a user