More Geekiness (Auto Signature)
Some new geekiness going on. I have a journal/blog over at SweetnLeo.com, where I talk about things relating to GaiaOnline. I wanted a way of making this available inside Gaia, so I came up with this.
It’s an image that shows the last 4 blog titles. How it works if I have a script that uses MagpieRSS to pull the feed from the blog, and then using PHP + GD I generate a simple image. When I make a blog post, it pings the update image script, meaning when I add a new entry the image will update.
It gives me a way to show what’s going on. Now to make it more pretty (as it’s just plain text right now).
Object Oriented Fun
Currently my attempt is to rewrite my progress so far in a more OO manner. What I’ve previously done is use classes and objects, but infrequently. Let’s see if I can do this better, third time around.
phpbb3 + Flyspray Part 2
In my previous post I mentioned how I wanted to bridge phpbb3 and Flyspray. Well, I’ve done that, but due to the way Flyspray works, it was basically a complete pain.
I love Flyspray, I really do, but I think it is time I moved on to a new bug tracking system. Unfortunately though I don’t know of that many (if you do, definitely please contact me through the comments!). I’ve tried Trac, but on the host I use it is an absolute nightmare to get installed. What I’d really like is a simple PHP-based system like Flyspray, but one that does get updated regularly.
The trouble I had with Flyspray is I basically had to hack it to get it working with my forum. In the end I get phpbb to do the authentication (on each page load), and if the Flyspray user doesn’t exist it manually creates it.
It definitely isn’t the ideal solution, the DokuWiki bridge that someone else (awesome person) wrote works perfectly, but that comes down to DokuWiki being easier to modify with plugins.
So yes, if you are interested in bridging Flyspray and phpBB3, it is possible. However it basically is bypassing all of Flyspray’s authentication and saying “This is the ID of the logged in user”. You also have to rename their Database and User classes, since they clash with phpBB.
All in all, if you’re looking for a bug tracking system that can easily bridge with a forum, look for something else.
phpbb3 + Flyspray
I am currently working on a mini-project, and part of it requires a forum as well as a wiki and a bug tracking system. I have already set up phpBB3 with Dokuwiki, and they’re bridged so the accounts are linked. That’s absolutely great!
What I’m currently trying to work on is installing Flyspray, and then writing my own bridge between Flyspray and phpBB. The way I theorize it, I’ll create a hidden group in phpBB called “flyspray” or something, and then when you access Flyspray it will check to see if you’re a member of that group using phpBB’s functions.
We’ll have to wait and see if it works, but if it does I’ll see about making the bridge public.
Wish me luck!
Trust Nobody
One important lesson when developing applications (I’m focusing on websites here, but this applies to all types of applications) is to ditch user trust.
In a nut shell, do not trust any input you receive from a user. Seriously, do not assume it is clean and good, treat all user input (whether it be cookies, text from a text box or something else) as potentially dangerous. Check it, filter it, escape it.
Never let input from a user go straight into your database or on to a page without it being filtered. If you let it straight into the database you leave yourself open to SQL Injections and other attacks.
Keep that in mind when you are developing an application, any and all user input needs to be checked out, torn to pieces, ripped apart, put back together before being considered safe.
Posted by Cody in
