List of commits:
Subject Hash Author Date (UTC)
Let the user choose the e-mail, no defaults should be suggested 09450741613a407c09bb465bff8a3c19c565df9a Catalin(ux) M. BOIE 2015-12-02 18:12:08
Pass uid for all events; more fixes for unit tests 866e43baf739ae7072949559d1c7e089c086af76 Catalin(ux) M. BOIE 2015-11-19 19:28:26
404 http error was receive for showing blobs ending in .php or .html ff87d956360a86e88a751d4c391585c84bb1e132 Catalin(ux) M. BOIE 2015-11-18 20:32:50
When creating an array, last_bug_id is set now correctly f679840c7ac3879aae69f488c561a5bd73ce71f1 Catalin(ux) M. BOIE 2015-11-18 19:14:48
We allow empty description for bugs c5a1b4057963eac575cc3d0d4872c4519fea80b0 Catalin(ux) M. BOIE 2015-11-18 18:26:39
Show the repo # on main repo page c72f4d8627ab577a92c5531ed7afb9e55a6bfd1b Catalin(ux) M. BOIE 2015-11-18 18:25:00
Bumped version to 0.42 8e9fab68ff08040402c0aa25539d1e8b29258f7d Catalin(ux) M. BOIE 2015-11-18 18:14:40
Renamed the virtual machines files 040c9f3a87826a52713b3b5f48d19c83236f8aa8 Catalin(ux) M. BOIE 2015-11-18 18:13:57
Admin user must not confirm the account by e-mail 0a81a2824087d9dcd2d1981c860946fd49cc8bf7 Catalin(ux) M. BOIE 2015-11-18 18:04:26
Bump the version to 0.41 363368555480d4c79c13867805c59541fd59e37c Catalin(ux) M. BOIE 2015-11-18 16:37:16
Mostly debug signaling by cache 2cd13a1f01403ebe733ef64ff2446b93e2cd46af Catalin(ux) M. BOIE 2015-11-18 16:36:40
Only texts changes. 37b6e035a5027c99a8b21672cef5431673320892 Catalin(ux) M. BOIE 2015-11-17 17:58:52
webhooks fixes 422d74f1cd4133e73ceb3edbb7a7da6d48c102f2 Catalin(ux) M. BOIE 2015-11-17 15:53:10
Checkpoint: ip/user fixes for remote connections, some pull request fixes and unit test start c8ac332f2ffda6149048dd17eaef8ff2f2920650 Catalin(ux) M. BOIE 2015-11-07 05:30:04
Added webhooks c2b73a8e494c4c61ce2d3f0d4101f0836a5a0df6 Catalin(ux) M. BOIE 2015-10-29 03:55:44
Mostly totp fixes; all tests pass; css fixes b4e220bf8823cad220183930949e80a6ec7f2fb3 Catalin(ux) M. BOIE 2015-10-17 12:02:14
Correct some gramatical problems 9078444271ce3e4fa25cff60afdb4efa8741fa01 Catalin(ux) M. BOIE 2015-09-13 08:43:38
Added weeks for ssh IP validity 6a8679ab22c25fd60504d2b21d57e9f1e2aaa254 Catalin(ux) M. BOIE 2015-09-13 08:03:51
Do not on any event if the protocol match. Assume is stable now. 69912910f5c0bbddc73ced992d8b3a652a8ff526 Catalin(ux) M. BOIE 2015-09-11 05:06:16
Bump version to 0.40 89d2ee4c3cae790d05a8b853de8427298dcbb9e1 Catalin(ux) M. BOIE 2015-09-11 04:59:49
Commit 09450741613a407c09bb465bff8a3c19c565df9a - Let the user choose the e-mail, no defaults should be suggested
Author: Catalin(ux) M. BOIE
Author date (UTC): 2015-12-02 18:12
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2015-12-02 18:12
Parent(s): 866e43baf739ae7072949559d1c7e089c086af76
Signer:
Signing key:
Signing status: N
Tree: 4657fb9bcf3e58d87b82032f7ea2b423e8f36a8d
File Lines added Lines deleted
inc/admin.inc.php 43 27
File inc/admin.inc.php changed (mode: 100644) (index 2c98283..0ecfcd0)
... ... function rg_admin_invites_high_level($db, $rg)
190 190 */ */
191 191 function rg_init($db, $rg) function rg_init($db, $rg)
192 192 { {
193 global $rg_admin_name;
194 global $rg_admin_email;
195
196 193 rg_prof_start("rg_init"); rg_prof_start("rg_init");
197 194 rg_log_enter("rg_init"); rg_log_enter("rg_init");
198 195
 
... ... function rg_init($db, $rg)
201 198 $doit = rg_var_uint('doit'); $doit = rg_var_uint('doit');
202 199 if ($doit == 0) { if ($doit == 0) {
203 200 $rg['init']['username'] = 'admin'; $rg['init']['username'] = 'admin';
204 $rg['init']['realname'] = $rg_admin_name;
205 $rg['init']['email'] = $rg_admin_email;
201 $rg['init']['realname'] = '';
202 $rg['init']['email'] = '';
206 203 $rg['init']['pass'] = ''; $rg['init']['pass'] = '';
207 204 $rg['init']['pass2'] = ''; $rg['init']['pass2'] = '';
208 205 $rg['init']['session_time'] = 600; $rg['init']['session_time'] = 600;
 
... ... function rg_admin_report1($db, $rg)
322 319 $body .= "Report between " . gmdate('Y-m-d H:i:s', $y_start) $body .= "Report between " . gmdate('Y-m-d H:i:s', $y_start)
323 320 . " and " . gmdate('Y-m-d H:i:s', $y_end) . " UTC\n"; . " and " . gmdate('Y-m-d H:i:s', $y_end) . " UTC\n";
324 321
325 $sql = "SELECT COUNT(*) AS total FROM users";
326 $res = rg_sql_query($db, $sql);
327 if ($res === FALSE) {
328 $total_users = "ERR";
329 } else {
330 $row = rg_sql_fetch_array($res);
331 $total_users = $row['total'];
332 $body .= "\nTotal users: " . $total_users . "\n";
333 }
334 rg_sql_free_result($res);
322 $list = array(
323 'users' => 'users',
324 'repos' => 'repositories',
325 'bugs' => 'bugs',
326 'bug_notes' => 'bug notes',
327 'keys' => 'keys',
328 'login_tokens' => 'login tokens',
329 'scratch_codes' => 'scratch codes',
330 'merge_requests' => 'pull requests',
331 'webhooks' => 'webhooks',
332 'rights' => 'rights',
333 'events' => 'events');
334 foreach ($list as $table => $text) {
335 // Yesterday
336 $sql = "SELECT COUNT(*) AS count FROM " . $table
337 . " WHERE itime >= $y_start"
338 . " AND itime <= $y_end";
339 $res = rg_sql_query($db, $sql);
340 if ($res === FALSE) {
341 $yesterday = "ERR";
342 } else {
343 $row = rg_sql_fetch_array($res);
344 $yesterday = $row['count'];
345 }
346 rg_sql_free_result($res);
347
348 // Total
349 $sql = "SELECT COUNT(*) AS total FROM " . $table;
350 $res = rg_sql_query($db, $sql);
351 if ($res === FALSE) {
352 $total = "ERR";
353 } else {
354 $row = rg_sql_fetch_array($res);
355 $total = $row['total'];
356 }
357 rg_sql_free_result($res);
335 358
336 $sql = "SELECT COUNT(*) AS total FROM repos";
337 $res = rg_sql_query($db, $sql);
338 if ($res === FALSE) {
339 $total_repos = "ERR";
340 } else {
341 $row = rg_sql_fetch_array($res);
342 $total_repos = $row['total'];
343 $body .= "\nTotal repositories: " . $total_users . "\n";
359 $body .= "\nYesterday / total " . $text . ": "
360 . $yesterday . "\t" . $total . "\n";
344 361 } }
345 rg_sql_free_result($res);
346 362
347 363 $sql = "SELECT username, realname FROM users" $sql = "SELECT username, realname FROM users"
348 364 . " WHERE itime >= $y_start" . " WHERE itime >= $y_start"
 
... ... function rg_admin_report1($db, $rg)
391 407 $rg['ui']['email'] = $rg_admin_email; $rg['ui']['email'] = $rg_admin_email;
392 408 $rg['mail'] = array(); $rg['mail'] = array();
393 409 $rg['mail']['subject'] = 'RocketGit report' $rg['mail']['subject'] = 'RocketGit report'
394 . ' [' . $users . '/' . $total_users . ']'
395 . ' [' . $repos . '/' . $total_repos . ']'
396 . ' ' . $sug['yesterday'] . 's';
410 . ' [' . $users . 'u]'
411 . ' [' . $repos . 'r]'
412 . ' [' . $sug['yesterday'] . 's]';
397 413 $rg['mail']['body'] = $body; $rg['mail']['body'] = $body;
398 414 rg_mail_template("mail/admin/report1", $rg); rg_mail_template("mail/admin/report1", $rg);
399 415 } }
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