Mercurial > mercurial > hgweb_rsearcher.cgi
comparison src/auth.cpp @ 9:ae89ce4793d8
add satellite-view.
| author | pyon@macmini |
|---|---|
| date | Wed, 31 Oct 2018 20:10:29 +0900 |
| parents | 82f9af6aa7e4 |
| children |
comparison
equal
deleted
inserted
replaced
| 8:82f9af6aa7e4 | 9:ae89ce4793d8 |
|---|---|
| 1 // Filename : auth.cpp | 1 // Filename : auth.cpp |
| 2 // Last Change: 2018-10-29 月 09:09:57. | 2 // Last Change: 2018-10-31 水 10:57:25. |
| 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 /* | |
| 122 bool AuthDialog::GetDB( void ) | |
| 123 { // http get ( auth.db, hhs.db, index.db ) | |
| 124 wxArrayString args; | |
| 125 args.Add( wxT( "client.exe" ) ); | |
| 126 args.Add( wxT( "-u" ) ); | |
| 127 args.Add( m_server ); | |
| 128 wxExecute( wxJoin( args, ' ', '\\' ), wxEXEC_SYNC|wxEXEC_HIDE_CONSOLE ); | |
| 129 } | |
| 130 */ | |
| 131 | |
| 132 bool AuthDialog::LoadDB( void ) | 121 bool AuthDialog::LoadDB( void ) |
| 133 { | 122 { |
| 134 wxTextFile file; | 123 wxTextFile file; |
| 135 if ( !file.Open( wxT( "auth.db" ) ) ) return false; | 124 if ( !file.Open( wxT( "auth.db" ) ) ) return false; |
| 136 for ( int i = 0; i < file.GetLineCount(); i++ ) { | 125 for ( int i = 0; i < file.GetLineCount(); i++ ) { |
