diff options
Diffstat (limited to 'plugins/HTTPServer/docs/data')
21 files changed, 874 insertions, 0 deletions
diff --git a/plugins/HTTPServer/docs/data/Changelog.txt b/plugins/HTTPServer/docs/data/Changelog.txt new file mode 100644 index 0000000000..de682e0249 --- /dev/null +++ b/plugins/HTTPServer/docs/data/Changelog.txt @@ -0,0 +1,206 @@ +
 +
 +Version 0.0.1.0
 +
 +This is a beta version.
 +Some features are not yet implemented.
 +A shared file will only be remove when the maximum downloads has been reached.
 +Suggestions and contributions are welcome.
 +
 +
 +Version 0.0.2.0
 +
 +[+] You can change the default port used in Miranda options network "incoming connections"
 +[+] Popup the message dialog with link when new file is shared.
 +[!] Crash sometimes when share was about to be removed.
 +[*] xsl file changed so that it shows link to file.
 +
 +
 +Version 0.0.3.0
 +
 +[+] Uses popup plugin if installed to show when the HTTP server is accessed.
 +[!] File path was not stored correctly, which meant that only files in the plugin folder could be shared.
 +
 +
 +Version 0.0.4.0
 +
 +[!] Server did not use any port if you did not set a "incoming connections" port in the options.
 +[+] More error dialog boxes if there is something that failes when initilizing. e.i. unable to bind port
 +
 +
 +Version 0.0.4.1
 +
 +[+] If the open file dialog in "HTTP Share new file" fails an error message is displayed
 +[!] Shutdown while file transfer is in progress is now handled correctly
 +
 +
 +Version 0.0.4.2
 +
 +[!] "HTTP Share new file" only worked on Windows XP.
 +
 +
 +Version 0.0.5.0
 +
 +[+] HTTP Server can now be accessed by multiply users simultaniously.
 +[+] HTTP Server "statistics view" includes shares and current useres accessing the server.
 +[+] Share can be removed from "statistics view"
 +
 +
 +Version 0.0.6.0
 +
 +[!] Max downloads was not decreased so a share was never removed.
 +[!] First share could not be removed then max downloads got to zero.
 +[!] If a share was deleted while a download was in progress the download would not be stopped
 +[*] Outgoing connections options has been removed.
 +[+] Basic MIME support. Based on file extension.
 +
 +
 +Version 0.0.7.0
 +
 +[+] In the "statistics view" you can copy a link to your shares.
 +[+] Correct handling of UTF-8 encoded URIs in GET requests.fixes spaces and none US-ASCII characters.
 +[!] Only masks 255.255.255.255 and 0.0.0.0 worked correctly any other was interpreted like 255.255.255.255.
 +
 +
 +Version 0.0.8.0
 +
 +[+] Popup when a share is removed
 +[!] Fixed bug in UTF-8 handling. Basically %?? part of handling did not work
 +[!] Some spelling errors corrected.
 +[*] Homepage link in options updated
 +[*] Some internal Elements.
 +
 +
 +Version 0.0.9.0
 +
 +[+] Downloads can be resumed. Tested with ( IE 6.0, Mozilla, wget and FlashGet )
 +[+] You can drag and drop file to the "statistics view"
 +[+] Logs server requests to file ( optional default yes )
 +[+] Right click on popup shows "statistics view"
 +[+] The HTTP server can be enabled and disable from the main menu
 +[+] The user list shows which Agent he is using.
 +[+] "New share" menu item added to Right click menu.
 +[+] "Edit share" menu item added to Right click menu.
 +[+] Experimental external ip detection (known not to work well under windows 98)
 +[+] Error dialogs when the link copy to clipboard fails
 +[*] Some internal Elements.
 +[!] Tab order in "statistics view"
 +
 +
 +Version 0.1.0.0
 +
 +[+] Stores the position of the "statistics view"
 +[+] New button in the "share new file dialog" to toggle the mask between 0.0.0.0 and 255.255.255.255
 +[+] You can drag and drop files to the lower part of the "share new file dialog"
 +[+] New button in option page to open the log file.
 +[+] The state of the HTTP server is keep between sessions.
 +[+] The popups can be disabled in the options.
 +[+] HTTP Error codes are returned for some errors..
 +[*] Web based ip detection. ( see help )
 +[*] When logging trailing new lines in GET request will be removed.
 +[!] Clicking "Set to default" did not enable apply button.
 +[!] Closed and Open the "statistics view" while downloads in progresse then auto update diden work.
 +
 +
 +Version 0.1.1.0
 +
 +[+] Speed control, Set the maximum bandwidth that you wish the server shout use.
 +[+] Speed control can be set active only when your status is online.
 +[!] After a file had been accessed thru the server it was locked. Introduced in 1.0.0
 +[!] Some missing translation was added
 +[!] Some people where unable to set another port then the default 80.
 +
 +
 +Version 0.1.1.1
 +
 +[!] Unable to changed port realy fixed now. To make it short.
 +           Now it works with both the Latest nightly and Miranda V.0.3.2.
 +
 +
 +Version 0.1.1.2
 +
 +[!] With the Nightly build after 18 Jan. external ip detection diden work
 +
 +
 +Version 0.1.1.3
 +
 +[!] Fixed the incorrect Content-Length header in HTTP 206 Partial Content responces
 +	Now the download can be resumed in any download manager without getting an "incorrect file size" or "file size changed" messages.
 +	
 +
 +Version 0.1.1.4
 +
 +[+] Service MS_HTTP_ACCEPT_CONNECTIONS now accepts wParam.
 +    By default it toggles HTTP server state.
 +    Now you can force enable server passing wParam as TRUE.
 +
 +
 +Version 0.1.1.5
 +
 +[+] Added possibility to share directories
 +[+] If no index.html exists a directory index is created
 +
 +
 +Version 0.1.1.6
 +
 +[+] The generated index.html looks nicer and can be customized
 +
 +
 +Version 0.1.1.7
 +
 +[!] Fixed some security issues
 +[+] Crystal Icon set included
 +    Thanks to Everaldo Coelho (www.everaldo.com) who released them under GPL
 +[*] Fixed serveral bugs
 +[+] On Kennet's advice (and with his help) the index generation was rewritten.
 +    The generated file is now an XML like the configuration file. It is easier to maintain
 +    and more flexible.
 +[+] Applied chronon's modifications to make it work with his Send Screenshot plugin
 +[!] Only the shares which are accessible by a user are shown on the index
 +[+] Files and Folders starting with an @ are not shown in the index and create no popups
 +    They are also hidden in the statistics view but can be revealed
 +[+] The column widths in statistics view are preserved
 +
 +
 +Version 0.1.1.9
 +
 +[!] Fixed the disappearing statistics view bug
 +[!] Browsers display the right error message
 +[+] Maximum number of connections can be defined (total & per user)
 +[+] Index creation can be disabled now
 +[+] The user can decide now if the generated index shoud be a HTML or a XML
 +    HTMLs are just for compatibility, it is recommended to use the XMLs
 +    By default it sends XML to MSIE	and Firefox and HTML to Opera and other browsers
 +[+] "Open in Browser" menu entry in statistics view
 +[!] External IP is updated if it is older than 10 minutes
 +
 +
 +Version 0.1.1.91
 +
 +[!] When updating to a new version the shared files list is not cleared
 +
 +
 +Version 0.1.2.0
 +
 +contributed by Vapik:
 +[+] The browser is now redirected when trying to access a directory without the trailing slash 
 +[+] The error messages which are shown by the browser contain the version number of the plugin
 +
 +
 +Version 0.1.2.1
 +
 +[!] Fixed several bugs (external IP generation, config files > 10kb,...)
 +[!] Made HTTP-"Not Modified" response work again
 +[+] Added [FileModified] and [FileCreated] tags to index (added the first one to the default templates)
 +[+] Enhanced the controls in the statistic view
 +[+] Multiple files can be selected & shared at once in the share new file dialog
 +[+] Multiple files can be dropped into the statistic view (the default settings are used)
 +[+] Fixed popup clicks (left opens the statistics view / right hides the popup)
 +[+] Share names & requests are automatically converted to lowercase (to make it case insensitive)
 +[+] Added "Default download limit" option
 +[-] Removed "detect brower" option (which tried to detect whether a browser supports XSLT)
 +
 +
 +Version 0.1.2.2
 +
 +[!] Recompiled with new Miranda headers.
 diff --git a/plugins/HTTPServer/docs/data/HTTPMimeTypes b/plugins/HTTPServer/docs/data/HTTPMimeTypes new file mode 100644 index 0000000000..8860fdb930 --- /dev/null +++ b/plugins/HTTPServer/docs/data/HTTPMimeTypes @@ -0,0 +1,478 @@ +# This file is part of HTTPServer a Miranda IM plugin. +# The file is taken from the apache project. + +# This file controls what Internet media types are sent to the client for +# given file extension(s).  Sending the correct media type to the client +# is important so they know how to handle the content of the file. +# Extra types can either be added here +# For more information about Internet media types, +# please read RFC 2045, 2046, 2047, 2048, and 2077.  The Internet media type +# registry is at <http://www.iana.org/assignments/media-types/>. + +# MIME type			Extension +application/EDI-Consent +application/EDI-X12 +application/EDIFACT +application/activemessage +application/andrew-inset	ez +application/applefile +application/atomicmail +application/batch-SMTP +application/beep+xml +application/cals-1840 +application/commonground +application/cybercash +application/dca-rft +application/dec-dx +application/dvcs +application/eshop +application/http +application/hyperstudio +application/iges +application/index +application/index.cmd +application/index.obj +application/index.response +application/index.vnd +application/iotp +application/ipp +application/isup +application/font-tdpfr +application/mac-binhex40	hqx +application/mac-compactpro	cpt +application/macwriteii +application/marc +application/mathematica +application/mathematica-old +application/msword		doc +application/news-message-id +application/news-transmission +application/ocsp-request +application/ocsp-response +application/octet-stream	bin dms lha lzh exe class so dll +application/oda			oda +application/parityfec +application/pdf			pdf +application/pgp-encrypted +application/pgp-keys +application/pgp-signature +application/pkcs10 +application/pkcs7-mime +application/pkcs7-signature +application/pkix-cert +application/pkix-crl +application/pkixcmp +application/postscript		ai eps ps +application/prs.alvestrand.titrax-sheet +application/prs.cww +application/prs.nprend +application/qsig +application/remote-printing +application/riscos +application/rtf +application/sdp +application/set-payment +application/set-payment-initiation +application/set-registration +application/set-registration-initiation +application/sgml +application/sgml-open-catalog +application/sieve +application/slate +application/smil		smi smil +application/timestamp-query +application/timestamp-reply +application/vemmi +application/vnd.3M.Post-it-Notes +application/vnd.FloGraphIt +application/vnd.accpac.simply.aso +application/vnd.accpac.simply.imp +application/vnd.acucobol +application/vnd.aether.imp +application/vnd.anser-web-certificate-issue-initiation +application/vnd.anser-web-funds-transfer-initiation +application/vnd.audiograph +application/vnd.businessobjects +application/vnd.bmi +application/vnd.canon-cpdl +application/vnd.canon-lips +application/vnd.claymore +application/vnd.commerce-battelle +application/vnd.commonspace +application/vnd.comsocaller +application/vnd.contact.cmsg +application/vnd.cosmocaller +application/vnd.cups-postscript +application/vnd.cups-raster +application/vnd.cups-raw +application/vnd.ctc-posml +application/vnd.cybank +application/vnd.dna +application/vnd.dpgraph +application/vnd.dxr +application/vnd.ecdis-update +application/vnd.ecowin.chart +application/vnd.ecowin.filerequest +application/vnd.ecowin.fileupdate +application/vnd.ecowin.series +application/vnd.ecowin.seriesrequest +application/vnd.ecowin.seriesupdate +application/vnd.enliven +application/vnd.epson.esf +application/vnd.epson.msf +application/vnd.epson.quickanime +application/vnd.epson.salt +application/vnd.epson.ssf +application/vnd.ericsson.quickcall +application/vnd.eudora.data +application/vnd.fdf +application/vnd.ffsns +application/vnd.framemaker +application/vnd.fsc.weblaunch +application/vnd.fujitsu.oasys +application/vnd.fujitsu.oasys2 +application/vnd.fujitsu.oasys3 +application/vnd.fujitsu.oasysgp +application/vnd.fujitsu.oasysprs +application/vnd.fujixerox.ddd +application/vnd.fujixerox.docuworks +application/vnd.fujixerox.docuworks.binder +application/vnd.fut-misnet +application/vnd.grafeq +application/vnd.groove-account +application/vnd.groove-identity-message +application/vnd.groove-injector +application/vnd.groove-tool-message +application/vnd.groove-tool-template +application/vnd.groove-vcard +application/vnd.hhe.lesson-player +application/vnd.hp-HPGL +application/vnd.hp-PCL +application/vnd.hp-PCLXL +application/vnd.hp-hpid +application/vnd.hp-hps +application/vnd.httphone +application/vnd.hzn-3d-crossword +application/vnd.ibm.afplinedata +application/vnd.ibm.MiniPay +application/vnd.ibm.modcap +application/vnd.informix-visionary +application/vnd.intercon.formnet +application/vnd.intertrust.digibox +application/vnd.intertrust.nncp +application/vnd.intu.qbo +application/vnd.intu.qfx +application/vnd.irepository.package+xml +application/vnd.is-xpr +application/vnd.japannet-directory-service +application/vnd.japannet-jpnstore-wakeup +application/vnd.japannet-payment-wakeup +application/vnd.japannet-registration +application/vnd.japannet-registration-wakeup +application/vnd.japannet-setstore-wakeup +application/vnd.japannet-verification +application/vnd.japannet-verification-wakeup +application/vnd.koan +application/vnd.lotus-1-2-3 +application/vnd.lotus-approach +application/vnd.lotus-freelance +application/vnd.lotus-notes +application/vnd.lotus-organizer +application/vnd.lotus-screencam +application/vnd.lotus-wordpro +application/vnd.mcd +application/vnd.mediastation.cdkey +application/vnd.meridian-slingshot +application/vnd.mif		mif +application/vnd.minisoft-hp3000-save +application/vnd.mitsubishi.misty-guard.trustweb +application/vnd.mobius.daf +application/vnd.mobius.dis +application/vnd.mobius.msl +application/vnd.mobius.plc +application/vnd.mobius.txf +application/vnd.motorola.flexsuite +application/vnd.motorola.flexsuite.adsi +application/vnd.motorola.flexsuite.fis +application/vnd.motorola.flexsuite.gotap +application/vnd.motorola.flexsuite.kmr +application/vnd.motorola.flexsuite.ttc +application/vnd.motorola.flexsuite.wem +application/vnd.mozilla.xul+xml +application/vnd.ms-artgalry +application/vnd.ms-asf +application/vnd.ms-excel	xls +application/vnd.ms-lrm +application/vnd.ms-powerpoint	ppt +application/vnd.ms-project +application/vnd.ms-tnef +application/vnd.ms-works +application/vnd.mseq +application/vnd.msign +application/vnd.music-niff +application/vnd.musician +application/vnd.netfpx +application/vnd.noblenet-directory +application/vnd.noblenet-sealer +application/vnd.noblenet-web +application/vnd.novadigm.EDM +application/vnd.novadigm.EDX +application/vnd.novadigm.EXT +application/vnd.osa.netdeploy +application/vnd.palm +application/vnd.pg.format +application/vnd.pg.osasli +application/vnd.powerbuilder6 +application/vnd.powerbuilder6-s +application/vnd.powerbuilder7 +application/vnd.powerbuilder7-s +application/vnd.powerbuilder75 +application/vnd.powerbuilder75-s +application/vnd.previewsystems.box +application/vnd.publishare-delta-tree +application/vnd.pvi.ptid1 +application/vnd.pwg-xhtml-print+xml +application/vnd.rapid +application/vnd.s3sms +application/vnd.seemail +application/vnd.shana.informed.formdata +application/vnd.shana.informed.formtemplate +application/vnd.shana.informed.interchange +application/vnd.shana.informed.package +application/vnd.sss-cod +application/vnd.sss-dtf +application/vnd.sss-ntf +application/vnd.street-stream +application/vnd.svd +application/vnd.swiftview-ics +application/vnd.triscape.mxs +application/vnd.trueapp +application/vnd.truedoc +application/vnd.tve-trigger +application/vnd.ufdl +application/vnd.uplanet.alert +application/vnd.uplanet.alert-wbxml +application/vnd.uplanet.bearer-choice-wbxml +application/vnd.uplanet.bearer-choice +application/vnd.uplanet.cacheop +application/vnd.uplanet.cacheop-wbxml +application/vnd.uplanet.channel +application/vnd.uplanet.channel-wbxml +application/vnd.uplanet.list +application/vnd.uplanet.list-wbxml +application/vnd.uplanet.listcmd +application/vnd.uplanet.listcmd-wbxml +application/vnd.uplanet.signal +application/vnd.vcx +application/vnd.vectorworks +application/vnd.vidsoft.vidconference +application/vnd.visio +application/vnd.vividence.scriptfile +application/vnd.wap.sic +application/vnd.wap.slc +application/vnd.wap.wbxml	wbxml +application/vnd.wap.wmlc	wmlc +application/vnd.wap.wmlscriptc	wmlsc +application/vnd.webturbo +application/vnd.wrq-hp3000-labelled +application/vnd.wt.stf +application/vnd.xara +application/vnd.xfdl +application/vnd.yellowriver-custom-menu +application/whoispp-query +application/whoispp-response +application/wita +application/wordperfect5.1 +application/x-bcpio		bcpio +application/x-cdlink		vcd +application/x-chess-pgn		pgn +application/x-compress +application/x-cpio		cpio +application/x-csh		csh +application/x-director		dcr dir dxr +application/x-dvi		dvi +application/x-futuresplash	spl +application/x-gtar		gtar +application/x-gzip +application/x-hdf		hdf +application/x-javascript	js +application/x-koan		skp skd skt skm +application/x-latex		latex +application/x-netcdf		nc cdf +application/x-sh		sh +application/x-shar		shar +application/x-shockwave-flash	swf +application/x-stuffit		sit +application/x-sv4cpio		sv4cpio +application/x-sv4crc		sv4crc +application/x-tar		tar +application/x-tcl		tcl +application/x-tex		tex +application/x-texinfo		texinfo texi +application/x-troff		t tr roff +application/x-troff-man		man +application/x-troff-me		me +application/x-troff-ms		ms +application/x-ustar		ustar +application/x-wais-source	src +application/x400-bp +application/xhtml+xml		xhtml xht +application/xml +application/xml-dtd +application/xml-external-parsed-entity +application/zip			zip +audio/32kadpcm +audio/basic			au snd +audio/g.722.1 +audio/l16 +audio/midi			mid midi kar +audio/mp4a-latm +audio/mpa-robust +audio/mpeg			mpga mp2 mp3 +audio/parityfec +audio/prs.sid +audio/telephone-event +audio/tone +audio/vnd.cisco.nse +audio/vnd.cns.anp1 +audio/vnd.cns.inf1 +audio/vnd.digital-winds +audio/vnd.everad.plj +audio/vnd.lucent.voice +audio/vnd.nortel.vbk +audio/vnd.nuera.ecelp4800 +audio/vnd.nuera.ecelp7470 +audio/vnd.nuera.ecelp9600 +audio/vnd.octel.sbc +audio/vnd.qcelp +audio/vnd.rhetorex.32kadpcm +audio/vnd.vmx.cvsd +audio/x-aiff			aif aiff aifc +audio/x-mod			mod +audio/x-mpegurl			m3u +audio/x-pn-realaudio		ram rm +audio/x-pn-realaudio-plugin	rpm +audio/x-realaudio		ra +audio/x-wav			wav +chemical/x-pdb			pdb +chemical/x-xyz			xyz +image/bmp			bmp +image/cgm +image/g3fax +image/gif			gif +image/ief			ief +image/jpeg			jpeg jpg jpe +image/naplps +image/png			png +image/prs.btif +image/prs.pti +image/tiff			tiff tif +image/vnd.cns.inf2 +image/vnd.djvu			djvu djv +image/vnd.dwg +image/vnd.dxf +image/vnd.fastbidsheet +image/vnd.fpx +image/vnd.fst +image/vnd.fujixerox.edmics-mmr +image/vnd.fujixerox.edmics-rlc +image/vnd.mix +image/vnd.net-fpx +image/vnd.svf +image/vnd.wap.wbmp		wbmp +image/vnd.xiff +image/x-cmu-raster		ras +image/x-portable-anymap		pnm +image/x-portable-bitmap		pbm +image/x-portable-graymap	pgm +image/x-portable-pixmap		ppm +image/x-rgb			rgb +image/x-xbitmap			xbm +image/x-xpixmap			xpm +image/x-xwindowdump		xwd +message/delivery-status +message/disposition-notification +message/external-body +message/http +message/news +message/partial +message/rfc822 +message/s-http +model/iges			igs iges +model/mesh			msh mesh silo +model/vnd.dwf +model/vnd.flatland.3dml +model/vnd.gdl +model/vnd.gs-gdl +model/vnd.gtw +model/vnd.mts +model/vnd.vtu +model/vrml			wrl vrml +multipart/alternative +multipart/appledouble +multipart/byteranges +multipart/digest +multipart/encrypted +multipart/form-data +multipart/header-set +multipart/mixed +multipart/parallel +multipart/related +multipart/report +multipart/signed +multipart/voice-message +text/calendar +text/css			css +text/directory +text/enriched +text/html			html htm +text/parityfec +text/plain			asc txt +text/prs.lines.tag +text/rfc822-headers +text/richtext			rtx +text/rtf			rtf +text/sgml			sgml sgm +text/tab-separated-values	tsv +text/t140 +text/uri-list +text/vnd.DMClientScript +text/vnd.IPTC.NITF +text/vnd.IPTC.NewsML +text/vnd.abc +text/vnd.curl +text/vnd.flatland.3dml +text/vnd.fly +text/vnd.fmi.flexstor +text/vnd.in3d.3dml +text/vnd.in3d.spot +text/vnd.latex-z +text/vnd.motorola.reflex +text/vnd.ms-mediapackage +text/vnd.wap.si +text/vnd.wap.sl +text/vnd.wap.wml		wml +text/vnd.wap.wmlscript		wmls +text/x-c++hdr		hpp hxx hh
 +text/x-c++src		cpp,cxx,cc
 +text/x-chdr		h
 +text/x-csrc		c +text/x-setext			etx +text/xml			xml xsl +text/xml-external-parsed-entity +video/mp4v-es +video/mpeg			mpeg mpg mpe +video/parityfec +video/pointer +video/quicktime			qt mov +video/vnd.fvt +video/vnd.motorola.video +video/vnd.motorola.videop +video/vnd.mpegurl		mxu +video/vnd.mts +video/vnd.nokia.interleaved-multimedia +video/vnd.vivo +video/x-msvideo			avi +video/x-sgi-movie		movie +x-conference/x-cooltalk		ice + diff --git a/plugins/HTTPServer/docs/data/HTTPServer.dll b/plugins/HTTPServer/docs/data/HTTPServer.dll Binary files differnew file mode 100644 index 0000000000..d315b17d8b --- /dev/null +++ b/plugins/HTTPServer/docs/data/HTTPServer.dll diff --git a/plugins/HTTPServer/docs/data/HTTPServer.pdf b/plugins/HTTPServer/docs/data/HTTPServer.pdf Binary files differnew file mode 100644 index 0000000000..7aed97ba6b --- /dev/null +++ b/plugins/HTTPServer/docs/data/HTTPServer.pdf diff --git a/plugins/HTTPServer/docs/data/HTTPServer.xsl b/plugins/HTTPServer/docs/data/HTTPServer.xsl new file mode 100644 index 0000000000..fc5006707e --- /dev/null +++ b/plugins/HTTPServer/docs/data/HTTPServer.xsl @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="ISO-8859-1"?>
 +<!-- Edited with XML Spy v4.2 -->
 +<xsl:stylesheet version="1.0"
 +xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 +<xsl:template match="/">
 +  <html>
 +  <body>
 +  <h2>HTTP server configuration</h2>
 +    <table border="1">
 +      <tr bgcolor="#9acd32">
 +        <th align="left">Name</th>
 +        <th align="left">File</th>
 +        <th align="left">Max downloads</th>
 +        <th align="left">IP address</th>
 +        <th align="left">IP mask</th>
 +      </tr>
 +      <xsl:for-each select="config/share">
 +      <tr>
 +        <td>
 +			<xsl:element name="A">
 +				<xsl:attribute name="href"><xsl:value-of select="name"/></xsl:attribute>
 +				<xsl:value-of select="name"/>
 +			</xsl:element>
 +		  </td>
 +        <td><xsl:value-of select="file"/></td>
 +        <td><xsl:value-of select="max_downloads"/></td>
 +        <td><xsl:value-of select="ip_address"/></td>
 +        <td><xsl:value-of select="ip_mask"/></td>
 +      </tr>
 +      </xsl:for-each>
 +    </table>
 +  </body>
 +  </html>
 +</xsl:template>
 +</xsl:stylesheet>
\ No newline at end of file diff --git a/plugins/HTTPServer/docs/data/HTTPServerIndex.html b/plugins/HTTPServer/docs/data/HTTPServerIndex.html new file mode 100644 index 0000000000..4fdc41940a --- /dev/null +++ b/plugins/HTTPServer/docs/data/HTTPServerIndex.html @@ -0,0 +1,34 @@ +<html>
 +<head>
 +<title>Directory Listing of [DirectoryName]</title>
 +<style type="text/css">
 +td { font-size:14px; color:#000033;}
 +a:link { text-decoration: none; color:#003366; }
 +a:visited { text-decoration: none; color:#003366; }
 +a:active { text-decoration: none; color:#FFAA33; }
 +a:hover { text-decoration: underline; color:#FFAA33; }
 +</style>
 +</head>
 +<body bgcolor=#B0B0CC>
 +<font face='tahoma, arial'>
 +
 +<table cellspacing=1 cellpadding=2 width=700>
 +<tr height=40 bgcolor=#EEEEFF><td colspan=3 align=center>
 +<h3 style='margin:0px'><font color="#666688">Directory Listing of [DirectoryName]</font></h3>
 +[ForDirectoriesDo]<tr [IsEven]bgcolor=#EEEEFF[End][IsOdd]bgcolor=#DDDDEE[End]><td colspan=3><img src="/icons/folder_gray.png"><img src="/placeholder.gif" width=5><a href="[DirectoryUrl]">[DirectoryName]</a></td></tr>[End]
 +[ForFilesDo]<tr [IsEven]bgcolor=#EEEEFF[End][IsOdd]bgcolor=#DDDDEE[End]><td>
 +[IsFileType=jpg,jpeg,gif,png,bmp]<img src="/icons/image2.png">[End]
 +[IsFileType=zip,rar,ace,arj,lha,lhz,tar,gz]<img src="/icons/tar.png">[End]
 +[IsFileType=rtf,doc]<img src="/icons/doc.png">[End]
 +[IsFileType=txt,diz]<img src="/icons/txt.png">[End]
 +[IsFileType=pdf]<img src="/icons/pdf.png">[End]
 +[IsFileType=exe,bat]<img src="/icons/win_apps.png">[End]
 +[IsFileType=html,htm,xml]<img src="/icons/www.png">[End]
 +[IsFileType=avi,mpg]<img src="/icons/video.png">[End]
 +[IsFileType=c,cpp,h]<img src="/icons/source.png">[End]
 +[IsFileType=mp3,ogg,wav,mid,mod,xm]<img src="/icons/sound.png">[End]
 +[IsFileType=*]<img src="/icons/empty.png">[End]<img src="/placeholder.gif" width=5><a href="[FileUrl]">[FileName]</a></td><td>[FileModified]</td><td align='right'>[FileSize]</td></tr>[End]
 +</font>
 +</body>
 +
 +</html>
\ No newline at end of file diff --git a/plugins/HTTPServer/docs/data/htdocs/@settings/favicon.ico b/plugins/HTTPServer/docs/data/htdocs/@settings/favicon.ico Binary files differnew file mode 100644 index 0000000000..1bd45b98e4 --- /dev/null +++ b/plugins/HTTPServer/docs/data/htdocs/@settings/favicon.ico diff --git a/plugins/HTTPServer/docs/data/htdocs/@settings/icons/document2.png b/plugins/HTTPServer/docs/data/htdocs/@settings/icons/document2.png Binary files differnew file mode 100644 index 0000000000..f4d5bfd139 --- /dev/null +++ b/plugins/HTTPServer/docs/data/htdocs/@settings/icons/document2.png diff --git a/plugins/HTTPServer/docs/data/htdocs/@settings/icons/empty.png b/plugins/HTTPServer/docs/data/htdocs/@settings/icons/empty.png Binary files differnew file mode 100644 index 0000000000..bfe1d06e04 --- /dev/null +++ b/plugins/HTTPServer/docs/data/htdocs/@settings/icons/empty.png diff --git a/plugins/HTTPServer/docs/data/htdocs/@settings/icons/folder_gray.png b/plugins/HTTPServer/docs/data/htdocs/@settings/icons/folder_gray.png Binary files differnew file mode 100644 index 0000000000..ea7f314dba --- /dev/null +++ b/plugins/HTTPServer/docs/data/htdocs/@settings/icons/folder_gray.png diff --git a/plugins/HTTPServer/docs/data/htdocs/@settings/icons/image2.png b/plugins/HTTPServer/docs/data/htdocs/@settings/icons/image2.png Binary files differnew file mode 100644 index 0000000000..dbefd0ccfa --- /dev/null +++ b/plugins/HTTPServer/docs/data/htdocs/@settings/icons/image2.png diff --git a/plugins/HTTPServer/docs/data/htdocs/@settings/icons/pdf.png b/plugins/HTTPServer/docs/data/htdocs/@settings/icons/pdf.png Binary files differnew file mode 100644 index 0000000000..27faad6fc0 --- /dev/null +++ b/plugins/HTTPServer/docs/data/htdocs/@settings/icons/pdf.png diff --git a/plugins/HTTPServer/docs/data/htdocs/@settings/icons/sound.png b/plugins/HTTPServer/docs/data/htdocs/@settings/icons/sound.png Binary files differnew file mode 100644 index 0000000000..bfe6022c8c --- /dev/null +++ b/plugins/HTTPServer/docs/data/htdocs/@settings/icons/sound.png diff --git a/plugins/HTTPServer/docs/data/htdocs/@settings/icons/source.png b/plugins/HTTPServer/docs/data/htdocs/@settings/icons/source.png Binary files differnew file mode 100644 index 0000000000..14a9c6ee31 --- /dev/null +++ b/plugins/HTTPServer/docs/data/htdocs/@settings/icons/source.png diff --git a/plugins/HTTPServer/docs/data/htdocs/@settings/icons/tar.png b/plugins/HTTPServer/docs/data/htdocs/@settings/icons/tar.png Binary files differnew file mode 100644 index 0000000000..8bdfa8a0fc --- /dev/null +++ b/plugins/HTTPServer/docs/data/htdocs/@settings/icons/tar.png diff --git a/plugins/HTTPServer/docs/data/htdocs/@settings/icons/txt.png b/plugins/HTTPServer/docs/data/htdocs/@settings/icons/txt.png Binary files differnew file mode 100644 index 0000000000..b34ba0b892 --- /dev/null +++ b/plugins/HTTPServer/docs/data/htdocs/@settings/icons/txt.png diff --git a/plugins/HTTPServer/docs/data/htdocs/@settings/icons/video.png b/plugins/HTTPServer/docs/data/htdocs/@settings/icons/video.png Binary files differnew file mode 100644 index 0000000000..6c5f692d79 --- /dev/null +++ b/plugins/HTTPServer/docs/data/htdocs/@settings/icons/video.png diff --git a/plugins/HTTPServer/docs/data/htdocs/@settings/icons/win_apps.png b/plugins/HTTPServer/docs/data/htdocs/@settings/icons/win_apps.png Binary files differnew file mode 100644 index 0000000000..c22b0e24c9 --- /dev/null +++ b/plugins/HTTPServer/docs/data/htdocs/@settings/icons/win_apps.png diff --git a/plugins/HTTPServer/docs/data/htdocs/@settings/icons/www.png b/plugins/HTTPServer/docs/data/htdocs/@settings/icons/www.png Binary files differnew file mode 100644 index 0000000000..2bd96dd012 --- /dev/null +++ b/plugins/HTTPServer/docs/data/htdocs/@settings/icons/www.png diff --git a/plugins/HTTPServer/docs/data/htdocs/@settings/index.xsl b/plugins/HTTPServer/docs/data/htdocs/@settings/index.xsl new file mode 100644 index 0000000000..d8e8f4e872 --- /dev/null +++ b/plugins/HTTPServer/docs/data/htdocs/@settings/index.xsl @@ -0,0 +1,121 @@ +<?xasml version="1.0" encoding="ISO-8859-1"?>
 +<xsl:stylesheet version="1.0" 
 +xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 +
 +<!-- Icons by Everaldo Coelho (www.everaldo.com) -->
 +
 +<xsl:template match="/">
 +
 +	<xsl:variable name="dirname">
 +		<xsl:choose>
 +			<xsl:when test="config/dirname=''">my Miranda Webserver</xsl:when>
 +			<xsl:otherwise><xsl:value-of select="config/dirname"/></xsl:otherwise>
 +		</xsl:choose>
 +	</xsl:variable>
 +
 +<html>
 +	<head>
 +		<title>Directory Listing of <xsl:value-of select="$dirname"/></title>
 +		<style type="text/css">
 +			td { font-family:tahoma, arial; font-size:14px; color:#000033;}
 +			a:link { text-decoration: none; color:#003366; }
 +			a:visited { text-decoration: none; color:#003366; }
 +			a:active { text-decoration: none; color:#FFAA33; }
 +			a:hover { text-decoration: underline; color:#FFAA33; }
 +		</style>
 +	</head>
 +
 +	<body bgcolor='#B0B0CC'>
 +		<font face='tahoma, arial'>
 +			<table border='0' cellspacing='1' cellpadding='2' width='700'>
 +				<tr height='40' bgcolor='#EEEEFF'>
 +					<td colspan='3' align='center'>
 +						<h3 style='margin:0px'><font color="#666688">Directory Listing of <xsl:value-of select="$dirname"/></font></h3>
 +					</td>
 +				</tr>
 +				<xsl:for-each select="config/item">
 +					<xsl:sort select="@isdir" order="descending"/>
 +					<xsl:sort select="@name"/>
 +					<xsl:element name='tr'>
 +						<xsl:attribute name="bgcolor">
 +							<xsl:choose>
 +								<xsl:when test="position() mod 2 = 0">#EEEEFF</xsl:when>
 +								<xsl:otherwise>#DDDDEE</xsl:otherwise>
 +							</xsl:choose>
 +						</xsl:attribute>
 +						<xsl:element name='td'>
 +							<xsl:attribute name="colspan">
 +								<xsl:choose>
 +									<xsl:when test="@isdir='true'">3</xsl:when>
 +									<xsl:otherwise>1</xsl:otherwise>
 +								</xsl:choose>
 +							</xsl:attribute>
 +							<xsl:variable name="ext">
 +								<xsl:value-of select="translate(@ext, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz')"/>
 +							</xsl:variable>
 +							<xsl:variable name="icon">
 +								<xsl:choose>
 +									<xsl:when test="@isdir='true'">folder_gray.png</xsl:when>
 +									<xsl:when test="$ext='jpg' or $ext='jpeg' or $ext='gif' or $ext='png' or $ext='bmp'">image2.png</xsl:when>
 +									<xsl:when test="$ext='zip' or $ext='rar' or $ext='ace' or $ext='arj' or $ext='lha' or ext='lhz' or ext='tar' or ext='gz'">tar.png</xsl:when>
 +									<xsl:when test="$ext='rtf' or $ext='doc'">document2.png</xsl:when>
 +									<xsl:when test="$ext='txt' or $ext='diz'">txt.png</xsl:when>
 +									<xsl:when test="$ext='pdf'">pdf.png</xsl:when>
 +									<xsl:when test="$ext='exe' or $ext='bat'">win_apps.png</xsl:when>
 +									<xsl:when test="$ext='html' or $ext='htm' or $ext='xml'">www.png</xsl:when>
 +									<xsl:when test="$ext='avi' or $ext='mpg'">video.png</xsl:when>
 +									<xsl:when test="$ext='c' or $ext='cpp' or $ext='h'">source.png</xsl:when>
 +									<xsl:when test="$ext='mp3' or $ext='ogg' or $ext='wav' or $ext='mid' or $ext='mod' or $ext='xm'">sound.png</xsl:when>
 +									<xsl:otherwise>empty.png</xsl:otherwise>
 +								</xsl:choose>
 +							</xsl:variable>
 +							<xsl:element name='img'>
 +								<xsl:attribute name="src">/icons/<xsl:value-of select="$icon"/></xsl:attribute>
 +							</xsl:element>
 +							<xsl:element name='img'>
 +								<xsl:attribute name="src">/placeholder.gif</xsl:attribute>
 +								<xsl:attribute name="width">5</xsl:attribute>
 +							</xsl:element>
 +							<xsl:element name="a">
 +								<xsl:attribute name="href">
 +									<xsl:value-of select="@name"/>
 +									<xsl:if test="@ext!=''">.<xsl:value-of select="@ext"/></xsl:if>
 +									<xsl:if test="@isdir='true'">/</xsl:if>
 +								</xsl:attribute>
 +								<xsl:value-of select="@name"/>
 +								<xsl:if test="@ext!=''">.<xsl:value-of select="@ext"/></xsl:if>
 +							</xsl:element>
 +						</xsl:element>
 +						<xsl:choose>
 +							<xsl:when test="@isdir='true'"></xsl:when>
 +							<xsl:otherwise>
 +								<td><xsl:value-of select="@modified"/></td>
 +								<!-- <td><xsl:value-of select="@created"/></td> -->
 +								<td width='100' align='right'>
 +									<xsl:choose>
 +										<xsl:when test="@size >= 1073741824">
 +											<xsl:value-of select="round(@size div 107374182.4) div 10"/><font size="-1"> GB</font>
 +										</xsl:when>
 +										<xsl:when test="@size >= 1048576">
 +											<xsl:value-of select="round(@size div 104857.6) div 10"/><font size="-1"> MB</font>
 +										</xsl:when>
 +										<xsl:when test="@size >= 1024">
 +											<xsl:value-of select="round(@size div 102.4) div 10"/><font size="-1"> KB</font>
 +										</xsl:when>
 +										<xsl:otherwise>
 +											<xsl:value-of select="@size"/><font size="-1"> Byte</font>
 +										</xsl:otherwise>
 +									</xsl:choose>
 +								</td>
 +							</xsl:otherwise>
 +						</xsl:choose>
 +					</xsl:element>
 +				</xsl:for-each>
 +			</table>
 +		</font>
 +	</body>
 +</html>
 +
 +</xsl:template>
 +
 +</xsl:stylesheet>
 diff --git a/plugins/HTTPServer/docs/data/htdocs/@settings/placeholder.gif b/plugins/HTTPServer/docs/data/htdocs/@settings/placeholder.gif Binary files differnew file mode 100644 index 0000000000..213771dde3 --- /dev/null +++ b/plugins/HTTPServer/docs/data/htdocs/@settings/placeholder.gif  | 
