Commit Graph

831 Commits

Author SHA1 Message Date
mafoo
9066858701 only offer the source upgrade if it is writeable
this check will prevent the source upgrade rendering if the .git folder
is not writeable
2016-02-04 11:14:26 +00:00
markjcrane
9bc3e6553f Fix the install problem. 2016-01-26 09:01:56 -07:00
markjcrane
08f39071cc Change the variable from cmt to comment to make it easier to read the code. 2016-01-25 09:41:29 -07:00
mafoo
944662cba9 BugFix for remote pgsql databases 2016-01-25 14:29:27 +00:00
Mafoo
56b34c34ca changed throw Exception to die
nothing ever eval runs the root.php so changed to die to cause a immediate report of error and stop code processing.
2016-01-20 11:30:31 +00:00
Mafoo
87dbd6b428 Added check for if .project.ROOT is missing
If a installation is missing the .project.ROOT previously it would just use the last search path as the project root (wrong) this will cause a Exception should it be unable to find it
2016-01-18 09:38:16 +00:00
markjcrane
fa081456b1 Change $_SERVER['DOCUMENT_ROOT'].PROJECT_PATH to $_SERVER["PROJECT_ROOT"]. 2016-01-17 00:01:13 -07:00
Matthew Vale
6999198492 added logic in cli mode to chdir to the correct directory first
the webserver would normally do this for us, but we need to do it
2016-01-14 16:25:05 +00:00
Matthew Vale
a41e89af76 Added full logic to support cli as well 2016-01-13 17:38:54 +00:00
Matthew Vale
0176d30312 change to use '/' instead of DIRECTOR_SEPERATOR 2016-01-12 14:47:50 +00:00
Matthew Vale
796674e815 Changed upgrade to use PROJECT_ROOT instead 2016-01-12 13:55:45 +00:00
Matthew Vale
e6ad46cfbf Rollout of root.php 2016-01-12 13:55:39 +00:00
Matthew Vale
8137300bb5 fixed missing on new Exception 2015-12-31 16:32:51 +00:00
Matthew Vale
7bf32cd637 correction for button name 2015-12-30 16:58:39 +00:00
Matthew Vale
a12e3f12b0 added correct bits detection 2015-12-30 16:54:36 +00:00
markjcrane
5da1286329 Add session cookie httponly and set it to true. 2015-12-21 20:52:54 -07:00
Matthew Vale
c0cc276601 migrated install_switch's recursive_* routines 2015-12-21 10:54:48 +00:00
markjcrane
98b77a12c6 Remove a few more line from upgrade/index.php. 2015-12-20 23:04:12 -07:00
markjcrane
0c21af8f2b Remove upgrade switch from advanced -> upgrade page. The work it did is handled by app/scripts/resources/classes/scripts.php and app_defaults.php calls it. So when running Advanced -> Upgrade -> App Defaults the scripts app_defaults.php will copy the scripts and rewrite the config.lua. 2015-12-20 23:01:28 -07:00
markjcrane
836a41ddbb Minor adjustments. 2015-12-20 22:46:52 -07:00
FusionPBX
bd914ba376 Merge pull request #1315 from mafoo/Enhance-Languages
Enhance languages
2015-12-19 09:20:42 -07:00
Matthew Vale
787ca31388 Removed dirs we don't use 2015-12-18 17:00:28 +00:00
Matthew Vale
fdd1542b66 patch for SunOS
corrected collection of switch version during detect_switch
2015-12-11 14:57:14 +00:00
Matthew Vale
81b85c3caf Merge branch 'fusionpbx/master' into Enhance-Languages
Conflicts:
	app/extensions/app_languages.php
2015-12-11 08:45:26 +00:00
Matthew Vale
45d9c2039d updated switch version detection
will now work with both git and packaged version numbers
added bits to detect_switch
2015-12-10 10:51:38 +00:00
Matthew Vale
742db50120 First pass on core/* 2015-12-10 10:09:07 +00:00
Matthew Vale
e3f1e919da Migrate app_languages.php from core to resources 2015-12-10 09:57:08 +00:00
reliberate
e7162402b1 Domain Edit/Create: Use file_exists instead of isset on recordings directory path check. 2015-12-08 11:24:47 -07:00
Matthew Vale
93a83ccb61 Fixed temp_dir not getting set correctly
this would have also affected backup_dir
2015-12-07 21:19:59 +00:00
markjcrane
84ff743e84 Last commit commented out the permission this comments out the menu. 2015-12-06 14:21:36 -07:00
markjcrane
52f87223b0 Commenting Advanced -> Install menu until its reason developer that added the menu explains its purpose. 2015-12-06 14:19:18 -07:00
markjcrane
cde9debb29 After removing domain name from the default recordings dir path need to add the domain name every where the recordings directory is currently used. 2015-12-06 13:37:35 -07:00
markjcrane
622efef416 Convert localhost to 127.0.0.1 before determining the host_type. 2015-12-06 12:43:18 -07:00
markjcrane
b4e3ee5b0d Detect the host type for PostgreSQL so it works with host or ip address. Also improve the code consistency by correcting the indentation and adding a few more comments. 2015-12-06 12:25:34 -07:00
Matthew Vale
36652ff231 use DOCUMENT_ROOT rather than assume path 2015-12-04 12:24:22 +00:00
Matthew Vale
fb4edcdd74 added suppression of progress by default 2015-12-03 14:59:46 +00:00
Matthew Vale
7ce32f11d4 corrected function name 2015-12-03 14:25:33 +00:00
Matthew Vale
8894c86c16 split install into phases
this is to prevent catch 22 between copy_conf and app_defaults
2015-12-03 14:04:27 +00:00
Matthew Vale
875f0a6262 added save_switch_xml during install 2015-12-03 13:36:43 +00:00
Matthew Vale
e036c88c99 fixed storage of domain_count 2015-12-03 11:55:40 +00:00
Matthew Vale
68cd03d598 added workaround for lua not resolving localhost 2015-12-03 11:36:29 +00:00
Matthew Vale
cc3f8e9945 changed path handling for create_config_lua
thanks moteus for the hint
2015-12-03 11:19:09 +00:00
Matthew Vale
5149307d11 corrected path retrieval for test
added missing () when reporting domain name
2015-12-03 10:49:38 +00:00
Matthew Vale
f3f24c4085 add caveat when the config.lua is inside scripts\resources
due to app_defaults running before install_switch create_config_lua
cannot create it's config if the detected folder is scripts\resources\
this solves this by adding a caveat to create it's parent folder when it
is called resources
2015-12-03 10:40:54 +00:00
Matthew Vale
9bc96195c1 corrected references to scripts 2015-12-03 09:52:53 +00:00
Matthew Vale
31619d8747 fixes during upgrade 2015-12-02 15:55:21 +00:00
Matthew Vale
120ea2cc40 Removed redundant code 2015-12-02 14:46:03 +00:00
Matthew Vale
86b945a997 accidentally cancelled redirect during testing 2015-12-02 14:39:53 +00:00
Matthew Vale
b9b05f757c reorganised upgrade routine to make more sense 2015-12-02 14:32:49 +00:00
Matthew Vale
3f6fdc1df4 added automatic odbc_database definition 2015-12-02 14:17:53 +00:00