21 |
local action="${CLASS_ARGV[1]}" |
local action="${CLASS_ARGV[1]}" |
22 |
local name="${CLASS_ARGV[2]}" |
local name="${CLASS_ARGV[2]}" |
23 |
local session="${CLASS_ARGV[3]}" |
local session="${CLASS_ARGV[3]}" |
24 |
local store_uri="${CLASS_ARGV[4]}" |
local store="${CLASS_ARGV[4]}" |
25 |
local user="${CLASS_ARGV[5]}" |
local user="${CLASS_ARGV[5]}" |
26 |
local domain="${CLASS_ARGV[6]}" |
local domain="${CLASS_ARGV[6]}" |
27 |
local password="${CLASS_ARGV[7]}" |
local password="${CLASS_ARGV[7]}" |
46 |
id=$(mysqldo "select id from cfg_sessions_storefront where serial='${serial}' and name='${name}';") |
id=$(mysqldo "select id from cfg_sessions_storefront where serial='${serial}' and name='${name}';") |
47 |
if [[ -n ${id} ]] |
if [[ -n ${id} ]] |
48 |
then |
then |
49 |
mysqldo "update cfg_sessions_storefront set name='${name}', session='${session}', store='${store_uri}', filename='${filename}', username='${username}', domain='${domain}', password='${password}', store='${store}', enabled='${enabled}' where id=${id};" |
mysqldo "update cfg_sessions_storefront set name='${name}', session='${session}', store='${store}', filename='${filename}', username='${username}', domain='${domain}', password='${password}', store='${store}', enabled='${enabled}' where id=${id};" |
50 |
else |
else |
51 |
mysqldo "insert into cfg_fluxbox_menuitem(serial, name, session, store, filename, username, domain, password, store, enabled) values('${serial}', '${name}', '${session}', ${store_uri}', '${filename}', '${domain}', '${password}', '${store}', '${enabled}');" |
mysqldo "insert into cfg_fluxbox_menuitem(serial, name, session, store, filename, username, domain, password, store, enabled) values('${serial}', '${name}', '${session}', ${store}', '${filename}', '${domain}', '${password}', '${store}', '${enabled}');" |
52 |
fi |
fi |
53 |
} |
} |
54 |
|
|