List of commits:
Subject Hash Author Date (UTC)
Improved a little bit the mail reporting for admin 576f96d554b1e273391ac54404bf5f885325e5e8 Catalin(ux) M. BOIE 2020-03-03 19:25:17
Worker and builder big changes 90f596e4fd8fa291b1da831bce609b486c7a5875 Catalin(ux) M. BOIE 2020-01-06 13:31:20
Samples update (switch to systemd services for builder and worker) 8bfde1fb79778d024350bf5d75f076fb5e178512 Catalin(ux) M. BOIE 2020-01-06 12:50:21
builder: show queue in the web page 6cab7820b0bd2622afb77391a9e9515e0e837eef Catalin(ux) M. BOIE 2020-01-06 12:49:26
totp: Allow also years for 'val' command d666df0cec948f938469b9eb12a1b981cb41cfa1 Catalin(ux) M. BOIE 2020-01-04 14:39:33
worker: change git clone parameters because we could not clone 8eb2727ac17e12e148f39c72e1f4bd1e31319b33 Catalin(ux) M. BOIE 2019-12-19 03:34:26
Added a TODO for worker 492fb4546829f53adacd74c4647c3634f7c37065 Catalin(ux) M. BOIE 2019-12-18 22:23:12
worker improvements 4387b00291b5848aa08c303f9d62a126a6806a35 Catalin(ux) M. BOIE 2019-12-18 22:17:23
.spec: require tidy for building the tests c0deab2ce24388c91d2bc2e96338a260c9657dd6 Catalin(ux) M. BOIE 2019-12-18 22:15:29
nginx configuration update 015c9404229f2ff7fb91cc57ab21289f01878334 Catalin(ux) M. BOIE 2019-12-18 21:55:13
Added Business model to comparison c62d466580aca0ff3371f3ba369959c7ef7631d0 Catalin(ux) M. BOIE 2019-11-21 20:44:16
CSS small correction ded9ef6bce5bebfa815bc7ae5733bc8e0810af3b Catalin(ux) M. BOIE 2019-11-21 18:20:41
Added LDAP/qrencode to features/thanks pages d269d59787f61045f5831c6985899c28da08ebeb Catalin(ux) M. BOIE 2019-11-21 18:20:22
Invalidate slave table cache when updating the db structure, else new slaves will not be created 8e1bf7feeb87818179e7152a356e0f408da706f2 Catalin(ux) M. BOIE 2019-11-19 19:33:15
docker: push also the latest label a72e2e74355d772ae45bb99798ad47082390943c Catalin(ux) M. BOIE 2019-11-19 19:32:11
More statistics changes (load, cpu, mem) e7f38e72405a227788a7011ea17dd57d0d4de67c Catalin(ux) M. BOIE 2019-11-19 19:31:24
Cosmetic 0a0b258e8993cb5035e018b049018ac41b99eb01 Catalin(ux) M. BOIE 2019-11-17 11:09:56
Insist on respecting the privacy b464bcc35476ffa23a83beaf956e8f7b15163d7c Catalin(ux) M. BOIE 2019-11-17 11:03:36
Remove PayPal donation because of legal uncertainly cd938af4c5cdbd81190e535973588dee6b697d34 Catalin(ux) M. BOIE 2019-11-17 11:03:07
nginx sample update 1f9eb2d293e91139f397cc45cb206d8994471134 Catalin(ux) M. BOIE 2019-11-17 09:10:02
Commit 576f96d554b1e273391ac54404bf5f885325e5e8 - Improved a little bit the mail reporting for admin
Author: Catalin(ux) M. BOIE
Author date (UTC): 2020-03-03 19:25
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2020-03-03 19:25
Parent(s): 90f596e4fd8fa291b1da831bce609b486c7a5875
Signer:
Signing key:
Signing status: N
Tree: 4232104be1becaacb40448210cc266caf50b28a0
File Lines added Lines deleted
inc/admin.inc.php 17 24
File inc/admin.inc.php changed (mode: 100644) (index 87c2bf2..76e750f)
... ... function rg_admin_report1($db, $rg)
349 349 'apikeys' => 'api keys', 'apikeys' => 'api keys',
350 350 'workers' => 'workers'); 'workers' => 'workers');
351 351 $total_yesterday_changes = 0; $total_yesterday_changes = 0;
352 $body .= "\n" . 'Yesterday' . "\t" . 'Total' . "\t" . 'Category' . "\n";
352 353 foreach ($list as $table => $text) { foreach ($list as $table => $text) {
353 354 // Yesterday // Yesterday
354 355 $sql = "SELECT COUNT(*) AS count FROM " . $table $sql = "SELECT COUNT(*) AS count FROM " . $table
 
... ... function rg_admin_report1($db, $rg)
375 376 rg_sql_free_result($res); rg_sql_free_result($res);
376 377 } }
377 378
378 $body .= "\n" . $yesterday . "\t" . $total
379 . "\t" . "yesterday / total " . $text;
379 $body .= $yesterday . "\t" . $total . "\t" . $text . "\n";
380 380 } }
381 $body .= "\n";
382 381
382 $body .= "\nYesterday users:";
383 383 $sql = 'SELECT username, realname, email FROM users' $sql = 'SELECT username, realname, email FROM users'
384 384 . ' WHERE itime >= ' . $y_start . ' WHERE itime >= ' . $y_start
385 385 . ' AND itime <= ' . $y_end; . ' AND itime <= ' . $y_end;
386 386 $res = rg_sql_query($db, $sql); $res = rg_sql_query($db, $sql);
387 387 if ($res === FALSE) { if ($res === FALSE) {
388 $users = "ERR";
388 $body .= ' ERR' . "\n";
389 389 } else { } else {
390 $users = 0;
391 $list = '';
390 $body .= "\n";
392 391 while (($row = rg_sql_fetch_array($res))) { while (($row = rg_sql_fetch_array($res))) {
393 $users++;
394 $list .= "\t" . $row['username']
395 . "\t" . $row['realname']
396 . "\t" . $row['email']
392 $body .= ' ' . $row['username']
393 . ' - ' . $row['realname']
394 . ' - ' . $row['email']
397 395 . "\n"; . "\n";
398 396 } }
399 if ($users)
400 $body .= "\nYesterday users (" . $users . "):\n"
401 . $list;
402 397 rg_sql_free_result($res); rg_sql_free_result($res);
403 398 } }
404 399
405 $sql = "SELECT name, description, public FROM repos"
406 . " WHERE itime >= $y_start"
407 . " AND itime <= $y_end";
400 $body .= "\nYesterday repos:";
401 $sql = 'SELECT name, uid, description, public FROM repos'
402 . ' WHERE itime >= ' . $y_start
403 . ' AND itime <= ' . $y_end;
408 404 $res = rg_sql_query($db, $sql); $res = rg_sql_query($db, $sql);
409 405 if ($res === FALSE) { if ($res === FALSE) {
410 $repos = "ERR";
406 $body .= ' ERR' . "\n";
411 407 } else { } else {
412 $repos = 0;
413 $list = '';
408 $body .= "\n";
414 409 while (($row = rg_sql_fetch_array($res))) { while (($row = rg_sql_fetch_array($res))) {
415 $repos++;
416 $desc = substr($row['description'], 0, 50) . '...';
410 $u = rg_user_nice($db, $row['uid']);
411 $desc = mb_substr($row['description'], 0, 50) . '...';
417 412 $desc = preg_replace('/\s/', ' ', $desc); $desc = preg_replace('/\s/', ' ', $desc);
418 $list .= "\t" . $row['name'] . " - " . $desc
413 $body .= ' ' . $row['name'] . ' - ' . $u . ' - ' . $desc
419 414 . ($row['public'] == 1 ? " (public)" : " (private)") . "\n"; . ($row['public'] == 1 ? " (public)" : " (private)") . "\n";
420 415 } }
421 if ($repos)
422 $body .= "\nYesterday repos (" . $repos . "):\n" . $list;
423 416 rg_sql_free_result($res); rg_sql_free_result($res);
424 417 } }
425 418
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/catalinux/rocketgit

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/catalinux/rocketgit

Clone this repository using git:
git clone git://git.rocketgit.com/user/catalinux/rocketgit

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main