8 years agor4188 update: UI: ability to clear object ports list at one blow
Alexey Andriyanov [Fri, 4 Feb 2011 12:31:06 +0000 (12:31 +0000)] 
r4188 update: UI: ability to clear object ports list at one blow

renderPortsForObject: added link to clear ports list

8 years agor4187 bugfix: Huawei VRP 5.70 SW type was not detected by SNMP sync procedure
Alexey Andriyanov [Fri, 4 Feb 2011 12:09:52 +0000 (12:09 +0000)] 
r4187 bugfix: Huawei VRP 5.70 SW type was not detected by SNMP sync procedure

8 years agor4186 renderNewSLBItemForm(): justify tabindex across inputs
Denis Ovsienko [Wed, 2 Feb 2011 22:18:47 +0000 (22:18 +0000)] 
r4186 renderNewSLBItemForm(): justify tabindex across inputs

8 years agor4185 Fixed upgrade from 0.18.5 -> 0.19.0
Jonathan Thurman [Wed, 2 Feb 2011 05:36:04 +0000 (05:36 +0000)] 
r4185 Fixed upgrade from 0.18.5 -> 0.19.0

8 years agor4184 move require_once to setDevice8021QConfig(), where it is really needed
Denis Ovsienko [Tue, 1 Feb 2011 22:51:22 +0000 (22:51 +0000)] 
r4184 move require_once to setDevice8021QConfig(), where it is really needed

8 years agor4183 updateUser(): fix message code
Denis Ovsienko [Tue, 1 Feb 2011 15:15:54 +0000 (15:15 +0000)] 
r4183 updateUser(): fix message code

8 years agor4182 commitUpdateVSTRules(): change to generate "soft" error
Denis Ovsienko [Tue, 1 Feb 2011 13:07:04 +0000 (13:07 +0000)] 
r4182 commitUpdateVSTRules(): change to generate "soft" error
trigger_8021q_configured(): new function to hide 802.1Q order tabs until necessary records are in place
cloneVSTRule(): rename to cloneVST() and fix error handling

8 years agor4181 upgrade script was broken in several ways, fix it
Denis Ovsienko [Tue, 1 Feb 2011 12:38:56 +0000 (12:38 +0000)] 
r4181 upgrade script was broken in several ways, fix it

8 years agor4180 editPortForObject(): was generating incorrect message, fixed
Denis Ovsienko [Tue, 1 Feb 2011 12:16:40 +0000 (12:16 +0000)] 
r4180 editPortForObject(): was generating incorrect message, fixed

8 years agor4179 install.php: added missing attributes to the network chassis object type
Aaron Dummer [Tue, 1 Feb 2011 03:27:33 +0000 (03:27 +0000)] 
r4179 install.php: added missing attributes to the network chassis object type
upgrade.php: idem

8 years agor4178 bugfix: PHP warnings were appearing before rackspace on SLB object page, defaul...
Alexey Andriyanov [Mon, 31 Jan 2011 19:37:41 +0000 (19:37 +0000)] 
r4178 bugfix: PHP warnings were appearing before rackspace on SLB object page, default tab

renderRackObject: fixed buggy reusing of $info var

8 years agor4177 cloneVSTRule(): add missing argument to commitUpdateVSTRules()
Denis Ovsienko [Mon, 31 Jan 2011 17:32:57 +0000 (17:32 +0000)] 
r4177 cloneVSTRule(): add missing argument to commitUpdateVSTRules()

8 years agor4176 upgrade.php: remove SQL which changes objtype_id of existing chassis objects
Aaron Dummer [Mon, 31 Jan 2011 16:52:49 +0000 (16:52 +0000)] 
r4176 upgrade.php: remove SQL which changes objtype_id of existing chassis objects

8 years agor4175 bugfix: call to undefined getImageHREF() in standalone scripts
Alexey Andriyanov [Mon, 31 Jan 2011 13:11:11 +0000 (13:11 +0000)] 
r4175 bugfix: call to undefined getImageHREF() in standalone scripts

formatAttributeValue: reduced parameters number, added logic to render external href
renderRackObject: removed parameter in call to formatAttributeValue
renderSearchResults: idem
parseWikiLink: changed function logic, now it sets additional fields in record and does not try to render HTML
readChapter: changed call to parseWikiLink
fetchAttrsForObjects: idem

8 years agor4174 update: dictionary attribute values with external links are formatted different...
Alexey Andriyanov [Sun, 30 Jan 2011 14:35:10 +0000 (14:35 +0000)] 
r4174 update: dictionary attribute values with external links are formatted differently to distinguish the filter and external info links

formatAttributeValue: checks if attr value already contains href to prevent nested hrefs
parseWikiLink: the formatting of external link changed to single image href in the end of text value

new CSS class and library image were added

8 years agor4173 Reduce config.php in a way:
Denis Ovsienko [Sun, 30 Jan 2011 12:36:09 +0000 (12:36 +0000)] 
r4173 Reduce config.php in a way:

move PCRE pattern constants to functions.php
loadConfigDefaults(): move to functions.php
alterConfigWithUserPreferences(): idem
isConfigVarChanged(): idem
getConfigVar(): idem
setConfigVar(): move to database.php
setUserConfigVar(): idem
resetUserConfigVar(): idem

8 years agor4172 removed unused navigation items (see prev.commit)
Alexey Andriyanov [Sun, 30 Jan 2011 12:22:50 +0000 (12:22 +0000)] 
r4172 removed unused navigation items (see prev.commit)

8 years agor4171 bugfix: creating vlan template was not possible due to invalid arg assertion.
Alexey Andriyanov [Sun, 30 Jan 2011 12:18:04 +0000 (12:18 +0000)] 
r4171 bugfix: creating vlan template was not possible due to invalid arg assertion.
removed max_local_vlans DB field completely (it was not used)

install.php: removed max_local_vlans DB field from VLANSwitchTemplate table
addVLANSwitchTemplate: removed check of max_local_vlans
renderVSTListEditor: removed form input named vst_maxvlans
-renderVSTEditor: unused
getVSTStats: removed max_local_vlans field from select query
upgrade.php: updating SQL schema respectively

8 years agor4170 getDatabaseVersion(): move to upgrade.php, where it fits better
Denis Ovsienko [Sun, 30 Jan 2011 11:49:43 +0000 (11:49 +0000)] 
r4170 getDatabaseVersion(): move to upgrade.php, where it fits better
init.php: get DB version from configuration variable
upgrade.php: add own copy of showError() and eliminate dependency on functions.php and database.php

8 years agor4169 bugfix: when editing empty Vlan template, unsaved warning was displayed twice
Alexey Andriyanov [Sun, 30 Jan 2011 11:41:18 +0000 (11:41 +0000)] 
r4169 bugfix: when editing empty Vlan template, unsaved warning was displayed twice

8 years agor4168 gateways.php: move vendor-specific functions to deviceconfig.php and require...
Denis Ovsienko [Sun, 30 Jan 2011 10:11:13 +0000 (10:11 +0000)] 
r4168 gateways.php: move vendor-specific functions to deviceconfig.php and require the latter on demand only

8 years agor4167 trigger_liveports(): make a better decision with $gwrxlator
Denis Ovsienko [Sun, 30 Jan 2011 08:28:50 +0000 (08:28 +0000)] 
r4167 trigger_liveports(): make a better decision with $gwrxlator

8 years agor4166 merge comments from secret-sample.php into install.php and delete the former
Denis Ovsienko [Sat, 29 Jan 2011 23:10:56 +0000 (23:10 +0000)] 
r4166 merge comments from secret-sample.php into install.php and delete the former

8 years agor4165 add support for "container" objects to handle blades, VMs, etc.
Aaron Dummer [Sat, 29 Jan 2011 01:42:38 +0000 (01:42 +0000)] 
r4165 add support for "container" objects to handle blades, VMs, etc.

8 years agor4164 delete SQL comments in "dictbase" text, which the current code doesn't support
Denis Ovsienko [Fri, 28 Jan 2011 23:34:15 +0000 (23:34 +0000)] 
r4164 delete SQL comments in "dictbase" text, which the current code doesn't support

8 years agor4163 commitUpdateObject(): enforce NULL value for "label"
Denis Ovsienko [Fri, 28 Jan 2011 13:52:41 +0000 (13:52 +0000)] 
r4163 commitUpdateObject(): enforce NULL value for "label"
upgrade.php: convert older records

8 years agor4162 strip directory prefix from most of require_once() calls
Denis Ovsienko [Thu, 27 Jan 2011 17:51:01 +0000 (17:51 +0000)] 
r4162 strip directory prefix from most of require_once() calls

8 years agor4161 addObjectlog(): fix warning
Denis Ovsienko [Thu, 27 Jan 2011 17:44:51 +0000 (17:44 +0000)] 
r4161 addObjectlog(): fix warning

8 years agor4160 move dqtitle array to functions.php, where it is also used
Denis Ovsienko [Thu, 27 Jan 2011 16:01:28 +0000 (16:01 +0000)] 
r4160 move dqtitle array to functions.php, where it is also used

8 years agor4159 add catch wrapping for getVLANDomain() call
Denis Ovsienko [Thu, 27 Jan 2011 15:00:47 +0000 (15:00 +0000)] 
r4159 add catch wrapping for getVLANDomain() call

8 years agor4158 init-sample-racks.sql: move to top dir
Denis Ovsienko [Thu, 27 Jan 2011 10:51:58 +0000 (10:51 +0000)] 
r4158 init-sample-racks.sql: move to top dir
install.php: merge contents of init-structure.sql and init-dictbase.sql

8 years agor4157 executeAutoPorts(): don't return result
Denis Ovsienko [Thu, 27 Jan 2011 09:51:11 +0000 (09:51 +0000)] 
r4157 executeAutoPorts(): don't return result
commitAddPort(): don't return result, use exceptions
addPortForObject(): update respectively
addMultiPorts(): idem
addBulkPorts(): idem
executeAutoPorts(): idem
doSwitchSNMPmining(): idem
generatePortsForCatModule(): idem

8 years agor4156 addIPv4Prefix(): don't handle errors, exceptions already do
Denis Ovsienko [Wed, 26 Jan 2011 22:51:01 +0000 (22:51 +0000)] 
r4156 addIPv4Prefix(): don't handle errors, exceptions already do
addIPv6Prefix(): idem
addRSPool(): idem
commitAddRack(): idem
commitAddObject(): idem
commitCreateRSPool(): idem
destroyIPv4Prefix(): idem
delIPv4Prefix(): idem
destroyIPv6Prefix(): idem
delIPv6Prefix(): idem
produceTagsForLastRecord(): idem
addFileToEntity(): idem
linkFileToEntity(): idem
addFileWithoutLink(): idem
commitDeleteFile(): idem
deleteFile(): idem

createIPv4Prefix(): employ exceptions to signal errors
createIPv6Prefix(): idem
addFileToEntity(): idem
replaceFile(): idem

8 years agor4155 add "masklen by dotted-quad" mapping array
Denis Ovsienko [Wed, 26 Jan 2011 16:37:40 +0000 (16:37 +0000)] 
r4155 add "masklen by dotted-quad" mapping array

8 years agor4154 commitAddFile(): dismiss transaction to let upper layer do
Denis Ovsienko [Wed, 26 Jan 2011 15:30:25 +0000 (15:30 +0000)] 
r4154 commitAddFile(): dismiss transaction to let upper layer do
  necessary wrapping (PDO does not support nested transactions)

8 years agor4153 setMessage(): make "type" 1st argument
Denis Ovsienko [Wed, 26 Jan 2011 14:07:42 +0000 (14:07 +0000)] 
r4153 setMessage(): make "type" 1st argument
showError(): update respectively
showWarning(): idem
showSuccess(): idem
showNotice(): idem
buildWideRedirectURL(): idem

8 years agor4152 commitAddFile(): dismiss "size" parameter and do the job on SQL server side
Denis Ovsienko [Wed, 26 Jan 2011 13:54:45 +0000 (13:54 +0000)] 
r4152 commitAddFile(): dismiss "size" parameter and do the job on SQL server side
addFileWithoutLink(): update respectively
addFileToEntity(): ditto

8 years agor4151 renderError(): don't rely on GD, use inline error image
Denis Ovsienko [Wed, 26 Jan 2011 10:30:13 +0000 (10:30 +0000)] 
r4151 renderError(): don't rely on GD, use inline error image

8 years agor4150 renderDepot(): if no objects exist, display a generic message instead of an...
Aaron Dummer [Tue, 25 Jan 2011 02:22:24 +0000 (02:22 +0000)] 
r4150 renderDepot(): if no objects exist, display a generic message instead of an empty table

8 years agor4148 bugfix: made invalid argument exceptions usable (now displays invalid argument...
Alexey Andriyanov [Fri, 21 Jan 2011 16:03:25 +0000 (16:03 +0000)] 
r4148 bugfix: made invalid argument exceptions usable (now displays invalid argument name and value)

updVSTRule: added subfunction updVSTRule_get_named_param which remembers the last checked param name

8 years agor4147 bugfix: fixed lost message id for saving custom user setting
Alexey Andriyanov [Fri, 21 Jan 2011 15:10:48 +0000 (15:10 +0000)] 
r4147 bugfix: fixed lost message id for saving custom user setting

8 years agor4146 peekNode(): improve input validation
Denis Ovsienko [Fri, 21 Jan 2011 10:34:51 +0000 (10:34 +0000)] 
r4146 peekNode(): improve input validation
generateEntityAutoTags(): ditto

8 years agor4144 genericAssertion(): add "array" case
Denis Ovsienko [Thu, 20 Jan 2011 09:55:53 +0000 (09:55 +0000)] 
r4144 genericAssertion(): add "array" case

8 years agor4141 getMessagesCount added. Returns unshown messages count by type
Alexey Andriyanov [Wed, 19 Jan 2011 13:35:50 +0000 (13:35 +0000)] 
r4141 getMessagesCount added. Returns unshown messages count by type

8 years agor4140 renderProgressBar(): move actual code to a new function getProgressBar()
Denis Ovsienko [Tue, 18 Jan 2011 18:04:09 +0000 (18:04 +0000)] 
r4140 renderProgressBar(): move actual code to a new function getProgressBar()

8 years agor4139 added support for SNMP sync of Huawei VRP 5.70 switch
Alexey Andriyanov [Tue, 18 Jan 2011 08:59:58 +0000 (08:59 +0000)] 
r4139 added support for SNMP sync of Huawei VRP 5.70 switch

8 years agor4138 commitResetObject(): use appropriate function for DELETE
Denis Ovsienko [Sun, 16 Jan 2011 10:05:42 +0000 (10:05 +0000)] 
r4138 commitResetObject(): use appropriate function for DELETE
updateV6Address(): idem
unbindIPv6FromObject(): idem
bindIPv6ToObject(): likewise, for INSERT
updateV6Address(): idem
processGridForm(): likewise, for UPDATE
updateIPv6Bond(): idem
commitUpdateUserAccount(): idem
commitSetInService(): idem

commitUpdateDictionary(): dismiss
commitUpdateChapter(): dismiss
commitUpdateVLANDescription(): dismiss
storeConfigVar(): dismiss
setConfigVar(): update
changeAttribute(): dismiss
commitUpdateAttribute(): dismiss
commitUseupPort(): dismiss
deleteUserConfigVar(): dismiss
resetUserConfigVar(): update
storeUserConfigVar(): dismiss
saveThumbCache(): dismiss
resetThumbCache(): dismiss

updateDictionary(): update respectively
updateChapter(): idem
updVLANDescription(): idem
useupPort(): idem
setUserConfigVar(): idem
updateObject(): idem
deleteObject(): idem
resetObject(): idem
updateRack(): idem
processGridForm(): idem
render_image.php: idem

8 years agor4137 bugfix: notice message 'Undefined variable: _SESSION' was appearing in errorlog
Alexey Andriyanov [Sun, 16 Jan 2011 09:39:48 +0000 (09:39 +0000)] 
r4137 bugfix: notice message 'Undefined variable: _SESSION' was appearing in errorlog

clearMessages: added check for defined before unsetting.

8 years agor4136 addPortForObject(): update assertion
Denis Ovsienko [Sat, 15 Jan 2011 21:21:32 +0000 (21:21 +0000)] 
r4136 addPortForObject(): update assertion
editPortForObject(): use modern patterns
commitUpdatePort(): make use of usePreparedUpdateBlade() and exception

8 years agor4135 bugfix: merging of v1 and v2 messages was broken from creation time
Alexey Andriyanov [Fri, 14 Jan 2011 17:53:53 +0000 (17:53 +0000)] 
r4135 bugfix: merging of v1 and v2 messages was broken from creation time
setMessage: buggy nested ?: constructions replaced by switch-case

8 years agor4134 Ability to conditional include of gateways.php from within functions
Alexey Andriyanov [Fri, 14 Jan 2011 17:26:06 +0000 (17:26 +0000)] 
r4134 Ability to conditional include of gateways.php from within functions

added explicit global definitions for globals in gateways.php

8 years agor4133 bugfix: showNotice was not merged with another v2 log messages
Alexey Andriyanov [Fri, 14 Jan 2011 17:25:06 +0000 (17:25 +0000)] 
r4133 bugfix: showNotice was not merged with another v2 log messages

8 years agor4132 Ability to conditional include of snmp.php and ophandlers.php from within functions
Alexey Andriyanov [Fri, 14 Jan 2011 17:04:11 +0000 (17:04 +0000)] 
r4132 Ability to conditional include of snmp.php and ophandlers.php from within functions

added explicit global definitions for globals in snmp.php and ophandlers.php

8 years agor4131 fix syntax error
Denis Ovsienko [Fri, 14 Jan 2011 12:13:09 +0000 (12:13 +0000)] 
r4131 fix syntax error

8 years agor4130 bugfix: removed urls to theme pictures of contextmenu lib which are missing
Alexey Andriyanov [Fri, 14 Jan 2011 12:09:18 +0000 (12:09 +0000)] 
r4130 bugfix: removed urls to theme pictures of contextmenu lib which are missing

8 years agor4128 commitUpdateObject(): make use of usePreparedUpdateBlade()
Denis Ovsienko [Fri, 14 Jan 2011 11:30:51 +0000 (11:30 +0000)] 
r4128 commitUpdateObject(): make use of usePreparedUpdateBlade()
commitResetObject(): ditto
commitUpdateRack(): ditto

8 years agor4126 renderVSTListEditor(): update to always have the hidden parameter
Denis Ovsienko [Thu, 13 Jan 2011 21:13:17 +0000 (21:13 +0000)] 
r4126 renderVSTListEditor(): update to always have the hidden parameter
commitLinkFile(): dismiss in favour of usePreparedInsertBlade()
addFileToEntity(): update respectively
linkFileToEntity(): idem
commitUpdateLB(): dismiss
updateLoadBalancer(): dismiss
commitUpdateRSPool(): dismiss
updateRSPool(): dismiss
commitUpdateFile(): dismiss
updateFile(): dismiss
commitUpdateVLANDomain(): dismiss
updateVLANDomain(): dismiss
commitUpdateVST(): dismiss
updVLANSwitchTemplate(): dismiss
upd8021QPort(): employ usePreparedUpdateBlade()

8 years agor4125 commitUpdateVSTRule(): unused, sayonara
Denis Ovsienko [Thu, 13 Jan 2011 16:40:46 +0000 (16:40 +0000)] 
r4125 commitUpdateVSTRule(): unused, sayonara

8 years agor4124 updateObjectAllocation(): switch to $sic
Denis Ovsienko [Thu, 13 Jan 2011 16:06:23 +0000 (16:06 +0000)] 
r4124 updateObjectAllocation(): switch to $sic
renderRackspaceHistory(): update respectively

8 years agor4123 updateObjectAllocation(): replace old code with a call to usePreparedInsertBlade()
Denis Ovsienko [Thu, 13 Jan 2011 15:59:27 +0000 (15:59 +0000)] 
r4123 updateObjectAllocation(): replace old code with a call to usePreparedInsertBlade()

8 years agor4122 addTagForEntity(): use exception
Denis Ovsienko [Thu, 13 Jan 2011 15:36:27 +0000 (15:36 +0000)] 
r4122 addTagForEntity(): use exception

8 years agor4121 buildWideRedirectURL(): clean up style
Denis Ovsienko [Thu, 13 Jan 2011 12:36:49 +0000 (12:36 +0000)] 
r4121 buildWideRedirectURL(): clean up style

8 years agor4120 added necessary OB and exceptions wrapping
Denis Ovsienko [Thu, 13 Jan 2011 10:55:16 +0000 (10:55 +0000)] 
r4120 added necessary OB and exceptions wrapping

8 years agor4119 updateTag(): dismiss, now obsolete
Denis Ovsienko [Thu, 13 Jan 2011 10:31:09 +0000 (10:31 +0000)] 
r4119 updateTag(): dismiss, now obsolete
commitUpdateTag(): sayonara

8 years agor4118 process.php: roll "array" check back as well
Denis Ovsienko [Thu, 13 Jan 2011 10:07:20 +0000 (10:07 +0000)] 
r4118 process.php: roll "array" check back as well

8 years agor4117 initialise $opspec_list correctly
Denis Ovsienko [Thu, 13 Jan 2011 10:00:17 +0000 (10:00 +0000)] 
r4117 initialise $opspec_list correctly

8 years agor4116 hotfix to really call the function
Denis Ovsienko [Thu, 13 Jan 2011 09:55:32 +0000 (09:55 +0000)] 
r4116 hotfix to really call the function

8 years agor4115 process.php: don't treat tableHandler() as a special case
Denis Ovsienko [Thu, 13 Jan 2011 09:35:56 +0000 (09:35 +0000)] 
r4115 process.php: don't treat tableHandler() as a special case
ophandlers.php: move schema structure here from navigation.php
getOpspec(): new helper function
tableHandler(): use above instead of argument

8 years agor4114 updIPv4Prefix(): sayonara
Denis Ovsienko [Thu, 13 Jan 2011 08:48:29 +0000 (08:48 +0000)] 
r4114 updIPv4Prefix(): sayonara
updateIPv4Network_real(): sayonara
updIPv6Prefix(): sayonara
updateIPv6Network_real(): sayonara

8 years agor4113 usePreparedUpdateBlade(): new function
Denis Ovsienko [Wed, 12 Jan 2011 22:26:05 +0000 (22:26 +0000)] 
r4113 usePreparedUpdateBlade(): new function
tableHandler(): add processing of UPDATE
updateRow(): dismiss, now obsolete
commitUpdateRow(): idem

8 years agor4112 genericAssertion(): add "enum/inet4alloc" and "enum/inet6alloc" cases
Denis Ovsienko [Wed, 12 Jan 2011 16:06:56 +0000 (16:06 +0000)] 
r4112 genericAssertion(): add "enum/inet4alloc" and "enum/inet6alloc" cases
updIPv4Allocation(): update respectively
updIPv6Allocation(): idem
addIPv4Allocation(): idem
addIPv6Allocation(): idem

8 years agor4111 renderVST(): restore lost "global"
Denis Ovsienko [Wed, 12 Jan 2011 15:56:20 +0000 (15:56 +0000)] 
r4111 renderVST(): restore lost "global"

8 years agor4110 Some minor cleanups, including:
Denis Ovsienko [Wed, 12 Jan 2011 12:38:23 +0000 (12:38 +0000)] 
r4110 Some minor cleanups, including:

authenticated_via_ldap(): employ exception
render_image.php: using renderError() is more appropriate for browsers expecting IMG

8 years agor4109 function generate8021QDeployOps was separated from exportSwitch8021QConfig
Alexey Andriyanov [Wed, 12 Jan 2011 11:34:12 +0000 (11:34 +0000)] 
r4109 function generate8021QDeployOps was separated from exportSwitch8021QConfig
to make 8021q pseudo-commands availible for local.php functions

8 years agor4108 UI: VST editor: show attention message when unsaved tamplate is displayed
Alexey Andriyanov [Wed, 12 Jan 2011 10:50:22 +0000 (10:50 +0000)] 
r4108 UI: VST editor: show attention message when unsaved tamplate is displayed

8 years agor4107 getConfigVar(): review in a way of exceptions thrown
Denis Ovsienko [Wed, 12 Jan 2011 10:29:09 +0000 (10:29 +0000)] 
r4107 getConfigVar(): review in a way of exceptions thrown
setConfigVar(): ditto
setUserConfigVar(): ditto
resetUserConfigVar(): ditto

8 years agor4106 delete one more obsolete message
Denis Ovsienko [Wed, 12 Jan 2011 09:23:54 +0000 (09:23 +0000)] 
r4106 delete one more obsolete message

8 years agor4105 setSwitchVLANs(): replace log array tricks with oneLiner/mergeLogs
Denis Ovsienko [Wed, 12 Jan 2011 08:56:45 +0000 (08:56 +0000)] 
r4105 setSwitchVLANs(): replace log array tricks with oneLiner/mergeLogs

8 years agor4104 show page/tab handler exception messages embedded in main page interface
Alexey Andriyanov [Wed, 12 Jan 2011 05:50:37 +0000 (05:50 +0000)] 
r4104 show page/tab handler exception messages embedded in main page interface
prevent message appearing in foreign tab

+clearMessages: clears $_SESSION['log']
index.php: additional try-catch block added around tabhandler call
index.php: message list is clearead after index.php finishes, making sure no unshown messages kept
showMessageOrError: used new clearMessages

8 years agor4103 getVLANSwitchTemplate(): asterisk SELECT is an evil, replace
Denis Ovsienko [Wed, 12 Jan 2011 00:29:00 +0000 (00:29 +0000)] 
r4103 getVLANSwitchTemplate(): asterisk SELECT is an evil, replace
genericAssertion(): JSON gets spoiled in $_REQUEST, but not in $sic
commitUpdateVSTRules(): check mutex reliably, don't return anything, let exceptions roll transaction back
updVSTRule(): rewrite in a way with exceptions in mind

8 years agor4102 querySNMPData(): fix mistype
Denis Ovsienko [Tue, 11 Jan 2011 23:50:14 +0000 (23:50 +0000)] 
r4102 querySNMPData(): fix mistype

8 years agor4101 deleteRack(): fix mistype
Denis Ovsienko [Tue, 11 Jan 2011 23:47:56 +0000 (23:47 +0000)] 
r4101 deleteRack(): fix mistype

8 years agor4100 updateVService(): improve assertion
Denis Ovsienko [Tue, 11 Jan 2011 23:24:03 +0000 (23:24 +0000)] 
r4100 updateVService(): improve assertion
setPortVLAN(): make oneLiner() use explicit, add 2nd catch block
addRack(): dismiss old checks
deleteRack(): idem
querySNMPData(): reoder branches

8 years agor4099 genericAssertion(): add "enum/ipproto" case
Denis Ovsienko [Tue, 11 Jan 2011 22:19:52 +0000 (22:19 +0000)] 
r4099 genericAssertion(): add "enum/ipproto" case
addVService(): update respectively and merge meaningful code of commitCreateVS()
commitCreateVS(): bye
updateUser(): fix mistype

8 years agor4098 setPortVLAN(): update with respect to assertions, exceptions and error codes
Denis Ovsienko [Tue, 11 Jan 2011 22:01:31 +0000 (22:01 +0000)] 
r4098 setPortVLAN(): update with respect to assertions, exceptions and error codes
renderVLANMembership(): add catch block
setSwitchVLANs(): employ exceptions
gwSendFileToObject(): idem
gwRecvFileFromObject(): idem

8 years agor4097 fixed PHP tags
Denis Ovsienko [Tue, 11 Jan 2011 21:32:39 +0000 (21:32 +0000)] 
r4097 fixed PHP tags

8 years agor4096 reduce msgcode array in a way, and justify some functions respectively
Denis Ovsienko [Tue, 11 Jan 2011 19:24:27 +0000 (19:24 +0000)] 
r4096 reduce msgcode array in a way, and justify some functions respectively

8 years agor4095 genericAssertion(): add 'enum/wdmstd' and 'iif' cases
Denis Ovsienko [Tue, 11 Jan 2011 19:13:45 +0000 (19:13 +0000)] 
r4095 genericAssertion(): add 'enum/wdmstd' and 'iif' cases

8 years agor4094 setSwitchVLANs(): remove pointless assertion
Denis Ovsienko [Tue, 11 Jan 2011 14:36:40 +0000 (14:36 +0000)] 
r4094 setSwitchVLANs(): remove pointless assertion

8 years agor4093 Finalise the work on issue #369 by means of new function HTTPDateToUnixTime(),
Denis Ovsienko [Tue, 11 Jan 2011 11:20:12 +0000 (11:20 +0000)] 
r4093 Finalise the work on issue #369 by means of new function HTTPDateToUnixTime(),
which is supposed to do a better job, than strtotime() did (by Matt Mills).

8 years agor4092 new API for dispaying messages (showError, showWarning, showSuccess)
Alexey Andriyanov [Tue, 11 Jan 2011 07:50:30 +0000 (07:50 +0000)] 
r4092 new API for dispaying messages (showError, showWarning, showSuccess)

 merged together all HTML layout
 added output buffering to collect all the messages before the HTML layout rendering

 used new functions instead of oneLiner.
 added logic to redirect to the submit form page when ophandler returns NULL

 changed old showError calls to the calls of new one

 showTabs: removed surrounding <td>'s from the output
 renderObject8021QSync: changed old showError calls to the calls of new one
 renderDiscoveredNeighbors: idem

 authenticated_via_ldap: changed old showError calls to the calls of new one

 -showError: the old version of the func removed, the new one is implemented in functions.php
 -showWarning: idem

 getCellFilter: changed old showWarning calls to the calls of new one
 buildLVSConfig: idem
 eval_expression: idem
+setMessage: function for rendering or queueing all kinds of messages
+showError, showWarning, showSuccess, showNotice: wrappers around setMessage

 changed calls to showFailure to calls to showError
 added dependency on functions.php

 buildWideRedirectURL: now $_SESSION['log'] is merged with $log, not substituted

8 years agor4091 l2addressForDatabase(): signal error with exception, not NULL
Denis Ovsienko [Mon, 10 Jan 2011 22:51:53 +0000 (22:51 +0000)] 
r4091 l2addressForDatabase(): signal error with exception, not NULL
genericAssertion(): add cases for IPv6, L2 and PCRE types
commitAddPort(): dismiss local check, rely on exception
commitUpdatePort(): idem
getPortSearchResults(): employ catch block
addPortForObject(): add respective assertion
editPortForObject(): ditto

8 years agor4090 tableHandler(): add implementation of DELETE
Denis Ovsienko [Mon, 10 Jan 2011 12:59:25 +0000 (12:59 +0000)] 
r4090 tableHandler(): add implementation of DELETE
genericAssertion(): add "enum/vlan_type" case
renderPortsForObject(): don't put port_name and remote_port_id parameters to URL
delPortInterfaceCompatPack(): make DB access direct

Dismiss another pack of functions, which become obsolete after that:

- delObjectPort()
- delPortFromObject()
- deleteObjectLog()
- deleteRealServer()
- commitDeleteRS()
- deleteLoadBalancer()
- commitDestroyTag()
- destroyTag()
- commitReducePIC()
- delPortInterfaceCompat()
- deleteRow()
- commitDeleteRow()
- unlinkPort()
- commitReducePOIFC()
- delPortOIFCompat()
- commitSupplementPOIFC()
- addPortOIFCompat()
- commitReduceDictionary()
- reduceDictionary()
- commitDeleteAttribute()
- deleteAttribute()
- commitReduceAttrMap()
- reduceAttrMap()

8 years agor4089 process.php: do basic bypass validation by means of getBypassValue()
Denis Ovsienko [Sun, 9 Jan 2011 13:52:19 +0000 (13:52 +0000)] 
r4089 process.php: do basic bypass validation by means of getBypassValue()
addPortForObject(): rely on that and dismiss/update assertion
editPortForObject(): idem
addMultiPorts(): idem
addBulkPorts(): idem
editAddress(): idem
updateUser(): idem
updateDictionary(): idem
reduceDictionary(): idem
clearSticker(): idem
updateObjectAllocation(): idem
updateObject(): idem
resetObject(): idem
addRealServers(): idem
updateRSPool(): idem
generateAutoPorts(): idem
saveEntityTags(): idem
rollTags(): idem
submitSLBConfig(): idem
addRack(): idem
updateRack(): idem
updateRackDesign(): idem
updateRackProblems(): idem
querySNMPData(): idem
addFileToEntity(): idem
linkFileToEntity(): idem
replaceFile(): idem
updateFile(): idem
updateFileText(): idem
process8021QRecalcRequest(): idem
cloneVSTRule(): idem
updVSTRule(): idem
addObjectlog(): idem

8 years agor4088 genericAssertion(): merge ENUM validation from commitAddAttribute()
Denis Ovsienko [Sun, 9 Jan 2011 12:20:28 +0000 (12:20 +0000)] 
r4088 genericAssertion(): merge ENUM validation from commitAddAttribute()
createAttribute(): sayonara
commitAddAttribute(): sayonara

8 years agor4087 renderChapterEditor(): justify INPUT size across table rows
Denis Ovsienko [Sun, 9 Jan 2011 11:58:17 +0000 (11:58 +0000)] 
r4087 renderChapterEditor(): justify INPUT size across table rows
supplementDictionary(): dismiss in favour of tableHandler()
commitSupplementDictionary(): idem

8 years agor4086 Don't allow changing object's type after it is added to database,
Denis Ovsienko [Sun, 9 Jan 2011 11:30:19 +0000 (11:30 +0000)] 
r4086 Don't allow changing object's type after it is added to database,
this was known to cause minor side-effects.

renderEditObjectForm(): dismiss object type SELECT
updateObject(): update respectively
commitUpdateObject(): update respectively

8 years agor4085 dynamic_title_decoder(): suppress tag markup in "file" and "vst" pages TITLE
Denis Ovsienko [Sun, 9 Jan 2011 11:07:08 +0000 (11:07 +0000)] 
r4085 dynamic_title_decoder(): suppress tag markup in "file" and "vst" pages TITLE

8 years agor4084 render_image.php: use gmdate() to save one timezone warning (IMS caching)
Denis Ovsienko [Sat, 8 Jan 2011 23:29:51 +0000 (23:29 +0000)] 
r4084 render_image.php: use gmdate() to save one timezone warning (IMS caching)

8 years agor4083 bugfix: prevent invalid port links (#363), remove DB triggers
Aaron Dummer [Sat, 8 Jan 2011 19:14:35 +0000 (19:14 +0000)] 
r4083 bugfix: prevent invalid port links (#363), remove DB triggers

install/init-structure.sql: remove triggers
executeUpgradeBatch(): idem
isInnoDBSupported(): idem
linkPorts(): add SELECT before INSERT check