Not Logged In
|
Login
|
Register
Home
|
News
|
Projects
|
Releases
Bugs
|
RFE
|
Repositories
|
Help
projects
/
xestiaab
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Label servers that can cause data loss as dangerous
[xestiaab/.git]
/
source
/
common
/
svrdlist.cpp
diff --git
a/source/common/svrblist.cpp
b/source/common/svrdlist.cpp
similarity index 60%
rename from
source/common/svrblist.cpp
rename to
source/common/svrdlist.cpp
index
9894b21
..
997c9c1
100644
(file)
--- a/
source/common/svrblist.cpp
+++ b/
source/common/svrdlist.cpp
@@
-1,4
+1,4
@@
-// svr
blist.cpp - Server Blackl
ist subroutines.
+// svr
dlist.cpp - Server Dangerous L
ist subroutines.
//
// (c) 2012-2015 Xestia Software Development.
//
//
// (c) 2012-2015 Xestia Software Development.
//
@@
-19,24
+19,24
@@
#include <wx/wx.h>
#include <wx/tokenzr.h>
#include <wx/wx.h>
#include <wx/tokenzr.h>
-bool Check
Blacklist(wxString S
erverAddress){
+bool Check
DangerousList(wxString s
erverAddress){
- // Check if the server address is on the
black
list.
+ // Check if the server address is on the
dangerous
list.
- wxString
ServerBlackl
ist = "google.com";
- wxString
B
ListHostname;
+ wxString
dangerousServerL
ist = "google.com";
+ wxString
dangerous
ListHostname;
- wxStringTokenizer
ServerBlacklistTkz(ServerBlackl
ist, wxT("|"));
+ wxStringTokenizer
dangerousServerTokens(dangerousServerL
ist, wxT("|"));
- while(
ServerBlacklistTkz
.HasMoreTokens()){
+ while(
dangerousServerTokens
.HasMoreTokens()){
-
BListHostname = ServerBlacklistTkz
.GetNextToken();
- if (
BListHostname == S
erverAddress){
- return
TRUE
;
+
dangerousListHostname = dangerousServerTokens
.GetNextToken();
+ if (
dangerousListHostname == s
erverAddress){
+ return
true
;
}
}
}
}
- return
FALSE
;
+ return
false
;
}
\ No newline at end of file
}
\ No newline at end of file
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software
Xestia Address Book
Xestia Calendar
Development
Xestia Gelforn
Everything else
About
News
Privacy Policy