Urgent! - PHP Login Problem - Free hosting 4 ever if u help!

Post September 26th, 2004, 12:17 pm

The site http://www.e1mail.com has this problem where if you try and login, it just displays a blank page (it even happens when you put a random username and password in)...can anyone tell me what is wrong?

This is urgent!!! Must have a reply as soon as possible!!! :!: :!: :!:

If you help me immediatly, I will put a link to your site on my site in the sponsored links on my homepage free for a week!!!

Thanks,
From Daniel .S.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post September 26th, 2004, 12:17 pm

Post September 26th, 2004, 12:18 pm

PHP Code: [ Download ] [ Select ]
<?
 
 
 
include("config.php");
 
include("functions.php");
 
require('mysql_connection.php');
 
 
 
$page_title = "$mail_service_name -> Log In";
 
 
 
$errors = NULL;
 
 
 
$user = "', $email, '@', $domain, '";
 
 
 
if (isset($_POST['submit'])) {
 
 
 
 if(empty($_POST['email'])) {
 
    $email = FALSE;
 
    $errors .= '<p align="center"><font color="#cc0000"><b>Please enter your email address</b></font></p>';
 
  } else {
 
    $email = $_POST['email'];
 
  }
 
 
 
  if(empty($_POST['pass'])) {
 
    $pass = FALSE;
 
    $errors .= '<p align="center"><font color="#cc0000"><b>Please enter your password</b></font></p>';
 
  } else {
 
    $pass = $_POST['pass'];
 
  }
 
 
 
if ($email && $pass) {
 
   
 
session_name(FreshWebmail);
 
session_start();
 
$_SESSION['email'] = "" . $_POST['email'] . "@" . $domain . "";
 
$_SESSION['pass'] = $_POST['pass'];
 
 
 
header("Location: webmail_inbox.php");
 
 
 
} else {
 
}
 
 
 
}
 
 
 
 
 
include("loginhead.php");
 
?>
 
 
 
 
 
<?php
 
 
 
if(isset($errors)) {
 
  echo '<p align="center"><font color="#ffffff"><b>', $errors , '</b></font></p>';
 
}
 
 
 
?>
 
 
 
 
 
<form method="POST" action="webmail_login.php">
 
<div align="center">
 
  <center>
 
  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="75%">
 
  <tr>
 
    <td width="28%">
 
    <p align="right"><b>Email Address:&nbsp;</b></td>
 
    <td width="72%"><input type="text" name="email" tabindex="1" size="20">
 
    @e1mail.com</td>
 
  </tr>
 
  <tr>
 
    <td width="28%">
 
    <p align="right"><b>Password:&nbsp;</b></td>
 
    <td width="72%"><input type="password" name="pass" tabindex="2" size="20"></td>
 
  </tr>
 
</table>
 
 
 
  </center>
 
</div>
 
<p align="center">
 
<input type="submit" name="submit" value="Login"></p>
 
</form>
 
 
 
 
 
 
 
<?php
 
 
 
include("footer.php");
 
 
 
?>
  1. <?
  2.  
  3.  
  4.  
  5. include("config.php");
  6.  
  7. include("functions.php");
  8.  
  9. require('mysql_connection.php');
  10.  
  11.  
  12.  
  13. $page_title = "$mail_service_name -> Log In";
  14.  
  15.  
  16.  
  17. $errors = NULL;
  18.  
  19.  
  20.  
  21. $user = "', $email, '@', $domain, '";
  22.  
  23.  
  24.  
  25. if (isset($_POST['submit'])) {
  26.  
  27.  
  28.  
  29.  if(empty($_POST['email'])) {
  30.  
  31.     $email = FALSE;
  32.  
  33.     $errors .= '<p align="center"><font color="#cc0000"><b>Please enter your email address</b></font></p>';
  34.  
  35.   } else {
  36.  
  37.     $email = $_POST['email'];
  38.  
  39.   }
  40.  
  41.  
  42.  
  43.   if(empty($_POST['pass'])) {
  44.  
  45.     $pass = FALSE;
  46.  
  47.     $errors .= '<p align="center"><font color="#cc0000"><b>Please enter your password</b></font></p>';
  48.  
  49.   } else {
  50.  
  51.     $pass = $_POST['pass'];
  52.  
  53.   }
  54.  
  55.  
  56.  
  57. if ($email && $pass) {
  58.  
  59.    
  60.  
  61. session_name(FreshWebmail);
  62.  
  63. session_start();
  64.  
  65. $_SESSION['email'] = "" . $_POST['email'] . "@" . $domain . "";
  66.  
  67. $_SESSION['pass'] = $_POST['pass'];
  68.  
  69.  
  70.  
  71. header("Location: webmail_inbox.php");
  72.  
  73.  
  74.  
  75. } else {
  76.  
  77. }
  78.  
  79.  
  80.  
  81. }
  82.  
  83.  
  84.  
  85.  
  86.  
  87. include("loginhead.php");
  88.  
  89. ?>
  90.  
  91.  
  92.  
  93.  
  94.  
  95. <?php
  96.  
  97.  
  98.  
  99. if(isset($errors)) {
  100.  
  101.   echo '<p align="center"><font color="#ffffff"><b>', $errors , '</b></font></p>';
  102.  
  103. }
  104.  
  105.  
  106.  
  107. ?>
  108.  
  109.  
  110.  
  111.  
  112.  
  113. <form method="POST" action="webmail_login.php">
  114.  
  115. <div align="center">
  116.  
  117.   <center>
  118.  
  119.   <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="75%">
  120.  
  121.   <tr>
  122.  
  123.     <td width="28%">
  124.  
  125.     <p align="right"><b>Email Address:&nbsp;</b></td>
  126.  
  127.     <td width="72%"><input type="text" name="email" tabindex="1" size="20">
  128.  
  129.     @e1mail.com</td>
  130.  
  131.   </tr>
  132.  
  133.   <tr>
  134.  
  135.     <td width="28%">
  136.  
  137.     <p align="right"><b>Password:&nbsp;</b></td>
  138.  
  139.     <td width="72%"><input type="password" name="pass" tabindex="2" size="20"></td>
  140.  
  141.   </tr>
  142.  
  143. </table>
  144.  
  145.  
  146.  
  147.   </center>
  148.  
  149. </div>
  150.  
  151. <p align="center">
  152.  
  153. <input type="submit" name="submit" value="Login"></p>
  154.  
  155. </form>
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163. <?php
  164.  
  165.  
  166.  
  167. include("footer.php");
  168.  
  169.  
  170.  
  171. ?>


The PHP code of webmail_login.php

From DanielSefton

Post September 26th, 2004, 12:32 pm

Ok then...4 weeks in my sponsored links!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! JUST PLEASE SOME ONE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

From DanielSefton

Post September 26th, 2004, 12:37 pm

How about a year of free hosting??? with UNLIMITED EVERYTHING!!! Then after that it is just £20 a year!!!!!!!!! Still with unlimited everything!!!!!!!!!!!!!!!!!!!!

SOMEONE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

NEED A REPLY NOW!!!!!!!!!!!!

From DanielSefton

Post September 26th, 2004, 12:40 pm

ILL TRY TO HELP! :-d
FusionFREE.com :: Play vid games online.

Post September 26th, 2004, 12:41 pm

FREE HOSTING TO THE FIRST PEOsON TO RESOLVE THE PROBlEM!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

FREE HOSTING FOREVER WITH UNLIMITED EVERYTHING.....TOP PACKAGE!!!!!!!!!!!!!!!!!

From DanielSefton

Post September 26th, 2004, 12:42 pm

okay, is there a script that you installed to have that site up and running? if so then speicify which one
FusionFREE.com :: Play vid games online.

Post September 26th, 2004, 12:44 pm

no there isn't...

From DanielSefton

Post September 26th, 2004, 12:45 pm

okay, when you 'login' the html on the following page is blank, it is:


Code: [ Download ] [ Select ]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <HTML><HEAD>
  3. <META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
  4. <BODY></BODY></HTML>




so the above is what you get, in other words You need to post the code to webmail_inbox.php. the script you are showing redirects the user to webmail_inbox.php without problems and so- it is the latter php file that is sending a blank file.


EDIT: if you wanna get on aim my sn is templastorm >.<
  • Mas Sehguh
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Aug 07, 2004
  • Posts: 1849
  • Status: Offline

Post September 26th, 2004, 12:45 pm

Hi. You need to post the code to webmail_inbox.php. The script you are showing redirects the user to webmail_inbox.php without problems - it is the latter php file that is sending a blank file.

Good luck.

Post September 26th, 2004, 12:46 pm

yea, what you need to do is upload the ACTUAL file, the one that you showed us before
FusionFREE.com :: Play vid games online.
  • Mas Sehguh
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Aug 07, 2004
  • Posts: 1849
  • Status: Offline

Post September 26th, 2004, 12:49 pm

Huh? what "actual" file? what did he show before?

Post September 26th, 2004, 12:49 pm

PHP Code: [ Download ] [ Select ]
<?php
 
 
 
include("config.php");
 
include("functions.php");
 
require('mysql_connection.php');
 
 
 
session_name(FreshWebmail);
 
session_start();
 
 
 
if(!isset($_SESSION['email'])) {
 
header ("Location: http://" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "webmail_login.php");
 
exit();
 
}
 
 
 
$inbox = @imap_open ("{" . $mail_servers . "}", $_SESSION['email'], $_SESSION['pass']) or header("Location: errors.php?errorcode=1");
 
 
 
$total = imap_num_msg($inbox);
 
 
 
$page_title = "$mail_service_name -> Inbox ~ Total Messages: $total";
 
 
 
include("header.php");
 
 
 
?>
 
 
 
<table width="100%" border="0" cellspacing="3" cellpadding="5">
 
<tr>
 
   <td valign=top align=center width=33%><a href="webmail_compose.php"><img src="images/compose.gif" width=50 height=50 alt="" border="0"><br><font face="Verdana" size="-2">Compose Email</font></a></td>
 
   <td valign=top align=center width=33%><a href="javascript&#058;document.forms[0].submit()"><img src="images/delete.gif" width=50 height=50 alt="" border="0"><br><font face="Verdana" size="-2">Delete Email(s)</font></a></td>
 
   <td valign=top align=center width=33%><a href="webmail_inbox.php"><img src="images/list.gif" width=50 height=50 alt="" border="0"><br><font face="Verdana" size="-2">Check for new Emails</font></a></td>
 
</tr>
 
</table>
 
 
 
<table width="100%" border="0" cellspacing="0" cellpadding="5">
 
<tr>
 
   <td background="filler.gif" bgcolor="#CCCCCC"><font size="-1">&nbsp;</font></td>
 
</tr>
 
</table>
 
<?
 
if ($total > 0)
 
{
 
?>
 
<table width="100%" border="0" cellspacing="0" cellpadding="5">
 
<form action="webmail_trash.php" method="post">
 
<tr>
 
   <td width="5%"><font size="-1">&nbsp;</font></td>
 
   <td width="5%"><font size="-1">&nbsp;</font></td>
 
   <td width="30%"><font face="Verdana" size="-1"><b>From</b></font></td>
 
   <td width="35%"><font face="Verdana" size="-1"><b>Subject</b></font></td>    
 
   <td width="18%"><font face="Verdana" size="-1"><b>Date</b></font></td>
 
   <td width="7%"><font face="Verdana" size="-1"><b>Size</b></font></td>
 
</tr>
 
 
 
<?php
 
 
 
for($x=$total; $x>0; $x--)
 
{
 
   $headers = imap_header($inbox, $x);
 
   $structure = imap_fetchstructure($inbox, $x);
 
?>
 
 
 
<tr bgcolor="<?php echo $bgcolor; ?>">
 
<td align="right" valign="top">
 
<input type="Checkbox" name="dmsg[]" value="<? echo $x; ?>">
 
</td>
 
<td valign="top">
 
<?
 
$sections = parse($structure);
 
$attachments = get_attachments($sections);
 
if(is_array($attachments))
 
{
 
   echo "<img alt=\"Message has attachments\" src=images/list.gif width=30 height=30 border=0>";
 
}
 
else
 
{
 
   echo "&nbsp;";
 
}
 
?>
 
</td>
 
<td valign="top">
 
<font face="Verdana" size="-1"><? echo htmlspecialchars($headers->fromaddress); ?></font>
 
</td>  
 
<td valign="top">
 
<font face="Verdana" size="-1">
 
<a href="emails.php?emailid=<? echo $x; ?>">
 
<?
 
   if ($headers->Subject == "")
 
   {
 
   echo "No Subject";
 
   }
 
   else
 
   {
 
   echo $headers->Subject;
 
   }
 
?>
 
</a>
 
</font>
 
</td>  
 
<td valign="top">
 
<font face="Verdana" size="-1"><? echo substr($headers->Date, 0, 22); ?></font>
 
</td>
 
<td valign="top">
 
<font face="Verdana" size="-1">
 
<?
 
echo ceil(($structure->bytes/1024)), " KB";
 
?>
 
</font>
 
</td>
 
</tr>
 
<?
 
}
 
// clean up
 
imap_close($inbox);
 
?>
 
</form>
 
</table>
 
<?
 
}
 
else
 
{
 
echo "<font face=Verdana size=-1><b><p align=center>You have no mail at this time</b></p></font>";
 
}
 
 
 
include("footer.php");
 
 
 
?>
 
 
 
 
  1. <?php
  2.  
  3.  
  4.  
  5. include("config.php");
  6.  
  7. include("functions.php");
  8.  
  9. require('mysql_connection.php');
  10.  
  11.  
  12.  
  13. session_name(FreshWebmail);
  14.  
  15. session_start();
  16.  
  17.  
  18.  
  19. if(!isset($_SESSION['email'])) {
  20.  
  21. header ("Location: http://" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "webmail_login.php");
  22.  
  23. exit();
  24.  
  25. }
  26.  
  27.  
  28.  
  29. $inbox = @imap_open ("{" . $mail_servers . "}", $_SESSION['email'], $_SESSION['pass']) or header("Location: errors.php?errorcode=1");
  30.  
  31.  
  32.  
  33. $total = imap_num_msg($inbox);
  34.  
  35.  
  36.  
  37. $page_title = "$mail_service_name -> Inbox ~ Total Messages: $total";
  38.  
  39.  
  40.  
  41. include("header.php");
  42.  
  43.  
  44.  
  45. ?>
  46.  
  47.  
  48.  
  49. <table width="100%" border="0" cellspacing="3" cellpadding="5">
  50.  
  51. <tr>
  52.  
  53.    <td valign=top align=center width=33%><a href="webmail_compose.php"><img src="images/compose.gif" width=50 height=50 alt="" border="0"><br><font face="Verdana" size="-2">Compose Email</font></a></td>
  54.  
  55.    <td valign=top align=center width=33%><a href="javascript&#058;document.forms[0].submit()"><img src="images/delete.gif" width=50 height=50 alt="" border="0"><br><font face="Verdana" size="-2">Delete Email(s)</font></a></td>
  56.  
  57.    <td valign=top align=center width=33%><a href="webmail_inbox.php"><img src="images/list.gif" width=50 height=50 alt="" border="0"><br><font face="Verdana" size="-2">Check for new Emails</font></a></td>
  58.  
  59. </tr>
  60.  
  61. </table>
  62.  
  63.  
  64.  
  65. <table width="100%" border="0" cellspacing="0" cellpadding="5">
  66.  
  67. <tr>
  68.  
  69.    <td background="filler.gif" bgcolor="#CCCCCC"><font size="-1">&nbsp;</font></td>
  70.  
  71. </tr>
  72.  
  73. </table>
  74.  
  75. <?
  76.  
  77. if ($total > 0)
  78.  
  79. {
  80.  
  81. ?>
  82.  
  83. <table width="100%" border="0" cellspacing="0" cellpadding="5">
  84.  
  85. <form action="webmail_trash.php" method="post">
  86.  
  87. <tr>
  88.  
  89.    <td width="5%"><font size="-1">&nbsp;</font></td>
  90.  
  91.    <td width="5%"><font size="-1">&nbsp;</font></td>
  92.  
  93.    <td width="30%"><font face="Verdana" size="-1"><b>From</b></font></td>
  94.  
  95.    <td width="35%"><font face="Verdana" size="-1"><b>Subject</b></font></td>    
  96.  
  97.    <td width="18%"><font face="Verdana" size="-1"><b>Date</b></font></td>
  98.  
  99.    <td width="7%"><font face="Verdana" size="-1"><b>Size</b></font></td>
  100.  
  101. </tr>
  102.  
  103.  
  104.  
  105. <?php
  106.  
  107.  
  108.  
  109. for($x=$total; $x>0; $x--)
  110.  
  111. {
  112.  
  113.    $headers = imap_header($inbox, $x);
  114.  
  115.    $structure = imap_fetchstructure($inbox, $x);
  116.  
  117. ?>
  118.  
  119.  
  120.  
  121. <tr bgcolor="<?php echo $bgcolor; ?>">
  122.  
  123. <td align="right" valign="top">
  124.  
  125. <input type="Checkbox" name="dmsg[]" value="<? echo $x; ?>">
  126.  
  127. </td>
  128.  
  129. <td valign="top">
  130.  
  131. <?
  132.  
  133. $sections = parse($structure);
  134.  
  135. $attachments = get_attachments($sections);
  136.  
  137. if(is_array($attachments))
  138.  
  139. {
  140.  
  141.    echo "<img alt=\"Message has attachments\" src=images/list.gif width=30 height=30 border=0>";
  142.  
  143. }
  144.  
  145. else
  146.  
  147. {
  148.  
  149.    echo "&nbsp;";
  150.  
  151. }
  152.  
  153. ?>
  154.  
  155. </td>
  156.  
  157. <td valign="top">
  158.  
  159. <font face="Verdana" size="-1"><? echo htmlspecialchars($headers->fromaddress); ?></font>
  160.  
  161. </td>  
  162.  
  163. <td valign="top">
  164.  
  165. <font face="Verdana" size="-1">
  166.  
  167. <a href="emails.php?emailid=<? echo $x; ?>">
  168.  
  169. <?
  170.  
  171.    if ($headers->Subject == "")
  172.  
  173.    {
  174.  
  175.    echo "No Subject";
  176.  
  177.    }
  178.  
  179.    else
  180.  
  181.    {
  182.  
  183.    echo $headers->Subject;
  184.  
  185.    }
  186.  
  187. ?>
  188.  
  189. </a>
  190.  
  191. </font>
  192.  
  193. </td>  
  194.  
  195. <td valign="top">
  196.  
  197. <font face="Verdana" size="-1"><? echo substr($headers->Date, 0, 22); ?></font>
  198.  
  199. </td>
  200.  
  201. <td valign="top">
  202.  
  203. <font face="Verdana" size="-1">
  204.  
  205. <?
  206.  
  207. echo ceil(($structure->bytes/1024)), " KB";
  208.  
  209. ?>
  210.  
  211. </font>
  212.  
  213. </td>
  214.  
  215. </tr>
  216.  
  217. <?
  218.  
  219. }
  220.  
  221. // clean up
  222.  
  223. imap_close($inbox);
  224.  
  225. ?>
  226.  
  227. </form>
  228.  
  229. </table>
  230.  
  231. <?
  232.  
  233. }
  234.  
  235. else
  236.  
  237. {
  238.  
  239. echo "<font face=Verdana size=-1><b><p align=center>You have no mail at this time</b></p></font>";
  240.  
  241. }
  242.  
  243.  
  244.  
  245. include("footer.php");
  246.  
  247.  
  248.  
  249. ?>
  250.  
  251.  
  252.  
  253.  



There is the code for webmail_login.php

From DanielSefton

Post September 26th, 2004, 12:50 pm

yea, that is the orignal file, the file that we are suppose to be going to but are nto directed to
FusionFREE.com :: Play vid games online.

Post September 26th, 2004, 12:54 pm

Well if you go to http://www.e1mail.com/webmail_inbox.php , it doesnt load?

Any Ideas?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post September 26th, 2004, 12:54 pm

Post Information

  • Total Posts in this topic: 41 posts
  • Users browsing this forum: The_torst and 373 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© Unmelted Enterprises 1998-2009. Driven by phpBB © 2001-2009 phpBB Group.