mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
Issue #2003 Remove old files.
This commit is contained in:
parent
9eba6b5a23
commit
593533298b
@ -494,6 +494,12 @@ else
|
||||
foreach ($search_prefs['comments_handlers'] as $key => $value)
|
||||
{
|
||||
$path = ($value['dir'] == 'core') ? e_HANDLER.'search/comments_'.$key.'.php' : e_PLUGIN.$value['dir'].'/search/search_comments.php';
|
||||
|
||||
if($value['dir'] == 'download' && !e107::isInstalled($value['dir']))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if(is_readable($path))
|
||||
{
|
||||
require_once($path);
|
||||
|
@ -1,45 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* e107 website system
|
||||
*
|
||||
* Copyright (C) 2008-2009 e107 Inc (e107.org)
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
*
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_handlers/search/advanced_download.php,v $
|
||||
* $Revision$
|
||||
* $Date$
|
||||
* $Author$
|
||||
*/
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
/*
|
||||
$advanced['cat']['type'] = 'dropdown';
|
||||
$advanced['cat']['text'] = LAN_SEARCH_63.':';
|
||||
$advanced['cat']['list'][] = array('id' => 'all', 'title' => LAN_SEARCH_51);
|
||||
|
||||
$advanced_caption['id'] = 'cat';
|
||||
$advanced_caption['title']['all'] = LAN_SEARCH_64;
|
||||
|
||||
if ($sql -> db_Select_gen("SELECT download_category_id, download_category_name FROM #download_category WHERE download_category_parent != 0 AND download_category_class IN (".USERCLASS_LIST.")")) {
|
||||
while ($row = $sql -> db_Fetch()) {
|
||||
$advanced['cat']['list'][] = array('id' => $row['download_category_id'], 'title' => $row['download_category_name']);
|
||||
$advanced_caption['title'][$row['download_category_id']] = LAN_SEARCH_65.' -> '.$row['download_category_name'];
|
||||
}
|
||||
}
|
||||
|
||||
$advanced['date']['type'] = 'date';
|
||||
$advanced['date']['text'] = LAN_SEARCH_66.':';
|
||||
|
||||
$advanced['author']['type'] = 'author';
|
||||
$advanced['author']['text'] = LAN_SEARCH_61.':';
|
||||
|
||||
$advanced['match']['type'] = 'dropdown';
|
||||
$advanced['match']['text'] = LAN_SEARCH_52.':';
|
||||
$advanced['match']['list'][] = array('id' => 0, 'title' => LAN_SEARCH_67);
|
||||
$advanced['match']['list'][] = array('id' => 1, 'title' => LAN_SEARCH_54);
|
||||
*/
|
||||
|
||||
?>
|
@ -1,64 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* e107 website system
|
||||
*
|
||||
* Copyright (C) 2008-2009 e107 Inc (e107.org)
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
*
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_handlers/search/search_download.php,v $
|
||||
* $Revision$
|
||||
* $Date$
|
||||
* $Author$
|
||||
*/
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
// advanced
|
||||
/*
|
||||
$advanced_where = "";
|
||||
if (isset($_GET['cat']) && is_numeric($_GET['cat'])) {
|
||||
$advanced_where .= " d.download_category='".$_GET['cat']."' AND";
|
||||
}
|
||||
|
||||
if (isset($_GET['time']) && is_numeric($_GET['time'])) {
|
||||
$advanced_where .= " d.download_datestamp ".($_GET['on'] == 'new' ? '>=' : '<=')." '".(time() - $_GET['time'])."' AND";
|
||||
}
|
||||
|
||||
if (isset($_GET['author']) && $_GET['author'] != '') {
|
||||
$advanced_where .= " (d.download_author = '".$tp -> toDB($_GET['author'])."') AND";
|
||||
}
|
||||
|
||||
if (isset($_GET['match']) && $_GET['match']) {
|
||||
$search_fields = array('d.download_name');
|
||||
} else {
|
||||
$search_fields = array('d.download_name', 'd.download_url', 'd.download_description', 'd.download_author', 'd.download_author_website');
|
||||
}
|
||||
|
||||
// basic
|
||||
$return_fields = 'd.download_id, d.download_category, download_category_id, d.download_name, d.download_description, d.download_author, d.download_author_website, d.download_datestamp, d.download_class, c.download_category_name, c.download_category_class';
|
||||
$weights = array('1.2', '0.9', '0.6', '0.6', '0.4');
|
||||
$no_results = LAN_198;
|
||||
$where = "download_active > '0' AND d.download_visible IN (".USERCLASS_LIST.") AND c.download_category_class IN (".USERCLASS_LIST.") AND".$advanced_where;
|
||||
$order = array('download_datestamp' => DESC);
|
||||
$table = "download AS d LEFT JOIN #download_category AS c ON d.download_category = c.download_category_id";
|
||||
|
||||
$ps = $sch -> parsesearch($table, $return_fields, $search_fields, $weights, 'search_downloads', $no_results, $where, $order);
|
||||
$text .= $ps['text'];
|
||||
$results = $ps['results'];
|
||||
|
||||
function search_downloads($row) {
|
||||
global $con;
|
||||
$datestamp = $con -> convert_date($row['download_datestamp'], "long");
|
||||
$res['link'] = "download.php?view.".$row['download_id'];
|
||||
$res['pre_title'] = $row['download_category_name']." | ";
|
||||
$res['title'] = $row['download_name'];
|
||||
$res['pre_summary'] = "<div class='smalltext'><a href='download.php'>".LAN_197."</a> -> <a href='download.php?list.".$row['download_category_id']."'>".$row['download_category_name']."</a></div>";
|
||||
$res['summary'] = $row['download_description'];
|
||||
$res['detail'] = LAN_SEARCH_15." ".$row['download_author']." | ".LAN_SEARCH_66.": ".$datestamp;
|
||||
return $res;
|
||||
}
|
||||
*/
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user