使用 php 自定义 webmail cpanel 登录区域

发布于 2024-08-23 20:23:19 字数 464 浏览 7 评论 0原文

我的网络邮件设置类似于 Hostgator 的设置(我与他们一起托管,看起来他们使用自己的系统)。我正在尝试自定义网络邮件的登录页面,但有点卡住了。

当您转到下面的网络邮件页面/端口时,您会看到一个弹出登录表单,而不是网络登录表单。如果您点击取消,它最终会加载网络登录表单。

http://www.hostgator.com/webmail/

请注意,我使用的是 hostgator webmail 链接只是作为示例,因为它们使用相同的脚本。

有没有办法通过 php (或任何其他方式)来阻止弹出登录表单并直接进入 Web 登录表单?下一步将是对其进行主题化等。有关此脚本如何工作的任何想法或教程?

I have webmail setup similar to what hostgator has (I host with them and looks like they use their own system). I'm trying to customize the login page of webmail, but am a little stuck.

When you go to webmail page/port below, you get a popup login form, not a web login form. If you hit cancel, it finally loads the web login form.

http://www.hostgator.com/webmail/

Note that I'm using hostgator's webmail link just as an example because they use the same script.

Is there a way through php (or any other way) to prevent the popup login form and go straight to the web login form? The next step would be to theme it, etc. etc. Any ideas or tutorials on how this script works?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

别把无礼当个性 2024-08-30 20:23:19

您创建一个包含您的登录表单的 HTML 页面。

在表单中,您必须添加以下输入字段:

<form action="http://yourdomain:2095/login" method="POST">
   <input id="user" name="user" type="text" value="Write your mail here">
   <input id="pass" name="pass" type="password">
   <input type="submit" value="ENTER">
</form>

您必须使用提供的名称:(“用户”和“通行证”)

我不确定表单操作是否应该简单“http://yourdomain:2095” 不带“/login”,您可以同时尝试。

然后,您可以根据需要设计 HTML 页面的样式。

如果您有经销商帐户(我的意思是您可以访问 WHM),在 cPanel 论坛上,他们说您可以使用 WHM 菜单中的功能自定义您的网络邮件登录页面:“服务器配置 -> 调整设置”。
我从未尝试过此操作,因为它们在我的主机上被禁用,请告诉我它们在您的主机上是否有效。如果它有效,这可能是最好的方法,因为它还可以让您自定义注销页面。

You create an HTML page containing the form of your login.

In the form you must add the followig INPUT fields:

<form action="http://yourdomain:2095/login" method="POST">
   <input id="user" name="user" type="text" value="Write your mail here">
   <input id="pass" name="pass" type="password">
   <input type="submit" value="ENTER">
</form>

You must use the name provided: ('user' and 'pass')

I'm not sure if form action should be simple "http://yourdomain:2095" without the "/login", you can try both.

Then you stylize your HTML page as you like.

In case you have a reseller account (I mean you can access WHM), on cPanel forum they say you can customize your webmail login page by using a functionality in WHM menu: "Server Configuration -> Tweak Settings".
I have never tried this, because they are disabled on my hosting, plz let me know if on your hosting they work. If it works this is probably th ebest way to go, because it would let you customize also the logout page.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文