mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 14:46:56 +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
|
* Tagwords Class
|
||||||
*
|
*
|
||||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/tagwords/tagwords_class.php,v $
|
* $Source: /cvs_backup/e107_0.8/e107_plugins/tagwords/tagwords_class.php,v $
|
||||||
* $Revision: 1.4 $
|
* $Revision: 1.5 $
|
||||||
* $Date: 2009-04-29 07:07:33 $
|
* $Date: 2009-05-04 13:39:37 $
|
||||||
* $Author: lisa_ $
|
* $Author: bugrain $
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -28,7 +28,7 @@ class tagwords
|
|||||||
{
|
{
|
||||||
var $tagwords = array();
|
var $tagwords = array();
|
||||||
var $mapper = array();
|
var $mapper = array();
|
||||||
var $core = array('download', 'news', 'page');
|
var $core = array('news', 'page');
|
||||||
var $table = 'tagwords';
|
var $table = 'tagwords';
|
||||||
var $pref;
|
var $pref;
|
||||||
var $template;
|
var $template;
|
||||||
|
Reference in New Issue
Block a user