Webmail src login php squirrelmail9/3/2023 ![]() Below is a sample from a working installation where the relevant login plugin hook is called, which might even make this compatible with ANY plugins that use the same hook as well as password_forget. Ideally, you'd need your custom login page to be a PHP file that can make the correct function call into that plugin. If you are using the password_forget plugin, more work is required to build the login form correctly. You don't have to add all hooks used by all plugins, only the ones affecting the login process. View the plugin's setup.php file to find out which ones those are, then look at where those plugin hooks are used in src/login.php, and add them accordingly to your custom login page. In addition to the above, your code needs to execute any and all SquirrelMail plugin hooks used by any login plugin you are trying to get working. Don't forget to destroy SquirrelMail sessions first, otherwise if a user didn't logout properly, there's a risk of mixing personal information. Put this in the body tag so SquirrelMail housekeeping can be executed when the page loads:Īlso note that you may or may not want to use HTTPS instead of HTTP for secure password transmission. Here is a sample of the required HTML code (obviously, you need to add your own layout code): Var FFextraHeight=parseFloat(getFFVersion)>=0.1? 16 : 0 //extra height in px to add to iframe in FireFox 1.It is easy to put username and password input fields in any web page and let the user log into their SquirrelMail without going to the default SquirrelMail login page. Var getFFVersion=(("Firefox")).split("/") Should script hide iframe from browsers that don't support this script (non IE5+/NS6+ browsers. ![]() Input the IDs of the IFRAMES you wish to dynamically resize to match its content height: * This notice must stay intact for legal use * Visit for hundreds of original DHTML scripts * IFrame SSI script II- © Dynamic Drive DHTML code library () change your ID to something a bit more readable just incase you want to link to it from a sign in block like Kutulu's block for Squirrel Mail. page format=left blocks, depending on your theme check add to menu, you can always set perms at the bottom My static page for NeoMail then is like this: except i cant get the login to work from the block so i'm just using the static page and signing into the http auth box that pops up. So i used neomail instead and it works great. then you log out and the target="top" on the signout link gets ya-kinda defeats the purpose. ![]() I used an iframe in a static page and just readusted the path in the block form, Kutulu's code above, setting action to the static page url, using the target attribute, target="frame name"-and i gave the iframe a name, obviously.Īs for squishyitus, i display the page without the right blocks and for the most part its all good. Password:User Please note that your paths my differ a bit than mine so check them out.Īlso, I have a link in the block for a SSL login redirect. I wanted to be able to login to my Squiremail from the home page so I created a block to do so. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |