Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Programming
You last visited: Today at 11:50

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[D]Webserver + Source

Discussion on [D]Webserver + Source within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
[D]Webserver + Source

I figured this might be interesting to some.

I know it's not the best, nor the worst.

read me.txt
Code:
This project was made by BaussHacker:
http://www.hackforums.net/member.php?action=profile&uid=522041

There has been no 3rd party codes or anything involved with this project.
The whole webserver has been coded from scratch!

This is not a serious project and was just a fun project.

Thanks to Eight for support:
http://www.hackforums.net/member.php?action=profile&uid=537025

I want to say this is not intended for a real webserver as it was just a fun project and I've learned a lot from it!

##
##
##
##
##
##
##
##
##
The folder "pages" is used to manage code-behind for pages.
Please use the current pages as reference how they work.

Each page should have its own file and module to remain a proper structure.
To make the code-behind work, you'll need to add it in master.d
It has to be added here:
	switch (requestpage)
	{
		// ADD PAGE HERE

The website is located in the www folder found in the output folder.
A webpage is associated with 2 files. PAGE_NAME.d.body and PAGE_NAME.d.head where the body file is for the html body and the head file is for the html head.

Each pages is associated with the masterpage as well. To edit the html of the masterpage edit master.d.master in the www folder.
@body represents the location of the body data parsed from each file.
@head represents the location of the head data parsed from each file.

You can also redirect users using code-behind. There is an example using querystring in redirect.d
Basically you call session.Redirect() which takes a string parameter as the url. It could be a another page or a whole new site ex. http://google.com/

To use url-rewriting ex. http://127.0.0.1/index/ just remove the d extension from both the body and head file. And when referring in master.d also remove the d extension (If you want code-behind)

The webserver supports the following feautres:
Simple postdata
Querystring
Url-redirecting
Url-rewriting (Does not support forward-slash at the end atm. easy fix though, just cba atm.)
Images
Masterpage
Code-behind (Compiled...)
Screenshot:


Download: (Source)


Github:


A little note: Ignore the EndsWith method in tools.d, because it was before I discovered the "endsWith" from the standard library. You can delete the method as it's not in use ant places.
Super Aids is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Vermiete webserver
02/23/2013 - Metin2 Private Server - 6 Replies
vermiete diesen Webspace Server : Webspace: 20.000 MB Traffic inklusive: Unbegrenzt Anzahl der Inklusivdomains: 1x biz, com, de, net oder org und 2x aus de zusätzliche FTP Accounts: 700 Subdomains: 3.000 MySQL Datenbanken: 15 Datenbank(en) POP3 Accounts: 300 Autoresponder: 5 Stck Webmail: Ja
Webserver Einrichten
02/08/2013 - Web Development - 13 Replies
Hi All, ich möchte auf meinem Windows Root eine Website samt php und mysql betreiben, wenn ich google finde ich sau viel zeug, wo mir erklärt wird, wie ich server einrichten kann aber da gibt es so viele, aus disem grund dachte ich ich frrage lieber die experten hier, also mir ist es nur wichtig, dass es recht sicher ist (deshalb fällt xamp schonmal aus) ich hoffe ihr könnt mir was gutes empfehlen, mfg neo2k4 =)
Debian Webserver
08/26/2012 - Unix/Linux - 4 Replies
Hallo, ich habe nun Debian OS und möchte einen Webserver installieren. Apache funktioniert bereits, html Seiten werden agezeigt, nur php und MySQL gehehn nicht. Bei PHP kommt lediglich eine weiße Seite und MySQL baut keine verbindung auf. Woran könnte das liegen? €: Nun werden PHP Dateien zum download angeboten..
Webserver
09/04/2011 - Browsergames - 13 Replies
Hey Leute, ich habe einen Ikariam Pserver der über Hamachi leuft. Das soll sich ändern und deswegen will ich ihn auf einen Webserver hochladen, doch dies ist doch illegal. Auf welchem webserver muss ich die files hochladen, dass die wahrscheinlichkeit sehr niedrieg ist das ich erwicht werde. Muss ich ihn auf einen Asiatischen/Russischen Webserver hochladen, dass ich keine Chance habe angezeigt zu werden bzw. ne Strafe nicht zu bekommen und das ihn jmd. überhaupt von Gameforge sieht? Kurz...
5165 Source Character and Account Counter, and Epic Webserver...
02/23/2010 - CO2 PServer Guides & Releases - 9 Replies
I made this script to count the characters and accounts. It has to be on the same host, with the server, otherwise it will not work. If you'd like to use this script on an external host, you need to use <iframe> (more - below) First of all, you need to be sure, that you have webserver (like Xampp, Wampp, Appserv ), with php support on your localhost. With epic webserver, this isn't working! Than you need to create a file named counter.php and copy the code below. <?php /*



All times are GMT +1. The time now is 11:50.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.