diff --git a/CREDITS b/CREDITS deleted file mode 100644 index b5aec41..0000000 --- a/CREDITS +++ /dev/null @@ -1,106 +0,0 @@ -CREDITS -------- - -Project Administration & Major Projects - -- Robert Treat -- Jehan-Guillaume (ioguix) De Rorthais - -Translators - -- Kuo Chaoyi (Chinese Utf8) -- Angelo Rigo (Brazilan Portuguese) -- Chan Min Wai (Chinese) -- He Wei Ping (Chinese) -- Chih-Hsin Lee (Trad. Chinese) -- Hugo Jonker (Dutch) -- Pascal Peyre (French) -- Guillaume Lelarge (French) -- ioguix (French) -- H. Etzel, Markus Bertheau (German) -- Kalef (Italian) -- Tadashi Jokagi (Japanese) -- Rafal Slubowski (Polish) -- Alexander Khodorisky (Russian) -- Martin Marqués (Spanish) -- Andrej Misovic (Slovak) -- Devrim Gunduz (Turkish) -- Libor Vanek (Czech) -- Marek Cernocký (Czech) -- Stefan Malmqvist (Swedish) -- Nicola Soranzo (Italian) -- Petri Jooste (Afrikaans) -- Sulyok Péter (Hungarian) -- Zaki Almuallim (Arabic) -- Erdenemandal Bat-Erdene (Mongolian) -- Alex Rootoff (Ukrainian) -- Jonatan (Hebrew) -- Alin Vaida (Romanian) -- Arne Eckmann (Danish) -- Francisco Cabrita (Portuguese) -- Bernat Pegueroles (Catalan) -- Fernando Wendt (Brazilan Portuguese) -- Adamantios Diamantidis (Greek) -- Marek ¿ernocký (Czech) -- Alexey Baturin (Russian UTF8) -- Adrián Chaves Fernández (Galician) - -Look & Feel - -- Davey (CSS) -- ioguix (Cappuccino theme) -- Tomasz Pala (Gotar theme) - -Contributors - -- Dan Wilson -- Christopher Kings-Lynne -- Felix Meinhold -- Jean-Michel Poure -- Rafal Slubowski -- Brett Toolin -- Mark Gibson (Pop-up SQL window) -- Nicola Soranzo -- Oliver Meyer & Sven Kiera (Table icons link to browse table) -- Bryan Encina (SQL window improvements, bug fixes, admin) -- Dan Boren (Object comments) -- Adrian Nida (Fix time outs) -- Russell Smith -- Guillaume Lelarge -- Ian Barwick -- Javier Carlos -- Eric Kinolik -- John Jawed -- Karl O. Pinc -- Tomasz Pala -- Ivan Zolotukhin -- Kristoffer `spq` Janke -- Leonardo Augusto Sapiras (Improve phpPgAdmin ergonomy during the GSoC 2010, with ioguix as mentor) -- Julien Rouhaud, aka. rjuju (nested groups) - -Third Party Libraries - -- Highlight.php (Jacob D. Cohen of rafb.net) -- XLoadTree2 (Erik Arvidsson & Emil A Eklund of webfx.eae.net) -- jQuery (http://jquery.com/) - -Corporate Sponsors - -Project resources: - -- Sourceforge.net - Hosting, source package provider, Bug and Feature request tracker, hosting mailing lists (and ex code repository) -- github.com - Official GIT repository hosting -- Kattare Internet (http://www.kattare.com/) - Hosting the demo server - -Ongoing contributors: - -- Omniti ( http://omniti.com/ ) - sponsors developpment as Robert Treat employer -- Dalibo ( http://dalibo.com ) - sponsors developpment as Jehan-Guillaume (ioguix) de Rorthais employer - -Feature contributors: - -- SpikeSource (www.spikesource.com) - Slony support -- Google Summer of Code (http://code.google.com/soc/2006/pgsql/appinfo.html?csaid=DB096D908B948D89) - phpPgAdmin Improvements -- Google Summer of Code (http://code.google.com/soc/2007/postgres/appinfo.html?csaid=E89B3D5E2DC4170A) - Full Text Search in PostgreSQL GUI Tools -- Google Summer of Code (http://code.google.com/p/google-summer-of-code-2010-postgres/downloads/detail?name=Leonardo_Augusto_Sapiras.tar.gz) - Improve phpPgAdmin ergonomy - diff --git a/DEVELOPERS b/DEVELOPERS deleted file mode 100644 index b4e2834..0000000 --- a/DEVELOPERS +++ /dev/null @@ -1,148 +0,0 @@ -DEVELOPER INFO --------------- - -phpPgAdmin is Free/Open Source software and contributions are welcome from -everyone. Please be sure to join the developers' mailing list: - - https://lists.sourceforge.net/lists/listinfo/phppgadmin-devel - -SOURCE REPOSITORY ------------------ - -phpPgAdmin uses git for source control management. The phpPgAdmin git repository -is hosted at github: - - https://github.com/phppgadmin/phppgadmin - -To clone the phpPgAdmin source to your development system, execute the following -command: - - git clone git://github.com/phppgadmin/phppgadmin.git - -After making changes, generate a patch using "git format-patch" and submit it -to the phpPgAdmin devel mailing list. - -Alternatively you can clone the phppgadmin repository on github and make a pull -request. For details on how to make pull requests, see: - - https://help.github.com/articles/using-pull-requests - -Please note that submitting code is considered a transfer of copyright to the -phpPgAdmin project. phpPgAdmin is made available under the GPL v2 license. - -Push access to the main phpPgAdmin git repository can be granted to developers -with a track record of useful contributions to phpPgAdmin at the discretion -of the phpPgAdmin development team. - -TIPS FOR DEVELOPERS -------------------- - -When you submit code to phpPgAdmin, we do expect it to adhere to the existing -coding standards in the source. So, instead of using your personal favourite -code layout style, please format it to look like surrounding code. -In general, we want the code to be portable, standard compliant (e.g. to W3C -(X)HTML and CSS) and independent of specific configurations of PHP, the web -server, PostgreSQL or the user browser. We also try to support as many versions -as possible of these applications. - -Test your code properly! For example, if you are developing a feature to create -domains, try naming your domain all of the following: - - * " - * ' - * \ - * words with spaces - *


- -If you are adding a new class function, be sure to use the "clean", -"fieldClean", "arrayClean" and "fieldArrayClean" functions to properly escape -odd characters in user input. Examine existing functions that do similar -things to yours to get yours right. - -When writing data to the display, you should always urlencode() variables in -HREFs and htmlspecialchars() variables in forms. Rather than use action="" -attributes in HTML form elements use action="thisformname.php". This -ensures that browsers remove query strings when expanding the given -relative URL into a full URL. - -When working on database classes, always schema qualifing your SQL where it is -possible with the current schema ($data->_schema) for pg73+ classes. Then don't -forget to write your method for older classes which doesn't suppport schemas. - -When working with git, always make sure to do a 'git pull' both before you -start; so you have the latest code to work with; and also again before you -create your patch; to minimize the chance of having conflicts. - -COMMON VARIABLES ----------------- - -$data - A data connection to the current or default database. -$misc - Contains miscellaneous functions. eg. printing headers & footers, etc. -$lang - Global array containing translated strings. The strings in this array - have already been converted to HTML, so you should not - htmlspecialchars() them. -$conf - Global array of configuration options. - -WORKING WITH RECORDSETS ------------------------ - -phpPgAdmin uses the ADODB database library for all its database access. We have -also written our own wrapper around the ADODB library to make it more object -oriented (ADODB_base.pclass). - -This is the general form for looping over a recordset: - -$rs = $class->getResults(); -if (is_object($rs) && $rs->recordCount() > 0) { - while (!$rs->EOF) { - echo $rs->fields['field']; - $rs->moveNext(); - } -} -else echo "No results."; - -UPDATING LANGUAGE FILES FOR THE MONO-LINGUAL --------------------------------------------- - -If you need to add or modify language strings for a new feature, the preferred -method is: - -* cd into lang/ subdirectory -* modify english.php file only! -* run "make english" (this will recode the english.php file, and place an - updated copy in lang/recode/) - -If you've done it correctly, when you create your patch, it should only have -diffs of lang/english.php and lang/recode/english.php files. For more -information on how the language system works, please see the TRANSLATORS file. - - -UNDERSTANDING THE WORK/BRANCH/TAG/RELEASE PROCESS -------------------------------------------------- - -All new work for phpPgAdmin is done against the git master branch. When we feel -we are ready to do a new release, we create a branch (ex. REL_4-1). This -becomes the stable branch for all future 4.1.x releases, and any bugfixes needed -for 4.1 would go in that branch. - -When we release a new revision, we tag that at release time (REL_4-1-1), so a -checkout of any tag should give you the same files that downloading the release -would have given you. As a general rule, we do not introduce new features into -existing stable branches, only bugfixes and language updates. This means if you -want to work on new features, you should be working against the git master. -Eventually we will call for another release, and that will be branched (REL_4-2) -and the cycle will start over. - -On occasion we have created out-of-band branches, typically labeled as DEV_foo. -These were used for temporary, concurrent development of large features, and -should not be used by other developers. When development of those features is -completed, the branches get merged in as appropriate, so no further development -should occur on those branches. - -GETTING HELP ------------- - -We prefer most discussion of development to take place on the phpPgAdmin -devel mailing list, so that discussions can be archived and be searchable. -However, if you are into IRC, a couple of us hang out on #phppgadmin on -freenode, and occasionally discuss things there. diff --git a/FAQ b/FAQ deleted file mode 100644 index 8f1ae6c..0000000 --- a/FAQ +++ /dev/null @@ -1,217 +0,0 @@ -phpPgAdmin Frequently Asked Questions -------------------------------------- - -Installation errors -------------------- - -Q: I've installed phpPgAdmin but when I try to use it I get an error message - telling me that I have not compiled proper database support into my - PHP installation. - -A: This means that you have not properly compiled Postgres support into - your PHP. The correct configure flag to use is '--with-pgsql'. Read the - PHP manual and website for more help with this. - - Postgres support can be also compiled into PHP as a dynamic extension, - so if you have precompiled version (Linux RPM, or Windows binary), there - are still chances, that only thing you should do is to enable loading it - automagically. - - It can be done by editing your php.ini file (under Windows, usually in - C:\WINDOWS or C:\WINNT, under Linux /etc/php.ini) and uncommenting this - line: - - ;extension=php_pgsql.dll ;under Windows - ;extension=pgsql.so ;under Linux - - so it would look like that: - - extension=php_pgsql.dll ;under Windows - extension=pgsql.so ;under Linux - - In Linux distributions based on Red Hat or Fedora, PHP extensions are - automatically configured in /etc/php.d/pgsql.ini, simply install the - php-pgsql package. - - See http://www.php.net/manual/en/pgsql.setup.php for more information - on setting up Postgres support in PHP. - -Q: I get a warning like this when using phpPgAdmin on Windows: - - "Warning: session_start() [function.session-start]: - open(/tmp\sess_5a401ef1e67fb7a176a95236116fe348, O_RDWR) failed" - -A: You need to edit your PHP.INI file (usually in c:\windows) and change this - line: - - session.save_path = "/tmp" - - to: - - session.save_path = "c:\windows\temp" - - And make sure that the folder c:\windows\temp actually exists. - - -Login errors ------------- - -Q: I always get "Login failed" even though I'm _sure_ I'm using the right - username and password. - -A: There are a number of reasons why you might not be able to connect, typically - having nothing to do with phpPgAdmin itself. First check the Postgres log - on your server, it should contain a FATAL error message detailing the exact - reason why the login is failing. You will probably need to either adjust the - username or password, add LOGIN permissions to the role, or adjust your - pg_hba.conf file in your Postgres data dir; so follow the directions laid - out in the FATAL message. - - If you do not have any FATAL error messages, and you have verified that you - are looking at the properly configured logfile, then this means you are not - connecting to your database. If you are connecting via TCP/IP sockets (for - example if you have installed phpPgAdmin on a different computer than your - database) make sure that Postgres is accepting connection over TCP/IP. On - older versions of Postgres, you need to change this line in your - postgresql.conf file: - - #tcpip_socket = false - - to: - - tcpip_socket = true - - on newer versions of Postgres, this setting has been replaced by the - listen_addresses setting, so you will need to change that setting instead - (likely changing it to "*"). Be sure to restart Postgres after changing - either of these settings! - - If that still doesn't get you connected, then there is likely something - interfering between PHP and Postgres. Check to make sure that you don't have - a firewall preventing connectivity, or that you don't have some other - security setup (ie. SELinux policy) that prevents PHP from connecting. - -Q: For some users I get a "Login disallowed for security" message. - -A: Logins via phpPgAdmin with no password or certain usernames (pgsql, - postgres, root, administrator) are denied by default. Before changing this - behaviour (setting $conf['extra_login_security'] to false in the - config.inc.php file) please read the Postgres documentation about client - authentication and understand how to change Postgres's pg_hba.conf to - enable passworded local connections. - -Q: I can use any password to log in! - -A: Postgres, by default, runs in trust mode. That means that it doesn't - ask for passwords for local connections. We highly recommend that you - edit your pg_hba.conf file, and change the login type to 'md5'. Note - that if you change the 'local' login type to 'md5', then you might need - to enter a password to start Postgres. Get around this by using a - .pgpass file - explained in the Postgres documentation. - - -Other errors ------------- - -Q: When I enter non-ASCII data into the database via a form, it's inserted - as hexadecimal or Ӓ format! - -A: You have not created your database in the correct encoding. This problem - will occur when you try to enter an umlaut into an SQL_ASCII database, or - SJIS Japanese into an EUC-JP database, etc. - -Q: When I drop and re-create a table with the same name, it fails. - -A: You need to drop the sequence attached to the SERIAL column of the table - as well. Postgres 7.3 and above do this automatically. If you have - upgraded to Postgres 7.3 from an earlier version, you need to run the - contrib/adddepend script to record all dependencies. - -Q: When browsing a table, the 'edit' and 'delete' links do not appear. - -A: In order, phpPgAdmin will prefer the following as unique row identifiers: - - 1. Primary keys - 2. Unique keys (cannot be parital or expressional indexes) - 3. OID column (will require a sequential scan to update, unless you - index the OID column) - - Furthermore, any NULL values in the unique index will mean that that row - will be uneditable. Also, since OIDs can become duplicated in a table, - phpPgAdmin will alter the row, and then check to ensure that exactly one - row has been modified - otherwise rollback will occur. - - -Questions on dumps ------------------- - -Q: What happened to the database dump feature? - -A: You need to configure phpPgAdmin (in the config.inc.php file) to point - to the location of the pg_dump and pg_dumpall utilities on your web server. - Once you have done that, the database export feature will appear. - -Q: I would like to use the pg_dump integration for database and table - dumps on Windows. How do I get pg_dump.exe on Windows? - -A: To get the pg_dump utilities on Windows, you need to install Postgres 8.0 - or higher (we recommend the latest release) for Windows, available for - download from the - Postgres web site. - Once you have installed that, set the pg_dump and pg_dumpall locations - in the config.inc.php file to - 'C:\\Program Files\\Postgres\\8.0\\bin\\pg_dump.exe' and - 'C:\\Program Files\\Postgres\\8.0\\bin\\pg_dumpall.exe', or wherever you - installed them. - -Q: Why can't I reload the SQL script I dumped in the SQL window? - -A: The following limitations currently exist in SQL script execution: - - * Only uploaded SQL scripts can contain COPY commands and for - this to work, you must have PHP 4.2 or higher. - - * 'psql' commands such as '\connect' will not work at all. - - * Multiline SQL statements will not work, eg: - - CREATE TABLE example ( - a INTEGER - ); - - * You cannot change the current database or current user during - the execution of the script. - - We do intend to work on some of these limitations in the future, but - some of them are Postgres restrictions and we recommend using the - 'psql' utility to restore your full SQL dumps. - - -Other questions ---------------- - -Q: When inserting a row, what does the 'Value' or 'Expression' box mean? - -A: Choosing 'Expression' means that you can use functions, operators, other - field names, etc. in your value - you need to properly quote any literal - values yourself. 'Value' on the other hand, means that no matter what you - enter as the value, it will be inserted as-is into the database. - -Q: Why is there never any information on the 'Info' page of a table? - -A: The Info page will show you what other tables have foreign keys to the - current table and some data from the Postgres statistics collector. - In older versions of Postgres, the stats collector is not enabled by default. - To enable it, look in your postgresql.conf file for the stats_* options. - Just make them all 'true' and restart Postgres. - -Q: Why can't I download data from queries executed in the SQL window? - -A: You need to check the 'Paginate results' option to allow downloads. - -Q: I would like to help out with the development of phpPgAdmin. How should I - proceed? - -A: We really would like your help! Please read the DEVELOPERS and TRANSLATORS - files. - diff --git a/HISTORY b/HISTORY deleted file mode 100644 index 8b377f1..0000000 --- a/HISTORY +++ /dev/null @@ -1,798 +0,0 @@ -phpPgAdmin History ------------------- - -Version 5.1 ------------ - -Released: 14th April 2013 - -Features -* Full support for PostgreSQL 9.1 and 9.2 -* New plugin architecture, including addition of several new hooks (ioguix) -* Support nested groups of servers (Julien Rouhaud & ioguix) -* Expanded test coverage in Selenium test suite -* Highlight referencing fields on hovering Foriegn Key values when browsing tables (asleonardo) -* Simplified translation system implementation -* Don't show cancel/kill options in process page to non-superusers -* Add download ability from the History window -* User queries now paginate by default - -Bugs -* Fix several bugs with bytea support, including possible data corruption bugs when updating rows that have bytea fields -* Numeruous fixes for running under PHP Strict Standards -* Fix navigation links when browsing results from a report -* Fix multiple bugs related to GPC parameters pollution from code -* Fix an issue with autocompletion of text based Foreign Keys -* Fix a bug when browsing tables with no unique key -* Fix a bug with nested groups when no server was set (rjuju) - -Translations -* Lithuanian (artvras) - -Incompatabilities -* We have stopped testing against Postgres versions < 8.4, which are EOL -* phpPgAdmin core is now UTF-8 only - - -Version 5.0 ------------ - -Released: 29th November 2010 - -Features -* Support for PostgreSQL 8.4 and 9.0 -* Support for database level collation for 8.4+ -* Support for schema level export -* Add ability to alter schema ownership -* Clean up domain support and improve interface -* Add support for commenting on functions -* Allow user to rename role/users and set new passwords at the same time -* Greatly enhanced Full-Text-Search capabilities (ioguix, Loomis_K) -* Overhauled Selenium Test suite to support multiple database versions -* Optimized application graphics (Limo Driver) -* Support for Column Level Privileges -* Allow users to specify a template database at database creation time -* Support killing processes -* Add ability to create indexes concurrently -* Much better support of autovacuum configuration -* Add an admin page for table level -* Refactored autocompletion: - * fix support for cross-schema objects - * support multi-field FK - * support for pagination of values in the auto-complete list -* Allow user to logicaly group their server under custom named node in the browser tree -* New themes (Cappuccino and Gotar) and a theme switcher on the introduction page -* Auto refresh Locks page -* Auto refresh Processes page -* Link in the bottom of the page to go to top of page -* Browsing on Foreign Keys (When browsing a table, clicking on a FK value, jump to the PK row) - - -Bugs -* Fix problems with query tracking on overly long queries -* Ensure pg_dump paths are valid -* Fix multiple bugs about quoting and escaping database objects names with special chars -* Fix multiple bugs in the browser tree -* Fix multiple bugs on the SQL and script file import form -* Three security fix about code injection -* Don't allow inserting on a table without fields -* Some fix about commenting databases -* removed deprecated functions from PHP 5.3 -* Lot of code cleanup -* Many other small minor bugs found on our way -* Fix the operator property page - -Translations -* Czech (Marek Cernocky) -* Greek (Adamantios Diamantidis) -* Brazillian Portuguese (Fernando Wendt) -* Galician (Adrián Chaves Fernández) - -Incompatabilities -* No longer support PHP < 5.0 -* No longer support Postgres < 7.4 - - -Version 4.2 ------------ - -Features -* Add Analyze to Table Level Actions (ioguix) -* Add support for multiple actions on main pages (ioguix, Robert Treat) -* Added favicon for Mozilla and a backwards compatible version for IE. -* Allow browsers to save different usernames and passwords for different servers. -* Pagination selection available for reports -* You can configure reports db, schema and table names -* Add support for creating a table using an exsting one (ioguix) -* Auto-expand a node in the tree browser if there are no other nodes (Tomasz Pala) -* Add column about fields constraints type + links in table properties page (ioguix) -* Support for built-in Full Text Search (Ivan Zolotukhin) -* Add alter name, owner & comment on views (ioguix) -* Add column about called procedure + links to their definition in the triggers - properties page (ioguix) -* Add Support for Enum type creation (ioguix,xzilla) -* Add alter name, owner, comment and properties for sequences (ioguix) -* Add function costing options (xzilla) -* Add alter owner & schema on function (xzilla) -* Add a popup window for the session requests history (karl, ioguix) -* Add alter table, view, sequence schema (ioguix) - -Bugs -* Fix inability to assign a field type/domain of a different schema -* Can't edit a report and set its comment to empty -* Fix PHP5 Strict mode complaints -* Fix IN/NOT IN to accept text input lists 'a','b' -* Fix bytea doesn't display as NULL when NULL -* Schema qualifing every object to avoid non wanted behaviour about users' rights - and schema_path -* Remove shared credentials when logging out of single server, to prevent automatic re-login -* Improved SSL connection handling, fix problems with connections from older php builds -* Fix bug with long role name truncation -* Fix bug with DELETE FROM when dropping a row (spq) -* Fix problems when deleteing PUBLIC schema -* Fix several bugs in aggregate support -* Improve autocompletion support -* Tighten up use of global scope variables - -Translations -* utf traditional chinese (Kuo Chaoyi) -* utf simplified chinese (Kuo Chaoyi) -* Italian (Nicola Soranzo) -* Catalan (Bernat Pegueroles) -* French (ioguix) -* German (Albe Laurenz, spq) -* Japanese (Tadashi Jokagi) -* Hungarian (Sulyok Peti) - -Version 4.1.3 -------------- - -Bugs -* Eliminate use of $_SERVER['PHP_SELF']. This fixes a regression in 4.1.2 for - non-mainstream locales (including SQL_ASCII) -* Validate client supplied server against entries in config.inc.php -* Fix undefined variable when altering a field in a table on PostgreSQL < 8.0 - -Version 4.1.2 -------------- - -Bugs -* Fix inability to assign a field type/domain of a different schema -* Fix PHP5 Strict mode complaints -* Fix IN/NOT IN to accept text input lists 'a','b'. -* Fix bytea doesn't display as NULL when NULL -* Fix bug in view creation wizard -* Fix XSS vulnerability: - http://www.securityfocus.com/bid/24115/ - Escape HTML special characters before using $_SERVER['PHP_SELF'] - -Version 4.1.1 -------------- - -Bugs -* Fix problem where failed update would report as duplicate update error and - fail to return edit screen -* Fix error when using $conf[owned_only] on 8.1 & 8.2 -* Fix error displaying schema names for parents of inherited tables -* Clean up non-standard escape warnings for PostgreSQL 8.2 -* Fix improper text quoting for droping roles and aggregates -* Fix bug when dumping mixed case table names in PostgreSQL 8.2 - -Version 4.1 ------------ - -Features -* New icons by Niko , from the graphics repository on pgFoundry. -* Added icons to bread crumb trail and tabs. -* Send encrypted passwords over the wire wherever possible. -* Alter sequence, nextval and setval (Guillaume) -* Auto-select 'WITHOUT OIDS' if 'default_with_oids' setting is false (Guillaume) -* Autovacuum configuration support (Robert Treat) -* Basic ROLE support (Chris Kings-Lynne, Javier Carlos) -* Add support for SSL connections (Eric Kinolik) -* Display content of pg_locks view (Javier Carlos) -* Add labels for checkboxes/radio buttons for improved usability (Guillaume) -* Display Prepared Transactions (Javier Carlos) -* Re-enable table browsing from tree icons (ioguix) -* Add Support For IN/OUT Parameters (John Jawed) -* Add column level information into the tree browser (ioguix) -* Promote column level interaction into its own page (ioguix) -* Add automatic lookup of foreign key values in insert/update fields (John Jawed) -* Add ability to create/drop/alter custom aggregates (Javier Carlos) -* Add enable/disable trigger (John Jawed) -* Add global comments for databases and tablespaces - -Translations -* Catalan from Bernat -* Romanian from Alin Vaida - -Version 4.0 ------------ - -Features -* Slony replication support (Thanks to sponsorship from SpikeSource) -* Allow current database to be at the top -* Allow base URL of PostgreSQL documentation to be configured -* Allow variable size textarea when editing values (Juergen Weigert) -* Allow SQL script upload to parse arbitrary SQL, including multiline - SQL statements. Improve output to show every command as its executed - and SELECT results. -* Add rudimentary support for PostgreSQL 8.1 and 8.2 -* primary key and unique key at table creation (Andreas Huber) -* Add row|statement level options to create trigger for >= 7.4 (Robert Treat) -* Allow altering name (for >= 7.4) and owner (for >= 8.0) of a database (Bryan Encina) -* Allow login to several servers simultaneously -* Rearrange frame layout to suit multi-server support -* New browser tree with dynamically loading branches - (Using XLoadTree2 from http://webfx.eae.net/) -* Allow language change from the intro page at any time -* Avoid getting and setting encoding queries if possible -* Avoid version query in PHP 5 / PostgreSQL 7.4+ -* Avoid query for superuser status in PHP 5 / PostgreSQL 7.4+ -* Put PostgreSQL 7.4+ in read only mode for pagination of results - to avoid executing selects that have write side effects. -* Allow re-using username and password for all servers - saves re-entering - username and password for every server in a pool. -* Make default language 'auto' indicating auto detect. If a language is - deliberately specifed, then that will always be used and no detection will - occur. -* ADOdb library updated to version 4.65 - -Bugs -* Tree Icons are displayed middle instead of top -* Ensure login frame is always at top level (Russell Smith) -* Fix non-ASCII characters inserted in Unicode databases as HTML entities with - non-UTF8 web servers (Markus Bertheau) -* Fix export to work with release candidates and beta releases as well as finals - (Russell Smith) -* Fix port selection for local connections -* Fix timeouts on long running operations (Adrian Nida) -* Allow Multiline character and character varying editing and inserting -* Add automatic browser language selection for all languages -* Stop duplicate insert on re-POST of data -* Fix bug with exporting schema for servers < 7.3 -* Fix opclasses on 7.2 and below -* Fix listing of opaque functions in 7.2 -* Actually fix PHP 4.4.0's new strict references - -Translations -* Japanese from Tadashi Jokagi -* Danish from Arne Eckmann -* Arabic from Zaki -* Romanian from Alin -* Afrikaans from Petri -* Polish from Rafal (utf-8 encoding) -* Slovak from Andrej -* German from Markus -* Spanish From Martin -* Hungarian from Sulyok -* Turkish from Devrim - -Version 3.5.6 -------------- - -Bugs -* Actually fix PHP 4.4.0's new strict references - -Version 3.5.5 -------------- - -Bugs -* Fix for PHP 4.4.0's new strict references -* Small improvement to Opera browser detection in the tree -* Fix listing of opaque functions in 7.2 -* Fix listing of opclasses and functions pre 7.3 - -Version 3.5.4 -------------- - -Bugs -* Fix security hole in include() of language file: - http://secunia.com/advisories/15941/ - Check now requires that the language filename be in the list - of known allowed filenames. -* Fix that functions returning cstring were not being listed -* Make parsing of PostgreSQL 1-dimensional arrays correct. Makes - named function parameter use more reliable. -* Fix downloading of the results of multiline queries. - -Version 3.5.3 -------------- - -Bugs -* Fix using schema enabled dump on non-schema enabled backend -* Don't try setting no timeout when in safe mode -* Reload browser after executing arbitrary SQL -* Fix browser in RTL languages -* Fix inability to drop database using the drop link -* Fix last internal oid value for PostgreSQL 8.0 -* Fix (again) dumping on v8 for windows, exclude dumping some objects. - -Translations -* Portuguese from Francisco - -Version 3.5.2 -------------- - -Bugs -* Fix export to work with release candidates and beta releases as well as finals - (Russell Smith) -* Fix port selection for local connections (Russell Smith) -* Fix timeouts on long running operations (Adrian Nida) -* Allow Multiline character and character varying editing and inserting -* Do browser language detection for all languages - -Translations -* Japanese from Tadashi -* Danish from Arne - -Version 3.5.1 -------------- - -Bugs -* Support 8.0beta5 schema tablespace changes -* Help link fixes -* Estimated row count in 7.0 and 7.1 fixes -* Priviliges nav fix -* Function privileges fix -* Search path fix -* pg_dump on win32 8.0 native fix - -Translations -* Romanian from Alin -* Italian updates from Nicola - -Version 3.5 ------------ - -Features -* Context-sensitive online help system -* Use language preferencies from browser (Markus Bertheau, Nicola Soranzo) -* Tablespace support for 8.0 -* Support cancelling backend processes in 8.0 -* Allow setting privileges on databases -* Allow setting schema search path in SQL window -* Allow filtering find results by object type -* Show function arguments in find results -* Support 8.0's named function arguments -* "Sticky" navigation. phpPgAdmin will now remember while tab you are - looking at (eg. 'Indexes') when you change which table you are viewing. -* New fast navigation bar. A breadcrumb style navigation bar for fast - jumping between areas. -* Much improved grant/revoke feature -* Allow creating and viewing composite types -* pg_dumpall integration. Now you can download the entire cluster via - phpPgAdmin. -* Show line numbers when viewing functions -* Syntax highlighting for PL/SQL, PL/PgSQL, PL/PHP, PL/Ruby, PL/Java, - PL/J, PL/Python and PL/Perl functions, thanks to Jacob D. Cohen's - BSD-licensed highlighting code on rafb.net -* Add page navigation links at the bottom as well as the top of the page - when browsing results. -* Support for 8.0's alter column type -* Support for 8.0's add columns with defaults and not null - -Translations -* Romanian from Alin -* Arabic from Zaki -* Japanese from Tadashi -* Spanish from Robert & Martin -* Mongolian from Erdenemandal -* Ukrainian from Alex Rootoff -* Hebrew from jonatan -* Hungarian from Sulyok -* French from Pascal -* Afrikaans from Petri -* Turkish from Devrim -* Slovak from Andrej -* German from Markus -* Italian from Nicola -* Polish from Rafal - -Bugs -* Fix that non-Auto mode import didn't work (Adrian Nida) -* Fix inability to drop constraints when using a non-english translation -* Work around MSIE's failure to handle downloads in SSL mode -* Allow insert, update, delete, references and trigger to be granted - and revoked on views. - -Version 3.4.1 -------------- - -Bugs -* Fix export of mixed case tables pre 7.4 -* Fix table export problems pre 7.3 -* Fix join clause created by view wizard for pre 7.3 -* Fix reindex of mixed case indexes -* Show domains in type lists in appropriate places -* Fix for multiline CDATA parsing in XML import -* Fix missing _schema notice in reports - -Version 3.4 ------------ - -Features -* Add CACHE and CYCLE parameters in sequence creation -* View, add, edit and delete comments on tables, views, schemas, - aggregates, conversions, operators, functions, types, - opclasses, sequences and columns (Dan Boren & ChrisKL) -* Add config file option for turning off the display of comments -* Allow creating array columns in tables -* Allow adding array columns to tables -* Allow creating domains with type length and arrays -* Show domain base type and comment in domains list -* Allow import of CSV, Tabbed and XML data. "Auto" mode chooses - import mode based on the file extension. -* Allow upload and execution of _basic_ SQL scripts -* More admin features available: vacuum, analyze, cluster all and reindex - (with all options) (Bryan Encina) -* Fix SQL popup window to reload when the database is changed so - that the correct page encoding is used. -* Create view wizard (Bryan Encina) -* Allow specification of MATCH, DEFERRABLE and INITIALLY DEFERRED on - foreign keys. -* Automatically uncheck the NULL checkbox when data is typed in the value - field while editing data. -* Show query runtime when executing arbitrary SQL -* Allow renaming functions when backend supports it -* Views are now more like tables. They are listed in the browser, - you can view the virtual columns of the view and its column defaults. - Columns in view can also be renamed and have defaults set. -* Allow viewing, dropping and creation of rules on views. -* Support for 8.0-dev ALTER COLUMN TYPE, adding of SERIAL and BIGSERIAL - columns, adding NOT NULL columns and adding columns with defaults. - -Bugs -* Fix pg_dump output for PostgreSQL 7.0.x and 7.1.x -* In 7.4 pg_dump, specify schema when dumping tables -* Fix bug in displaying array types in 7.0.x -* Fix bug where views appeared as tables in 7.0.x search results -* Fix bug where find object SQL on < 7.2 was broken -* Fix Find for domain constraints -* Fix popup SQL window so that two different phpPgAdmin instances should - not want to use the same pop-up. -* Fix create table if you don't supply as many fields as you originally - specified. -* Fix schema support for views - -Translations -* Trad. Chinese from Chih-Hsin Lee -* Italian from Nicola -* Spanish from Martin -* Slovak from Andrej -* German from Markus -* Turkish from Devrim -* Hungarian from Sulyok -* French from Pascal -* Polish from Rafal -* Russian from Alex - -Version 3.3.1 -------------- - -Bugs -* Fix table stats for <= 7.2 - -Translations -* Spanish from Martin - -Version 3.3 ------------ - -Features -* Database dump feature, which uses pg_dump -* Large speed improvements by reducing number of database - connections and using external style sheet. -* SQL pop-up window now defaults to the current database -* Display aggregates and operator classes -* Integration with the PostgreSQL statistics collector. See - table and index performance and usage information. -* Display user session defaults for PostgreSQL >= 7.3 -* Rename user feature for PostgreSQL >= 7.4 -* Create functions returning arrays and table types -* Allow editing Select results by oid -* Allow pagination of queries entered in the SQL box -* Allow EXPLAIN ANALYZE of SQL queries (in both SQL boxes) -* Default cursor conveniently in SQL box and Find - -Bugs -* Object browser fixed for databases with no schemas -* Properly detect that reports database is missing -* Fix for alter column on PostgreSQL 7.1 -* phpPgAdmin now works without '.' in the include_path -* Can now remove expire dates on user accounts -* Properties of mixed case named views work in 7.4 - -Translations -* Spanish from Martin Marques -* Japanese from Tadashi Jokagi -* Swedish from Stefan Malmqvist -* Slovak from Andrej Misovik -* Hungarian from Sulyok Peter -* Trad. Chinese from Chih-Hsin Lee -* Italian from Nicola Soranzo -* Afrikaans from Petri Jooste -* Turkish from Devrim Gunduz -* German from Markus Bertheau -* Czech from Libor Vanek -* Russian from Alex Khodorivsky - -Version 3.2.1 -------------- - -Bugs -* Trailing newline problem in chinese-sim translation fixed - -Translations -* French from Pascal -* Russian from Step - -Version 3.2 ------------ - -Features -* PostgreSQL 8.0 CVS support -* Option to dump table structure, data or structure and data -* Set datestyle and extra_float_digits when dumping data -* Results of table browse, table select, view browsing and report browsing - can now ALL be sorted by column -* Result rows of table selects can now be edited and deleted -* Extra login security to prevent logging into servers as postgres and - no password - a VERY common newbie error. -* Cluster indexes and indexed constraints (with analyze) -* Display clustered status of indexes and indexed constraints -* Table info - shows tables that reference the table, parent tables, - and child tables. -* Choice of operator when performing a Select -* 'Select All' feature of table selects now available on view - selects. -* Removed any trace of MySQL support -* Show casts -* Show conversions -* Show languages -* Make table icon link to browse table -* New show_advanced option that allows the hiding or display of - "advanced" objects such as conversions, types, operators, casts and - languages. -* Find Object feature can now find conversions, languages, domains, - constraints, indexes, rules and triggers. -* Better language Makefile for translators -* The SQL box now remembers your query when you click 'Back'. - -Bugs -* Added legal DOCTYPE -* Allow creating foreign keys to tables not in current schema -* Always add brackets around CHECK () constraints -* Never display an index in both Indexes and Constraints -* BIGSERIAL missing from PostgreSQL 7.2 -* Types lengths (eg. varchar(255)) weren't being displayed properly - in PostgreSQL 7.0.x -* Resetting sequence on 7.1+ now restarts at 1, not 2 -* Remove deprecated column default 'now' from SQL script -* Properly escape pg_ in internal queries - -Translations -* Afrikaans from Petri Jooste -* Hungarian from Sulyok Péter -* German update from Markus Bertheau -* Trad. Chinese from Chih-Hsin Lee -* Hungarian from Peti -* Spanish update from Martin Marques -* Slovak update from Andrej Misovic -* Turkish update from Devrim -* Swedish update from Stefan -* Italian update from Nicola - -Version 3.1 ------------ - -Bug Fixes: -* Table browsing for 7.4 fixed -* Synch script for translators disabled due to bugginess. If you want - to use it, just comment out the warning lines from the script itself. -* Change HTML download to XHTML and make it a 100% conforming document, with DTD -* Alter XML format to allow future features - -Translations: -* Trad. Chinese -* Dutch -* Spanish -* Swedish -* Turkish -* French -* Japanese - -Version 3.1-rc-1 ----------------- - -Bug Fixes -* Table browsing for != 7.3 -* SQL window improvements -* Translation improvements - -Version 3.1-beta-1 ------------------- - -Features: -* Add first & last links to nav. Double number of pages shown. -* Allow granting privileges WITH GRANT OPTION for 7.4 -* Allow revoking GRANT OPTION with CASCADE option for 7.4 -* Display new PostgreSQL 7.4 grant options and grantor in privileges -* Find object feature -* Support for domains in 7.3 and domain constraints and alter domain in 7.4 -* Add/drop users to/from groups -* Alter (rename) triggers -* Pop-up SQL window from Mark Gibson -* Superusers can always see all databases -* Default database encoding for languages -* Convert our images to PNG format -* Allow creating tables WITHOUT OIDS -* Show boolean values as TRUE or FALSE when viewing data -* Allow renaming table and changing table owner -* Refresh feature on table browse -* Support better formatted view dumps in 7.4 -* When browsing data, numeric types are aligned right -* Ability to create unique and partial indexes -* View and edit table comments -* Changed XML format significantly. Now doesn't use field names as - tag names, outputs column type information, and is in correct XML format! -* Save result sets as views and reports in most cases -* Download the results of selects and reports -* Tick all box on Select feature -* Export in HTML format -* Allow listing of operators -* Add a robots.txt file to prevent search engine indexation -* Can now safely edit row based on OID. Guards are in place against duplicate OIDs. -* Works properly if you have cookies disabled - -Bug Fixes: -* Lots of NULL value in table dump fixes (XML format changed slightly) -* Boolean default values and general boolean field handling fixes -* Support zero column tables -* Correctly display the contents of bytea fields -* Consider information_schema to be a system object -* Remember fields if index creation fails -* Fix saving and loading function volatility -* Don't list domains under types -* Lots of reports fixes (titles, page reloads, etc.) -* Selecting for NULL values in Select feature - -Translations: -* Italian translation update from Nicola Soranzo -* German update from Markus Bertheau -* Spanish update from Martin Marques -* Trad. Chinese update from Chih-Hsin Lee -* Russian update from Step -* Slovak update from Andrej -* Polish update from Rafal -* Swedish translation from Stefan Malqvist -* Turkish update from Devrim Gunduz -* German update from Markus Bertheau -* Traditional Chinese update from Chih-Hsin Lee -* Spanish update from Martin - -Version 3.0.1 -------------- - -Bug Fixes -* Lots of NULL value in table dump fixes (XML format changed slightly) -* Support zero column tables -* Correctly display the contents of bytea fields -* Error in ADODB_base.php -* Fix saving and loading function volatility -* Don't list domains under types - -Version 3.0 ------------ - -* German update from Markus Bertheau -* Russian update from Alexander Khodorivsky - -Version 3.0-rc-2 ----------------- - -* Slovak update from Andrej Misovic -* Japanese update from Tadashi Jokagi -* Added 'defaultdb' per-connection variable - for installations where connection to template1 - is disabled. -* Removed uses of call time pass by reference, - since it is a deprecated feature of PHP. - -Version 3.0-rc-1 ----------------- - -* Fix drop database reload browser bug -* Look & Feel upgrade from Davey -* Value & expression on edit row -* Chinese update from Chih-Hsin Lee -* Fixed support for functions and sequences - containing bizarre characters - -Version 3.0-beta-1 -------------------- - -* Cascade drop on columns and constraints -* Czech translation -* Preserve spaces when displaying data -* Greatly improved PostgreSQL 7.2, 7.1 and 7.0 support -* Italian translation -* Show database version in top bar -* Many features useful for PostgreSQL hosting: - - Hide reports - - Filter for owned reports - - Hide admin for non-super users - - Easy for a user to change their own password - - Enforceable minimum password length -* Switched to PEAR's HTML_TreeMenu to avoid license issue -* Function editor can handle setof functions, and all - function properties for volatility, etc. -* Manage permissions on functions -* Massive table browsing improvements: - - Sort ascending and descending by clicking - on field name - - Trim long strings. Use 'expand' and 'collapse' to - see full strings or trimmed strings. -* Revoke on objects. Grant or revoke to multiple groups - and users at once. -* Brazilian Portuguese translation from Angelo Rigo - -Version 3.0.0-dev-4 -------------------- - -* Sort on a column when browsing a table -* Slovak translation -* Turkish translation -* German translation -* Reload browser after create/drop of database, schemas and tables -* Select on views -* Add foreign key constraint, with actions -* Cascade drop on all objects - -Version 3.0.0-dev-3 -------------------- - -* French translation -* Russian translations -* Japanese translations -* Trigger definitions -* ADODB upgrade -* Allow editing of non-null unique - -Version 3.0.0-dev-2 -------------------- - -* Language files now use an array of strings -* Almost complete Chinese translation -* Create sequence -* Create trigger -* Create index -* Add check constraint -* Lots of small fixes -* Add column - -Version 3.0.0-dev-1 -------------------- - -* Renamed to phpPgAdmin from WebDB -* Heaps of other stuff - -Version 0.6 - 24-Dec-2002 -------------------------- - -* Support short_tags off -* Fix browsing tables, pagination, etc. -* Fix all error handling -* Fix problems with apostrophes in database, usernames or passwords - -Version 0.5 - 20-Dec-2002 -------------------------- - -* Initial public release -* Still many problems making it unsuitable for production. - -Version 0.1 - Early 2002 ------------------------- - -* Initial development version - diff --git a/LICENSE b/LICENSE deleted file mode 100644 index d2efe07..0000000 --- a/LICENSE +++ /dev/null @@ -1,12 +0,0 @@ -Copyright (c) 2002, 2003, 2004, 2005 The phpPgAdmin Project - -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or -(at your option) any later version. -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License -for more details. - diff --git a/README.md b/README.md new file mode 100644 index 0000000..02b6d79 --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# phppgadmin +phppgadmin for php7 + +In this fork I have only changed so that it is no errors in PHP 7.
+It should now work alright with PHP7. diff --git a/TODO b/TODO deleted file mode 100644 index e7972a0..0000000 --- a/TODO +++ /dev/null @@ -1,240 +0,0 @@ -PHPPGADMIN TODO LIST FOR DEVELOPERS ------------------------------------ - -phpPgAdmin is an open source project which means that if you see something on -this list that you would like to implement, just send us a patch. You can find -our project page here: - - http://sourceforge.net/projects/phppgadmin/ - -An item is marked 'claimed' when a username in brackets is put after the TODO -item. If you want to work a claimed item, please contact the developers list. - -An item is marked with a '-' if it has been completed. - -Cluster -------- -* Allow reading of postgresql.conf and pg_hba.conf per pg_read_file() in 8.1 -* Support pg_reload_conf(), pg_rotate_logfile() 8.1 commands -* Add support for default db to connect to on login page (we had several users complaining about that lately) - - -Export ------- - -* Switch to SPARQL format: - http://www.w3.org/TR/2005/WD-rdf-sparql-XMLres-20050801/ - - Actually...SQL/XML is maybe better. - -Import ------- - -* Allow import of data via compressed (bzip/gzip/zip) files - -Users ------ - -* user variables (eg. ALTER USER SET .. TO ...) - - -Groups ------- - - -Roles ------ - - -Permissions ------------ - -* Grant ... on all tables, views, ... to user, group, public - - -Databases ---------- - -* Add alter database variables -* Add database stats -* REASSIGN OWNED & DROP OWNED support for 8.2+ - - http://www.postgresql.org/docs/8.2/interactive/sql-reassign-owned.html - - http://www.postgresql.org/docs/8.2/interactive/sql-drop-owned.html - - -Schemas -------- - - -Large Objects -------------- - -* Add support for large objects - (review patch from Dmitry Koterov https://github.com/DmitryKoterov/phppgadmin/commit/3072e666bd2b291feb91823b41f1fdb8ec7f492d ) - -Tables ------- - -* Rewrite WITHOUT OIDs with more natural WITH OIDS -* Allow FKs during create table (Jawed) -* When adding a column or creating a table, prevent size on non-size types (eg. integer(2)). You can find these by looking at format_type in the postgresql source code. -* Add WITH storage_parameter option to create table [8.2] -* Add last vacuum and analyze information from statistics tables [8.2] -* Restrict operators (from $selectOps array) to appropriate types (ie. no LIKE for int4 fields) -* Alter column should handle types with implicit cast types distinctly from those requiring a USING clause -* Where ENUM types are an option, restrict choice to enum values [8.3] - -Columns -------- - -* Add column constraints during creation and altering of columns - - -Views ------ - -* Support temporary views per 8.1? -* Support updateable views, see http://gerrybthunkings.blogspot.com/2010/01/how-should-postgresql-pgadmin-iii-deal.html - -Sequences ---------- - - -Functions ---------- - -* Remove options for OUT/INOUT params in older servers -* Clean up javascript html spec warnings -* GUC settings [8.3] -* Default param values - -Indexes -------- - -* Support 8.1 Reindex System commands -* Expressional indexes -* Create Index Asc/Desc, Nulls First/Last [8.3] - - -Types ------ - -* Suppres psuedo-type options in type list for creating composite types. (done ?) - - -Operators ---------- - -* Create -* Create/Alter/Drop Operator Family - - -Operator Classes ----------------- - -* Create - - -Triggers --------- - -* Allow functions from other schemas. -* Support replica trigger modes (8.3) - - -Aggregates ----------- - -* Allow for multi-column aggregates [8.2] -* Rewrite the aggregate edition page ! It is using input tetxt everywhere presently, even for owner and schéma ! - - -Languages ---------- - -* Drop -* Create -* Alter owner [8.3] -* Alter name [8.3] - - -Domains -------- - -* Alter DOMAIN SET SCHEMA support - -Conversions ------------ - -* Properties -* Drop -* Create - - -Casts ------ - -* Properties -* Drop -* Create - - -Full Text Search (8.3) ----------------------- - -* Create/Alter/Drop parser -* Alter Owner - - -Miscellaneous -------------- - -* Audit for PHP 5.3.x compatability -* Support 8.1 standard compliant strings (E'') -* Support per-database connection limits per 8.1 -* Put a 'What's blocking this query' on Processes view -* Show prepared statements on database view [8.2] -* Show cursors on database view [8.2] -* Show NOTICES on queries in SQL window/file -* Printable view of things -* Show comments for all objects (Dan Boren) -* Allow setting/dropping comments for all objects (Dan Boren) -* Show owner for all objects -* Allow changing owner for objects that have this feature [7.4+ generally] -* Add CASCADE option to Truncate [8.2] -* Add ONLY option to Truncate [8.4] -* Add information about synch tool to TRANSLATORS -* Translated FAQ -* Pull FAQ/HISTORY/CREDITS/etc... from CVS for website. -* Add support for csvlogs [8.3] -* Add executed file scripts in history - -Exotic ------- - -* Pivot reports (ADODB has a feature for this) -* Parameterized reports (use prepared queries) -* Full web accessability conformance - -Principles ----------- - -* register_globals off support -* maximum error_reporting support - enforces code quality, reduces bugs and - improves security -* PHP 5.0 features used -* No HTML font, colour, layout tags. Use CSS for everything -* One day we should make it all XHTML -* everything properly escaped - prevent sql injection and cross-site scripting - probs -* Support Postgres 8.4 and upwards -* psql -E is a cool way of seeing how to do schema queries -* Checking out older versions of describe.c in src/bin/psql in the postgres - distro is a good way of seeing how to query older versions of postgres for - schema information -* Put functions in the highest class possible. For instance, simple selects - should be in Postgres, whereas something that works for < 8.2 should be in the - 8.1 class. This will minimise bugs and duplicated code. -* Adhere to current coding standards -* Avoid using global variables if possible - diff --git a/TRANSLATORS b/TRANSLATORS deleted file mode 100644 index d763c30..0000000 --- a/TRANSLATORS +++ /dev/null @@ -1,55 +0,0 @@ -Translator Info ---------------- - -If you like phpPgAdmin, then why not translate it into your native language? - -There are quite a large number of strings to be translated. Partial -translations are better than no translations at all, and a rough guide is that -the strings are in the order from most important to least important in the -language file. You can ask the developers list if you don't know what a -certain string means. - -We tried keeping translation easy in phpPgAdmin by using ONLY the UTF-8 charset. -Make sure to always work on UTF-8 files when creating a new translation or -editing an existing one. - -To Create a new translation: - -1. Go to the lang/ subdirectory - -2. Copy english.php to yourlanguage.php - -3. Update the comment at the top of the file. Put yourself as the language - maintainer. Edit the 'applang' variable and put your language's name in it, - in your language. - Edit the 'applocale' and put your language code according to the standart: - http://www.ietf.org/rfc/rfc1766.txt - - Basicaly, you just need to put your language code [1] and optionnaly country - code [2] separated by a '-'. As instance for french canadian, it is: fr-CA - [1]: http://www.w3.org/WAI/ER/IG/ert/iso639.htm - [2]: http://www.iso.org/iso/country_codes/iso_3166_code_lists/country_names_and_code_elements.htm - -4. Go through as much of the rest of the file as you wish, replacing the - English strings with strings in your native language. - -At this point, you can send the yourlanguage.php file to us and we will take -care of testing and recoding the translation. Please only do that if you -find the rest of these steps too difficult. - -5. To add your language to phpPgAdmin, edit the lang/translations.php file - and add your language to the $appLangFiles array. - Also, add your language to the $availableLanguages array for - browser auto detection. - -6. Send your contribution to us. We need the lang/translations.php entry as - well as the lang/yourlanguage.php file. Email to the developers list: - phppgadmin-devel@lists.sourceforge.net - -7. There exists a tool named 'langcheck' in the lang/ directory. To run it, - just type 'php langcheck '. It will give you a report about - which strings are missing from your language file and which need to be - deleted. - -Thank you for your contribution! You have just made phpPgAdmin accessible -to thousands more users! diff --git a/classes/Gui.php b/classes/Gui.php index e0c085b..27575cd 100644 --- a/classes/Gui.php +++ b/classes/Gui.php @@ -9,7 +9,7 @@ class GUI { /** *Constructor */ - function GUI () {} + function __construct () {} /** * Prints a combox box diff --git a/classes/class.select.php b/classes/class.select.php index a871513..965f3e4 100644 --- a/classes/class.select.php +++ b/classes/class.select.php @@ -170,7 +170,7 @@ function __construct($name, $text = null) { class XHTML_Option extends XHtmlElement { - function XHTML_Option($text, $value = null) { + function __construct($text, $value = null) { XHtmlElement::XHtmlElement(null); $this->set_text($text); }