To jest kod tego dodatku. Gdy go wstawiam pojawia się tekst "Direct Access to this location is not allowed." Podejrzewam o co tu chodzi, jednak nie mam dostatecznek wiedzy na temat php. W instrukcji dodatku pisało, że trzeba go opublikować w panelu admina joomli, aby działał. Skoro nie mam Joomli, no to skrypt nie ma jak sprawdzić czy został już opublikowany. I tu pojawia się moje pytanie co trzeba zmienić, aby nie sprawdzane było czy dodatek jest opublikowany?
<?php /** * @version $Id: jogadgets.php,v 0.1 2006/01/11 12:28:13 Artur Heinze Exp $ * @package Joomla * @subpackage Jogadgets * @copyright (C) 2006 Artur Heinze * @license mambot <a href="http://www.gnu.org/copyleft/gpl.html" target="_blank">http://www.gnu.org/copyleft/gpl.html</a> GNU/GPL * @author Artur Heinze www.jogadgets.com * Joomla is Free Open Source Software */ /** ensure this file is being included by a parent file */ /** ** Usage: * ...see documentation... */ $_MAMBOTS->registerFunction( 'onPrepareContent', 'botJOGADGETS' ); //include joGadgets-Framework include_once('_jgfw_/jgfw.php'); $GLOBALS['jgw']->modulemode = false; function botJOGADGETS( $published, &$row, &$params, $page=0 ) { // check whether mambot has been unpublished if (!$published) { return; } //check whether to perform parsing on content return; } //Imagetitles if($GLOBALS['confJG']['useimgtitle']==true){ $style= 'display:block;height:'.$GLOBALS['confJG']['imgtitle_height']; // perform the replacement $row->title = '<div style="'.$style.';background:url(_jgfw_/image.php?text='.urlencode(strip_tags($row->title)).') no-repeat;"> </div>'; } $row->text = $GLOBALS['jgw']->doparse($row->text); return true; } ?>