I am writing this request to ask you an help about the new plugin system in CmSimple XH 1.6.x. In details since version 1.5.x I integrate external code like cutenews simply inserting some code lines at the end of index.php file inside plugins folder. In details to make the news open inside the cmsimple template I add this code lines:
Code: Select all
$shownumber=10;
$cute_page='News';
if($u[$s]==$cute_page&&!($edit&&$adm)&&$s>-1){
ob_start();
$number=$shownumber;
include("./cutenews/show_news.php");
$c[$s].=ob_get_contents();
ob_end_clean();
}
$cute_parameter=$_GET['subaction'];
if($cute_parameter==''){
$cute_parameter=$_GET['start_from'];
if($cute_parameter!='')$number=$shownumber;
}
if(($cute_parameter!=''))
{
$s=-1;
ob_start();
$number=$shownumber;
include("./cutenews/show_news.php");
$o.=ob_get_contents();
$title=ucfirst($cute_parameter);
if($title=="Showfull")$title='Show Article';else $title='News';
ob_end_clean();
}
Thanks in advance for your help!