Article: - rename the deployment section to "Развёртывание через config/services.ini" - keep only first-level sections in the table of contents, drop the archive entry - add the warning block and the archive table in the series format - rename screenshots to meaningful English names Publishing helpers (docs/publish): - build_article_html.py builds the HTML fragment for the site editor with anchored headings, linked table of contents, captions and code blocks - code/ holds each code block as a separate file, description.txt the short description Code: - static/script.js: bump version to 0.3.0 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
int RegisterTerminal()
| |
{
| |
const string folder = InstanceFolder();
| |
const string path = TerminalInfoString(TERMINAL_DATA_PATH);
| |
const string company = TerminalInfoString(TERMINAL_COMPANY);
| |
const int build = (int)TerminalInfoInteger(TERMINAL_BUILD);
| |
const long now = (long)TimeGMT();
| |
| |
const string sql =
| |
"INSERT INTO terminals (folder, path, company, build, first_seen, last_seen) "
| |
"VALUES (?1, ?2, ?3, ?4, ?5, ?5) "
| |
"ON CONFLICT(folder) DO UPDATE SET "
| |
" path = excluded.path,"
| |
" company = excluded.company,"
| |
" build = excluded.build,"
| |
" last_seen = excluded.last_seen";
| |
// ... DatabasePrepare / DatabaseBind / DatabaseRead, см. полный листинг
| |
}
|