Skip to content

Commit b582196

Browse files
committed
df2 2010 website
1 parent c508a14 commit b582196

File tree

3,440 files changed

+101561
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,440 files changed

+101561
-0
lines changed

defacto2-2010/.github/LICENSE.md

Lines changed: 373 additions & 0 deletions
Large diffs are not rendered by default.

defacto2-2010/.github/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Defacto2 legacy website - 2010, March 10.
2+
3+
![GitHub](https://img.shields.io/github/license/Defacto2/defacto2-v4?style=flat-square)
4+
![Maintenance](https://img.shields.io/maintenance/no/2010?style=flat-square)
5+
 
6+
![GitHub repo size](https://img.shields.io/github/repo-size/Defacto2/defacto2-v4?style=flat-square)
7+
8+
The redundant source code of the Defacto2 web application referred to as _Version 4_. Created in 2003 but various parts of the code were amended and modified multiple times over the years until retirement in mid-2010. As such it is a bit of a hack job, messy and poorly documented.
9+
10+
The code itself requires **Adobe ColdFusion 8** * or higher, **Microsoft IIS 6** and the SQL database needs
11+
[MySQL 4.1 or 5](http://downloads.mysql.com/archives/community/).
12+
13+
Adobe ColdFusion 8 is no longer offered for download but it may work with the open sourced [Lucee](http://lucee.org/).
14+
15+
The *web application* expects to be hosted in the local directory of `c:/websites/urk7tb/`
16+
17+
The MySQL data source is expected to be named `defacto2net`
18+
19+
Most of the *web application's* settings can be found in `Application.cfc` or the sub-directory `/CFC`
20+
21+
The recommended IDE to view this code is [Eclipse](https://eclipse.org/) combined with [CFEclipse](http://cfeclipse.org/) or [Sublime Text](https://www.sublimetext.com/) with the [ColdFusion Sublime Text Package](https://github.com/SublimeText/ColdFusion).
22+
23+
The required MySQL database tables are on [GitHub](https://github.com/Defacto2/defacto2-version4-mysql-databases).

defacto2-2010/Application.cfc

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
<cfcomponent output="false">
2+
<!--- site settings --->
3+
<cfset this.name="Defacto2">
4+
<cfset this.clientManagement=true>
5+
<cfset this.clientStorage="registry">
6+
<cfset this.loginStorage="session">
7+
<cfset this.sessionManagement=true>
8+
<cfset this.setClientCookies=true>
9+
<cfset this.setDomainCookies=false>
10+
<cfset this.scriptProtect=false>
11+
<cfset this.siteOffline=false>
12+
<cfset this.siteCFerrors=true>
13+
<cfset this.siteTimeOutsNull=false>
14+
<cfset this.siteDBType="mysql5">
15+
<cfset this.siteDebug=false>
16+
<!--- site timeouts --->
17+
<cfset this.applicationTimeout=createTimeSpan(14,0,0,0)>
18+
<cfset this.sessionTimeout=createTimeSpan(1,0,0,0)>
19+
<!--- site error templates --->
20+
<cfif this.siteCFerrors IS FALSE>
21+
<cferror type="validation" template="site-errorvalidation.cfm">
22+
<cferror type="exception" template="site-errorexception.cfm">
23+
<cferror type="request" template="site-errorrequest.cfm">
24+
</cfif>
25+
26+
<cffunction name="onApplicationStart" returnType="boolean" output="false">
27+
<cfif this.siteOffline IS TRUE AND LEFT(CGI.REMOTE_HOST,7) NEQ "192.168">
28+
<div style="text-align:center; padding:50px; color:#FF0000; font-family:Arial, Helvetica, sans-serif; font-size:16px;">
29+
Sorry the site is currently down for upgrades, please come back in a few hours
30+
</div>
31+
<cfabort>
32+
</cfif>
33+
<!--- database name sources --->
34+
<cfset application.siteDBType=this.siteDBType>
35+
<cfif this.siteDBType eq "mysql5">
36+
<cfset application.dataSource="defacto2net">
37+
<cfset application.portalSource="defacto2net">
38+
<cfset application.docSource="defacto2net">
39+
<cfset application.crackSource="defacto2net">
40+
<cfset application.magSource="defacto2net">
41+
<cfset application.groupSource="defacto2net">
42+
<cfset application.newsSource="defacto2net">
43+
<cfset application.newsComments="defacto2net">
44+
<cfset application.poll="defacto2net">
45+
</cfif>
46+
47+
<!--- cache timeouts --->
48+
<cfif this.siteTimeOutsNull IS TRUE>
49+
<cfset application.cracktroTimeOut=createTimeSpan(0,0,0,0)>
50+
<cfset application.docTimeOut=createTimeSpan(0,0,0,0)>
51+
<cfset application.groupsTimeOut=createTimeSpan(0,0,0,0)>
52+
<cfset application.magazinesTimeOut=createTimeSpan(0,0,0,0)>
53+
<cfset application.newsTimeOut=createTimeSpan(0,0,0,0)>
54+
<cfset application.pollsTimeOut=createTimeSpan(0,0,0,0)>
55+
<cfset application.portalTimeOut=createTimeSpan(0,0,0,0)>
56+
<cfset application.standardTimeOut=createTimeSpan(0,0,0,0)>
57+
<cfset application.dailyTimeOut=createTimeSpan(0,0,0,0)>
58+
<cfelse>
59+
<cfset application.cracktroTimeOut=createTimeSpan(0,0,30,0)>
60+
<cfset application.docTimeOut=createTimeSpan(0,0,30,0)>
61+
<cfset application.groupsTimeOut=createTimeSpan(0,0,30,0)>
62+
<cfset application.magazinesTimeOut=createTimeSpan(0,0,30,0)>
63+
<cfset application.newsTimeOut=createTimeSpan(0,0,0,0)>
64+
<cfset application.pollsTimeOut=createTimeSpan(0,0,0,0)>
65+
<cfset application.portalTimeOut=createTimeSpan(0,0,0,0)>
66+
<cfset application.standardTimeOut=createTimeSpan(0,0,30,0)>
67+
<cfset application.dailyTimeOut=createTimeSpan(0,0,30,0)>
68+
</cfif>
69+
<!--- days for a file to be considered new --->
70+
<cfset application.daysNew=31>
71+
<!--- encryption keys --->
72+
<cfset application.urlEncryptionKey="REMOVED">
73+
<!--- download paths and mirros --->
74+
<cfset application.SceneORG="http://www.scene.org/file.php?file=/demos/groups/defacto2/artpacks/">
75+
<cfset application.SceneORGRoot="http://www.scene.org/dir.php?dir=/demos/groups/defacto2/">
76+
<cfset application.SceneORGEndVar="#urlEncodedFormat('&amp;fileinfo')#">
77+
<cfset application.MagazinesPNG="includes/magazines/png.versions/">
78+
<cfset application.nfoRootDir="c:\websites\urk7tb\NFOOriginals">
79+
<cfset application.nfoRootWebPath="/NFOOriginals/">
80+
<!--- daily user count --->
81+
<!--- <cfif not IsDefined("application.usersonline") or IsArray(application.usersonline) is false>
82+
<cflock scope="application" type="exclusive" timeout="5">
83+
<cfset application.usersonline=ArrayNew(1)>
84+
<cfset application.usersonline[1]=StructNew()>
85+
<cfset application.usersonline[1].date=DateFormat(Now(),'ddmmmyyyy')>
86+
<cfset application.usersonline[1].people=0>
87+
<cfset application.usersonline[1].robots=0>
88+
</cflock>
89+
</cfif> --->
90+
<cfreturn true>
91+
</cffunction>
92+
93+
<cffunction name="onApplicationEnd" returnType="void" output="false">
94+
<cfargument name="applicationScope" required="true">
95+
</cffunction>
96+
97+
<cffunction name="onRequestStart" returnType="boolean" output="false">
98+
<cfargument name="thePage" type="string" required="true">
99+
<cfreturn true>
100+
</cffunction>
101+
102+
<cffunction name="onRequestEnd" returnType="void" output="false">
103+
<cfargument name="thePage" type="string" required="true">
104+
</cffunction>
105+
106+
<cffunction name="onSessionStart" returnType="void" output="false">
107+
<!--- <cfset var tmp="application.Date#DateFormat(Now(),'ddmmmyyyy')#">
108+
<cfset var cal="">
109+
<cfset var arrlen=ArrayLen(application.usersonline)> --->
110+
<!--- create unique user id and time on --->
111+
<cfset Session.started=now()>
112+
<cfset Session.id=CreateUUID()>
113+
<!--- add user's visit to daily total --->
114+
<!--- <cfloop from="1" to="#arrlen#" index="i">
115+
<cfif application.usersonline[i].date eq DateFormat(Now(),'ddmmmyyyy')>
116+
<cfset tmp = i><cfbreak>
117+
</cfif>
118+
</cfloop>
119+
<cfif tmp neq "">
120+
<cfif ReFindNoCase('(robot|crawl|bot)', CGI.HTTP_USER_AGENT) gt 0>
121+
<cfset application.usersonline[tmp].robots=IncrementValue(application.usersonline[tmp].robots)>
122+
<cfelse>
123+
<cfset application.usersonline[tmp].people=IncrementValue(application.usersonline[tmp].people)>
124+
</cfif>
125+
<cfelse>
126+
<cfset arrlen=arrlen+1>
127+
<cfset application.usersonline[arrlen].date=DateFormat(Now(),'ddmmmyyyy')>
128+
<cfif ReFindNoCase('(robot|crawl|bot)', CGI.HTTP_USER_AGENT) gt 0>
129+
<cfset application.usersonline[arrlen].people=0>
130+
<cfset application.usersonline[arrlen].robots=1>
131+
<cfelse>
132+
<cfset application.usersonline[arrlen].people=1>
133+
<cfset application.usersonline[arrlen].robots=0>
134+
</cfif>
135+
</cfif> --->
136+
</cffunction>
137+
138+
<cffunction name="onSessionEnd" returnType="void" output="false">
139+
<cfargument name="sessionScope" type="struct" required="true">
140+
<cfargument name="appScope" type="struct" required="false">
141+
</cffunction>
142+
</cfcomponent>

defacto2-2010/_default.cfm

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<!---
2+
File: default.cfm
3+
Version: 1
4+
Author: Ben Garrett
5+
Date: 4th July 2006
6+
7+
Groups ..
8+
--->
9+
10+
<cfoutput>
11+
<!--- Page timer initialisation --->
12+
<cfinvoke component="cfcs.utilities" method="pageTimer" mode="start" returnvariable="pageTimerST">
13+
<!--- HTML code --->
14+
<cfinvoke component="cfcs.meta" method="docType">
15+
<head>
16+
<!--- Document title --->
17+
<title>CHANGE</title>
18+
<cfinvoke component="cfcs.meta" method="head">
19+
</head>
20+
<body id="DF2Body">
21+
<cfinvoke component="cfcs.logos" method="siteLogo">
22+
<table cellpadding="0" cellspacing="0" class="box01">
23+
<tr><td>
24+
<table cellpadding="0" cellspacing="0" class="box02">
25+
<tr><td><cfinvoke component="cfcs.logos" method="sceneArchive">
26+
27+
28+
29+
</td></tr></table>
30+
</td></tr>
31+
</table>
32+
<cfinvoke component="cfcs.utilities" method="pageTimer" mode="#pageTimerST#" returnvariable="pageTimerDisplay">
33+
<cfinvoke component="cfcs.meta" method="foot" pageTimer="#pageTimerDisplay#">
34+
</body>
35+
</html>
36+
</cfoutput>

defacto2-2010/apollo-x/2dart.htm

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<html>
2+
3+
<head>
4+
<title>[apollo-X DemoResources] - [2D Art Tutorial]</title>
5+
</head>
6+
7+
<body BGCOLOR="#0067A8" link="#FF00FF">
8+
<font COLOR="Yellow" size="3">
9+
10+
<p align="center"></font><font face="Haettenschweiler" size="3" color="#FFAA0B">This is a
11+
small tutorial on how to draw some cool stuff,using just your hand, <br>
12+
the mouse,and a drawing program.It's called pixel drawing,that is because you <br>
13+
draw the picture pixel by pixel,and use as few effects and tools as possible, <br>
14+
use your imagination to make things look cool. <br>
15+
<br>
16+
The tutorial is done by me (biXen),and there will be new tutorials added to this <br>
17+
page frequently,so please check back to look for more tutorials.I will also get <br>
18+
other artists to add some tricks here,so hang in there. <br>
19+
<br>
20+
Remember...Your best tool is your imagination...and DON'T give up, <br>
21+
hard practice gives results,always...I know it !!! </font><font face="Haettenschweiler" size="3" color="#FFFFFF"><br>
22+
<br>
23+
<br>
24+
<u>3D Text W/Light Reflection (by biXen)</u><br>
25+
<br>
26+
</font><font face="Haettenschweiler" size="3" color="#FFAA0B">First draw a letter using
27+
the line tool,with the width you want.Use antialias to <br>
28+
get the lines smooth looking.Then fill the inner hollowzone <br>
29+
with the same color as the lines. <br>
30+
<img SRC="lws01.gif" ALT="2D Text" ALIGN="center" BORDER="0" VSPACE="0" HSPACE="0" WIDTH="75" HEIGHT="75"> <br>
31+
Then it's time to add a little 3D effect.Draw a thin line on the side you want <br>
32+
to be visible,for the 3D effect,f.x. the right and under sides.Then clean draw it <br>
33+
till it looks nice.Maybe put some blur on places that are to visible. <br>
34+
<img SRC="lws02.gif" ALT="3D Text" ALIGN="CENTER" BORDER="0" VSPACE="0" HSPACE="0" WIDTH="75" HEIGHT="75"> <br>
35+
Now lets add a little light effect onto the letter.Use your brush-like tool and <br>
36+
set it to fade to the background color (which you set to white).Then set it <br>
37+
to about 5 steps,and draw from the top corner and down-right,or wherever you <br>
38+
want the effect to be,often it looks better with two effects,it gives <br>
39+
the letter a plastic look which is quite oldskoolish :) <br>
40+
<img SRC="lws03.gif" ALT="3D Text w/light effect" ALIGN="CENTER" BORDER="0" VSPACE="0" HSPACE="0" WIDTH="75" HEIGHT="75"> </font><font face="Haettenschweiler" size="3" color="#FFFFFF"><br>
41+
<br>
42+
<u>Grey Ball W/Coloured Fire Effect (by biXen)</u><br>
43+
<br>
44+
</font><font face="Haettenschweiler" size="3" color="#FFAA0B">First,make a grey ball,maybe
45+
with the brush tool,to make it seem more round.<br>
46+
Make it smooth in the edges,so it doesnt look like just a circle. <br>
47+
<img SRC="gbf01.gif" ALT="Grey Ball" ALIGN="CENTER" BORDER="0" VSPACE="0" HSPACE="0" WIDTH="75" HEIGHT="75"> <br>
48+
Then add some reflections to the ball with your brush tool.Use the same method <br>
49+
as with the text,fade 5 steps to white,and draw some lines,so that it looks <br>
50+
more round and like a ball,iron ball that is. <br>
51+
<img SRC="gbf02.gif" ALT="Grey Ball W/Reflection" ALIGN="CENTER" BORDER="0" VSPACE="0" HSPACE="0" WIDTH="75" HEIGHT="75"> <br>
52+
Then it's time to make the coloured fire effect.Start with a strong color,and <br>
53+
use the fade (30-50) steps to background (black) or transparent.Then draw the <br>
54+
lines from the balls different parts and to the right or left or up or down, <br>
55+
wherever you want the ball to look like it's going.Easy :) </font><font face="Haettenschweiler" size="3" color="#FFFFFF"><br>
56+
</font><font COLOR="Yellow" size="3"><b><img SRC="gbf03.gif" ALT="Grey Ball W/Reflection &amp; Coloured Fire Effect" ALIGN="CENTER" BORDER="0" VSPACE="0" HSPACE="0" WIDTH="75" HEIGHT="75"> </p>
57+
</b></font>
58+
</body>
59+
</html>

defacto2-2010/apollo-x/3dart.htm

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<html>
2+
3+
<head>
4+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
5+
<title>[apollo-X Demo Resources] - [3D Art]</title>
6+
</head>
7+
8+
<body bgcolor="#0067A8" link="#FF00FF">
9+
10+
<p align="center"><font face="Haettenschweiler" size="3" color="#FFAA0B">This is a
11+
tutorial for all you people that wants to learn<br>
12+
more things to do with your 3D program. These tutorials<br>
13+
are made specifically for 3D Studio MAX 2+ but the <br>
14+
techniques are pretty much the same for other 3D<br>
15+
programs out there. Before you start on these you should<br>
16+
be familiar with the controls and effects of the buttons<br>
17+
in 3D Studio MAX. I have zipped all the files, because you <br>
18+
probably want to download them and try for yourself<br>
19+
offline. So you don't have to use money while working to<br>
20+
be good at 3D. Remember, as for other art, that your<br>
21+
imagination is all that stops you. Try to use these <br>
22+
techniques to make other cool things, and vary your<br>
23+
stuff. Practice makes MASTER !!!!</font></p>
24+
25+
<p align="center"><font face="Haettenschweiler" size="3" color="#FFFFFF">- Tutorials For
26+
3D Studio MAX -</font></p>
27+
28+
<p align="center"><font face="Haettenschweiler" size="3" color="#0000FF"><a
29+
href="asteroid.zip">Asteroid</a></font><font face="Haettenschweiler" size="3"
30+
color="#FFAA0B"> - How to make an asteroid in a starfield.<br>
31+
<a href="bombfuse.zip">Bombfuse</a> - A fuse on a bomb that burns down and explodes.<br>
32+
<a href="bookturn.zip">Bookturn</a> - A book with turning pages.<br>
33+
<a href="carroll.zip">Carroll</a> - A car, which you can see have moving tires.<br>
34+
<a href="carvtext.zip">Carvtext</a> - Text getting carved into fx. metalplate<br>
35+
<a href="cigsmoke.zip">Cigsmoke</a> - Smoking cigarette.<br>
36+
<a href="crater.zip">Crater</a> - A crater in the ground.<br>
37+
<a href="filmroll.zip">Filmroll</a> - A roll of film where the film rolls off.<br>
38+
<a href="hourgls.zip">Hourgls</a> - An hourglass with running sand.<br>
39+
<a href="linechrt.zip">Linechrt</a> - A chart with moving lines.<br>
40+
<a href="match.zip">Match</a> - A burning match.<br>
41+
<a href="matchang.zip">Matchang</a> - Don't remember what it does :)<br>
42+
<a href="metaray.zip">Metaray</a> - Create an arm, complete with muscles.<br>
43+
<a href="oilbrl.zip">Oilbrl</a> - A very detailed oil barrel.<br>
44+
<a href="rotgear.zip">Rotgear</a> - Rotating gears.<br>
45+
<a href="simpani.zip">Simpani</a> - Simple animation.<br>
46+
<a href="skidfaq.zip">Skidfaq</a> - How to make a car that &quot;burns rubber&quot;.<br>
47+
<a href="ticlock.zip">Ticlock</a> - A ticking clock, that has moving parts.<br>
48+
<a href="vollight.zip">Vollight</a> - Volume lighting explained and showed.<br>
49+
<a href="wheels.zip">Wheels</a> - Moving wheels on a car.</font></p>
50+
</body>
51+
</html>

defacto2-2010/apollo-x/apxlogo.GIF

2.1 KB
Loading

defacto2-2010/apollo-x/apxlogo8.gif

2.11 KB
Loading

defacto2-2010/apollo-x/artscen.gif

2.23 KB
Loading

0 commit comments

Comments
 (0)