aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewernetwork.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llviewernetwork.cpp')
-rw-r--r--linden/indra/newview/llviewernetwork.cpp97
1 files changed, 24 insertions, 73 deletions
diff --git a/linden/indra/newview/llviewernetwork.cpp b/linden/indra/newview/llviewernetwork.cpp
index 13d432a..c8cffcf 100644
--- a/linden/indra/newview/llviewernetwork.cpp
+++ b/linden/indra/newview/llviewernetwork.cpp
@@ -38,6 +38,7 @@
38struct LLGridData 38struct LLGridData
39{ 39{
40 const char* mLabel; 40 const char* mLabel;
41 const char* mCodeName;
41 const char* mName; 42 const char* mName;
42 const char* mLoginURI; 43 const char* mLoginURI;
43 const char* mHelperURI; 44 const char* mHelperURI;
@@ -45,83 +46,23 @@ struct LLGridData
45 46
46static LLGridData gGridInfo[GRID_INFO_COUNT] = 47static LLGridData gGridInfo[GRID_INFO_COUNT] =
47{ 48{
48 { "None", "", "", ""}, 49 { "None", "", "", "", "" },
49 { "Aditi", 50 { "SL Main Grid",
50 "util.aditi.lindenlab.com", 51 "Agni",
51 "https://login.aditi.lindenlab.com/cgi-bin/login.cgi",
52 "http://aditi-secondlife.webdev.lindenlab.com/helpers/" },
53 { "Agni",
54 "util.agni.lindenlab.com", 52 "util.agni.lindenlab.com",
55 "https://login.agni.lindenlab.com/cgi-bin/login.cgi", 53 "https://login.agni.lindenlab.com/cgi-bin/login.cgi",
56 "https://secondlife.com/helpers/" }, 54 "https://secondlife.com/helpers/" },
57 { "Aruna", 55 { "SL Beta Grid",
58 "util.aruna.lindenlab.com", 56 "Aditi",
59 "https://login.aruna.lindenlab.com/cgi-bin/login.cgi", 57 "util.aditi.lindenlab.com",
60 "http://aruna-secondlife.webdev.lindenlab.com/helpers/" }, 58 "https://login.aditi.lindenlab.com/cgi-bin/login.cgi",
61 { "Damballah", 59 "http://aditi-secondlife.webdev.lindenlab.com/helpers/" },
62 "util.damballah.lindenlab.com", 60 { "Local OpenSim",
63 "https://login.damballah.lindenlab.com/cgi-bin/login.cgi", 61 "",
64 "http://damballah-secondlife.webdev.lindenlab.com/helpers/" }, 62 "localhost",
65 { "Durga", 63 "http://127.0.0.1:9000",
66 "util.durga.lindenlab.com",
67 "https://login.durga.lindenlab.com/cgi-bin/login.cgi",
68 "http://durga-secondlife.webdev.lindenlab.com/helpers/" },
69 { "Ganga",
70 "util.ganga.lindenlab.com",
71 "https://login.ganga.lindenlab.com/cgi-bin/login.cgi",
72 "http://ganga-secondlife.webdev.lindenlab.com/helpers/" },
73 { "Mitra",
74 "util.mitra.lindenlab.com",
75 "https://login.mitra.lindenlab.com/cgi-bin/login.cgi",
76 "http://mitra-secondlife.webdev.lindenlab.com/helpers/" },
77 { "Mohini",
78 "util.mohini.lindenlab.com",
79 "https://login.mohini.lindenlab.com/cgi-bin/login.cgi",
80 "http://mohini-secondlife.webdev.lindenlab.com/helpers/" },
81 { "Nandi",
82 "util.nandi.lindenlab.com",
83 "https://login.nandi.lindenlab.com/cgi-bin/login.cgi",
84 "http://nandi-secondlife.webdev.lindenlab.com/helpers/" },
85 { "Radha",
86 "util.radha.lindenlab.com",
87 "https://login.radha.lindenlab.com/cgi-bin/login.cgi",
88 "http://radha-secondlife.webdev.lindenlab.com/helpers/" },
89 { "Ravi",
90 "util.ravi.lindenlab.com",
91 "https://login.ravi.lindenlab.com/cgi-bin/login.cgi",
92 "http://ravi-secondlife.webdev.lindenlab.com/helpers/" },
93 { "Siva",
94 "util.siva.lindenlab.com",
95 "https://login.siva.lindenlab.com/cgi-bin/login.cgi",
96 "http://siva-secondlife.webdev.lindenlab.com/helpers/" },
97 { "Shakti",
98 "util.shakti.lindenlab.com",
99 "https://login.shakti.lindenlab.com/cgi-bin/login.cgi",
100 "http://shakti-secondlife.webdev.lindenlab.com/helpers/" },
101 { "Soma",
102 "util.soma.lindenlab.com",
103 "https://login.soma.lindenlab.com/cgi-bin/login.cgi",
104 "http://soma-secondlife.webdev.lindenlab.com/helpers/" },
105 { "Uma",
106 "util.uma.lindenlab.com",
107 "https://login.uma.lindenlab.com/cgi-bin/login.cgi",
108 "http://uma-secondlife.webdev.lindenlab.com/helpers/" },
109 { "Vaak",
110 "util.vaak.lindenlab.com",
111 "https://login.vaak.lindenlab.com/cgi-bin/login.cgi",
112 "http://vaak-secondlife.webdev.lindenlab.com/helpers/" },
113 { "Yami",
114 "util.yami.lindenlab.com",
115 "https://login.yami.lindenlab.com/cgi-bin/login.cgi",
116 "http://yami-secondlife.webdev.lindenlab.com/helpers/" },
117 { "Local",
118 "localhost",
119 "https://login.dmz.lindenlab.com/cgi-bin/login.cgi",
120 "" }, 64 "" },
121 { "Other", 65 { "Other", "", "", "", "" }
122 "",
123 "https://login.dmz.lindenlab.com/cgi-bin/login.cgi",
124 "" }
125}; 66};
126 67
127const EGridInfo DEFAULT_GRID_CHOICE = GRID_INFO_AGNI; 68const EGridInfo DEFAULT_GRID_CHOICE = GRID_INFO_AGNI;
@@ -220,6 +161,16 @@ std::string LLViewerLogin::getGridLabel() const
220 return mGridName; 161 return mGridName;
221} 162}
222 163
164std::string LLViewerLogin::getGridCodeName() const
165{
166 if( gGridInfo[mGridChoice].mCodeName == "" )
167 {
168 return getGridLabel();
169 }
170
171 return gGridInfo[mGridChoice].mCodeName;
172}
173
223std::string LLViewerLogin::getKnownGridLabel(EGridInfo grid_index) const 174std::string LLViewerLogin::getKnownGridLabel(EGridInfo grid_index) const
224{ 175{
225 if(grid_index > GRID_INFO_NONE && grid_index < GRID_INFO_OTHER) 176 if(grid_index > GRID_INFO_NONE && grid_index < GRID_INFO_OTHER)