Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dadigang
Ventoy
Commits
3e75b2df
Commit
3e75b2df
authored
Dec 21, 2022
by
longpanda
Browse files
VentoyPlugson: Add Windows duplicate file path check for different upper/lower case.
parent
9b7d6cbc
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
178 additions
and
63 deletions
+178
-63
Plugson/src/Core/ventoy_util_windows.c
Plugson/src/Core/ventoy_util_windows.c
+2
-1
Plugson/src/Web/ventoy_http.c
Plugson/src/Web/ventoy_http.c
+101
-27
Plugson/vs/VentoyPlugson/Release/VentoyPlugson.exe
Plugson/vs/VentoyPlugson/Release/VentoyPlugson.exe
+0
-0
Plugson/vs/VentoyPlugson/x64/Release/VentoyPlugson_X64.exe
Plugson/vs/VentoyPlugson/x64/Release/VentoyPlugson_X64.exe
+0
-0
Plugson/www/buildtime
Plugson/www/buildtime
+1
-1
Plugson/www/index.html
Plugson/www/index.html
+4
-4
Plugson/www/plugson_auto_install.html
Plugson/www/plugson_auto_install.html
+7
-3
Plugson/www/plugson_auto_memdisk.html
Plugson/www/plugson_auto_memdisk.html
+7
-3
Plugson/www/plugson_dud.html
Plugson/www/plugson_dud.html
+7
-3
Plugson/www/plugson_image_list.html
Plugson/www/plugson_image_list.html
+7
-3
Plugson/www/plugson_injection.html
Plugson/www/plugson_injection.html
+7
-3
Plugson/www/plugson_menu_alias.html
Plugson/www/plugson_menu_alias.html
+7
-3
Plugson/www/plugson_menu_class.html
Plugson/www/plugson_menu_class.html
+7
-3
Plugson/www/plugson_menu_tip.html
Plugson/www/plugson_menu_tip.html
+7
-3
Plugson/www/plugson_password.html
Plugson/www/plugson_password.html
+7
-3
Plugson/www/plugson_persistence.html
Plugson/www/plugson_persistence.html
+7
-3
No files found.
Plugson/src/Core/ventoy_util_windows.c
View file @
3e75b2df
...
@@ -638,7 +638,8 @@ int CheckRuntimeEnvironment(char Letter, ventoy_disk *disk)
...
@@ -638,7 +638,8 @@ int CheckRuntimeEnvironment(char Letter, ventoy_disk *disk)
return
1
;
return
1
;
}
}
if
(
_stricmp
(
FsName
,
"NTFS"
)
==
0
)
/* Fix: enable for all file system on Windows */
/* if (_stricmp(FsName, "NTFS") == 0) */
{
{
disk
->
pathcase
=
1
;
disk
->
pathcase
=
1
;
}
}
...
...
Plugson/src/Web/ventoy_http.c
View file @
3e75b2df
...
@@ -21,6 +21,7 @@
...
@@ -21,6 +21,7 @@
#include <stdint.h>
#include <stdint.h>
#include <string.h>
#include <string.h>
#include <stdarg.h>
#include <stdarg.h>
#include <stddef.h>
#include <errno.h>
#include <errno.h>
#include <time.h>
#include <time.h>
...
@@ -97,6 +98,9 @@ static char *g_pub_save_buffer = NULL;
...
@@ -97,6 +98,9 @@ static char *g_pub_save_buffer = NULL;
static
pthread_mutex_t
g_api_mutex
;
static
pthread_mutex_t
g_api_mutex
;
static
struct
mg_context
*
g_ventoy_http_ctx
=
NULL
;
static
struct
mg_context
*
g_ventoy_http_ctx
=
NULL
;
#define ventoy_is_real_exist_common(xpath, xnode, xtype) \
ventoy_path_is_real_exist(xpath, xnode, offsetof(xtype, path), offsetof(xtype, next))
static
int
ventoy_is_kbd_valid
(
const
char
*
key
)
static
int
ventoy_is_kbd_valid
(
const
char
*
key
)
{
{
int
i
=
0
;
int
i
=
0
;
...
@@ -170,6 +174,40 @@ static void ventoy_free_path_node_list(path_node *list)
...
@@ -170,6 +174,40 @@ static void ventoy_free_path_node_list(path_node *list)
}
}
}
}
static
int
ventoy_path_is_real_exist
(
const
char
*
path
,
void
*
head
,
size_t
pathoff
,
size_t
nextoff
)
{
char
*
node
=
NULL
;
const
char
*
nodepath
=
NULL
;
const
char
*
realpath
=
NULL
;
char
pathbuf
[
MAX_PATH
];
if
(
strchr
(
path
,
'*'
))
{
return
0
;
}
realpath
=
ventoy_real_path
(
path
);
scnprintf
(
pathbuf
,
sizeof
(
pathbuf
),
"%s"
,
realpath
);
node
=
(
char
*
)
head
;
while
(
node
)
{
nodepath
=
node
+
pathoff
;
if
(
NULL
==
strchr
(
nodepath
,
'*'
))
{
realpath
=
ventoy_real_path
(
nodepath
);
if
(
strcmp
(
pathbuf
,
realpath
)
==
0
)
{
return
1
;
}
}
memcpy
(
&
node
,
node
+
nextoff
,
sizeof
(
node
));
}
return
0
;
}
static
path_node
*
ventoy_path_node_add_array
(
VTOY_JSON
*
array
)
static
path_node
*
ventoy_path_node_add_array
(
VTOY_JSON
*
array
)
{
{
path_node
*
head
=
NULL
;
path_node
*
head
=
NULL
;
...
@@ -913,16 +951,15 @@ static int ventoy_api_save_theme(struct mg_connection *conn, VTOY_JSON *json)
...
@@ -913,16 +951,15 @@ static int ventoy_api_save_theme(struct mg_connection *conn, VTOY_JSON *json)
return
0
;
return
0
;
}
}
static
int
ventoy_api_theme_add_file
(
struct
mg_connection
*
conn
,
VTOY_JSON
*
json
)
static
int
ventoy_api_theme_add_file
(
struct
mg_connection
*
conn
,
VTOY_JSON
*
json
)
{
{
int
ret
;
int
ret
;
int
index
=
0
;
int
index
=
0
;
const
char
*
path
=
NULL
;
const
char
*
path
=
NULL
;
const
char
*
realpath
=
NULL
;
path_node
*
node
=
NULL
;
path_node
*
node
=
NULL
;
path_node
*
cur
=
NULL
;
path_node
*
cur
=
NULL
;
data_theme
*
data
=
NULL
;
data_theme
*
data
=
NULL
;
char
pathbuf
[
MAX_PATH
];
vtoy_json_get_int
(
json
,
"index"
,
&
index
);
vtoy_json_get_int
(
json
,
"index"
,
&
index
);
data
=
g_data_theme
+
index
;
data
=
g_data_theme
+
index
;
...
@@ -930,19 +967,12 @@ static int ventoy_api_theme_add_file(struct mg_connection *conn, VTOY_JSON *json
...
@@ -930,19 +967,12 @@ static int ventoy_api_theme_add_file(struct mg_connection *conn, VTOY_JSON *json
path
=
VTOY_JSON_STR_EX
(
"path"
);
path
=
VTOY_JSON_STR_EX
(
"path"
);
if
(
path
)
if
(
path
)
{
{
realpath
=
ventoy_real_path
(
path
);
if
(
ventoy_is_real_exist_common
(
path
,
data
->
filelist
,
path_node
))
scnprintf
(
pathbuf
,
sizeof
(
pathbuf
),
"%s"
,
realpath
);
for
(
node
=
data
->
filelist
;
node
;
node
=
node
->
next
)
{
{
realpath
=
ventoy_real_path
(
node
->
path
);
ventoy_json_result
(
conn
,
VTOY_JSON_DUPLICATE
);
if
(
strcmp
(
pathbuf
,
realpath
)
==
0
)
return
0
;
{
ventoy_json_result
(
conn
,
VTOY_JSON_DUPLICATE
);
return
0
;
}
}
}
node
=
zalloc
(
sizeof
(
path_node
));
node
=
zalloc
(
sizeof
(
path_node
));
if
(
node
)
if
(
node
)
{
{
...
@@ -989,17 +1019,14 @@ static int ventoy_api_theme_del_file(struct mg_connection *conn, VTOY_JSON *json
...
@@ -989,17 +1019,14 @@ static int ventoy_api_theme_del_file(struct mg_connection *conn, VTOY_JSON *json
return
0
;
return
0
;
}
}
static
int
ventoy_api_theme_add_font
(
struct
mg_connection
*
conn
,
VTOY_JSON
*
json
)
static
int
ventoy_api_theme_add_font
(
struct
mg_connection
*
conn
,
VTOY_JSON
*
json
)
{
{
int
ret
;
int
ret
;
int
index
=
0
;
int
index
=
0
;
const
char
*
path
=
NULL
;
const
char
*
path
=
NULL
;
const
char
*
realpath
=
NULL
;
path_node
*
node
=
NULL
;
path_node
*
node
=
NULL
;
path_node
*
cur
=
NULL
;
path_node
*
cur
=
NULL
;
data_theme
*
data
=
NULL
;
data_theme
*
data
=
NULL
;
char
pathbuf
[
MAX_PATH
];
vtoy_json_get_int
(
json
,
"index"
,
&
index
);
vtoy_json_get_int
(
json
,
"index"
,
&
index
);
data
=
g_data_theme
+
index
;
data
=
g_data_theme
+
index
;
...
@@ -1007,19 +1034,12 @@ static int ventoy_api_theme_add_font(struct mg_connection *conn, VTOY_JSON *json
...
@@ -1007,19 +1034,12 @@ static int ventoy_api_theme_add_font(struct mg_connection *conn, VTOY_JSON *json
path
=
VTOY_JSON_STR_EX
(
"path"
);
path
=
VTOY_JSON_STR_EX
(
"path"
);
if
(
path
)
if
(
path
)
{
{
realpath
=
ventoy_real_path
(
path
);
if
(
ventoy_is_real_exist_common
(
path
,
data
->
fontslist
,
path_node
))
scnprintf
(
pathbuf
,
sizeof
(
pathbuf
),
"%s"
,
realpath
);
for
(
node
=
data
->
fontslist
;
node
;
node
=
node
->
next
)
{
{
realpath
=
ventoy_real_path
(
node
->
path
);
ventoy_json_result
(
conn
,
VTOY_JSON_DUPLICATE
);
if
(
strcmp
(
pathbuf
,
realpath
)
==
0
)
return
0
;
{
ventoy_json_result
(
conn
,
VTOY_JSON_DUPLICATE
);
return
0
;
}
}
}
node
=
zalloc
(
sizeof
(
path_node
));
node
=
zalloc
(
sizeof
(
path_node
));
if
(
node
)
if
(
node
)
{
{
...
@@ -1222,6 +1242,12 @@ static int ventoy_api_alias_add(struct mg_connection *conn, VTOY_JSON *json)
...
@@ -1222,6 +1242,12 @@ static int ventoy_api_alias_add(struct mg_connection *conn, VTOY_JSON *json)
alias
=
VTOY_JSON_STR_EX
(
"alias"
);
alias
=
VTOY_JSON_STR_EX
(
"alias"
);
if
(
path
&&
alias
)
if
(
path
&&
alias
)
{
{
if
(
ventoy_is_real_exist_common
(
path
,
data
->
list
,
data_alias_node
))
{
ventoy_json_result
(
conn
,
VTOY_JSON_DUPLICATE
);
return
0
;
}
node
=
zalloc
(
sizeof
(
data_alias_node
));
node
=
zalloc
(
sizeof
(
data_alias_node
));
if
(
node
)
if
(
node
)
{
{
...
@@ -1467,6 +1493,12 @@ static int ventoy_api_tip_add(struct mg_connection *conn, VTOY_JSON *json)
...
@@ -1467,6 +1493,12 @@ static int ventoy_api_tip_add(struct mg_connection *conn, VTOY_JSON *json)
tip
=
VTOY_JSON_STR_EX
(
"tip"
);
tip
=
VTOY_JSON_STR_EX
(
"tip"
);
if
(
path
&&
tip
)
if
(
path
&&
tip
)
{
{
if
(
ventoy_is_real_exist_common
(
path
,
data
->
list
,
data_tip_node
))
{
ventoy_json_result
(
conn
,
VTOY_JSON_DUPLICATE
);
return
0
;
}
node
=
zalloc
(
sizeof
(
data_tip_node
));
node
=
zalloc
(
sizeof
(
data_tip_node
));
if
(
node
)
if
(
node
)
{
{
...
@@ -1816,6 +1848,12 @@ static int ventoy_api_auto_memdisk_add(struct mg_connection *conn, VTOY_JSON *js
...
@@ -1816,6 +1848,12 @@ static int ventoy_api_auto_memdisk_add(struct mg_connection *conn, VTOY_JSON *js
path
=
VTOY_JSON_STR_EX
(
"path"
);
path
=
VTOY_JSON_STR_EX
(
"path"
);
if
(
path
)
if
(
path
)
{
{
if
(
ventoy_is_real_exist_common
(
path
,
data
->
list
,
path_node
))
{
ventoy_json_result
(
conn
,
VTOY_JSON_DUPLICATE
);
return
0
;
}
node
=
zalloc
(
sizeof
(
path_node
));
node
=
zalloc
(
sizeof
(
path_node
));
if
(
node
)
if
(
node
)
{
{
...
@@ -1998,6 +2036,12 @@ static int ventoy_api_image_list_add(struct mg_connection *conn, VTOY_JSON *json
...
@@ -1998,6 +2036,12 @@ static int ventoy_api_image_list_add(struct mg_connection *conn, VTOY_JSON *json
path
=
VTOY_JSON_STR_EX
(
"path"
);
path
=
VTOY_JSON_STR_EX
(
"path"
);
if
(
path
)
if
(
path
)
{
{
if
(
ventoy_is_real_exist_common
(
path
,
data
->
list
,
path_node
))
{
ventoy_json_result
(
conn
,
VTOY_JSON_DUPLICATE
);
return
0
;
}
node
=
zalloc
(
sizeof
(
path_node
));
node
=
zalloc
(
sizeof
(
path_node
));
if
(
node
)
if
(
node
)
{
{
...
@@ -2253,6 +2297,12 @@ static int ventoy_api_password_add(struct mg_connection *conn, VTOY_JSON *json)
...
@@ -2253,6 +2297,12 @@ static int ventoy_api_password_add(struct mg_connection *conn, VTOY_JSON *json)
pwd
=
VTOY_JSON_STR_EX
(
"pwd"
);
pwd
=
VTOY_JSON_STR_EX
(
"pwd"
);
if
(
path
&&
pwd
)
if
(
path
&&
pwd
)
{
{
if
(
ventoy_is_real_exist_common
(
path
,
data
->
list
,
menu_password
))
{
ventoy_json_result
(
conn
,
VTOY_JSON_DUPLICATE
);
return
0
;
}
node
=
zalloc
(
sizeof
(
menu_password
));
node
=
zalloc
(
sizeof
(
menu_password
));
if
(
node
)
if
(
node
)
{
{
...
@@ -2658,6 +2708,12 @@ static int ventoy_api_dud_add(struct mg_connection *conn, VTOY_JSON *json)
...
@@ -2658,6 +2708,12 @@ static int ventoy_api_dud_add(struct mg_connection *conn, VTOY_JSON *json)
path
=
VTOY_JSON_STR_EX
(
"path"
);
path
=
VTOY_JSON_STR_EX
(
"path"
);
if
(
path
&&
array
)
if
(
path
&&
array
)
{
{
if
(
ventoy_is_real_exist_common
(
path
,
data
->
list
,
dud_node
))
{
ventoy_json_result
(
conn
,
VTOY_JSON_DUPLICATE
);
return
0
;
}
node
=
zalloc
(
sizeof
(
dud_node
));
node
=
zalloc
(
sizeof
(
dud_node
));
if
(
node
)
if
(
node
)
{
{
...
@@ -3013,6 +3069,12 @@ static int ventoy_api_auto_install_add(struct mg_connection *conn, VTOY_JSON *js
...
@@ -3013,6 +3069,12 @@ static int ventoy_api_auto_install_add(struct mg_connection *conn, VTOY_JSON *js
path
=
VTOY_JSON_STR_EX
(
"path"
);
path
=
VTOY_JSON_STR_EX
(
"path"
);
if
(
path
&&
array
)
if
(
path
&&
array
)
{
{
if
(
ventoy_is_real_exist_common
(
path
,
data
->
list
,
auto_install_node
))
{
ventoy_json_result
(
conn
,
VTOY_JSON_DUPLICATE
);
return
0
;
}
node
=
zalloc
(
sizeof
(
auto_install_node
));
node
=
zalloc
(
sizeof
(
auto_install_node
));
if
(
node
)
if
(
node
)
{
{
...
@@ -3355,6 +3417,12 @@ static int ventoy_api_persistence_add(struct mg_connection *conn, VTOY_JSON *jso
...
@@ -3355,6 +3417,12 @@ static int ventoy_api_persistence_add(struct mg_connection *conn, VTOY_JSON *jso
path
=
VTOY_JSON_STR_EX
(
"path"
);
path
=
VTOY_JSON_STR_EX
(
"path"
);
if
(
path
&&
array
)
if
(
path
&&
array
)
{
{
if
(
ventoy_is_real_exist_common
(
path
,
data
->
list
,
persistence_node
))
{
ventoy_json_result
(
conn
,
VTOY_JSON_DUPLICATE
);
return
0
;
}
node
=
zalloc
(
sizeof
(
persistence_node
));
node
=
zalloc
(
sizeof
(
persistence_node
));
if
(
node
)
if
(
node
)
{
{
...
@@ -3648,6 +3716,12 @@ static int ventoy_api_injection_add(struct mg_connection *conn, VTOY_JSON *json)
...
@@ -3648,6 +3716,12 @@ static int ventoy_api_injection_add(struct mg_connection *conn, VTOY_JSON *json)
archive
=
VTOY_JSON_STR_EX
(
"archive"
);
archive
=
VTOY_JSON_STR_EX
(
"archive"
);
if
(
path
&&
archive
)
if
(
path
&&
archive
)
{
{
if
(
ventoy_is_real_exist_common
(
path
,
data
->
list
,
injection_node
))
{
ventoy_json_result
(
conn
,
VTOY_JSON_DUPLICATE
);
return
0
;
}
node
=
zalloc
(
sizeof
(
injection_node
));
node
=
zalloc
(
sizeof
(
injection_node
));
if
(
node
)
if
(
node
)
{
{
...
...
Plugson/vs/VentoyPlugson/Release/VentoyPlugson.exe
View file @
3e75b2df
No preview for this file type
Plugson/vs/VentoyPlugson/x64/Release/VentoyPlugson_X64.exe
View file @
3e75b2df
No preview for this file type
Plugson/www/buildtime
View file @
3e75b2df
20221220 18:30:51
20221221 12:11:59
\ No newline at end of file
\ No newline at end of file
Plugson/www/index.html
View file @
3e75b2df
...
@@ -757,7 +757,7 @@
...
@@ -757,7 +757,7 @@
<footer
class=
"main-footer"
>
<footer
class=
"main-footer"
>
<div
class=
"pull-right hidden-xs"
>
<div
class=
"pull-right hidden-xs"
>
<b
id=
"plugson_build_date"
>
2022122
0
1
9:41:37
</b>
<b
id=
"plugson_build_date"
>
2022122
1
1
2:11:59
</b>
</div>
</div>
<strong><a
href=
"https://www.ventoy.net"
target=
"_blank"
>
https://www.ventoy.net
</a></strong>
<strong><a
href=
"https://www.ventoy.net"
target=
"_blank"
>
https://www.ventoy.net
</a></strong>
</footer>
</footer>
...
@@ -777,10 +777,10 @@
...
@@ -777,10 +777,10 @@
<script
src=
"/static/js/jQuery-2.1.4.min.js"
></script>
<script
src=
"/static/js/jQuery-2.1.4.min.js"
></script>
<!-- jquery validate -->
<!-- jquery validate -->
<script
src=
"/static/js/jquery.validate.min.js"
></script>
<script
src=
"/static/js/jquery.validate.min.js"
></script>
<script
src=
"/static/js/jquery.validate.vtoymethods.js?v=10
2
"
></script>
<script
src=
"/static/js/jquery.validate.vtoymethods.js?v=10
3
"
></script>
<script
src=
"/static/js/jquery.vtoy.alert.js?v=10
2
"
></script>
<script
src=
"/static/js/jquery.vtoy.alert.js?v=10
3
"
></script>
<script
src=
"/static/js/vtoy.js?v=10
2
"
></script>
<script
src=
"/static/js/vtoy.js?v=10
3
"
></script>
<script
src=
"/static/js/md5.min.js"
></script>
<script
src=
"/static/js/md5.min.js"
></script>
<!-- Bootstrap 3.3.5 -->
<!-- Bootstrap 3.3.5 -->
...
...
Plugson/www/plugson_auto_install.html
View file @
3e75b2df
...
@@ -359,9 +359,13 @@
...
@@ -359,9 +359,13 @@
template
:
call_array
,
template
:
call_array
,
type
:
type
type
:
type
},
function
(
e
)
{
},
function
(
e
)
{
list
.
push
(
data
);
if
(
e
.
result
===
'
success
'
)
{
FillAutoInsTable
(
list
);
list
.
push
(
data
);
Message
.
success
(
g_vtoy_cur_language
.
STR_SAVE_SUCCESS
);
FillAutoInsTable
(
list
);
Message
.
success
(
g_vtoy_cur_language
.
STR_SAVE_SUCCESS
);
}
else
if
(
e
.
result
===
'
duplicate
'
)
{
Message
.
error
(
g_vtoy_cur_language
.
STR_DUPLICATE_PATH
);
}
});
});
}
}
...
...
Plugson/www/plugson_auto_memdisk.html
View file @
3e75b2df
...
@@ -131,9 +131,13 @@
...
@@ -131,9 +131,13 @@
index
:
current_tab_index
,
index
:
current_tab_index
,
path
:
data
.
path
,
path
:
data
.
path
,
},
function
(
e
)
{
},
function
(
e
)
{
list
.
push
(
data
);
if
(
e
.
result
===
'
success
'
)
{
FillMemdiskTable
(
list
);
list
.
push
(
data
);
Message
.
success
(
g_vtoy_cur_language
.
STR_SAVE_SUCCESS
);
FillMemdiskTable
(
list
);
Message
.
success
(
g_vtoy_cur_language
.
STR_SAVE_SUCCESS
);
}
else
if
(
e
.
result
===
'
duplicate
'
)
{
Message
.
error
(
g_vtoy_cur_language
.
STR_DUPLICATE_PATH
);
}
});
});
}
}
...
...
Plugson/www/plugson_dud.html
View file @
3e75b2df
...
@@ -203,9 +203,13 @@
...
@@ -203,9 +203,13 @@
dud
:
call_array
,
dud
:
call_array
,
type
:
type
type
:
type
},
function
(
e
)
{
},
function
(
e
)
{
list
.
push
(
data
);
if
(
e
.
result
===
'
success
'
)
{
FillDudTable
(
list
);
list
.
push
(
data
);
Message
.
success
(
g_vtoy_cur_language
.
STR_SAVE_SUCCESS
);
FillDudTable
(
list
);
Message
.
success
(
g_vtoy_cur_language
.
STR_SAVE_SUCCESS
);
}
else
if
(
e
.
result
===
'
duplicate
'
)
{
Message
.
error
(
g_vtoy_cur_language
.
STR_DUPLICATE_PATH
);
}
});
});
}
}
...
...
Plugson/www/plugson_image_list.html
View file @
3e75b2df
...
@@ -221,9 +221,13 @@
...
@@ -221,9 +221,13 @@
index
:
current_tab_index
,
index
:
current_tab_index
,
path
:
data
.
path
,
path
:
data
.
path
,
},
function
(
e
)
{
},
function
(
e
)
{
list
.
push
(
data
);
if
(
e
.
result
===
'
success
'
)
{
FillImageListTable
(
list
);
list
.
push
(
data
);
Message
.
success
(
g_vtoy_cur_language
.
STR_SAVE_SUCCESS
);
FillImageListTable
(
list
);
Message
.
success
(
g_vtoy_cur_language
.
STR_SAVE_SUCCESS
);
}
else
if
(
e
.
result
===
'
duplicate
'
)
{
Message
.
error
(
g_vtoy_cur_language
.
STR_DUPLICATE_PATH
);
}
});
});
}
}
...
...
Plugson/www/plugson_injection.html
View file @
3e75b2df
...
@@ -158,9 +158,13 @@
...
@@ -158,9 +158,13 @@
archive
:
data
.
archive
,
archive
:
data
.
archive
,
type
:
type
type
:
type
},
function
(
e
)
{
},
function
(
e
)
{
list
.
push
(
data
);
if
(
e
.
result
===
'
success
'
)
{
FillInjectionTable
(
list
);
list
.
push
(
data
);
Message
.
success
(
g_vtoy_cur_language
.
STR_SAVE_SUCCESS
);
FillInjectionTable
(
list
);
Message
.
success
(
g_vtoy_cur_language
.
STR_SAVE_SUCCESS
);
}
else
if
(
e
.
result
===
'
duplicate
'
)
{
Message
.
error
(
g_vtoy_cur_language
.
STR_DUPLICATE_PATH
);
}
});
});
}
}
...
...
Plugson/www/plugson_menu_alias.html
View file @
3e75b2df
...
@@ -152,9 +152,13 @@
...
@@ -152,9 +152,13 @@
alias
:
data
.
alias
,
alias
:
data
.
alias
,
type
:
type
type
:
type
},
function
(
e
)
{
},
function
(
e
)
{
list
.
push
(
data
);
if
(
e
.
result
===
'
success
'
)
{
FillAliasTable
(
list
);
list
.
push
(
data
);
Message
.
success
(
g_vtoy_cur_language
.
STR_SAVE_SUCCESS
);
FillAliasTable
(
list
);
Message
.
success
(
g_vtoy_cur_language
.
STR_SAVE_SUCCESS
);
}
else
if
(
e
.
result
===
'
duplicate
'
)
{
Message
.
error
(
g_vtoy_cur_language
.
STR_DUPLICATE_PATH
);
}
});
});
}
}
...
...
Plugson/www/plugson_menu_class.html
View file @
3e75b2df
...
@@ -178,9 +178,13 @@
...
@@ -178,9 +178,13 @@
class
:
data
.
class
,
class
:
data
.
class
,
type
:
type
type
:
type
},
function
(
e
)
{
},
function
(
e
)
{
list
.
push
(
data
);
if
(
e
.
result
===
'
success
'
)
{
FillClassTable
(
list
);
list
.
push
(
data
);
Message
.
success
(
g_vtoy_cur_language
.
STR_SAVE_SUCCESS
);
FillClassTable
(
list
);
Message
.
success
(
g_vtoy_cur_language
.
STR_SAVE_SUCCESS
);
}
else
if
(
e
.
result
===
'
duplicate
'
)
{
Message
.
error
(
g_vtoy_cur_language
.
STR_DUPLICATE_PATH
);
}
});
});
}
}
...
...
Plugson/www/plugson_menu_tip.html
View file @
3e75b2df
...
@@ -244,9 +244,13 @@
...
@@ -244,9 +244,13 @@
tip
:
data
.
tip
,
tip
:
data
.
tip
,
type
:
type
type
:
type
},
function
(
e
)
{
},
function
(
e
)
{
list
.
push
(
data
);
if
(
e
.
result
===
'
success
'
)
{
FillTipTable
(
list
);
list
.
push
(
data
);
Message
.
success
(
g_vtoy_cur_language
.
STR_SAVE_SUCCESS
);
FillTipTable
(
list
);
Message
.
success
(
g_vtoy_cur_language
.
STR_SAVE_SUCCESS
);
}
else
if
(
e
.
result
===
'
duplicate
'
)
{
Message
.
error
(
g_vtoy_cur_language
.
STR_DUPLICATE_PATH
);
}
});
});
}
}
...
...
Plugson/www/plugson_password.html
View file @
3e75b2df
...
@@ -464,9 +464,13 @@ function VtoySetPassword(common, type, cb, data) {
...
@@ -464,9 +464,13 @@ function VtoySetPassword(common, type, cb, data) {
path
:
data
.
path
,
path
:
data
.
path
,
pwd
:
data
.
pwd
pwd
:
data
.
pwd
},
function
(
e
)
{
},
function
(
e
)
{
list
.
push
(
data
);
if
(
e
.
result
===
'
success
'
)
{
FillMenuPwdTable
(
list
);
list
.
push
(
data
);
Message
.
success
(
g_vtoy_cur_language
.
STR_SAVE_SUCCESS
);
FillMenuPwdTable
(
list
);
Message
.
success
(
g_vtoy_cur_language
.
STR_SAVE_SUCCESS
);
}
else
if
(
e
.
result
===
'
duplicate
'
)
{
Message
.
error
(
g_vtoy_cur_language
.
STR_DUPLICATE_PATH
);
}
});
});
}
}
...
...
Plugson/www/plugson_persistence.html
View file @
3e75b2df
...
@@ -358,9 +358,13 @@
...
@@ -358,9 +358,13 @@
backend
:
call_array
,
backend
:
call_array
,
type
:
type
type
:
type
},
function
(
e
)
{
},
function
(
e
)
{
list
.
push
(
data
);
if
(
e
.
result
===
'
success
'
)
{
FillPersistenceTable
(
list
);
list
.
push
(
data
);
Message
.
success
(
g_vtoy_cur_language
.
STR_SAVE_SUCCESS
);
FillPersistenceTable
(
list
);
Message
.
success
(
g_vtoy_cur_language
.
STR_SAVE_SUCCESS
);
}
else
if
(
e
.
result
===
'
duplicate
'
)
{
Message
.
error
(
g_vtoy_cur_language
.
STR_DUPLICATE_PATH
);
}
});
});
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment