Jump to content

Page is showing up blank, why?


Darkmatter5

Recommended Posts

Here is the page code:

 

<?php
require('library/config.inc.php');
require('library/vein_funcs.php');
$vein=new vein();
    $page_title="V.E.I.N. (Video Entertainment Interactive Network)";
        
    if(!isset($_SESSION['member_id'])) {
        ob_end_clean();
        exit();
    }
    else {
        ob_start();
        session_start();
    }
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $page_title; ?></title>
<link href="library/config.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="wrap">
  <div id="header">
    <table width="100%" height="100%" align="center" cellpadding="0" cellspacing="0" border="1">
      <tr>
        <td width="70%" valign="middle"><img src="images/banner.png" width="400" height="100" alt="banner.png"></td>
        <td align="right" valign="bottom"><span class="small_text"> <br>This site is best viewed at a screen resolution of atleast 1024 x 768</span><br><?php echo date("F j, Y, h:i:s A"); ?></td>
      </tr>
    </table>
  </div>
  <div id="login"><?php $vein->login_tool(); ?></div>
  <div id="menu">
    <table width="100%">
      <tr>
        <td><?php $vein->user_rights(help); ?></td>
        <td align="right"><?php $vein->version(); ?></td>
      </tr>
    </table>
  </div>
  <div id="content">
    <table width="100%" height="100%" align="center" cellpadding="0" cellspacing="0" border="1">
      <tr>
        <td width="150" valign="top" rowspan="2">MENUS</td>
        <td class="pagetitle_text">HELP</td>
      </tr>
      <tr>
        <td>
          <ol>
            <li>Adding a game</li>
          </ol>
        </td>
      </tr>
    </table>
  </div>
</div>
</body>
</html>

<?php ob_end_flush(); ?>

 

This page should display regardless of if a user is logged in or not.  I have the session code at the beginning as some functions in the page depend on a sessions being created to display the current users info.

 

This page is being rendered blank is your aren't logged into the site, if you are it displays fine.  What's going on?

Link to comment
https://forums.phpfreaks.com/topic/139019-page-is-showing-up-blank-why/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.