Jump to content

Adopting html into php


anukagni
 Share

Recommended Posts

hi, all :) iam new to this forum and i want to get some clarification for the great guys like u ,, my issue is iam now working with linux webserver in this iam using the mail option as Squrriel mail the opening page of SM is so simply so my boss told me to change the openning page i.e. Log in page . for that i have created an opening page using HTML becoz iam not aware of PHP .. now what i need is i wnat to get the HTML to PHP and i want to make it as Opening page instead of SM's opening logon page .. Guy's pls help me in this issue... :) Thanks in advancebyepaps

Link to comment
Share on other sites

His web server has the SquirrelMail (webmail for nuts) program installed, and he wants to skin the login page.Anukagni - I'm sure the easiest thing to do is just to make your own page. Make your own login page, however you want it to look. When you have your page and it looks all pimp, take a look at this:http://www.squirrelmail.org/wiki/EmbeddedSquirrelMailLoginThey give you the javascript, HTML, and PHP that you need to add to your own file to get it to work.

Link to comment
Share on other sites

Did you read the page I linked to?  They tell you exactly how to do it, there's not much use in copying and pasting everything here.

I did and i got the think but what i want is i am now using Squirrle Mail Versioned 1.2.7-4 and the concept u said will works on Version 1.5.1.. & my server as version Red Hat 8 .. i want to know weather SM 1.5.1 will support this Red hat .... pls reply me .. i use the code as follow<html><body background="c:\Documents and Settings\ADMIN\Desktop\index.gif"></body><p><head><center><img src="c:\Documents and Settings\ADMIN\Desktop\building.jpg"width="500" height="200"></center></head><script language="JavaScript" type="text/javascript"><!--function squirrelmail_loginpage_onload() { document.forms[0].js_autodetect_results.value = '1'; for (i = 0; i < document.forms[0].elements.length; i++) { if (document.forms[0].elements.type == "text" || document.forms[0].elements.type == "password") { document.forms[0].elements.focus(); break; } }}// --></script></head><body onload="squirrelmail_loginpage_onload()"><Center><form method="post" action="http://linux.ciba.com/src/redirect.php"> <input type="hidden" name="js_autodetect_results" value="0"> <input type="hidden" name="just_logged_in" value="1"><table COLS="1" WIDTH="350"> <tr> <td WIDTH="30%" ALIGN=right>Username:</td> <td WIDTH="*" ALIGN=left> <input type="text" name="login_username" size="20"> </td> </tr> <tr> <td WIDTH="30%" ALIGN=right>Password:</td> <td WIDTH="*" ALIGN=left> <input type="password" name="secretkey" size="20"> </td> </tr></table></td></tr><table> <tr><td> <input type="submit" value="Login"> </tr></td></table></td></tr></form><Center> </body></html> My problem is when enterd the Username & password correctlly it redirecting to the Setup but when i entered wronglly i does not redirecting to my page it goes to default SM pagepls help mebyepaps
Link to comment
Share on other sites

i want to know weather SM 1.5.1 will support this Red hat
I don't know, I'm not on the SquirrelMail team. You can find out at the SquirrelMail site I'm sure, but I assume it would.
My problem is when enterd the Username & password correctlly it redirecting to the Setupbut when i entered wronglly i does not redirecting to my page it goes to default SM page
Right now your login form gets submitted to this page:http://linux.ciba.com/src/redirect.phpYou need to do one of three things. Either edit that page to get it to redirect to your own page, make a duplicate of that page and point it to yours and change where your form submits to, or replace the current SquirrelMail login with yours.
Link to comment
Share on other sites

I don't know, I'm not on the SquirrelMail team.  You can find out at the SquirrelMail site I'm sure, but I assume it would.Right now your login form gets submitted to this page:http://linux.ciba.com/src/redirect.phpYou need to do one of three things.  Either edit that page to get it to redirect to your own page, make a duplicate of that page and point it to yours and change where your form submits to, or replace the current SquirrelMail login with yours.

I did in the Linux server by converting this HTML file into PHP file and its working in SM ... Any body tell this SM Version 1.5.1 is on development & when it complete in2 full version weather it makes any problem for my server ...pls give my any advice becoz via my sever lotz for mails is being transfer and it uses internationally...if u have any doubt pld reply me... byepaps
Link to comment
Share on other sites

As a general rule, people writing software generally don't make wide changes right before release that breaks what the software is running on, so I think your server is probably safe. If you have concerns, the place to ask is at the SquirrelMail site. But since SquirrelMail is a PHP application, and you probably aren't going to make any changes to PHP, I doubt that the software would have any effect on the server at all. But like I said, if you have questions, the place to ask is at the SquirrelMail site.

Link to comment
Share on other sites

  • 2 weeks later...
Show me how you're specifying the background color.

Hi, I have created an jpg background using Photoshop. i did the below html code<body background="file/root/mail/background.jpg"></body>I added <?php> in the very top & <?> in the end and also give an logo as below<center><img src="file/root/mail/logo.jpg"width="500" height="200"></center>when i tried as php file in an linux web sever the logo appeares but the backgroun color is not appear..pls help me :)
Link to comment
Share on other sites

Specify the background image with CSS instead:<body style="background-image: URL(file/root/mail/background.jpg)">Also, it doesn't do anything to add <?php> at the top and <?> at the end. If you want to use PHP code, you need to surround it with <?php and ?>, but if you don't have any PHP code it doesn't do anything to just put those tags around.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...