List of commits:
Subject Hash Author Date (UTC)
apikeys: we need to init some vars 84bfd35c59c1e8458be7250aff6c1059afb1f204 Catalin(ux) M. BOIE 2016-08-28 05:25:44
Spell checkings and ommisions 1e41a427ee47b128cd9385c3ed27565c67d27029 Catalin(ux) M. BOIE 2016-08-28 05:17:11
rg_exec function permits stdout streaming 37e9c670be82c66970a3972aee87af34553eec98 Catalin(ux) M. BOIE 2016-08-28 05:15:26
Added tutorials infrastructure and the first tutorial about CI 3fe5fc6d3dafa859e4e20c853f355dec279630b0 Catalin(ux) M. BOIE 2016-08-28 05:12:09
Spell checking c5c8cbc69ec8e33b623f49e5417ef85073d5aebe Catalin(ux) M. BOIE 2016-08-28 05:07:13
Fix a bug that prevented the log function to log invalid UTF-8 chars 3a5d9efe50b391c4b5f64a879e64d3203ba66ef0 Catalin(ux) M. BOIE 2016-07-31 04:40:12
rg_exec accepts a second para: data to be sent as stdin 71d2b273ae592e3c6e6a77e7b19df3f94aa1e9e9 Catalin(ux) M. BOIE 2016-07-31 03:05:23
Simplify event processing by passing full 'ui'; fixed 'confirmed' filed usage cbb6f8877db547d55b7b86e0fe5c41519d6c8b65 Catalin(ux) M. BOIE 2016-07-14 05:08:51
Fixed the unit tests (minor) 0e9cfc3911aba7119bb57140ecfa51ad6e3983bf Catalin(ux) M. BOIE 2016-07-14 05:05:37
Fixed e-mail confirmation logic. dd5b4be2e8e49aa612ddf7557e8ef0b1e0268822 Catalin(ux) M. BOIE 2016-07-11 21:09:19
Do more tests and resync some with the reality db9bb136ff176006cbb8f8848309b8adbf98d630 Catalin(ux) M. BOIE 2016-07-11 04:07:38
Improved user cache to not have null elements in JSON d6b75a2cc4830cfb8dfb92e911f1e5a41c2023bc Catalin(ux) M. BOIE 2016-07-11 04:06:25
Allow rights to have numbers and _ in name 4f5c38389bc98e2dcb60d36359917c33820e5779 Catalin(ux) M. BOIE 2016-07-11 04:05:40
Allow strange chars in cache names 00b05d99d3d3cf0229249718d2482af40f063972 Catalin(ux) M. BOIE 2016-07-11 04:04:08
Small improvements to builder and worker 08f9bc668f7f192af61868bebd644bea64b6aedd Catalin(ux) M. BOIE 2016-07-11 04:01:47
SELinux improvements to support the builder a2b52360b43be53786ee5d68c9fcb2db14f29c0c Catalin(ux) M. BOIE 2016-07-11 04:00:57
Document docker on Download web section 5d4ece50d6b4dc3d4902afd9264a45834ceb3592 Catalin(ux) M. BOIE 2016-07-11 03:54:31
Doc: restore context for rc.local eb5fa1cab84737e3440cfbca147d50859b8f9a53 Catalin(ux) M. BOIE 2016-07-07 04:09:23
Fixed small bug preventing e-mail to show in report 26d884b3a332f3c3b241c194912b9653749a9427 Catalin(ux) M. BOIE 2016-07-07 03:37:23
Do not clobber the cron file 5c68384676d9b8087255dda3b62e3588fc50e6c7 Catalin(ux) M. BOIE 2016-07-06 22:03:58
Commit 84bfd35c59c1e8458be7250aff6c1059afb1f204 - apikeys: we need to init some vars
Author: Catalin(ux) M. BOIE
Author date (UTC): 2016-08-28 05:25
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2016-08-28 05:25
Parent(s): 1e41a427ee47b128cd9385c3ed27565c67d27029
Signer:
Signing key:
Signing status: N
Tree: d1f57ac36a2fd9f87235dadd0530cdb04959164f
File Lines added Lines deleted
inc/apikeys.inc.php 6 3
File inc/apikeys.inc.php changed (mode: 100644) (index c0b0038..35f78f7)
... ... function rg_ak_add($db, $ui, $key, $name)
165 165 'key' => $key, 'key' => $key,
166 166 'name' => $name, 'name' => $name,
167 167 'count' => 0, 'count' => 0,
168 'first_use' => 0);
168 'first_use' => 0,
169 'last_use' => 0,
170 'last_ip' => '',
171 'last_cmd' => '');
169 172 $sql = 'INSERT INTO apikeys (itime, uid, key, name)' $sql = 'INSERT INTO apikeys (itime, uid, key, name)'
170 173 . ' VALUES (@@itime@@, @@uid@@, @@key@@, @@name@@)' . ' VALUES (@@itime@@, @@uid@@, @@key@@, @@name@@)'
171 174 . ' RETURNING key_id'; . ' RETURNING key_id';
 
... ... function rg_ak_update_use($db, $uid, $key_id, $ip, $cmd)
251 254 $params = array( $params = array(
252 255 'now' => $now, 'now' => $now,
253 256 'key_id' => $key_id, 'key_id' => $key_id,
254 'ip' => $ip,
257 'last_ip' => $ip,
255 258 'last_cmd' => $cmd); 'last_cmd' => $cmd);
256 259
257 260 if ($update_first_use) { if ($update_first_use) {
 
... ... function rg_ak_update_use($db, $uid, $key_id, $ip, $cmd)
271 274
272 275 if ($update_last_use) { if ($update_last_use) {
273 276 $sql = 'UPDATE apikeys SET last_use = @@now@@' $sql = 'UPDATE apikeys SET last_use = @@now@@'
274 . ', last_ip = @@ip@@'
277 . ', last_ip = @@last_ip@@'
275 278 . ', last_cmd = @@last_cmd@@' . ', last_cmd = @@last_cmd@@'
276 279 . ', count = count + 1' . ', count = count + 1'
277 280 . ' WHERE key_id = @@key_id@@'; . ' WHERE key_id = @@key_id@@';
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