Here is a simpliest PHP script example file which you may try to create separately (I've tested it with latest miniBB release, naming it ld.php and placing into a forums directory; all code is copied/pasted from the original miniBB files):
<?php define ('INCLUDED776',1);
include ('./setup_options.php');
include ($pathToFiles.'setup_'.$DB.'.php'); include ($pathToFiles.'bb_cookie.php'); include ($pathToFiles.'bb_functions.php');
$langOrig=$lang; $user_id=0; $action='';
user_logged_in(); if($user_id!=0 and isset($langu) and $langu=str_replace(array('.','/',''),'',$langu) and file_exists($pathToFiles."lang/{$langu}.php")) $lang=$langu; elseif($user_id==0 and isset($_GET['setlang']) and $setlang=str_replace(array('.','/',''),'',$_GET['setlang']) and file_exists($pathToFiles."lang/{$_GET['setlang']}.php")) {$lang=$setlang; $indexphp.='setlang='.$setlang.'&';}
include ($pathToFiles."lang/$lang.php");
include($pathToFiles.'bb_func_ldisc.php');
$listTopics=$list_topics;
echo ParseTpl(makeUp('main_last_discussions'));
?> |