1
kaotik
Part 2 of my tutorials
  • 2006/11/17 15:38

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


I've written part 2 of my tutorial on how to build a XOOPS module.
Part 2 teaches how to add smarty templates in XOOPS modules and how to sanitize info before accessing the DB.
You can find it here:
www.kaotik.biz/tutorial
www.kaotik.biz

2
Mithrandir
Re: Part 2 of my tutorials

Might want to add something about sanitizing the output, too.

SQL injections are not the only danger for a module.
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."

Cusix Software

3
plusangel
Re: Part 2 of my tutorials
  • 2006/11/17 16:32

  • plusangel

  • Just popping in

  • Posts: 90

  • Since: 2005/2/2 1


Great job Kaotik...

Thank you for your time.
It's nice to find a point to start...like these tutorials.
The official greek support site for xoops

4
jensclas
Re: Part 2 of my tutorials

Don't suppose you would like to paste a copy to the docs site? If you login at doc site and post a 'where can I put this'in the forums you will get directions to a place in the workspace.

5
kaotik
Re: Part 2 of my tutorials
  • 2006/11/18 10:56

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


Mithrandir: Should all the output be sanitized also? I'm not sure I understand how the output could be vulnerable.
Jenclass: I've posted a message on docs.
www.kaotik.biz

6
stefan88
Re: Part 2 of my tutorials
  • 2006/11/18 12:32

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


Quote:
Should all the output be sanitized also?


Try to enter this:

<SCRIPT>alert('XSS')</SCRIPT>


..

7
Peekay
Re: Part 2 of my tutorials
  • 2006/12/11 18:23

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


Many thx kaotik. This is a great intro to getting PHP and Smarty templates working together in Xoops. After three days of experimenting I found your tutorial and finally managed to get something to appear on screen!

I'm sure many people will be familiar with the joy of that moment!
A thread is for life. Not just for Christmas.

Login

Who's Online

207 user(s) are online (138 user(s) are browsing Support Forums)


Members: 0


Guests: 207


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits