PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Sorry guys. The right file is:
<?php// The general information at the top of each file/*** @version 4.0.7 Release for Joomla 2.5* @package Joomla* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.* @license GNU General Public License, see LICENSE.php*/ // No direct access allowed to this filedefined( '_JEXEC' ) or die( 'Restricted access' ); // Import Joomla! Plugin library filejimport('joomla.plugin.plugin');// import panesjimport('joomla.html.pane');// import WeblinksHelperRouterequire_once JPATH_ROOT.'/components/com_weblinks/helpers/route.php';//The Content plugin AllWeblinksclass plgContentAllWeblinks extends JPlugin{ // plugin parameters
// _plgContentAllWeblinksReplace will set the values; protected $days_new; protected $txt_new; protected $days_mod; protected $txt_mod; protected $lengthoftitle; protected $orderby; protected $Corderby; protected $linkcount; protected $displayemptycat; // These params can also be overridden in the commmandline protected $real_url; protected $show_title; protected $show_new; protected $show_mod; protected $show_hits;
<?php
// The general information at the top of each file
/***
@version 4.0.7 Release for Joomla 2.5*
@package Joomla*
@copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.*
@license GNU General Public License, see LICENSE.php
*/
// No direct access allowed to this file
defined( '_JEXEC' ) or die( 'Restricted access' );
// Import Joomla! Plugin library file
jimport('joomla.plugin.plugin');
// import panes
jimport('joomla.html.pane');
// import WeblinksHelperRoute
require_once JPATH_ROOT.'/components/com_weblinks/helpers/route.php';
//The Content plugin AllWeblinks
class plgContentAllWeblinks extends JPlugin
{
// plugin parameters
// _plgContentAllWeblinksReplace will set the values;
protected $days_new;
protected $txt_new;
protected $days_mod;
protected $txt_mod;
protected $lengthoftitle;
protected $orderby;
protected $Corderby;
protected $linkcount;
protected $displayemptycat;
// These params can also be overridden in the commmandline
protected $real_url;
protected $show_title;
protected $show_new;
protected $show_mod;
protected $show_hits;
protected $new_window;
protected $moduleclass_sfx;
protected $num_cols;
protected $layout;
protected $show_header;
protected $show_cdate;
protected $show_mdate;
protected $show_author;
protected $display_cdescription;
protected $display_ldescription;
protected $DEBUG = 0;
protected $exclude_id = 0;