Archive forWebsite Scripting

Directory Listing version 3.0 soon to come!

Well, it seems I went through the entire month of July without any posts. That’s very rude of me. I promise to start making some updates. First on the list, the directory listing. Shawn said he really likes the design and idea, so I will continue with the system and then work on a way to integrate it into the blog. You know, Shawn has a lot of music that he records. Maybe I could program a special module for him to stream his music through a flash player. It would generate a list of music files from a directory and create a list in the flash player. I think this would be a scrolling list because he has a lot of music. That way we can keep the dimensions of the flash to a reasonable size. Then I’ll work on getting this integrated into the WordPress. This is going to be so much fun!

Looks like I’m going to have a lot more time on my hands! I’ve given up on my charity work for the CS:S server. I’ve basically just gotten tired of most of the back-end problems being generated. It was becoming too much of a hassle to get anything done, and the person that has been paying for the servers has been gone for so long and hasn’t really been returning my PMs. I just get the picture I am not really wanted (and I think I know why, but I don’t want to get into that…). The rules were also becoming lax and I was really afraid to punish anyone for breaking them. You know, one great thing about the server was their no camping rule. When I first came there, you were kicked for camping behind a box instead of moving for the objective. Now, it seems anyone can camp anywhere. You run into a room and have to scan 40 different places to look for campers. You look in the wrong place first, and you are dead. Every time. It’s amazing how a server goes from no camping to camping up a storm. You can’t walk five feet without having to check 40 camping spots. It adds a challenge to the game, but it makes it very hard on the team that does not have the advantage in the game. With only 3 minutes per map, and having to move very slowly, it makes it about impossible to complete the objective. Then the people that also join the side that has the advantage. That’s another thing that is destroying CS:S. I get into the game and there are 7 people on one side and 2 people and 5 bots on the other. There is no reason for this. Or there are 11 people on one side during the first round and then only 3 people on other side. Now, the auto balance function works to a point, but that’s about it. Why are people so cheap in this game? There is so much more that makes me mad about CS:S now, but I really don’t want to get into it. I guess I just wanted to get this off my chest and seeing as how this is my blog, I thought this was the perfect place!

My VNC, SSH server is up and running! I am using two open source programs to create a tunnel for my SSH and VNC connections. In case you are new to the whole VNC and SSH crowd, I’ll fill you in on the basics. SSH (Secure Shell) is a program that allows a user to login your server to gain a remote console. You can even add a level of encryption to prevent prying eyes. For most people, SSH is not a practical solution. The numbers of people being able to run scripts through the console is growing less and less. A VNC connection is what these people will use. You can login to a server and interact with the server’s desktop programs in a nice easy to use GUI. I’ll explain these in greater detail (as well as how to set them up) in a later entry!

Later cats!


Directory Listing

I have been busy working on my new little project. I was tired of having a default FTP look for my folders where I store my downloads so I decided to write a script that will return the contents of a directory. It basically does the same thing, but I will be able to control certain aspects of the files. One, I will be able to search sub directories with the same script. Two, I can exclude certain files or directories from the listing. This will help with the overall layout of the script. Third, I can integrate this into my blog so the blog acts as the center for my whole website. I will be adding a main homepage later that will act as a welcome panel. It will show my latest blog entry, my latest flash entry (when I get the flash module done), and some other useful information. Then it will link to my blog. The blog will have individual pages to my modules, like downloads, media, flash, whatever. This integration might take a month or so, but I am very excited about it.

Anyway, the directory listing is in version 1.0 stage. It is a basic script that only returns the listing from the root directory. I will be expanding this to include sub directories, file/folder exclusions, and much more. Here is the current release note.

Directory Listing Version 1.0
What’s new
Since version 0.2
-Changed the file structure.
-Added new images
-Fixed the formatting errors in IE7

since version 0.1
-Fixed the error where the directories would be listed as files.
-Added new logo, folder, and file images.
-Added support for changing the image directory.
-Added support for file extension images. See function “get_file_extension”

What’s coming in the next versions
-Subfolder browsing
-Easier CSS modifications
-File exclusions
-Folder exclusions

For a working demo of it, visit

Click here to download this script.