Update to latest version
This commit is contained in:
parent
8a89842ec6
commit
fe9ecfad73
77 changed files with 1701 additions and 5404 deletions
|
@ -22,11 +22,11 @@
|
|||
* @author Bernhard Jaud <bernhard at becast dot at>
|
||||
* @package BcWe core
|
||||
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||
* @version $Id$
|
||||
* @version $Id: 421f3a896dfbf7885cd381975a57520bb1a9e7e5 $
|
||||
*/
|
||||
|
||||
$module['core']['name']='Core Class';
|
||||
$module['core']['ver']='1.0.0';
|
||||
$module['core']['ver']='1.1.0';
|
||||
|
||||
class Core{
|
||||
|
||||
|
@ -184,11 +184,6 @@ class Core{
|
|||
$nav_content=preg_replace("/\{logged_in\}(.*?)\{\/logged_in\}/si","",$nav_content);
|
||||
$nav_content=preg_replace("/\{logged_out\}(.*?)\{\/logged_out\}/si","\\1",$nav_content);
|
||||
}
|
||||
if($session->userdata['allow_grimdark']!=0){
|
||||
$nav_content=preg_replace("/\{allow_gd\}(.*?)\{\/allow_gd\}/si","\\1",$nav_content);
|
||||
}else{
|
||||
$nav_content=preg_replace("/\{allow_gd\}(.*?)\{\/allow_gd\}/si","",$nav_content);
|
||||
}
|
||||
|
||||
if(trim($nav_content)!=''){
|
||||
$navtpl->assign('navtitle', $nav_title);
|
||||
|
@ -301,6 +296,7 @@ class Core{
|
|||
*
|
||||
*/
|
||||
function get_navbits(){
|
||||
$navs = "";
|
||||
foreach($this->navbits as $key => $nav){
|
||||
if(isset($this->navbits[$key+1])){
|
||||
if($nav['url']==''){
|
||||
|
@ -316,7 +312,7 @@ class Core{
|
|||
}
|
||||
}
|
||||
|
||||
if(!$navs){
|
||||
if(empty($navs)){
|
||||
$navs=$bit;
|
||||
}else{
|
||||
$navs.=' / '.$bit;
|
||||
|
@ -442,11 +438,6 @@ class Core{
|
|||
$row['content']=preg_replace("/\{logged_in\}(.*?)\{\/logged_in\}/si","",$row['content']);
|
||||
$row['content']=preg_replace("/\{logged_out\}(.*?)\{\/logged_out\}/si","\\1",$row['content']);
|
||||
}
|
||||
if($session->userdata['allow_grimdark']!=0){
|
||||
$row['content']=preg_replace("/\{allow_gd\}(.*?)\{\/allow_gd\}/si","\\1",$row['content']);
|
||||
}else{
|
||||
$row['content']=preg_replace("/\{allow_gd\}(.*?)\{\/allow_gd\}/si","",$row['content']);
|
||||
}
|
||||
$content.=$row['content'];
|
||||
}
|
||||
}
|
||||
|
@ -523,10 +514,14 @@ class Core{
|
|||
* @return void
|
||||
*
|
||||
*/
|
||||
|
||||
function make_page($content, $minimal=FALSE,$minimal_tpl='minimal_index.tpl',$header_tpl='header.tpl',$footer_tpl='footer.tpl'){
|
||||
function make_page($content, $minimal=FALSE,$minimal_tpl='minimal_index.tpl',$header_tpl='header.tpl',$footer_tpl='footer.tpl', $headers=array()){
|
||||
global $config, $session, $start, $tpl, $db, $meta, $footer, $mod, $plugin,$plugin_content;
|
||||
$plugin->run_hook('frontpage_start',array(&$tpl));
|
||||
if(!empty($headers)){
|
||||
foreach($headers as $header){
|
||||
header($header['name'].": ".$header['value']);
|
||||
}
|
||||
}
|
||||
if($config['p3p_active']==1){
|
||||
header('P3P: CP="'.$config['p3p_string'].'"');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue