Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PHP tag in templates
#10
Paul, can you join our gitter group?

https://gitter.im/corebos/discuss

that will probably be more agile for you

In any case, this separation of concern that Smarty3 has imposed on the developers is the correct way to go. It is what a templating system is for, it makes no sense to invest in a templating system just to go out and start using php as a templating system.

In any case, the correct way to do what you want is not adding that to the Login template, it is adding it to the authentication process. Right now coreBOS has IP bloocking for admin users by defining the global variable Application_AdminLoginIPs. I didn't answer your email because I wanted to enhance that validation with your IP detection code (which is more complete than ours) and also add normal user IP blocking. That way the application will simply return the correct login error message and you won't have to modify the template at all unless you want to change the layout

A little patience, we will get to it
Joe
TSolucio
Reply


Messages In This Thread
PHP tag in templates - polanskiman - 01-31-2017, 06:54 AM
RE: PHP tag in templates - omarllorens - 01-31-2017, 07:16 AM
RE: PHP tag in templates - polanskiman - 01-31-2017, 07:34 AM
RE: PHP tag in templates - omarllorens - 01-31-2017, 07:54 AM
RE: PHP tag in templates - polanskiman - 01-31-2017, 08:05 AM
RE: PHP tag in templates - omarllorens - 01-31-2017, 08:17 AM
RE: PHP tag in templates - polanskiman - 01-31-2017, 08:22 AM
RE: PHP tag in templates - omarllorens - 01-31-2017, 08:27 AM
RE: PHP tag in templates - polanskiman - 01-31-2017, 08:55 AM
RE: PHP tag in templates - joebordes - 01-31-2017, 11:02 AM
RE: PHP tag in templates - polanskiman - 02-01-2017, 02:51 AM

Forum Jump:


Users browsing this thread: 4 Guest(s)