summaryrefslogtreecommitdiff
path: root/classes/Misc.php
AgeCommit message (Collapse)Author
2020-10-07Adjustements for jquery updateJean-Michel Vourgère
- Replaced .click(function) by .on('click', function) - Replaced .click() by .trigger('click') - Replaced .live(event, function) by .on(event, function) - Replaced $(document).ready(function) by $(function) - Replaced .bind/.unbind by .on/.off - Replaced keypress events by keydown events, so that up/down keys get supported again. Thanks to the jquery-migrate project.
2019-11-07codespell assisted typo cleaningJean-Michel Vourgère
2019-10-31codespell assisted typo cleaningJean-Michel Vourgère
2019-10-13Support truncation of mulitbyte sringsnirgal
This fixes https://sourceforge.net/p/phppgadmin/bugs/422/ : substr truncates on a byte-level, sometimes within a multi-byte character. This resulted in the whole string sometime not being displayed. See the original bug report for a way to reproduce. Please note that this requires php-mbstring to be installed. This is usually the case, but the dependency should be described in the INSTALL file or something.
2019-10-08xtree: tables & views can't expand the browse itemnirgal
In the left tree, in tables and views, when one click on the + of browse, a message like "Erreur lors du chargement display.php?action=tree&return=schema&subject=view&view=test+vue&server=localhost%3A5432%3Aallow&database=bug422&schema=public (200: OK)" is displayed. These items don't support tree actions, and the tree expansion should be be offered in the first place.
2019-06-28At last, the long awaited patch for php7 support.Robert Treat
This commit is focused strictly on the class/constructor changes. This has primarily been tested on php 7.1 and postgres 11, with all tests passing though there are some spurious warnings; I have fixes for them but will add them in seperate commits. Note that the code here is my own, but I did look at patches from @gabrielhomsi and @w1ldzer0 for some sanity checking. Any bugs or missing items are on me.
2018-11-12Fixed Error Line 686Augusto Teixeira da Costa
Error: Divid By Zero
2015-03-05Fix SF Bug #446 pagination not changing page (through select).Robert Treat
Fix by timding and ronlm
2015-02-16improve data management navigation; adds browse/search options to ↵firzen
tables/views, and insert to tables. Based on patch by firzen, with additional work by xzilla
2015-02-15htmlescape column comments. per suggestion from github user nboutelierRobert Treat
2014-09-08Fix javascript bug with popupsJehan-Guillaume
Dynamic themes applies the current main frame theme to the browser tree frame without checking if it actually exists in the current window. Thispatch fix the resulting javascript error, breaking any other following code.
2014-03-02This is a horrible commit, but it cleans up hundreds of warnings that get ↵Robert Treat
thrown when a class is not specified, and it fixes it so that the broken admin tests pass. I'm pretty sure that ultimately we will want a better fix than this, but I'm taking the progress when I can get it. AFAICT the affore mentioned problems were introduced in https://github.com/phppgadmin/phppgadmin/commit/4680728829d8f95e29514512c9e94bb5345aa58a. If that was something you wanted, it's quite possibly broken now.
2014-01-02Merge branch 'master' into dyn_themesJehan-Guillaume de Rorthais
2013-11-17Use cleaner class names for comments cells and constaints iconsJehan-Guillaume de Rorthais
2013-11-17theme improvement /19.01-04.02.2011/Tomasz Pala
2013-11-11Add dynamic theme based on current server, database or user used for the ↵Jehan-Guillaume (ioguix) de Rorthais
connection Based on Julien Rouhaud patch.
2013-03-26Add plugin hook 'head'.Jehan-Guillaume (ioguix) de Rorthais
Allows to add tags in <head /> from plugins
2013-03-26Fix incorrect modification of bytea data when updating rows that contain ↵Robert Treat
bytea columns. Based on the POC patch from ioguix. This fixes SF Bug # 3243916.
2012-09-30Fix PHP notice when server group is not set, reported by Karl O. PincJehan-Guillaume (ioguix) de Rorthais
2012-08-29Fix nested group : when no server set and printTitle issueJulien Rouhaud
2012-08-22Fix typo in var name leading to PHP warningJehan-Guillaume (ioguix) de Rorthais
2012-08-22Makes display more plugin friendlyJehan-Guillaume (ioguix) de Rorthais
Plugins might need (at least Report) to set parameters in the URL and use them in their code while working with display.php. This patch makes sure their URL parameters are not lost while clicking on sort or pager links when navigating in the result set. Nice side effect: cleaner code (hopefuly with no bug...).
2012-08-22Allows plugin to set a return link in navlinksJehan-Guillaume (ioguix) de Rorthais
In some page (display, sql, ...), a "return" link will show up if $_GET['return'] = 'plugin' is given. The "get_subject_params" method of the plugin designated by $_GET['plugin'] is then called to add needed parameters in the href URL.
2012-08-22Give environnments vars to the navlink hookJehan-Guillaume (ioguix) de Rorthais
Helpful to decide when to add a navlink or not depending on the context
2012-08-22Remove the report feature from PPA (will be a plugin)Jehan-Guillaume (ioguix) de Rorthais
Starting with PPA 5.1, Reports will be available as plugins.
2012-08-22Set default decorateur values for url if not givenJehan-Guillaume (ioguix) de Rorthais
It allows to have a shorter code when defining the URL array. Moreover, PHP was silently failing to pass $link['fields'] to getActionUrl when it was not set...
2012-08-22Fix bug where toplinks where brokenJehan-Guillaume (ioguix) de Rorthais
Bad escaping of the embeded js code in the tag.
2012-08-22Add jquery in html <head> instead of loading it when necessary from <body>Jehan-Guillaume (ioguix) de Rorthais
2012-08-22Cosmetic fix to use an appropriate variable nameJehan-Guillaume (ioguix) de Rorthais
2012-08-22Name all top links so we can make reference to all of them from the plugins ↵Jehan-Guillaume (ioguix) de Rorthais
sources
2012-08-22Add support for 'tree' hooks in the plugin architecture.Jehan-Guillaume (ioguix) de Rorthais
2012-08-22Add support for 'actionbuttons' hooks in the plugin architecture.Leonardo Sapiras
By Leonardo Sapiras during the GSoC 2011. Reviewed, massively patched, fixed, integrated and commited by ioguix
2012-08-22Add support for 'navlink' hooks in the plugin architecture.Leonardo Sapiras
By Leonardo Sapiras during the GSoC 2011. Reviewed, massively patched, fixed, integrated and commited by ioguix
2012-08-22Add support for 'trail' hooks in the plugin architecture.Leonardo Sapiras
By Leonardo Sapiras during the GSoC 2011, reviewed, patched, integrated and commited by ioguix
2012-08-22Add support for 'tabs' hooks in the plugin architecture.Leonardo Sapiras
By Leonardo Sapiras during the GSoC 2011, reviewed, patched, integrated and commited by ioguix.
2012-08-22Add support for 'toplinks' hooks in the plugin architecture.Leonardo Sapiras
By Leonardo Sapiras during the GSoC 2011, reviewed, patched, integrated and commited by ioguix.
2012-08-22Refactor printActionUrl as getActionUrlJehan-Guillaume (ioguix) de Rorthais
remove useless parameters and make it simpler. Takes part in the pavement for WIP plugin architecture.
2012-08-22Remove old plugin architecture.Leonardo Sapiras
Patch by Leonardo Sapiras, remerged by ioguix. * remove old plugin architecture * remove plugin Slony
2012-08-22Support for nested serveur groupsJulien Rouhaud
Add ability to nest server groups in some other groups. Thus, config files now allows to have as many level of server groups as wanted.
2012-01-09Merge branch 'utf-8'Jehan-Guillaume (ioguix) de Rorthais
2011-12-30Fix bug #3429633 '"Back" link from "Browse" leads to error'Jehan-Guillaume (ioguix) de Rorthais
The old design did not allow to escaped things properly without breaking the return URL. Moreover, it raised some bug as well when the return URL was too long, hitting the GET max length limit. This patch remove the old architecture and introduce the new "return" GET parameter that only holds the name of the section we want to go back.
2011-12-30Makes phpPgAdmin core full UTF-8 only.Jehan-Guillaume (ioguix) de Rorthais
Translations, db connexions and html pages are now all in UTF-8. In consequence: * we remove everything about recode stuffs * recode all lang/ translation files to UTF-8 * force UTF-8 in htmlentities
2011-12-29Securing $misc->hrefJehan-Guillaume (ioguix) de Rorthais
See http://php.net/manual/en/function.urlencode.php This is only used in href parameter of A tag and should be escaped properly.
2011-09-28Fix two security fix about XSS, reported by Mateusz Goik, fixed by ioguix.Jehan-Guillaume (ioguix) de Rorthais
2011-06-01remove $username when calling $data->isSuperUser about current connection roleJehan-Guillaume (ioguix) de Rorthais
2010-11-29remove useless date from the topbar informationsGuillaume (ioguix) de Rorthais
2010-11-27Add CSS classes for rows without actual dataGuillaume (ioguix) de Rorthais
Needed to seperate data style to presentation style.
2010-09-29Quick Fix on the xloadtree code about bad html specialchars escaping and xml ↵Jehan-Guillaume (ioguix) de Rorthais
encoding
2010-09-28Fix bug #2876417 "SQL window too small size to see bottom buttons (Execute)"Guillaume (ioguix) de Rorthais
Enabled scrollbars and bigger window size
2010-09-28Fix multi bug in auto-complete value on insert/updateGuillaume (ioguix) de Rorthais
* explicitly not support multi FK constr, only deal with the first one. marked as FIXME * some bad escaped vars were failing the auto-complete on very weird table/field names * some cleanup