posts in: programs
UNG (UNG’s Not Gallery) is a PHP script for control freaks, tweakers, and other power users.
It browses subdirectories (uploaded manually via FTP/SCP/etc) of a specified location and creates a hierarchy of categories and pictures. It automatically creates thumbnails for images that don’t have them already and has an optional comment system so people can discuss posted pictures.
I originally made this just for my own use, but I was told that other people may be interested in utilizing something like this, so I made the source available and started accepting patches from others. Since then I’ve moved on to a gallery more integrated with my WordPress blog, but that was only for the integration and not because of any fault I had with UNG.
The code is pretty messy- I wrote this in one go back when I was still new to PHP and haven’t really gone over it to any great (well, any) extent since then. Add to that the modifications submitted by others, and you’re left with a jumble of code that works by virtue of sheer stubbornness. Needless to say, The code is probably very redundant with tons of extraneous things. If it isn’t, then forget I said that :)
To use it, just save the .txt file as a .php file on your webserver and change some configuration values. Instructions and Changelog are included near the top of the file.
Updated February 26, 2009:
- Removed $linkdir, which no longer seemed to serve a purpose.
- Fixed a bug with cachedirs.
- $comments_op and $comment_info are respected now.
Originally written back in 2002, this was designed as the backend for three separate webcomics run by friends (‘Megadome All-Stars’, ‘Into the Black’, and ‘The Misadventures of Magus and Mog’). However, as is often the case with such things, all three of those webcomics eventually ceased to be.
After about a year, I decided it was time to clean up the code a (little) bit, fix some bugs, and make it available to the Internet at large. It’s still rough around the edges, but I think it does a pretty nice job of administering a webcomic without needing a database. Not really very configurable at all, unless you know PHP- but some people may find it useful, nonetheless.
I believe that there are now more robust alternatives to this available on Freshmeat, but I am not familiar with any of them. You should probably shop around a bit before settling on this program, but it is possible that it will still suit your needs.
If you use (or will consider using) WordPress on your site, ComicPress will probably suit your needs better.
DEMO :: (login with user: user{1|2|3} and passwd: user{1|2|3} to play with the admin page)
Updated December 20, 2008:
- Changed include paths to be relative so that they work without modifying the PHP config.
- Replaced all linked index files with empty ones to still accoplish keeping people from browsing the directory structure while still working with relative include paths.
- Updated README
This is a simple little script I made to convert vCards into Mutt alias files. I started making it in Perl, but the CPAN modules I needed didn’t work as advertised. After a bit of searching, I ended up doing it in PHP, using a PEAR script.
Anyway, I don’t know how useful this will be to anyone else, but since it is in PHP I figured I’d at the very least make it available to everyone.
I’m not really doing anything with this program anymore since I have started using a different address book program and now have no real use for vcards.
DEMO :: You probably just want to use it, right?
Will export all of your PSG posts, tags, and comments into the Movable Type Import / Export format. This will allow you to import this data into other blogging software, such as Moveable Type or Wordpress.
To use, you will need to configure it slightly – either copy the configuration array (which defines the location of your PSG files) from PSG’s index.php, or include a file which sets that information (for me, that was blogadmin.php). You will also need to change the ‘AUTHOR’ field in the dump_post function to whatever you want these posts to be attributed to (assuming they are all by the same person, of course).
Known issues:
- For some reason, when I imported the file generated here into Wordpress all of my comments had quotes and doublequotes escaped after import, despite them not appearing that way in the dump file. I fixed this by manually replacing those strings in the comments table in the Wordpress database.
- Permalinks inside of posts to other posts will not work, natch.
An alternate way to display archives in PSG- just include it along with psg.php, add a few lines of code, and you can browse archives by month (similar to most other blogging software).
I am now an official PSG developer, so this, along with other changes I’ve made, have been incorporated into the main codebase. It would be wise to simply install a recent version, instead of applying the module here as-is.
This is only provided here for historical purposes.


