Uses 1113K of libraries. Click here for Pure Java version (19066L/103K).
1 | !7 |
2 | |
3 | cm LANWebserver > DynEleuMultiIP { |
4 | //S password = aRandomID(6); |
5 | switchable S webSiteModuleID; // module ID (integer) |
6 | |
7 | start { |
8 | if (empty(webSiteModuleID)) |
9 | print("Please select a website module!"); |
10 | else if (!dm_moduleExists(webSiteModuleID)) |
11 | print("Warning: Web site module " + webSiteModuleID + " not found"); |
12 | dm_onFieldChangeAndNow webSiteModuleID(r { |
13 | print("Using this content module: " + dm_moduleNameAndID(webSiteModuleID)); |
14 | }); |
15 | } |
16 | |
17 | @Override |
18 | S moduleForDomain(S domain) { |
19 | S mod = dm_moduleExists(webSiteModuleID) ? webSiteModuleID : null; |
20 | printFunctionCall moduleForDomain(+domain, +mod); |
21 | ret mod; |
22 | } |
23 | } |
Began life as a copy of #1029618
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
Snippet ID: | #1032109 |
Snippet name: | LAN Webserver [OK, uses port 8000 by default] |
Eternal ID of this version: | #1032109/9 |
Text MD5: | 273ac9ecb14c0f81e83fe7ef15240b9e |
Transpilation MD5: | a6af9a369a33a9879819cd946b25828d |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-08-14 01:26:17 |
Source code size: | 693 bytes / 23 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 147 / 1704 |
Version history: | 8 change(s) |
Referenced in: | [show references] |