简体   繁体   English

php smarty有没有一种方法可以登录谁登录该站点?

[英]php smarty is there a way to log who logs in to the site?

I guess if it is possible, that it will be some crazy convoluted way, but my client has asked me to try to create a log file of people who log in to the site. 我想如果可能的话,这将是一种令人费解的复杂方法,但是我的客户要求我尝试创建一个登录该站点的人的日志文件。

Is there a way to do this? 有没有办法做到这一点? I don't know php/smarty so well, I'm more of a layout person. 我不太了解php / smarty,我更喜欢布局。

Thanks. 谢谢。

Smarty is just a template engine. Smarty只是一个模板引擎。 To find out who is logging in, you'd need to look at the CMS/framework/whatever is processing that login. 要找出谁在登录,您需要查看CMS /框架/处理该登录的内容。

Do you know what is powering the site? 您知道为网站供电的原因吗? eg WordPress, Drupal, .. etc? 例如WordPress,Drupal等。

oh.. PHP Smarty is a PHP templating engine. 哦.. PHP Smarty是一个PHP模板引擎。 It doesn't have anything to do with visitor tracking. 它与访客跟踪没有任何关系。

If you want to track visits to your website the best choice is Google Analytics . 如果您想跟踪对您网站的访问,最好的选择是Google Analytics(分析) http://www.google.com/analytics/ http://www.google.com/analytics/

What system do you have managing users and logins? 您具有什么系统来管理用户和登录名? That'll be what you use to log who's accessing your site. 这就是您用来记录谁在访问您的网站的信息。 Smarty just takes care of the templating, nothing else. 聪明的人只关心模板,没有别的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM