Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/src/modules/citrix/storefront.control.class.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2602 by niro, Fri Sep 18 12:24:18 2015 UTC revision 2603 by niro, Fri Sep 18 13:07:47 2015 UTC
# Line 21  set_storefront_session() Line 21  set_storefront_session()
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]}"
# Line 46  set_storefront_session() Line 46  set_storefront_session()
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    

Legend:
Removed from v.2602  
changed lines
  Added in v.2603