comparison src/auth.cpp @ 8:82f9af6aa7e4

add net.cpp
author pyon@macmini
date Tue, 30 Oct 2018 17:26:02 +0900
parents 9a8b581c1993
children ae89ce4793d8
comparison
equal deleted inserted replaced
7:29829e98d510 8:82f9af6aa7e4
1 // Filename : auth.cpp 1 // Filename : auth.cpp
2 // Last Change: 2018-10-23 火 09:05:53. 2 // Last Change: 2018-10-29 月 09:09:57.
3 // 3 //
4 4
5 #include "id.h" 5 #include "id.h"
6 #include "auth.h" 6 #include "auth.h"
7 7
116 116
117 this->Centre( wxBOTH ); 117 this->Centre( wxBOTH );
118 m_textCtrlId->SetFocus(); 118 m_textCtrlId->SetFocus();
119 } 119 }
120 120
121 /*
121 bool AuthDialog::GetDB( void ) 122 bool AuthDialog::GetDB( void )
122 { // http get ( auth.db, hhs.db, index.db ) 123 { // http get ( auth.db, hhs.db, index.db )
123 wxArrayString args; 124 wxArrayString args;
124 args.Add( wxT( "client.exe" ) ); 125 args.Add( wxT( "client.exe" ) );
125 args.Add( wxT( "-u" ) ); 126 args.Add( wxT( "-u" ) );
126 args.Add( m_server ); 127 args.Add( m_server );
127 wxExecute( wxJoin( args, ' ', '\\' ), wxEXEC_SYNC|wxEXEC_HIDE_CONSOLE ); 128 wxExecute( wxJoin( args, ' ', '\\' ), wxEXEC_SYNC|wxEXEC_HIDE_CONSOLE );
128 } 129 }
130 */
129 131
130 bool AuthDialog::LoadDB( void ) 132 bool AuthDialog::LoadDB( void )
131 { 133 {
132 wxTextFile file; 134 wxTextFile file;
133 if ( !file.Open( wxT( "auth.db" ) ) ) return false; 135 if ( !file.Open( wxT( "auth.db" ) ) ) return false;