Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

13
LINES

< > BotCompany Repo | #1007572 - Reload Bot [LIVE]

JavaX source code [tags: butter use-pretranspiled] - run with: x30.jar - homepage

Libraryless. Click here for Pure Java version (3573L/24K/79K).

!7

html {
  print("Reload Bot.");
  if (!webAuthed(params)) ret "nope";
  uri = dropPrefix("/", uri);
  if (!isSnippetID(uri)) ret "need id";
  long id = parseSnippetID(uri);
  temp tempSetTL((ThreadLocal) get(getDispatcher(), 'dispatcherAuth), true);
  S s = askSelf("reload sub bot " + id);
  if (!isOK(s)) ret htmlencode(s);
  ret htitle("Reloaded.") + htmlencode(s) + hrefresh(1, tb_mainServer() + "/tb/show-snippet.php?id=" + id);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): ajlfxifxfcul, aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1007572
Snippet name: Reload Bot [LIVE]
Eternal ID of this version: #1007572/11
Text MD5: b96aeaa3995677693e6eb3df48b1e856
Transpilation MD5: 24a63645f52b66de207e3ba20d2260f5
Author: stefan
Category: javax / html
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-09 11:53:47
Source code size: 450 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 408 / 3949
Version history: 10 change(s)
Referenced in: [show references]