The first website, client and server, I have ever built (a 2002 high school project).
Nostalgia.
A tiny bit modernized version can be found in the https://github.com/phistuck/music-store-classic/tree/small-fixes-and-utf-8 branch.
- This code is very old (2002), Internet Explorer specific, not meant to be secure. It is a wonder it even works in any way.
- It is known to be prone to SQL injections, cross site scripting and anything else you have in mind. Do not use this in production without heavily modifying it (actually, just begin from scratch).
- It is extremely ugly, in terms of visuals, code, methodology and technology. Vanilla JavaScript, though, but not much of it (and minimal CSS).
- It uses quirks mode (barfing, I know) and
alert
s. - It is mostly in Hebrew.
Windows XP Professional 32-bit with IIS 5.1.
Real Internet Explorer 5 - 6. The Internet Explorer emulation feature does not work perfectly.
-
Regional settings must be set to Israel or Hebrew or something.
The encoding is not explicitly specified and it is not UTF-8, but Windows 1255.
(Not required when using the server workarounds below)
-
For compact disc images and cover images upload functionality, download and install AspUpload 32 bit from -
https://drive.google.com/open?id=0Bxwga4EKqxwPZnYyV1RQcVlta2c
Put the files under c:\inetpub\wwwroot
and go to http://localhost/ (or whatever port you have set).
User name - admin
Password - 1234
-
Regional settings must be set to Israel or Hebrew or something.
The encoding is not explicitly specified and it is not UTF-8, but Windows 1255.
(Not required when using the server workarounds below)
You can download the sample data package which includes a database with some usernames and a small selection of compact discs, including their images and cover images from my Google Drive -
https://drive.google.com/open?id=0Bxwga4EKqxwPVkw1cFpJVlFyVms
Windows XP and IIS 5.1 are not really required to run the server and your original regional settings can remain unchanged. I tried Windows 10 and Visual Studio 2017 (using a free two-hour-virtual-lab) with its IIS Express and it works (I did not get AspUpload to work, but I did not really make an effort) by following these steps -
- Clone/download and extract the project to somewhere locally (named "the project folder" from here on).
- Launch Visual Studio 2017.
- File menu > Open > Website.
- Select the project folder.
- Click on OK.
- Debug menu > Start Without Debugging.
- File > Close Solution.
- Click on Yes to save it.
- Save the solution in the project folder.
- Open the solution again.
- Debug menu > Start Without Debugging.
- Go to the newly generated
.vs
folder in the project folder. - Go to the
config
folder. - Open
applicationhost.config
with a text editor (or Visual Studio, whatever). - Under
<system.webServer>
(the second one in the file, because the first one is commented out), remove the<asp
...</asp>
element and replace it with the following -
<rewrite>
<outboundRules>
<rule name="Add Charset" enabled="true">
<match serverVariable="RESPONSE_Content_Type" pattern="text/html" />
<action type="Rewrite" value="text/html; charset=windows-1255" />
</rule>
</outboundRules>
</rewrite>
<asp>
<asp codePage="1255" scriptErrorSentToBrowser="true" enableParentPaths="true" bufferingOn="true" errorsToNTLog="true" appAllowDebugging="true" appAllowClientDebug="true">
<cache diskTemplateCacheDirectory="%TEMP%\iisexpress\ASP Compiled Templates" />
<session allowSessionState="true" />
<limits />
</asp>
- Not required, but helpful - also under
<system.webServer>
, add under<httpProtocol>
, under<customHeaders>
-
<add name="X-UA-Compatible" value="IE=5"/>
- Go to the served application using a browser (real Internet Explorer 5 - 6).
MIT. Enjoy.