Warning: session_start(): open(/var/lib/php/sessions/sess_17h9gl4a39jq4pj135tgeain7n, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!7
sS standardCredentials() { ret ""; } // public snippets only
// (transpilation md5, snippetID) => jar file
//static new SerializeComputations computations;
// transpilation md5 => jar file
static new SerializeComputations computations;
static File compileSrcLib(S srcLibID) {
new CompilerBot2 subBot;
subBot.dontCompile = true;
ret assertFileExists(subBot.compileSnippet(srcLibID));
}
html {
// lock lock; // now using SerializeComputations
uri = dropPrefixSlash(uri);
S snippetID = fsI(uri);
if (!isSnippetPublic(snippetID)) fail("Snippet not public: " + snippetID);
S transpiledSrc = getServerTranspiled2(snippetID);
// md5 check (if parameter supplied)
S md5 = params.get('md5);
S srcMD5 = md5(transpiledSrc);
if (md5 != null && !eq(md5, srcMD5)) ret "md5 mismatch";
bool forceCompilation = eq(params.get("forceCompilation"), "1");
File jar;
try {
jar = computations.get(srcMD5/*, snippetID)*/, -> {
print("Entering compilation (forceCompilation=" + forceCompilation + ")");
new CompilerBot2 bot;
bot.useRenaming = !sameSnippetID(snippetID, #1001638);
bot.forceCompilation = forceCompilation;
bot.compileSrcLib = lambda1 compileSrcLib;
ret bot.compileSnippet(snippetID);
});
} catch print e {
// dexcompile.php can't handle code 500
ret /*subBot_serve500*/("Error. " + e);
}
bool forceRepackage = eq("1", params.get("repackage"));
bool withLibs = eq("1", params.get("withLibs"));
bool noCompiler = eq("1", params.get("noCompiler"));
bool withX30 = eq("1", params.get("withX30"));
bool x30UtilOnly = eq("1", params.get("x30UtilOnly"));
bool noSrc = eq("1", params.get("noSrc"));
bool dynamicObjectOnly = eq("dynamicObjectOnly", params.get("mode"));
bool uncompressed = eq("1", params.get("uncompressed"));
L