a simple framework to save various data based on users
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
CSS 4 2417 169 9857
PHP 8 800 1453 8040
JavaScript 25 692 965 3899
HTML 2 98 5 459
Markdown 2 70 0 164
JSON 2 0 0 64
SVG 19 0 0 45
-------------------------------------------------------------------------------
SUM: 62 4077 2592 22528
-------------------------------------------------------------------------------
cloc $(git ls-files) --exclude-dir=vendor
SQLite
just some explanations to remember
Endpoint Variables: $API_endpoint/$API_param/$API_value
get_data_from()
xxx
$API_param
delete_entry_in()
/delete_entry_in/user/[id]
$API_value
) from table $API_param
200/400
new_user()
/xxx
insert_into_db( $param, $table )
$API_param
get_user_list()
/xxx
$param['table']
get_table
, from $param[]
to $API_
singleedit()
/xxx
$param['table']
by $param['update']
, $param['where']
, $param['equal']
is_allowed()
get_user_profile()
/xxx
$param['table']
get_table
, from $param[]
to $API_
login_user()
/xxx
$API_param
init_user_staff_fields_table()
/xxx
staff_fields
and insertes fieldsinsert_into_db()
init_Table()
/xxx
user
and insertes fieldsinsert_into_db()
init_customertable()
/xxx
customer
and insertes fieldsinsert_into_db()
insert_into_db()
/xxx
$table
id
return_JSON()
/xxx
$request
with every responsecreate_dummy_staff()
create_dummy_customer()