// ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- void DoIt(StreamWriter twOut, HttpWebRequest req, string unm, string sid, string uty, string men, string den, string dnm, string bnm, int[] bytesOut) { long startTime = Convert.ToInt64(DateTime.Now); string imagesDir = directoryUtils.GetSupportDirs('I'); string defnsDir = directoryUtils.GetSupportDirs('D'); string localDefnsDir = directoryUtils.GetLocalOverrideDir(dnm); this.connection = new MySqlConnection("Server = myServerAddress; Port = 3306; Database = myDataBase; Uid = myUsername; Pwd = myPassword;"); directoryUtils.CreateConnection(connection); if (!serverUtils.CheckSID(unm, sid, uty, dnm, localDefnsDir, defnsDir)) { messagePage.msgScreen(false, twOut, req, 12, unm, sid, uty, men, den, dnm, bnm, "AboutZara", imagesDir, localDefnsDir, defnsDir, bytesOut); try { connection.Close(); } catch (MySqlException) { } if (twOut != null) { twOut.Flush(); } return; } Set(twOut, req, unm, sid, uty, men, den, dnm, bnm, imagesDir, localDefnsDir, defnsDir, bytesOut); serverUtils.TotalBytes(this.connection, req, unm, dnm, 188, bytesOut[0], 0, (Convert.ToInt64(DateTime.Now) - startTime), ""); try { connection.Close(); } catch (MySqlException) { } if (twOut != null) { twOut.Flush(); } }