- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
private string GetConnectionString()
{
string connString = String.Empty;
string location = Assembly.GetExecutingAssembly().Location;
int pos = location.LastIndexOf('\\');
location = location.Remove(pos);
pos = location.LastIndexOf('\\');
location = location.Remove(pos);
pos = location.LastIndexOf('\\');
location = location.Remove(pos);
location += @"\server\conf\config.conf";
using (StreamReader sr = File.OpenText(location))
{
string s = "";
while ((s = sr.ReadLine()) != null)
{
connString += s;
}
}
connString += "database = ***; charset = utf8;";
return connString;
}
guest8 09.04.2019 10:36 # −999
guest8 09.04.2019 10:44 # −999
guest8 09.04.2019 17:52 # −999
guest8 09.04.2019 17:54 # −999