mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 06:07:32 +02:00
Removed core download stuff (now in downloads plugin)
This commit is contained in:
@@ -1,45 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
class e_tagwords_download
|
||||
{
|
||||
function e_tagwords_download()
|
||||
{
|
||||
$this->e107 = e107::getInstance();
|
||||
|
||||
$this->settings = array();
|
||||
|
||||
$this->settings['plugin'] = "";
|
||||
$this->settings['table'] = "download";
|
||||
$this->settings['db_id'] = "download_id";
|
||||
$this->settings['caption'] = "download";
|
||||
}
|
||||
|
||||
function getLink($id)
|
||||
{
|
||||
if($this->row=='')
|
||||
{
|
||||
$this->row = $this->getRecord($id);
|
||||
}
|
||||
$url = e_BASE."download.php?view.".$this->row['download_id'];
|
||||
return "<a href='".$url."'>".$this->e107->tp->toHTML($this->row['download_name'], TRUE, '')."</a>";
|
||||
}
|
||||
|
||||
function getRecord($id)
|
||||
{
|
||||
$this->row = '';
|
||||
|
||||
$qry = "SELECT d.*
|
||||
FROM #download as d
|
||||
WHERE d.download_id='{$id}' AND d.download_class REGEXP '".e_CLASS_REGEXP."' ";
|
||||
|
||||
if($this->e107->sql->db_Select_gen($qry))
|
||||
{
|
||||
$this->row=$this->e107->sql->db_Fetch();
|
||||
}
|
||||
return $this->row;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
@@ -9,9 +9,9 @@
|
||||
* Tagwords Class
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/tagwords/tagwords_class.php,v $
|
||||
* $Revision: 1.4 $
|
||||
* $Date: 2009-04-29 07:07:33 $
|
||||
* $Author: lisa_ $
|
||||
* $Revision: 1.5 $
|
||||
* $Date: 2009-05-04 13:39:37 $
|
||||
* $Author: bugrain $
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -28,7 +28,7 @@ class tagwords
|
||||
{
|
||||
var $tagwords = array();
|
||||
var $mapper = array();
|
||||
var $core = array('download', 'news', 'page');
|
||||
var $core = array('news', 'page');
|
||||
var $table = 'tagwords';
|
||||
var $pref;
|
||||
var $template;
|
||||
|
Reference in New Issue
Block a user