Alexey Melnichuk
60b0f48228
Add. database class
...
```Lua
local Database = require "resources.functions.database"
local dbh = Database.new('system')
--get the domain_uuid
if (domain_uuid == nil) and (domain_name ~= nil) then
local sql = "SELECT domain_uuid FROM v_domains "
sql = sql .. "WHERE domain_name='" .. domain_name .. "';"
domain_uuid = dbh:first_value(sql)
end
local dbh_switch = Database.new('switch') -- check also SQLite file.
local row = dbh_switch:first_row(sql)
if row then
...
end
```
2015-09-10 14:29:13 +04:00
markjcrane
5457427df3
Change require("mime") to require("mime.core").
2015-08-27 13:27:24 -06:00
markjcrane
82b7d6fd79
Change '//' to '/'. This fixes a problem where its calling require when it should call dofile.
2015-08-11 20:25:34 -06:00
Alexey Melnichuk
69717e31d5
Revert "Revert "Change. Use require "resources.functions.config" to load co…"
2015-08-11 05:06:33 +03:00
FusionPBX
d1f3b05cf6
Revert "Change. Use require "resources.functions.config" to load config file."
2015-08-10 11:50:29 -06:00
FusionPBX
8d9430352b
Merge pull request #1053 from moteus/require_config
...
Change. Use `require "resources.functions.config"` to load config file.
2015-08-10 11:31:35 -06:00
Alexey Melnichuk
c27e9cef9a
Fix. add functions/count.lua to preview commit.
2015-08-10 13:01:49 +04:00
Alexey Melnichuk
a8142f527a
Change. Use only require to load function.
...
Fix. Remove multiple definition of same function.
2015-08-10 12:43:06 +04:00
markjcrane
4243764010
Remove trailing tabs.
2015-07-23 17:50:16 -06:00
markjcrane
5ff664246b
Prevent nil errors in settings.lua.
2015-07-22 09:42:35 -06:00
Alexey Melnichuk
2234b42c07
Change. Use require "resources.functions.config" to load config file.
...
Change. Move `script_dir` definition into config file.
2015-07-22 13:20:51 +04:00
markjcrane
36c4ac0e45
Change 'is null' to 'is not null'.
2015-07-10 08:00:08 -03:00
markjcrane
58311a8d98
Prevent nil from causing problems with functions/settings.lua.
2015-07-08 15:36:33 -03:00
Mark Crane
f20438838c
Connect to the database before using this function and it will use the database connection.
2015-04-15 03:13:10 +00:00
Mark Crane
344f84ff17
Add the original base64 class I was using as an alternative if mime is not loaded.
2015-04-06 06:25:42 +00:00
Mark Crane
e9fc52436d
Improve the speed of base64 encode and decode.
2015-03-31 18:48:00 +00:00
Mark Crane
bf09ca3e1c
Add base64 decode to the IVR Menu.
2015-03-31 00:50:13 +00:00
Mark Crane
95633aac35
No need for this include again as the scripts_dir is already set by this point.
2015-03-24 07:05:28 +00:00
Mark Crane
c027f0e4f5
Add lua function settings.
2015-03-02 18:07:06 +00:00
Mark Crane
1e961d1470
Add a general copy function for lua and use it with voicemail forward.
2013-07-11 19:50:09 +00:00
Mark Crane
896fdb37b2
Move the includes/install to resources/install
2013-06-09 02:42:36 +00:00