Skip to content

Commit

Permalink
V2.0.16
Browse files Browse the repository at this point in the history
  • Loading branch information
holgerlembke committed Mar 1, 2025
1 parent acfb9c9 commit 4c35ebb
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=ESP32 File Manager for Generation Klick ESPFMfGK
version=2.0.15
version=2.0.16
author=Holger Lembke
maintainer=Holger Lembke <lembke@gmail.com>
sentence=Manage your ES32 file system content with a simple web based interface
Expand Down
24 changes: 24 additions & 0 deletions src/ESPFMfGK.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -342,12 +342,20 @@ void ESPFMfGK::fileManagerIndexpage(void)
//*****************************************************************************************************
void ESPFMfGK::fileManagerJS(void)
{
if (fileManagerAuthCall()) {
return;
}

fileManager->send(200, F("text/javascript"), FPSTR(ESPFMfGKWpjavascript));
}

//*****************************************************************************************************
void ESPFMfGK::fileManagerCSS(void)
{
if (fileManagerAuthCall()) {
return;
}

fileManager->send(200, F("text/css"), FPSTR(ESPFMfGKWpcss));
}

Expand Down Expand Up @@ -665,6 +673,10 @@ void ESPFMfGK::recurseFolder(String foldername, bool flatview, int maxtiefe, boo
//*****************************************************************************************************
void ESPFMfGK::fileManagerFileListInsert(void)
{
if (fileManagerAuthCall()) {
return;
}

// get the file system. all safe.
int fsi = getFileSystemIndex();
bool sit = ShowInTreeView();
Expand Down Expand Up @@ -758,6 +770,10 @@ String ESPFMfGK::escapeHTMLcontent(String html)
//*****************************************************************************************************
void ESPFMfGK::fileManagerBootinfo(void)
{
if (fileManagerAuthCall()) {
return;
}

// hier kann man die globalen Stati initialisieren, weil man weiß, dass die Webseite gerade frisch geladen wird.
lastFileSystemIndex = -1;

Expand Down Expand Up @@ -1022,6 +1038,10 @@ bool ESPFMfGK::CopyMoveFile(String oldfilename, String newfilename, bool move)
// sets the file system, checks the allowance flags and file existance
void ESPFMfGK::fileManagerJobber(void)
{
if (fileManagerAuthCall()) {
return;
}

if (fileManager->args() >= 3)
{ // https://www.youtube.com/watch?v=KSxTxynXiBs
String jobname = fileManager->arg("job");
Expand Down Expand Up @@ -1215,6 +1235,10 @@ void ESPFMfGK::fileManagerJobber(void)
//*****************************************************************************************************
void ESPFMfGK::HtmlIncludesInterface(void)
{
if (fileManagerAuthCall()) {
return;
}

if (HtmlIncludesCallback)
{
if (!HtmlIncludesCallback(fileManager))
Expand Down
3 changes: 3 additions & 0 deletions src/ESPFMfGK.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
Changes
V2.0.16
+ added authentication into all HTTP_GET calls
V2.0.15
+ skip to .15 (to sync with Arduino release number)
+ added authentication
Expand Down

0 comments on commit 4c35ebb

Please sign in to comment.