diff --git a/asm/CMakeLists.txt b/asm/CMakeLists.txt index 5a5179cc..4c93ed2a 100644 --- a/asm/CMakeLists.txt +++ b/asm/CMakeLists.txt @@ -4,7 +4,7 @@ set(CMAKE_CXX_FLAGS_DEBUG "") #Override some config values from the parent proje set(CMAKE_CXX_COMPILER "emcc") set(CMAKE_C_COMPILER "emcc") set(CMAKE_C_LINK_EXECUTABLE "emcc") -set(CMAKE_CXX_FLAGS "-O3 --llvm-lto 1 --memory-init-file 0 -s WASM=1") #-s ASSERTIONS=2 -s ALLOW_MEMORY_GROWTH=1 -O3 +set(CMAKE_CXX_FLAGS "-O2 --llvm-lto 1 --memory-init-file 0 -s WASM=1") #-s ASSERTIONS=2 -s ALLOW_MEMORY_GROWTH=1 -O3 set(CMAKE_VERBOSE_MAKEFILE ON) set(CMAKE_EXE_LINKER_FLAGS "-s EXTRA_EXPORTED_RUNTIME_METHODS='[\"ccall\", \"cwrap\", \"Pointer_stringify\"]'") # add_definitions(-D_GLIBCXX_USE_CXX11_ABI=0) diff --git a/auth/auth.php b/auth/auth.php index 3d5cf593..0fc1df7d 100644 --- a/auth/auth.php +++ b/auth/auth.php @@ -182,6 +182,10 @@ die(json_encode($response)); } + function logged_in() { + return testSession() == 0; + } + function logout() { $app = getXF(); @@ -245,7 +249,5 @@ logout(); } else die("unknown type!"); } else if(isset($_POST)) { - error_log("Got auth> request!"); - } - -error_log("Got auth request!"); \ No newline at end of file + error_log("Got auth request!"); + } \ No newline at end of file diff --git a/index.php b/index.php index 62afa0de..2b6d1717 100644 --- a/index.php +++ b/index.php @@ -20,7 +20,7 @@ $localhost = true; } if (!$localhost || $testXF) { - redirectOnInvalidSession(); + //redirectOnInvalidSession(); } ?> @@ -183,10 +183,18 @@