xaizek / rocketgit (License: AGPLv3+) (since 2018-12-09)
Light and fast Git hosting solution suitable to serve both as a hub or as a personal code storage with its tickets, pull requests, API and much more.
Commit feee2b816a64c9032e2fc9c37bb1a8216d43bc62

Do not show the query in the error message in plan.inc.php

Author: Catalin(ux) M. BOIE
Author date (UTC): 2016-09-25 20:23
Committer: Catalin(ux) M. BOIE
Commit date (UTC): 2016-09-25 20:23
Tree: c5769585274cd78cd25e72a94e0180b94fddde37
Parents: e24cc46ce59727f6acccb674e4ab53430a877171
File Lines added Lines deleted
inc/plan.inc.php 3 8

File inc/plan.inc.php changed (mode: 100644) (index dae04cb..a39864b)
... ... function rg_plan_edit($db, $d)
71 71
72 72 $res = rg_sql_query_params($db, $sql, $d); $res = rg_sql_query_params($db, $sql, $d);
73 73 if ($res === FALSE) { if ($res === FALSE) {
74 rg_plan_set_error("cannot insert/update plan"
75 . " (" . rg_sql_error() . ")");
74 rg_plan_set_error('cannot insert/update plan');
76 75 break; break;
77 76 } }
78 77 $row = rg_sql_fetch_array($res); $row = rg_sql_fetch_array($res);
 
... ... function rg_plan_list($db)
144 143 $sql = "SELECT * FROM plans ORDER BY position"; $sql = "SELECT * FROM plans ORDER BY position";
145 144 $res = rg_sql_query($db, $sql); $res = rg_sql_query($db, $sql);
146 145 if ($res === FALSE) { if ($res === FALSE) {
147 rg_plan_set_error("cannot get plan list"
148 . " (" . rg_sql_error() . ")");
146 rg_plan_set_error('cannot get plan list');
149 147 break; break;
150 148 } }
151 149
 
... ... function rg_plan_info($db, $id)
185 183
186 184 while (1) { while (1) {
187 185 $list = rg_plan_list($db); $list = rg_plan_list($db);
188 if ($list === FALSE) {
189 rg_plan_set_error("cannot load plans"
190 . " (" . rg_sql_error() . ")");
186 if ($list === FALSE)
191 187 break; break;
192 }
193 188
194 189 $ret['ok'] = 1; $ret['ok'] = 1;
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://code.reversed.top/user/xaizek/rocketgit

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/rocketgit

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