Jump to content

Recommended Posts

Posted

OK, sorry if this is on here somewhere else and I can't find it but....

 

I'm trying to make a page (for on my site) to log into Squirl mail web interface. I want to automaticaly add the +YourDomanName.com for the users and then take them into the squirl mail interface.

 

Now that is the ultimate plan, right now I would be happy with just haveing a 'web page' where they could log in from (my parents don't now what to do when the authintication window launches, so they kill it no matter what I tell them!!). I have the following code I swiped from the FAQ's (http://www.totalchoicehosting.com/help/id98.htm), but it's not working like it should. It dosen't open the squirl web interface, it gives me a 'Page can't be found'. Is there a step missing??.....HELP!!!!!! What am I being brain dead and not seeing?

 

Thanks!

 

<HTML>

<head>

<script language="JavaScript" type="text/javascript">

<!--

function squirrelmail_loginpage_onload() {

document.forms[0].js_autodetect_results.value = '1';

}

// -->

</script>

</head>

 

<BODY>

<form method="post" action="http://charles-mckinley.com/mail/src/redirect.php">

<input type="hidden" name="js_autodetect_results" value="0">

User: <input type="text" name="login_username" size="10">

Password: <input type="password" name="secretkey" size="10">

<input type="submit" value="Login">

</form>

</BODY>

</HTML>

Posted (edited)

><form method="post" action="http://charles-mckinley.com/mail/src/redirect.php">

 

Needs to be

 

><form method="post" action="http://charles-mckinley.com/sqmail/src/redirect.php">

 

sqmail/ not mail/

Edited by TCH-Robert
Posted
This almost works, but I don't seem to have the sqmail directory or file needed in this line.

 

I can access that directory with no problem. Can you post the complete code you are using?

Posted

I had a missing tag, and fixing that solved it. What was puzzling was I can't "see" that directory in the Cpanel file manager. It has to be there since i can call the file. Is this a permissions issue on the root?

Posted

I think it is called a symbolic link,

it gives the illusion that the page requested contains the information that appears in the browser window,

but it actually points to another file on your system where the information is really located.

Posted

To be accurate since it's being asked... ;)

 

/sqmail is an "alias" to where sqmail is actually located. This alias is configured in the web server software (apache). The real sqmail directory is in a central place on the server.

 

A symbolic link is the term used for when a file is created on the file system that points to another file or directory (same concept as "shortcuts" in Windows).

 

Both accomplish the same thing in this particular type of case. The primary difference is that the alias is translated at the application level (web server) before any attempt to access the filesystem is made and the symbolic link is translated at the file system level. Symbolic links you would see. "www" is a symbolic link to "public_html" in your home directory, for example. Go into either and you end up in the same place.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...