Home  >  Article  >  Backend Development  >  Login 的有关问题

Login 的有关问题

WBOY
WBOYOriginal
2016-06-13 13:33:491046browse

Login 的问题
各位好,刚接触PHP,下了一个开放源码的应用程序学习,我看到FORM ACTION指向="{$site_admin}managers/login,可实际上根本就没有这个folder,为什么程序还能完成登陆验证呢,望指教
 


 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
用户名:
  {if $errors.empty_username}请输入用户名
  {elseif $errors.empty_member}没有这个用户
  {elseif $errors.member_locked}抱歉, 账户被锁
  {else}输入管理员账户 (注: 测试账户用户名/密码均为 admin)
  {/if}
密码:
  {if $errors.empty_password}密码不能为空
  {elseif $errors.wrong_password}密码错误
  {else}输入登录密码
  {/if}
验证码:
  {if $errors.empty_number}必须输入验证码:
  {elseif $errors.wrong_number}验证码错误, 请重新输入:
  {else}请输入此右边四位数字:
  {/if}
   Login 的有关问题
 

   
 

 
 
 

 

  {/if}

------解决方案--------------------
很可能是由
manager.….php 里面的login方法完成验证登陆的


真实情况要查路由分发机制
------解决方案--------------------
这种情况是运用了服务器端的url重写。
通常是这样:MVC模式下,重写到某个入口文件如 根目录/index.php 。然后调用控制器类managers的login方法
------解决方案--------------------
做了伪静态了。

apache .htaccess
------解决方案--------------------
初学者是不能看这种代码的

因为你还没有弄明白网站是怎样工作的

------解决方案--------------------
Smarty。。。无聊。
------解决方案--------------------
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn