Shifu-Hacks Blog


Archive for the ‘Webmastering’ Category

Pown Alluc (dot) Org Copy

Posted by compactwater on January21 2008

Ever want to completely rip-off and copy I didn’t think so, but you can anyways. Included in this file is a copy of and the first 10 flashes on the site. To use this, you must have PHP (and file access) on your server. The file “source.res” contains source information for each flash, each line goes with each flash ID, so putting something on line 10 will show up as the source for flash 10.
Note: Though I am the creator of this specific file, I do not take any claim to its origin.

Edit: Seems the pown alluc site has changed up a bit. However, I will not be updating this, as functionality is more important than looks.

Pown Alluc dot Org copy
Download pown!


Posted in Webmastering | 4 Comments »

File Download Service (Proxy)

Posted by compactwater on December16 2007

This is not really a proxy, nor anywhere near as good. It can download one file at a time to your server from another server, so it can be accessed when the other server is unavailable (or blocked). This is meant for personal use, and should be passworded to prevent from misuse by someone who may want to harm your computer or server. The file comes with everything you will need and the downloader itself.

Place download.des in your cgi-bin (or it will not work), and the php files into a folder on your server. Be sure you have a folder named “down” (or what you may have changed it to) within that same folder, or the downloader will not work. You will also need to have php installed on your server. If you are running on Linux you will need to configure download.des to run with Wine.

In write.php change the password to whatever you like. Don’t use “.$’ in it. If write.php has troubles writing to down.ini, then you should replace \\down.ini with your drive letter (c:\down.ini). You can change where the files are downloaded to in download.php, though it will NOT make a new folder if the chosen directory does not currently exist.

When used, download.des will return a 500 error, but the program was still executed and the file downloaded.

Download FDS: Here

Posted in General Programming, Webmastering | 1 Comment »

Making a personal server

Posted by compactwater on October5 2007

Before I start, remember this: Personal Server. Meant only for you, and maybe a few friends. Thankyou.

What you’ll need:
Apache HTTP Server (Required)
PHP (Recommended)
An administrative account on Windows 2000 or later.

Download and install Apache HTTP Server, if you do not have a domain name or server name, enter your IP address, you can find out your IP address here, you will also be asked for an e-mail, enter whatever you want. After apache is installed, test it by connecting to or http://localhost/ or your IP address. If you see “It works!”, it works. If you don’t, your firewall or anti-virus may be blocking it. Be sure to set it to allow apache.

Next, download PHP. When it asks you for your server name and version, choose “Apache 2.2.x”. For the configuration file, navigate to your apache folder (in “program files”) and open the “conf” folder. Click next, and contenue installing. When it’s finished, you will need to restart your server. To do that, click on the Apache icon in your task bar, and click “Restart”.

NOTE: This is only if you have a router! Now goto your router (probably at 169.153.x.x), if you
don’t know, it should be listed on your router. Configure a “port forward” from port 80 to port 80 to your local IP, you can find it out by going to MS-DOS and typing “ipconfig”.

How to find your local IP

Port Forwarding on Linksys

Now you can accept connections from the Internet. Something you should be careful of, is anyone can access this server- don’t put any personal information on it. You can get a DNS from for free. Check my “Linky” page for tutorials on HTML and PHP.

Posted in General Programming, Webmastering | 1 Comment »

Logging Users (PHP)

Posted by compactwater on October1 2007

A simple small code to include in any page to log users on your server.
Use protection on log files! Do not let them become public! You can be sued for keeping unprotected logs… But unlikely unless you’re some big company.

$logname = “logs/users.” . date(“Ymd”) . “.log”;
$user = $_SERVER[‘REMOTE_ADDR’];

if (!$from == “”) {
$toput = “Time: ” . time() . ” IP: ” . $user . ” by: ” . $from . ”
} else {
$toput = “Time: ” . time() . ” IP: ” . $user . ”
“; }

$handle = fopen($logname, ‘a’);
if (fwrite($handle, $toput) === FALSE) {
echo “Error writing to ” . $logname;

Put that into some .PHP file, and upload it to your server (if necessary). Add this:
include ‘log_my_users.php’;
to all the pages you want to log users on. I recommend having a re-direct front page with this, or using cookie or IP identification, so you don’t log a user more than once on the front page.

Note: You will obviously need PHP on you server, and the folder “logs” in the same directory. You can change the folder name, and even move it to somewhere off of your server, but just remember to keep it safe from other users that may want to use it for the wrong reasons.

Posted in General Programming, Webmastering | 2 Comments »