racktables
8 years agor4371 ChangeLog: add reference to bug #413
Aaron Dummer [Sat, 19 Mar 2011 16:59:42 +0000 (16:59 +0000)] 
r4371 ChangeLog: add reference to bug #413
database.php: remove excess whitespace

8 years agor4370 proper handling of link statuses in NX-OS gateway for Nexus 7000/NX-OS 5.
Alexey Andriyanov [Fri, 18 Mar 2011 17:38:55 +0000 (17:38 +0000)] 
r4370 proper handling of link statuses in NX-OS gateway for Nexus 7000/NX-OS 5.

ciscoReadInterfaceStatus: notconnected and sfpAbsent handlers added

8 years agor4369 LiveCDP/LiveLLDP: support of combo ports (same name, different port types)
Alexey Andriyanov [Fri, 18 Mar 2011 16:08:16 +0000 (16:08 +0000)] 
r4369 LiveCDP/LiveLLDP: support of combo ports (same name, different port types)

renderDiscoveredNeighbors: push more specific pairs into $variants
formatIfTypeVariants: format item label differently

8 years agor4368 syntax error in loadable files secret.php and local.php are now properly logged
Alexey Andriyanov [Fri, 18 Mar 2011 13:04:08 +0000 (13:04 +0000)] 
r4368 syntax error in loadable files secret.php and local.php are now properly logged

getFileFullPath: new function emulation the searching algorythm like PHP's include() does

8 years agor4367 auth.php: update comment
Denis Ovsienko [Thu, 17 Mar 2011 23:53:33 +0000 (23:53 +0000)] 
r4367 auth.php: update comment
authenticated_via_ldap_cache(): justify exception class

8 years agor4366 findAutoTagWarnings(): update for spotEntity() throwing an exception
Denis Ovsienko [Thu, 17 Mar 2011 23:02:15 +0000 (23:02 +0000)] 
r4366 findAutoTagWarnings(): update for spotEntity() throwing an exception

8 years agor4365 serializeTags(): move to interface-lib.php and clean up
Denis Ovsienko [Thu, 17 Mar 2011 22:52:11 +0000 (22:52 +0000)] 
r4365 serializeTags(): move to interface-lib.php and clean up
renderAccessDenied(): dismiss, merge the code into RTPermissionDenied::dispatch()

8 years agor4364 renderProgressBarImage(): add range check for parameter
Denis Ovsienko [Thu, 17 Mar 2011 22:30:41 +0000 (22:30 +0000)] 
r4364 renderProgressBarImage(): add range check for parameter
renderProgressBarError(): new function to output inline image
index.php: use above to handle errors

8 years agor4363 index.php: take care of "permission denied" in "ajax" module
Denis Ovsienko [Thu, 17 Mar 2011 19:53:27 +0000 (19:53 +0000)] 
r4363 index.php: take care of "permission denied" in "ajax" module
dispatchAJAXRequest(): clean up

8 years agor4362 validTagName(): move to interface-lib.php to make available during early stage
Denis Ovsienko [Thu, 17 Mar 2011 18:57:51 +0000 (18:57 +0000)] 
r4362 validTagName(): move to interface-lib.php to make available during early stage

8 years agor4361 constructUserCell(): move to database.php to make auth.php less dependent on...
Denis Ovsienko [Thu, 17 Mar 2011 18:52:32 +0000 (18:52 +0000)] 
r4361 constructUserCell(): move to database.php to make auth.php less dependent on functions.php
generateEntityAutoTags(): idem

8 years agor4360 index.php: make 'progressbar' a standalone module
Denis Ovsienko [Thu, 17 Mar 2011 18:45:23 +0000 (18:45 +0000)] 
r4360 index.php: make 'progressbar' a standalone module
getProgressBar(): update URI
dispatchImageRequest(): dismiss 'progressbar' case

8 years agor4359 dispatchImageRequest(): add missing semicolon
Denis Ovsienko [Thu, 17 Mar 2011 18:30:55 +0000 (18:30 +0000)] 
r4359 dispatchImageRequest(): add missing semicolon

8 years agor4358 render_image.php: rename to solutions.php and add comment
Denis Ovsienko [Thu, 17 Mar 2011 18:29:34 +0000 (18:29 +0000)] 
r4358 render_image.php: rename to solutions.php and add comment
printStatic404(): move to solutions.php
proxyStaticURI(): idem

8 years agor4357 interface API functions moved to appropriate file
Alexey Andriyanov [Thu, 17 Mar 2011 16:49:26 +0000 (16:49 +0000)] 
r4357 interface API functions moved to appropriate file

addJS: moved from functions.php into interface-lib.php
addCSS: idem
printPageHeaders: idem

8 years agor4356 process8021QRecalcRequest(): employ assertPermission()
Denis Ovsienko [Thu, 17 Mar 2011 14:24:48 +0000 (14:24 +0000)] 
r4356 process8021QRecalcRequest(): employ assertPermission()
searchHandler(): discard useless check

8 years agor4355 FreeBSD 8.x added to dictionary
Alexey Andriyanov [Thu, 17 Mar 2011 14:17:46 +0000 (14:17 +0000)] 
r4355 FreeBSD 8.x added to dictionary

8 years agor4354 RTPermissionDenied: new class instead of RackTablesError::NOT_AUTHORIZED
Denis Ovsienko [Thu, 17 Mar 2011 14:11:18 +0000 (14:11 +0000)] 
r4354 RTPermissionDenied: new class instead of RackTablesError::NOT_AUTHORIZED
assertPermission(): new function
searchHandler(): update respectively
renderPopupHTML(): idem
index.php: idem
dispatchImageRequest(): idem

8 years agor4353 renderAccessDeniedImage(): store image inline instead of generating
Denis Ovsienko [Thu, 17 Mar 2011 13:42:11 +0000 (13:42 +0000)] 
r4353 renderAccessDeniedImage(): store image inline instead of generating

8 years agor4352 LiveCDP, LiveLLDP, etc: ability to install tranceivers into ports in-place...
Alexey Andriyanov [Thu, 17 Mar 2011 13:35:51 +0000 (13:35 +0000)] 
r4352 LiveCDP, LiveLLDP, etc: ability to install tranceivers into ports in-place, while linking the ports

modified functions:
importDPData: does the tranceiver installation by calling commitUpdatePortOIF. Uses DB transactions
renderDiscoveredNeighbors: calculates variant list and presents it to the user. Toggle checkbox added
searchByMgmtHostname: now it matches not only full FQDN, but also its part, allowing to not having object names like hostnames. Uses new DB indexes
usePreparedUpdateBlade: function prototype ne wis identical to siblings: it is returning the updated rows count, or FALSE
getSelect: new param $treat_single_special. If it is true, and the option list contains single value, hidden input returned instead of select

new functions:
getPortTypeUsageStatistics: fetches the links count grouped by port type
formatIfTypeVariants: formats variant list into the HTML selecbox
isTranceiverEmpty: new func with self-explaining name
commitUpdatePortOIF: DB function to change port type

new indices in table AttributeValue used to search objects by attribute values

8 years agor4351 explain the specifics of "image" module
Denis Ovsienko [Thu, 17 Mar 2011 11:27:13 +0000 (11:27 +0000)] 
r4351 explain the specifics of "image" module

8 years agor4350 updateUser(): add missing assertion
Denis Ovsienko [Thu, 17 Mar 2011 11:20:05 +0000 (11:20 +0000)] 
r4350 updateUser(): add missing assertion
updateObjectAllocation(): make use of getBypassValue()
resetObject(): ditto
useupPort(): ditto
addRealServer(): ditto
updateRSInService(): ditto
rollTags(): ditto
submitSLBConfig(): ditto
updateRack(): ditto
updateRackDesign(): ditto
updateRackProblems(): ditto
querySNMPData(): ditto
replaceFile(): ditto
addFileWithoutLink(): ditto

8 years agor4349 new dictionary items: Cisco Nexus fabric extenders
Alexey Andriyanov [Thu, 17 Mar 2011 09:31:43 +0000 (09:31 +0000)] 
r4349 new dictionary items: Cisco Nexus fabric extenders

8 years agor4348 remove all instances of formatTimestamp()
Aaron Dummer [Wed, 16 Mar 2011 23:37:24 +0000 (23:37 +0000)] 
r4348 remove all instances of formatTimestamp()

8 years agor4347 dos2unix(): move to interface-lib.php
Denis Ovsienko [Wed, 16 Mar 2011 23:14:23 +0000 (23:14 +0000)] 
r4347 dos2unix(): move to interface-lib.php
escapeString(): idem
transformRequestData(): new function to house the code previously in init.php

8 years agor4346 dismiss single-use variable
Denis Ovsienko [Wed, 16 Mar 2011 22:36:08 +0000 (22:36 +0000)] 
r4346 dismiss single-use variable

8 years agor4345 printException(): use instanceof uniformly
Denis Ovsienko [Wed, 16 Mar 2011 21:41:00 +0000 (21:41 +0000)] 
r4345 printException(): use instanceof uniformly

8 years agor4344 forgottent changelog entry for previous commit
Alexey Andriyanov [Wed, 16 Mar 2011 14:36:11 +0000 (14:36 +0000)] 
r4344 forgottent changelog entry for previous commit

8 years agor4343 bugfix: VRP linkstatus gateway now properly handles port-channels
Alexey Andriyanov [Wed, 16 Mar 2011 14:33:49 +0000 (14:33 +0000)] 
r4343 bugfix: VRP linkstatus gateway now properly handles port-channels

ios12ShortenIfName: the canonical form of Huawei port-channel interfaces is Eth-TrunkX
vrpReadInterfaceStatus: portchannel padding in the output of 'disp int bri' supported

8 years agor4342 forgotten file in addition to previous commit
Alexey Andriyanov [Wed, 16 Mar 2011 14:05:29 +0000 (14:05 +0000)] 
r4342 forgotten file in addition to previous commit

8 years agor4341 new feature: Cisco NX-OS v4, v5 LLDP gateway
Alexey Andriyanov [Wed, 16 Mar 2011 14:03:42 +0000 (14:03 +0000)] 
r4341 new feature: Cisco NX-OS v4, v5 LLDP gateway

nxos4ReadLLDPStatus: new gwrxlator function
new dictionaty items 'NX-OS 5.0' and 'NX-OS 5.1'

8 years agor4340 scanRealmByText: added forgotten 'rack' realm to the list of supported realms
Alexey Andriyanov [Tue, 15 Mar 2011 14:13:46 +0000 (14:13 +0000)] 
r4340 scanRealmByText: added forgotten 'rack' realm to the list of supported realms

8 years agor4339 commitReplaceFile(): reset thumbnail on update
Denis Ovsienko [Tue, 15 Mar 2011 12:20:27 +0000 (12:20 +0000)] 
r4339 commitReplaceFile(): reset thumbnail on update
replaceFile(): dissmiss local UPDATE statement

8 years agor4338 considerGivenConstraint: ability to check context tags
Alexey Andriyanov [Tue, 15 Mar 2011 11:55:30 +0000 (11:55 +0000)] 
r4338 considerGivenConstraint: ability to check context tags

8 years agor4337 generateAutoPorts(): dismiss dead code
Denis Ovsienko [Tue, 15 Mar 2011 11:48:55 +0000 (11:48 +0000)] 
r4337 generateAutoPorts(): dismiss dead code
showMessageOrError(): remove two unused message codes

8 years agor4336 new function judgeContext introduced.
Alexey Andriyanov [Tue, 15 Mar 2011 10:51:42 +0000 (10:51 +0000)] 
r4336 new function judgeContext introduced.

8 years agor4335 JunOS 802.1q function now supports live portconfig feature
Alexey Andriyanov [Mon, 14 Mar 2011 15:50:56 +0000 (15:50 +0000)] 
r4335 JunOS 802.1q function now supports live portconfig feature

jun10Read8021QConfig: portconfig is now stored in ['config'] key of result

8 years agor4334 fixed some issues with recent commit about static content caching
Alexey Andriyanov [Mon, 14 Mar 2011 14:21:29 +0000 (14:21 +0000)] 
r4334 fixed some issues with recent commit about static content caching

caching.php: file was cloned from render-image.php to keep version history
the CACHE_DURATION constant was rised from dead
the inclusion of caching.php was moved to init.php
proxyStaticURI: idem

8 years agor4333 removing caching.php to keep the changehistory of the functions in it
Alexey Andriyanov [Mon, 14 Mar 2011 14:10:29 +0000 (14:10 +0000)] 
r4333 removing caching.php to keep the changehistory of the functions in it

8 years agor4332 new object types: power supply chassis, power supply (#409)
Aaron Dummer [Mon, 14 Mar 2011 02:48:51 +0000 (02:48 +0000)] 
r4332 new object types: power supply chassis, power supply (#409)

8 years agor4331 HTTP-cache headers support for static content returned by module=chrome
Alexey Andriyanov [Sat, 12 Mar 2011 20:00:27 +0000 (20:00 +0000)] 
r4331 HTTP-cache headers support for static content returned by module=chrome

checkCachedResponse: former checkIMSCondition, sets Cache-Control and Last-Modified headers
HTTPDateToUnixTime: moved from render_image.php to the new file caching.php
proxyStaticURI: adapded to support caching
dispatchImageRequest: no more setting of http headers for caching: now checkCachedResponse is resposible for that
index.php: handler of 'image' supports caching for 'progressbar'

8 years agor4330 getTagIDListForNode(): new computational function
Denis Ovsienko [Sat, 12 Mar 2011 14:08:01 +0000 (14:08 +0000)] 
r4330 getTagIDListForNode(): new computational function
renderTagRowForEditor(): refine the code, make use of above for cleaner SELECTs
renderTagTreeEditor(): update THs

8 years agor4329 remove handling of standalone favicon.ico and logically split wwwroot into...
Denis Ovsienko [Sat, 12 Mar 2011 10:29:23 +0000 (10:29 +0000)] 
r4329 remove handling of standalone favicon.ico and logically split wwwroot into "application library" and "index" parts

8 years agor4328 renderRackObject(): add missing call to htmlspecialchars()
Denis Ovsienko [Sat, 12 Mar 2011 09:54:05 +0000 (09:54 +0000)] 
r4328 renderRackObject(): add missing call to htmlspecialchars()
renderObjectLogEditor(): idem
allObjectLogs(): idem

8 years agor4327 remove old comments
Denis Ovsienko [Sat, 12 Mar 2011 09:53:34 +0000 (09:53 +0000)] 
r4327 remove old comments

8 years agor4326 proxyStaticURI(): add "ico" case
Denis Ovsienko [Fri, 11 Mar 2011 18:32:25 +0000 (18:32 +0000)] 
r4326 proxyStaticURI(): add "ico" case
favicon.ico: move to "pix" directory, so chrome module can handle it
init.php: update HREF respectively
printPDOException(): idem
printGenericException(): idem

8 years agor4325 index.php: fix "installer" case condition; fix exceptions throwing/catching...
Denis Ovsienko [Fri, 11 Mar 2011 18:07:58 +0000 (18:07 +0000)] 
r4325 index.php: fix "installer" case condition; fix exceptions throwing/catching logic

8 years agor4324 added RHEL6
Aaron Dummer [Fri, 11 Mar 2011 17:15:15 +0000 (17:15 +0000)] 
r4324 added RHEL6

8 years agor4323 bugfix: got rid of 'undefined offset: 1' PHP notice
Alexey Andriyanov [Fri, 11 Mar 2011 12:30:45 +0000 (12:30 +0000)] 
r4323 bugfix: got rid of 'undefined offset:  1' PHP notice

8 years agor4322 re-ammend recent JunOS changes
Alexey Andriyanov [Fri, 11 Mar 2011 12:19:50 +0000 (12:19 +0000)] 
r4322 re-ammend recent JunOS changes

setDevice8021QConfig: removed the default value of the $vlan_names param cause it is never used
jun10TranslatePushQueue: idem

8 years agor4321 vrp55Read8021QConfig(): include port name in exception message
Denis Ovsienko [Fri, 11 Mar 2011 10:50:56 +0000 (10:50 +0000)] 
r4321 vrp55Read8021QConfig(): include port name in exception message

8 years agor4320 bugfix: fexed undefined variable $error_message in renderDiscoveredNeighbors
Alexey Andriyanov [Fri, 11 Mar 2011 10:33:13 +0000 (10:33 +0000)] 
r4320 bugfix: fexed undefined variable $error_message in renderDiscoveredNeighbors

8 years agor4319 Amend recent JunOS commits:
Denis Ovsienko [Fri, 11 Mar 2011 10:32:52 +0000 (10:32 +0000)] 
r4319 Amend recent JunOS commits:

exec8021QDeploy(): pass empty array instead of NULL on no data
setDevice8021QConfig(): tolerate missing 3rd argument
ios12TranslatePushQueue(): add 2nd argument to meet the expected spec
fdry5TranslatePushQueue(): ditto
vrp53TranslatePushQueue(): ditto
vrp55TranslatePushQueue(): ditto
xos12TranslatePushQueue(): ditto
jun10TranslatePushQueue(): move default argument value to spec

8 years agor4318 bugfix: undefined index in renderIPv4SpaceRecords
Alexey Andriyanov [Thu, 10 Mar 2011 16:29:53 +0000 (16:29 +0000)] 
r4318 bugfix: undefined index in renderIPv4SpaceRecords

8 years agor4317 bugfix: typo in setPortVLAN ('vlanind' instead of 'vlanid')
Alexey Andriyanov [Thu, 10 Mar 2011 16:27:21 +0000 (16:27 +0000)] 
r4317 bugfix: typo in setPortVLAN ('vlanind' instead of 'vlanid')

8 years agor4316 JunOS gateway: bugfix
Alexey Andriyanov [Thu, 10 Mar 2011 16:22:02 +0000 (16:22 +0000)] 
r4316 JunOS gateway: bugfix

jun10TranslatePushQueue: avoiding appearing of the vlan in both members and native

8 years agor4315 bugfix: got rid of two PHP notices
Alexey Andriyanov [Thu, 10 Mar 2011 13:02:02 +0000 (13:02 +0000)] 
r4315 bugfix: got rid of two PHP notices

renderRSPoolLBForm: quoted array keys
renderVServiceLBForm: idem
ciscoReadInterfaceStatus: removed unused and sometimes undefined $type variable

8 years agor4314 jun10Read8021QConfig: minor bugfixes
Alexey Andriyanov [Thu, 10 Mar 2011 12:06:06 +0000 (12:06 +0000)] 
r4314 jun10Read8021QConfig: minor bugfixes

8 years agor4313 bugfix: queryLDAPServer: Undefined offset: 1
Alexey Andriyanov [Thu, 10 Mar 2011 11:19:40 +0000 (11:19 +0000)] 
r4313 bugfix: queryLDAPServer: Undefined offset:  1

8 years agor4312 bugfix: undefined index: 'mode' in ios12PickSwitchportCommand
Alexey Andriyanov [Thu, 10 Mar 2011 11:03:58 +0000 (11:03 +0000)] 
r4312 bugfix: undefined index: 'mode' in ios12PickSwitchportCommand

8 years agor4311 bugfix: produceDownlinkPort was not working properly
Alexey Andriyanov [Thu, 10 Mar 2011 10:57:02 +0000 (10:57 +0000)] 
r4311 bugfix: produceDownlinkPort was not working properly

8 years agor4310 refine filesystem paths logic, trying to make Makefile and init.php play together
Denis Ovsienko [Thu, 10 Mar 2011 09:43:35 +0000 (09:43 +0000)] 
r4310 refine filesystem paths logic, trying to make Makefile and init.php play together

8 years agor4309 JunOS 10 802.1q gateway
Alexey Andriyanov [Thu, 10 Mar 2011 09:31:32 +0000 (09:31 +0000)] 
r4309 JunOS 10 802.1q gateway

new deviceconfig connector jun10.connector written in Perl, supporting telnet and ssh
functions ***TranslatePushQueue now accepts additional parameter - vlan_names array
setDevice8021QConfig: added additional vlan_names param into function call
exportSwitch8021QConfig: idem
exec8021QDeploy: idem

jun10Read8021QConfig: new gateway function
jun10TranslatePushQueue: idem

8 years agor4308 JunOS 10 802.1q gateway
Alexey Andriyanov [Thu, 10 Mar 2011 09:31:04 +0000 (09:31 +0000)] 
r4308 JunOS 10 802.1q gateway

new deviceconfig connector jun10.connector written in Perl, supporting telnet and ssh
functions ***TranslatePushQueue now accepts additional parameter - vlan_names array
setDevice8021QConfig: added additional vlan_names param into function call
exportSwitch8021QConfig: idem
exec8021QDeploy: idem

jun10Read8021QConfig: new gateway function
jun10TranslatePushQueue: idem

8 years agor4307 make directory and tar.gz lettercase the same for packaging purposes
Denis Ovsienko [Wed, 9 Mar 2011 17:16:01 +0000 (17:16 +0000)] 
r4307 make directory and tar.gz lettercase the same for packaging purposes

8 years agor4306 justify datadir path
Denis Ovsienko [Wed, 9 Mar 2011 16:49:28 +0000 (16:49 +0000)] 
r4306 justify datadir path

8 years agor4305 initial revision
Denis Ovsienko [Wed, 9 Mar 2011 16:43:12 +0000 (16:43 +0000)] 
r4305 initial revision

8 years agor4304 proxyStaticURI(): add rows for JPEG and make suffix check case-insensitive
Denis Ovsienko [Wed, 9 Mar 2011 09:45:27 +0000 (09:45 +0000)] 
r4304 proxyStaticURI(): add rows for JPEG and make suffix check case-insensitive

8 years agor4303 install.php: convert into pure library, add inline style
Denis Ovsienko [Tue, 8 Mar 2011 21:06:34 +0000 (21:06 +0000)] 
r4303 install.php: convert into pure library, add inline style
index.php: add "installer" case

8 years agor4302 renderAddMultipleObjectsForm(): fix spelling
Aaron Dummer [Tue, 8 Mar 2011 06:23:09 +0000 (06:23 +0000)] 
r4302 renderAddMultipleObjectsForm(): fix spelling

8 years agor4301 index.php: add "upgrade" case with some of the code previously located in upgra...
Denis Ovsienko [Mon, 7 Mar 2011 13:19:45 +0000 (13:19 +0000)] 
r4301 index.php: add "upgrade" case with some of the code previously located in upgrade.php
upgrade.php: convert into pure library, use inline CSS
init.php: update URI in message
platform_function_test(): change default class
showError(): update default location

8 years agor4300 printPageHeaders(): also use static proxy for JS files
Denis Ovsienko [Mon, 7 Mar 2011 11:05:14 +0000 (11:05 +0000)] 
r4300 printPageHeaders(): also use static proxy for JS files
CodePress: fix to access its bits through static proxy

8 years agor4299 RE_STATIC_URI: require filename prefix be at least one char long
Denis Ovsienko [Mon, 7 Mar 2011 10:26:16 +0000 (10:26 +0000)] 
r4299 RE_STATIC_URI: require filename prefix be at least one char long
init.php: always have a default value for $racktables_staticdir
TSURI(): sayonara
index.php: rename "tsuri" module to "chrome"
getImageHREF(): update
printPageHeaders(): update
proxyStaticURI(): update
formatPortLinkHints(): update
portinfo.js: update

8 years agor4298 remove require(), which is no longer needed here
Denis Ovsienko [Sun, 6 Mar 2011 22:10:43 +0000 (22:10 +0000)] 
r4298 remove require(), which is no longer needed here

8 years agor4297 renderError(): rename to renderErrorImage()
Denis Ovsienko [Sun, 6 Mar 2011 22:08:43 +0000 (22:08 +0000)] 
r4297 renderError(): rename to renderErrorImage()

8 years agor4296 index.php: speed up popup module by eliminating dependency on 320+ KB interface.php
Denis Ovsienko [Sun, 6 Mar 2011 18:50:52 +0000 (18:50 +0000)] 
r4296 index.php: speed up popup module by eliminating dependency on 320+ KB interface.php
navigation.php: replace function call with a static string, which will be overridden upon loading the config
interface.php: move $image array and 7 functions to interface-lib.php (new file)
init.php: require interface-lib.php unconditionally, gather require stements at top

8 years agor4295 fixed catch-block and moved clearMessages() to where it better belongs
Denis Ovsienko [Sun, 6 Mar 2011 16:06:59 +0000 (16:06 +0000)] 
r4295 fixed catch-block and moved clearMessages() to where it better belongs

8 years agor4294 updated comment block
Denis Ovsienko [Sun, 6 Mar 2011 15:35:28 +0000 (15:35 +0000)] 
r4294 updated comment block

8 years agor4293 getDBUpgradePath(): fix to return correct result on equal arguments
Denis Ovsienko [Sat, 5 Mar 2011 14:29:12 +0000 (14:29 +0000)] 
r4293 getDBUpgradePath(): fix to return correct result on equal arguments

8 years agor4292 popup.php: turn into a pure library file
Denis Ovsienko [Sat, 5 Mar 2011 13:32:50 +0000 (13:32 +0000)] 
r4292 popup.php: turn into a pure library file
renderPopupHTML(): new function to wrap existing code
makeHrefForHelper(): update for dispatched popup URI
index.php: add "popup" case to module dispatcher

8 years agor4291 fix redirection URI
Denis Ovsienko [Sat, 5 Mar 2011 13:23:30 +0000 (13:23 +0000)] 
r4291 fix redirection URI

8 years agor4290 redirectIfNecessary(): remove obsolete redirection maps
Denis Ovsienko [Sat, 5 Mar 2011 13:10:47 +0000 (13:10 +0000)] 
r4290 redirectIfNecessary(): remove obsolete redirection maps

8 years agor4289 index.php: add implicit "interface" case to module dispatcher and move top...
Denis Ovsienko [Sat, 5 Mar 2011 13:06:31 +0000 (13:06 +0000)] 
r4289 index.php: add implicit "interface" case to module dispatcher and move top-level code there

8 years agor4288 renderInterfaceHTML(): new function to keep the HTML code from index.php
Denis Ovsienko [Sat, 5 Mar 2011 11:16:57 +0000 (11:16 +0000)] 
r4288 renderInterfaceHTML(): new function to keep the HTML code from index.php

8 years agor4287 tableHandler(): access opspec structure in a way without PHP warning
Denis Ovsienko [Fri, 4 Mar 2011 12:08:02 +0000 (12:08 +0000)] 
r4287 tableHandler(): access opspec structure in a way without PHP warning

8 years agor4286 process.php: delete
Denis Ovsienko [Fri, 4 Mar 2011 12:03:17 +0000 (12:03 +0000)] 
r4286 process.php: delete
index.php: merge redirecting code from process.php into dispatching block
makeHrefProcess(): update respectively
popup.php: idem
buildWideRedirectURL(): suppress "module" argument to get out if redirection cycle

8 years agor4285 renderAccessDenied(): let calling function decide, if it wants to terminate...
Denis Ovsienko [Fri, 4 Mar 2011 11:21:45 +0000 (11:21 +0000)] 
r4285 renderAccessDenied(): let calling function decide, if it wants to terminate or not

8 years agor4284 index.php: add "ajax" case to module dispatcher
Denis Ovsienko [Thu, 3 Mar 2011 22:31:43 +0000 (22:31 +0000)] 
r4284 index.php: add "ajax" case to module dispatcher
dispatchAJAXRequest(): new function to merge meaningful code from ajax.php
ajax.php: dismiss
renderRackCodeEditor(): update AJAX URI
portinfo.js: ditto

8 years agor4283 index.php: add "image" case to module dispatcher
Denis Ovsienko [Thu, 3 Mar 2011 18:41:24 +0000 (18:41 +0000)] 
r4283 index.php: add "image" case to module dispatcher
render_image.php: add function wrappings to convert to a pure library file, move to "inc" directory
renderFilePreview(): remove dead code and fix a bug with no preview output for a small image
renderRackspace(): update image URI respectively
renderRow(): idem
getProgressBar(): idem
renderCell(): idem
getFilePreviewCode(): idem

8 years agor4282 addRack(): use the right message code
Denis Ovsienko [Thu, 3 Mar 2011 16:37:24 +0000 (16:37 +0000)] 
r4282 addRack(): use the right message code

8 years agor4281 printStatic404(): new function, move HTML code from proxyStaticURI() here
Denis Ovsienko [Thu, 3 Mar 2011 16:05:15 +0000 (16:05 +0000)] 
r4281 printStatic404(): new function, move HTML code from proxyStaticURI() here
proxyStaticURI(): enforce extension and topdir whitelists

8 years agor4280 fix a recently introduced issue with local.php
Denis Ovsienko [Thu, 3 Mar 2011 15:10:20 +0000 (15:10 +0000)] 
r4280 fix a recently introduced issue with local.php

8 years agor4279 index.php: merge and clean up the code from download.php into "download" module
Denis Ovsienko [Thu, 3 Mar 2011 12:56:14 +0000 (12:56 +0000)] 
r4279 index.php: merge and clean up the code from download.php into "download" module
download.php: sayonara
renderFile(): update respectively
renderFileDownloader(): idem
renderCell(): idem
getFilePreviewCode(): idem

8 years agor4278 add unset() back
Denis Ovsienko [Thu, 3 Mar 2011 12:24:37 +0000 (12:24 +0000)] 
r4278 add unset() back

8 years agor4277 getFile(): simplify
Denis Ovsienko [Thu, 3 Mar 2011 12:23:35 +0000 (12:23 +0000)] 
r4277 getFile(): simplify

8 years agor4276 formatPortLink: moved from interfaces.php to functions.php
Alexey Andriyanov [Thu, 3 Mar 2011 11:48:32 +0000 (11:48 +0000)] 
r4276 formatPortLink: moved from interfaces.php to functions.php

moved because this function is needed in ophandlers sometimes to format error/success messages

8 years agor4275 formatPortLinkHints(): add TSURI() wrapping
Denis Ovsienko [Thu, 3 Mar 2011 10:27:19 +0000 (10:27 +0000)] 
r4275 formatPortLinkHints(): add TSURI() wrapping

8 years agor4274 printPageHeaders(): amend the last commit wrt JS files, CodePress isn't ready...
Denis Ovsienko [Thu, 3 Mar 2011 10:19:44 +0000 (10:19 +0000)] 
r4274 printPageHeaders(): amend the last commit wrt JS files, CodePress isn't ready for the proxy

8 years agor4273 Initial implementation of #389, section 3.3.
Denis Ovsienko [Thu, 3 Mar 2011 00:07:45 +0000 (00:07 +0000)] 
r4273 Initial implementation of #389, section 3.3.

index.php: add dispatching code
TSURI(): new function for static URI translation
getImageHREF(): make use of the wrapper for static images
printPageHeaders(): idem, for CSS/JS content
proxyStaticURI(): new function to actually serve the content

8 years agor4272 renderTagRowForEditor(): increase SIZE attribute of tag_name INPUT
Denis Ovsienko [Wed, 2 Mar 2011 19:28:31 +0000 (19:28 +0000)] 
r4272 renderTagRowForEditor(): increase SIZE attribute of tag_name INPUT
renderTagTreeEditor(): idem