#13771 [Com]: did everything from DSO installation to static

From: Date: Tue, 06 Nov 2007 08:47:46 +0000
Subject: #13771 [Com]: did everything from DSO installation to static
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-119316@lists.php.net to get a copy of this message
 ID:               13771
 Comment by:       aziziahmad at petronas dot com dot my
 Reported By:      noel_y at hotmail dot com
 Status:           No Feedback
 Bug Type:         PHP options/info functions
 Operating System: Suse 7.0
 PHP Version:      4.0.4pl1
 New Comment:

hello guys..

need your help ..i got a problem with this php script....the page can't
be displayed in the browser when i reload to the server..please help
me..



the coding


<?php require_once('Connections/utphse.php'); ?>
<?php
// *** Validate request to login to this site.
if (!isset($_SESSION)) {
  session_start();
}

$loginFormAction = $_SERVER['PHP_SELF'];
if (isset($_GET['accesscheck'])) {
  $_SESSION['PrevUrl'] = $_GET['accesscheck'];
}

if (isset($_POST['username'])) {
  $loginUsername=$_POST['username'];
  $password=$_POST['password'];
  $MM_fldUserAuthorization = "";
  $MM_redirectLoginSuccess = "adminmain.php";
  $MM_redirectLoginFailed = "faillogin_msg.php";
  $MM_redirecttoReferrer = false;
  mysql_select_db($database_utphse, $utphse);
  
  $LoginRS__query=sprintf("SELECT user_name, user_password FROM user
WHERE user_name='%s' AND user_password='%s'",
    get_magic_quotes_gpc() ? $loginUsername :
addslashes($loginUsername), get_magic_quotes_gpc() ? $password :
addslashes($password)); 
   
  $LoginRS = mysql_query($LoginRS__query, $utphse) or
die(mysql_error());
  $loginFoundUser = mysql_num_rows($LoginRS);
  if ($loginFoundUser) {
     $loginStrGroup = "";
    
    //declare two session variables and assign them
    $_SESSION['MM_Username'] = $loginUsername;
    $_SESSION['MM_UserGroup'] = $loginStrGroup;	  
	
	//declare session to recognize user 
	$_SESSION['name'] = $loginUsername;     

    if (isset($_SESSION['PrevUrl']) && false) {
      $MM_redirectLoginSuccess = $_SESSION['PrevUrl'];	
    }
    header("Location: " . $MM_redirectLoginSuccess );
  }
  else {
    header("Location: ". $MM_redirectLoginFailed );
  }
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">



<!-- DW6 -->
<head>
<!-- Copyright 2005 Macromedia, Inc. All rights reserved. -->
<title>Home Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
/>
<link rel="stylesheet" href="css/mm_training.css" type="text/css"
/>

</head>
<body bgcolor="#64748B">
<table width="100%" border="0" cellspacing="0"
cellpadding="0">
	<tr bgcolor="#FFFFFF">
	<td width="15" nowrap="nowrap"><img src="css/mm_spacer.gif"
alt=""
width="15" height="1" border="0" /></td>
	<td height="70" colspan="3" nowrap="nowrap"
class="logo"><img
src="images/TOPIC.jpg" width="978" height="99" /></td>
	<td width="40">&nbsp;</td>
	<td width="100%">&nbsp;</td>
	</tr>

	<tr bgcolor="#FF6600">
	<td colspan="6"><img src="css/mm_spacer.gif" alt=""
width="1"
height="4" border="0" /></td>
	</tr>

	<tr bgcolor="#D3DCE6">
	<td colspan="6"><img src="css/mm_spacer.gif" alt=""
width="1"
height="1" border="0" /></td>
	</tr>

	<tr bgcolor="#FFCC00">
	<td width="15" nowrap="nowrap">&nbsp;</td>
	<td width="705" colspan="3" height="24">
	<table border="0" cellpadding="0" cellspacing="0"
id="navigation">
        <tr>
          <td class="navText" align="center"
nowrap="nowrap"><a
href="login.php">HOME</a></td>
          <td class="navText" align="center"
nowrap="nowrap"><a
href="user_announcement.php">ANNOUNCEMENT</a></td>
          <td class="navText" align="center"
nowrap="nowrap"><a
href="user_info.php">INFORMATION </a></td>
          <td class="navText" align="center"
nowrap="nowrap"><a
href="user_report.php">REPORT ACCIDENT/INCIDENT  </a></td>
		   <td class="navText" align="center" nowrap="nowrap"><a
href="chra%20user.php">CHRA </a></td>
		  <td class="navText" align="center" nowrap="nowrap"><a
href="hsems%20user.php">HSEMS </a></td>
		   <td class="navText" align="center" nowrap="nowrap"><a
href="ERP%20user.php">ERP  </a></td>
		  <td class="navText" align="center" nowrap="nowrap"><a
href="aboutus.php">ABOUT US  </a></td>
	    </tr>
      </table>	</td>
	<td width="40">&nbsp;</td>
	<td width="100%">&nbsp;</td>
	</tr>

	<tr bgcolor="#D3DCE6">
	<td colspan="6"><img src="css/mm_spacer.gif" alt=""
width="1"
height="1" border="0" /></td>
	</tr>

	<tr bgcolor="#FF6600">
	<td colspan="6"><img src="css/mm_spacer.gif" alt=""
width="1"
height="4" border="0" /></td>
	</tr>

	<tr bgcolor="#D3DCE6">
	<td width="230" colspan="2" valign="top"
bgcolor="#FFFFFF"><img
src="images/pageimage1.gif" alt="Home Page Image" width="245"
height="207" border="0" /><br />
	<table border="0" cellspacing="0" cellpadding="0"
width="230">
		<tr>
		  <td width="230" class="sidebarText" id="padding"><br
/>
			<table width="100%" border="1" cellpadding="1"
cellspacing="0"
id="table7">
				<tr>
				  <td bgcolor="#FF0000"><div align="center"><b><font
face="Verdana"
size="2">Login Area </font></b></div></td>
			  </tr>
				<tr>
					<td><form id="login" name="login" method="POST"
action="<?php echo
$loginFormAction; ?>">
					  <table width="200" border="0" cellpadding="1"
cellspacing="0"
style="margin-bottom: 0">
                        <tr>
                          <td width="66">Username</td>
                          <td width="10">&nbsp;</td>
                          <td width="124"><label>
                            <input name="username" type="text"
id="username" />
                          </label></td>
                        </tr>
                        <tr>
                          <td>Password</td>
                          <td>&nbsp;</td>
                          <td><label>
                            <input name="password" type="password"
id="password" />
                          </label></td>
                        </tr>
                        <tr>
                          <td>&nbsp;</td>
                          <td>&nbsp;</td>
                          <td><label>
                            <input type="submit" name="Submit"
value="Login" />
                          </label></td>
                        </tr>
                      </table>
                                        </form>
					</td>
				</tr>
			</table>
			<br />
			<table width="100%" border="1" cellpadding="1"
cellspacing="0"
id="table7">
				<tr>
				  <td bgcolor="#FF0000"><div align="center"><b><font
face="Verdana"
size="2">Related Links </font></b></div></td>
			  </tr>
				<tr>
					<td>
					<p style="margin-top: 0; margin-bottom: 0"><b>
					<font face="Verdana" size="2" color="#000000"><A
HREF="http://www.petronas.com.my">PETRONAS 
					Website</A></font></b></p>
					<p style="margin-top: 0; margin-bottom: 0"><b>
					<font face="Verdana" size="2" color="#000000"><A
HREF="http://www.utp.edu.my">UTP
Website</A></font></b></p>
					<p style="margin-top: 0; margin-bottom: 0"><b>
					<font face="Verdana" size="2" color="#000000"><A
HREF="http://elearning.utp.edu.my">E-Learning</A></font></b></td>
				</tr>
		  </table>
			  <br />		</td></tr>
	</table>	
	<br />
	<br />
	<br />
	<br />
	<br />
	<br /></td>
	<td width="50" valign="top"><img src="css/mm_spacer.gif"
alt=""
width="50" height="1" border="0" /></td>
	<td width="440" valign="top"><br />
	<br />
	<table border="0" cellspacing="0" cellpadding="0"
width="828">
		<tr>
		<td width="755" class="pageName"><p>Welcome To UTP Health Safety
&amp; Environment (HSE) Web Based System </p></td>
		</tr>

		<tr>
		<td class="bodyText">
		  <p align="left"><strong><font face="Verdana"
size="2"
color="#000000">Welcome 
		    to UTP Health, Safety &amp; Enviroment System. Only administrator
can login your account 
		    at the </font><font face="Verdana" size="2"
color="#0000FF">
bottom left</font><font face="Verdana" size="2"
color="#000000"> of this
page. Else, you only can view this system or you can ask administrator
to create your account to 
		      access this system.</font></strong></p>
		  <p align="left"><strong><font face="Verdana"
size="2"
color="#000000">For 
		    security reasons the best idea is to change your temporary
password once 
		    your enter this UTP Health, Safety &amp; Environment (HSE) web
system.</font></strong></p>
		  <p align="left"><strong><font face="Verdana"
size="2"
color="#000000">UTP 
		    HSE System is a web based system designed in three modules;
administrator, staff 
		     and student.This 
		    system is initiated to computerize all functions in current
system such as
		    in Chemical Inventory, Incident/Accident Notification, Emergency
Response Plan (ERP) and Chemical Heatlh 
		    Risk Assessment (CHRA) system. </font></strong></p>
		  <p align="left"><strong><font face="Verdana"
size="2"
color="#000000">The main objective of this system is to 
		      store and sharing all the information about UTP Health, Safety
&amp; Environment department 
		      so that everyone can share these worthy information.
</font></strong></p>
		  <p align="left"><strong><font face="Verdana"
size="2"
color="#000000">Data 
		    in this system is presented in taxonomy. You can view a long list
of chemical 
		    data as specific as possible rather in table form. Besides, you
can also 
		    search for particular chemicals in order to save your time to
look at 
		    every single file available in the UTP HSE department.&nbsp;
</font> </strong></p>
		  <p align="justify"><strong><font face="Verdana"
size="2"
color="#000000">All 
		    information about the chemical stored in this system is only for
University 
		    Technology PETRONAS (UTP) Health, Safety &amp; Environment (HSE)
Department.&nbsp; </font></strong></p>
		  <p align="left"><strong><font face="Verdana"
size="2"
color="#000000">Thanks 
		    for your support and for using this HSE web system.
</font></strong></p>
		  <p>&nbsp;</p>

		</td>
		</tr>
	</table>
	 <br />
	&nbsp;<br />	</td>
	<td width="40">&nbsp;</td>
	<td width="100%">&nbsp;</td>
	</tr>

	<tr bgcolor="#D3DCE6">
	<td colspan="6"><img src="css/mm_spacer.gif" alt=""
width="1"
height="1" border="0" /></td>
	</tr>

	<tr>
	<td width="15">&nbsp;</td>
	<td width="215">&nbsp;</td>
	<td width="50">&nbsp;</td>
	<td width="440"><div align="right"><b><font
size="2" face="Verdana"
color="#000000">All Right Reserved. 
	  Copyright 2007 UTP HSE DEPARTMENT</font></b></div></td>
	<td width="40">&nbsp;</td>
	<td width="100%">&nbsp;</td>
	</tr>
</table>
</body>
</html>


Previous Comments:
------------------------------------------------------------------------

[2002-04-10 00:00:06] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

------------------------------------------------------------------------

[2002-02-26 21:33:57] yohgaki@php.net

The version of PHP that this bug was reported in is too old. Please
try to reproduce this bug in the latest version of PHP (available
from http://www.php.net/downloads.php

If you are still able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".



------------------------------------------------------------------------

[2001-10-20 13:51:05] noel_y at hotmail dot com

i think i found the problem but not the solution. here is the script:

<?
	include_once("include/eProcurement.php");

	function parse_buffer($_buffer) {
		return use_buffer($_buffer);
	}
	
	ob_start("parse_buffer");
?>
<html>
<head><title>Buyers Page (Home)</title>
<link rel="stylesheet" href="css/default.css" type="text/css">
</head><body bgcolor='white'>
<span class="headers1"> Buyers Page</span> 
<table border=1 width=600>
<tr>
<td class="tbl_header_fnts1" ><b>Home</b></td>
    <td class="tbl_header_fnts1" ><a
href='buyers_order.php'>Order</a></td>
    <td class="tbl_header_fnts1" ><a
href='buyers_qry_orders.php'>Query
Orders</a></td>
    <td class="tbl_header_fnts1" ><a
href='buyers_qry_orders_result.php'>Query 
      Results</a></td>
</tr>
<tr>
<td colspan=4>
<p>Home page for buyers...</p>
</td>
</tr>
</table>
</body>
</html>
<? ob_end_flush(); ?>


if i replace the function "ob_start("parse_buffer")" with ob_start()
only, the page gets displayed properly.

what is my problem?? is ob_start not behaving properly in my
compilation?

Thanks 


------------------------------------------------------------------------

[2001-10-20 13:23:07] noel_y at hotmail dot com

hi! i did what u said. I upgraded to php4.06 but i still have the same
problem (page cannot be displayed)
this is the site http://www.vasia.com/issitec/buyers_login.html

when i try to log in, it will call "buyers.php"
which does not display at all

------------------------------------------------------------------------

[2001-10-20 04:42:28] derick@php.net

Please try php 4.0.6 from www.php.net and report back if the problem
still exists.

Derick

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/13771

-- 
Edit this bug report at http://bugs.php.net/?id=13771&edit=1


Thread (1 message)

  • aziziahmad at petronas dot com dot my
  • Unknown Message
    • aziziahmad at petronas dot com dot my
« previous php.bugs (#119316) next »