Revize 6daefa8c
Přidáno uživatelem Petr Lukašík před asi 6 roky(ů)
html/PostgresssAdmin/CREDITS | ||
---|---|---|
1 |
CREDITS |
|
2 |
------- |
|
3 | ||
4 |
Project Administration & Major Projects |
|
5 | ||
6 |
- Dan Wilson |
|
7 |
- Robert Treat |
|
8 |
- Christopher Kings-Lynne |
|
9 | ||
10 |
Translators |
|
11 | ||
12 |
- Angelo Rigo (Brazilan Portuguese) |
|
13 |
- Chan Min Wai (Chinese) |
|
14 |
- He Wei Ping (Chinese) |
|
15 |
- Chih-Hsin Lee (Trad. Chinese) |
|
16 |
- Hugo Jonker (Dutch) |
|
17 |
- Pascal Peyre (French) |
|
18 |
- H. Etzel, Markus Bertheau (German) |
|
19 |
- Kalef (Italian) |
|
20 |
- Tadashi Jokagi (Japanese) |
|
21 |
- Rafal Slubowski (Polish) |
|
22 |
- Alexander Khodorisky (Russian) |
|
23 |
- Martin Marqu?s (Spanish) |
|
24 |
- Andrej Misovic (Slovak) |
|
25 |
- Devrim Gunduz (Turkish) |
|
26 |
- Libor Vanek (Czech) |
|
27 |
- Stefan Malmqvist (Swedish) |
|
28 |
- Nicola Soranzo (Italian) |
|
29 |
- Petri Jooste (Afrikaans) |
|
30 |
- Sulyok P?ter (Hungarian) |
|
31 |
- Zaki Almuallim (Arabic) |
|
32 |
- Erdenemandal Bat-Erdene (Mongolian) |
|
33 |
- Alex Rootoff (Ukrainian) |
|
34 |
- Jonatan (Hebrew) |
|
35 |
- Alin Vaida (Romanian) |
|
36 |
- Arne Eckmann (Danish) |
|
37 |
- Francisco Cabrita (Portuguese) |
|
38 | ||
39 |
Look & Feel |
|
40 | ||
41 |
- Davey (CSS) |
|
42 | ||
43 |
Contributors |
|
44 | ||
45 |
- Felix Meinhold |
|
46 |
- Jean-Michel Poure |
|
47 |
- Rafal Slubowski |
|
48 |
- Brett Toolin |
|
49 |
- Mark Gibson (Pop-up SQL window) |
|
50 |
- Nicola Soranzo |
|
51 |
- Oliver Meyer & Sven Kiera (Table icons link to browse table) |
|
52 |
- Bryan Encina (SQL window improvements, bug fixes, admin) |
|
53 |
- Dan Boren (Object comments) |
|
54 |
- Adrian Nida (Fix time outs) |
|
55 |
- Russell Smith |
|
56 | ||
57 |
Third Party Libraries |
|
58 | ||
59 |
- Highlight.php (Jacob D. Cohen of rafb.net) |
|
60 |
- XLoadTree2 (Erik Arvidsson & Emil A Eklund of webfx.eae.net) |
|
61 | ||
62 |
Corporate Sponsors |
|
63 | ||
64 |
- SpikeSource (www.spikesource.com) - Slony support |
html/PostgresssAdmin/DEVELOPERS | ||
---|---|---|
1 |
DEVELOPER INFO |
|
2 |
-------------- |
|
3 | ||
4 |
phpPgAdmin is Open Source, so you're invited to contribute to it. |
|
5 |
Many great features have been written by other people and you too |
|
6 |
can help to make phpPgAdmin a useful tool. |
|
7 |
|
|
8 |
phpPgAdmin 3 has its roots in the phpPgAdmin 2.4 software. A complete |
|
9 |
rewrite was necessary to support PostgreSQL 7.3 and to address problems |
|
10 |
in the phpPgAdmin 2.4 codebase. |
|
11 |
|
|
12 |
If you're planning to contribute source code, please read the following |
|
13 |
information: |
|
14 |
|
|
15 |
The following method is preferred for new developers: |
|
16 |
- fetch the current CVS tree over anonymous CVS: |
|
17 |
|
|
18 |
cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/phppgadmin login |
|
19 |
[Password: ] simply press the Enter key! |
|
20 |
|
|
21 |
cvs -z3 -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/phppgadmin co -d phpPgAdmin webdb |
|
22 |
[This will create a new sub-directory named phpPgAdmin] |
|
23 |
|
|
24 |
- Add your stuff |
|
25 |
- Send us the file(s) you've modified or send us a patch (preferred). To generate a patch, do this |
|
26 |
in your 'phpPgAdmin' directory: |
|
27 | ||
28 |
cvs diff -c > file.txt |
|
29 | ||
30 |
Then, just send us the file.txt |
|
31 | ||
32 |
Please note submitting code is considered a transfer of copyright to the phpPgAdmin project. |
|
33 | ||
34 |
Only project developers can access the CVS tree via ssh and SSH1 must |
|
35 |
be installed on your client machine. |
|
36 |
|
|
37 |
export CVS_RSH=ssh |
|
38 |
|
|
39 |
login once with ssh to developername@cvs.phppgadmin.sourceforge.net to create required |
|
40 |
user directories on the server. |
|
41 |
|
|
42 |
cvs -z3 -d developername@cvs.sourceforge.net:/cvsroot/phppgadmin co -d phpPgAdmin webdb |
|
43 |
|
|
44 |
Write access to the CVS tree is granted only to developers who have already |
|
45 |
contributed something useful to phpPgAdmin. If you're interested in that, |
|
46 |
please contact us. |
|
47 |
|
|
48 |
TIPS FOR DEVELOPERS |
|
49 |
------------------- |
|
50 | ||
51 |
When you submit code to phpPgAdmin, we do expect it to adhere to the existing |
|
52 |
coding standards in the source. So, instead of using your personal favourite |
|
53 |
code layout style, please format it to look like surrounding code. |
|
54 | ||
55 |
Test your code properly! Say you are developing a feature to create domains. |
|
56 |
Try naming your domain all of the following: |
|
57 | ||
58 |
* " |
|
59 |
* ' |
|
60 |
* \ |
|
61 |
* words with spaces |
|
62 |
* <br><br><br> |
|
63 | ||
64 |
If you are adding a new class function, be sure to use the "clean", |
|
65 |
"fieldClean", "arrayClean" and "fieldArrayClean" functions to properly escape |
|
66 |
odd characters in user input. Examine existing functions that do similar |
|
67 |
things to yours to get yours right. |
|
68 | ||
69 |
When writing data to the display, you should always urlencode() variables in |
|
70 |
HREFs and htmlspecialchars() variables in forms. |
|
71 | ||
72 |
COMMON VARIABLES |
|
73 |
---------------- |
|
74 | ||
75 |
$data - A data connection to the current or default database. |
|
76 |
$misc - Contains miscellaneous functions. eg. printing headers and footers, etc. |
|
77 |
$lang - Global array containing translated strings. The strings in this array have already |
|
78 |
been converted to HTML, so you should not htmlspecialchars() them. |
|
79 |
$conf - Global array of configuration options. |
|
80 | ||
81 |
WORKING WITH RECORDSETS |
|
82 |
----------------------- |
|
83 | ||
84 |
phpPgAdmin uses the ADODB database library for all its database access. We have |
|
85 |
also written our own wrapper around the ADODB library to make it more object |
|
86 |
oriented (ADODB_base.pclass). |
|
87 | ||
88 |
This is the general form for looping over a recordset: |
|
89 | ||
90 |
$rs = $class->getResults(); |
|
91 |
if (is_object($rs) && $rs->recordCount() > 0) { |
|
92 |
while (!$rs->EOF) { |
|
93 |
echo $rs->f['field']; |
|
94 |
$rs->moveNext(); |
|
95 |
} |
|
96 |
} |
|
97 |
else echo "No results."; |
|
98 |
html/PostgresssAdmin/FAQ | ||
---|---|---|
1 |
phpPgAdmin Frequently Asked Questions |
|
2 |
------------------------------------- |
|
3 | ||
4 |
Installation errors |
|
5 |
------------------- |
|
6 | ||
7 |
Q: I've installed phpPgAdmin but when I try to use it I get an error message |
|
8 |
telling me that I have not compiled proper database support into my |
|
9 |
PHP installation. |
|
10 | ||
11 |
A: This means that you have not properly compiled PostgreSQL support into |
|
12 |
your PHP. The correct configure flag to use is '--with-pgsql'. Read the |
|
13 |
PHP manual and website for more help with this. |
|
14 | ||
15 |
PostgreSQL support can be also compiled into PHP as a dynamic extension, |
|
16 |
so if you have precompiled version (Linux RPM, or Windows binary), there |
|
17 |
are still chances, that only thing you should do is to enable loading it |
|
18 |
automagically. |
|
19 | ||
20 |
It can be done by editing your php.ini file (under Windows, usually in |
|
21 |
C:\WINDOWS or C:\WINNT, under Linux /etc/php.ini) and uncommenting this |
|
22 |
line: |
|
23 | ||
24 |
;extension=php_pgsql.dll ;under Windows |
|
25 |
;extension=pgsql.so ;under Linux |
|
26 | ||
27 |
so it would look like that: |
|
28 |
|
|
29 |
extension=php_pgsql.dll ;under Windows |
|
30 |
extension=pgsql.so ;under Linux |
|
31 | ||
32 |
In Linux distributions based on Red Hat or Fedora, PHP extensions are |
|
33 |
automatically configured in /etc/php.d/pgsql.ini, simply install the |
|
34 |
php-pgsql package. |
|
35 | ||
36 | ||
37 |
Q: I get a warning like this when using phpPgAdmin on Windows: |
|
38 | ||
39 |
"Warning: session_start() [function.session-start]: |
|
40 |
open(/tmp\sess_5a401ef1e67fb7a176a95236116fe348, O_RDWR) failed" |
|
41 | ||
42 |
A: You need to edit your PHP.INI file (usually in c:\windows) and change this |
|
43 |
line: |
|
44 | ||
45 |
session.save_path = "/tmp" |
|
46 | ||
47 |
to: |
|
48 |
|
|
49 |
session.save_path = "c:\windows\temp" |
|
50 | ||
51 |
And make sure that the folder c:\windows\temp actually exists. |
|
52 | ||
53 | ||
54 |
Login errors |
|
55 |
------------ |
|
56 | ||
57 |
Q: I always get "Login failed" even though I'm _sure_ I'm using the right |
|
58 |
username and password. |
|
59 | ||
60 |
A: Check the PostgreSQL log on your server, it will give the exact reason |
|
61 |
why the login is failing. Edit the pg_hba.conf file in your PostgreSQL |
|
62 |
data dir and make sure you have enabled access to the server properly. |
|
63 | ||
64 |
If you've installed phpPgAdmin on a computer different from the PostgreSQL |
|
65 |
server, another likely reason may be that you have not started the |
|
66 |
PostgreSQL server with TCP/IP sockets enabled. To enable this, edit your |
|
67 |
postgresql.conf file and change this line: |
|
68 | ||
69 |
#tcpip_socket = false |
|
70 | ||
71 |
to: |
|
72 | ||
73 |
tcpip_socket = true |
|
74 | ||
75 |
and then restart PostgreSQL. |
|
76 | ||
77 |
Q: For some users I get a "Login disallowed for security" message. |
|
78 | ||
79 |
A: Logins via phpPgAdmin with no password or certain usernames (pgsql, |
|
80 |
postgres, root, administrator) are denied by default. Before changing this |
|
81 |
behaviour (setting $conf['extra_login_security'] to false in the |
|
82 |
config.inc.php file) please read the PostgreSQL documentation about client |
|
83 |
authentication and understand how to change PostgreSQL's pg_hba.conf to |
|
84 |
enable passworded local connections. |
|
85 | ||
86 |
Q: I can use any password to log in! |
|
87 | ||
88 |
A: PostgreSQL, by default, runs in trust mode. That means that it doesn't |
|
89 |
ask for passwords for local connections. We highly recommend that you |
|
90 |
edit your pg_hba.conf file, and change the login type to 'md5'. Note |
|
91 |
that if you change the 'local' login type to 'md5', then you might need |
|
92 |
to enter a password to start PostgreSQL. Get around this by using a |
|
93 |
.pgpass file - explained in the PostgreSQL documentation. |
|
94 | ||
95 | ||
96 |
Other errors |
|
97 |
------------ |
|
98 | ||
99 |
Q: When I enter non-ASCII data into the database via a form, it's inserted |
|
100 |
as hexadecimal or Ӓ format! |
|
101 | ||
102 |
A: You have not created your database in the correct encoding. This problem |
|
103 |
will occur when you try to enter an umlaut into an SQL_ASCII database, or |
|
104 |
SJIS Japanese into an EUC-JP database, etc. |
|
105 | ||
106 |
Q: When I drop and re-create a table with the same name, it fails. |
|
107 | ||
108 |
A: You need to drop the sequence attached to the SERIAL column of the table |
|
109 |
as well. PostgreSQL 7.3 and above do this automatically. If you have |
|
110 |
upgraded to PostgreSQL 7.3 from an earlier version, you need to run the |
|
111 |
contrib/adddepend script to record all dependencies. |
|
112 | ||
113 |
Q: When browsing a table, the 'edit' and 'delete' links do not appear. |
|
114 | ||
115 |
A: In order, phpPgAdmin will prefer the following as unique row identifiers: |
|
116 | ||
117 |
1. Primary keys |
|
118 |
2. Unique keys (cannot be parital or expressional indexes) |
|
119 |
3. OID column (will require a sequential scan to update, unless you |
|
120 |
index the OID column) |
|
121 | ||
122 |
Furthermore, any NULL values in the unique index will mean that that row |
|
123 |
will be uneditable. Also, since OIDs can become duplicated in a table, |
|
124 |
phpPgAdmin will alter the row, and then check to ensure that exactly one |
|
125 |
row has been modified - otherwise rollback will occur. |
|
126 | ||
127 | ||
128 |
Questions on dumps |
|
129 |
------------------ |
|
130 | ||
131 |
Q: What happened to the database dump feature? |
|
132 | ||
133 |
A: You need to configure phpPgAdmin (in the config.inc.php file) to point |
|
134 |
to the location of the pg_dump and pg_dumpall utilities on your server. |
|
135 |
Once you have done that, the database export feature will appear. |
|
136 | ||
137 |
Q: I would like to use the pg_dump integration for database and table |
|
138 |
dumps on Windows. How do I get pg_dump.exe on Windows? |
|
139 | ||
140 |
A: To get the pg_dump utilities on Windows, you need to install PostgreSQL 8.0 |
|
141 |
for Windows. It is available for download at |
|
142 |
http://www.postgresql.org/ftp/win32/ . |
|
143 |
Once you have installed that, set the pg_dump and pg_dumpall locations |
|
144 |
in the config.inc.php file to |
|
145 |
'C:\\Program Files\\PostgreSQL\\8.0\\bin\\pg_dump.exe' and |
|
146 |
'C:\\Program Files\\PostgreSQL\\8.0\\bin\\pg_dumpall.exe', or wherever you |
|
147 |
installed them. |
|
148 | ||
149 |
Q: Why can't I reload the SQL script I dumped in the SQL window? |
|
150 | ||
151 |
A: The following limitations currently exist in SQL script execution: |
|
152 | ||
153 |
* Only uploaded SQL scripts can contain COPY commands and for |
|
154 |
this to work, you must have PHP 4.2 or higher. |
|
155 | ||
156 |
* 'psql' commands such as '\connect' will not work at all. |
|
157 | ||
158 |
* Multiline SQL statements will not work, eg: |
|
159 | ||
160 |
CREATE TABLE example ( |
|
161 |
a INTEGER |
|
162 |
); |
|
163 | ||
164 |
* You cannot change the current database or current user during |
|
165 |
the execution of the script. |
|
166 | ||
167 |
We do intend to work on some of these limitations in the future, but |
|
168 |
some of them are PostgreSQL restrictions and we recommend using the |
|
169 |
'psql' utility to restore your full SQL dumps. |
|
170 | ||
171 | ||
172 |
Other questions |
|
173 |
--------------- |
|
174 | ||
175 |
Q: When inserting a row, what is does the 'Value' or 'Expression' box mean? |
|
176 | ||
177 |
A: Choosing 'Expression' means that you can use functions, operators, other |
|
178 |
field names, etc. in your value - you need to properly quote any literal |
|
179 |
values yourself. 'Value' on the other hand, means that no matter what you |
|
180 |
enter as the value, it will be inserted as-is into the database. |
|
181 | ||
182 |
Q: Why is there never any information on the 'Info' page of a table? |
|
183 | ||
184 |
A: The Info page will show you what other tables have foreign keys to the |
|
185 |
current table and some data from the PostgreSQL statistics collector. |
|
186 |
The stats collector is not enabled by default in PostgreSQL. To enable |
|
187 |
it, look in your postgresql.conf file for the stats_* options. Just |
|
188 |
make them all 'true' and restart PostgreSQL. |
|
189 | ||
190 |
Q: Why can't I download data from queries executed in the SQL window? |
|
191 | ||
192 |
A: You need to check the 'Paginate results' option to allow downloads. |
|
193 | ||
194 |
Q: I would like to help out with the development of phpPgAdmin. How should I |
|
195 |
proceed? |
|
196 |
|
|
197 |
A: We really would like your help! Please read the DEVELOPERS and TRANSLATORS |
|
198 |
files. |
|
199 |
html/PostgresssAdmin/HISTORY | ||
---|---|---|
1 |
phpPgAdmin History |
|
2 |
------------------ |
|
3 | ||
4 |
Version 4.0.1 |
|
5 |
------------- |
|
6 | ||
7 |
Bugs |
|
8 |
* Fix major bug in non-english translations where HTML unicode entities |
|
9 |
caused failure in the object browser tree. Fixed by instead encoding |
|
10 |
all entities as numeric (ŗ) instead of named (é). |
|
11 |
* Fix issue with includes where '.' is not in the include_path |
|
12 |
* Don't prompt to share credentials when only one server is present |
|
13 |
* Fix logout link |
|
14 |
* Preserve expanded/collapsed across result pages |
|
15 |
* Use pg_clientencoding() if pg_client_encoding() does not exist. If |
|
16 |
pg_clientencoding() itself doesn't exist, then force setting the encoding |
|
17 | ||
18 |
Version 4.0 |
|
19 |
----------- |
|
20 | ||
21 |
Features |
|
22 |
* Slony replication support (Thanks to sponsorship from SpikeSource) |
|
23 |
* Allow current database to be at the top |
|
24 |
* Allow base URL of PostgreSQL documentation to be configured |
|
25 |
* Allow variable size textarea when editing values (Juergen Weigert) |
|
26 |
* Allow SQL script upload to parse arbitrary SQL, including multiline |
|
27 |
SQL statements. Improve output to show every command as its executed |
|
28 |
and SELECT results. |
|
29 |
* Add rudimentary support for PostgreSQL 8.1 and 8.2 |
|
30 |
* primary key and unique key at table creation (Andreas Huber) |
|
31 |
* Add row|statement level options to create trigger for >= 7.4 (Robert Treat) |
|
32 |
* Allow altering name (for >= 7.4) and owner (for >= 8.0) of a database (Bryan Encina) |
|
33 |
* Allow login to several servers simultaneously |
|
34 |
* Rearrange frame layout to suit multi-server support |
|
35 |
* New browser tree with dynamically loading branches |
|
36 |
(Using XLoadTree2 from http://webfx.eae.net/) |
|
37 |
* Allow language change from the intro page at any time |
|
38 |
* Avoid getting and setting encoding queries if possible |
|
39 |
* Avoid version query in PHP 5 / PostgreSQL 7.4+ |
|
40 |
* Avoid query for superuser status in PHP 5 / PostgreSQL 7.4+ |
|
41 |
* Put PostgreSQL 7.4+ in read only mode for pagination of results |
|
42 |
to avoid executing selects that have write side effects. |
|
43 |
* Allow re-using username and password for all servers - saves re-entering |
|
44 |
username and password for every server in a pool. |
|
45 |
* Make default language 'auto' indicating auto detect. If a language is |
|
46 |
deliberately specifed, then that will always be used and no detection will |
|
47 |
occur. |
|
48 |
* ADOdb library updated to version 4.65 |
|
49 |
|
|
50 |
Bugs |
|
51 |
* Tree Icons are displayed middle instead of top |
|
52 |
* Ensure login frame is always at top level (Russell Smith) |
|
53 |
* Fix non-ASCII characters inserted in Unicode databases as HTML entities with |
|
54 |
non-UTF8 web servers (Markus Bertheau) |
|
55 |
* Fix export to work with release candidates and beta releases as well as finals |
|
56 |
(Russell Smith) |
|
57 |
* Fix port selection for local connections |
|
58 |
* Fix timeouts on long running operations (Adrian Nida) |
|
59 |
* Allow Multiline character and character varying editing and inserting |
|
60 |
* Add automatic browser language selection for all languages |
|
61 |
* Stop duplicate insert on re-POST of data |
|
62 |
* Fix bug with exporting schema for servers < 7.3 |
|
63 |
* Fix opclasses on 7.2 and below |
|
64 |
* Fix listing of opaque functions in 7.2 |
|
65 |
* Actually fix PHP 4.4.0's new strict references |
|
66 | ||
67 |
Translations |
|
68 |
* Japanese from Tadashi Jokagi |
|
69 |
* Danish from Arne Eckmann |
|
70 |
* Arabic from Zaki |
|
71 |
* Romanian from Alin |
|
72 |
* Afrikaans from Petri |
|
73 |
* Polish from Rafal (utf-8 encoding) |
|
74 |
* Slovak from Andrej |
|
75 |
* German from Markus |
|
76 |
* Spanish From Martin |
|
77 |
* Hungarian from Sulyok |
|
78 |
* Turkish from Devrim |
|
79 | ||
80 |
Version 3.5.6 |
|
81 |
------------- |
|
82 | ||
83 |
Bugs |
|
84 |
* Actually fix PHP 4.4.0's new strict references |
|
85 | ||
86 |
Version 3.5.5 |
|
87 |
------------- |
|
88 | ||
89 |
Bugs |
|
90 |
* Fix for PHP 4.4.0's new strict references |
|
91 |
* Small improvement to Opera browser detection in the tree |
|
92 |
* Fix listing of opaque functions in 7.2 |
|
93 |
* Fix listing of opclasses and functions pre 7.3 |
|
94 | ||
95 |
Version 3.5.4 |
|
96 |
------------- |
|
97 | ||
98 |
Bugs |
|
99 |
* Fix security hole in include() of language file: |
|
100 |
http://secunia.com/advisories/15941/ |
|
101 |
Check now requires that the language filename be in the list |
|
102 |
of known allowed filenames. |
|
103 |
* Fix that functions returning cstring were not being listed |
|
104 |
* Make parsing of PostgreSQL 1-dimensional arrays correct. Makes |
|
105 |
named function parameter use more reliable. |
|
106 |
* Fix downloading of the results of multiline queries. |
|
107 | ||
108 |
Version 3.5.3 |
|
109 |
------------- |
|
110 | ||
111 |
Bugs |
|
112 |
* Fix using schema enabled dump on non-schema enabled backend |
|
113 |
* Don't try setting no timeout when in safe mode |
|
114 |
* Reload browser after executing arbitrary SQL |
|
115 |
* Fix browser in RTL languages |
|
116 |
* Fix inability to drop database using the drop link |
|
117 |
* Fix last internal oid value for PostgreSQL 8.0 |
|
118 |
* Fix (again) dumping on v8 for windows, exclude dumping some objects. |
|
119 | ||
120 |
Translations |
|
121 |
* Portuguese from Francisco |
|
122 | ||
123 |
Version 3.5.2 |
|
124 |
------------- |
|
125 | ||
126 |
Bugs |
|
127 |
* Fix export to work with release candidates and beta releases as well as finals |
|
128 |
(Russell Smith) |
|
129 |
* Fix port selection for local connections (Russell Smith) |
|
130 |
* Fix timeouts on long running operations (Adrian Nida) |
|
131 |
* Allow Multiline character and character varying editing and inserting |
|
132 |
* Do browser language detection for all languages |
|
133 | ||
134 |
Translations |
|
135 |
* Japanese from Tadashi |
|
136 |
* Danish from Arne |
|
137 | ||
138 |
Version 3.5.1 |
|
139 |
------------- |
|
140 | ||
141 |
Bugs |
|
142 |
* Support 8.0beta5 schema tablespace changes |
|
143 |
* Help link fixes |
|
144 |
* Estimated row count in 7.0 and 7.1 fixes |
|
145 |
* Priviliges nav fix |
|
146 |
* Function privileges fix |
|
147 |
* Search path fix |
|
148 |
* pg_dump on win32 8.0 native fix |
|
149 | ||
150 |
Translations |
|
151 |
* Romanian from Alin |
|
152 |
* Italian updates from Nicola |
|
153 | ||
154 |
Version 3.5 |
|
155 |
----------- |
|
156 | ||
157 |
Features |
|
158 |
* Context-sensitive online help system |
|
159 |
* Use language preferencies from browser (Markus Bertheau, Nicola Soranzo) |
|
160 |
* Tablespace support for 8.0 |
|
161 |
* Support cancelling backend processes in 8.0 |
|
162 |
* Allow setting privileges on databases |
|
163 |
* Allow setting schema search path in SQL window |
|
164 |
* Allow filtering find results by object type |
|
165 |
* Show function arguments in find results |
|
166 |
* Support 8.0's named function arguments |
|
167 |
* "Sticky" navigation. phpPgAdmin will now remember while tab you are |
|
168 |
looking at (eg. 'Indexes') when you change which table you are viewing. |
|
169 |
* New fast navigation bar. A breadcrumb style navigation bar for fast |
|
170 |
jumping between areas. |
|
171 |
* Much improved grant/revoke feature |
|
172 |
* Allow creating and viewing composite types |
|
173 |
* pg_dumpall integration. Now you can download the entire cluster via |
|
174 |
phpPgAdmin. |
|
175 |
* Show line numbers when viewing functions |
|
176 |
* Syntax highlighting for PL/SQL, PL/PgSQL, PL/PHP, PL/Ruby, PL/Java, |
|
177 |
PL/J, PL/Python and PL/Perl functions, thanks to Jacob D. Cohen's |
|
178 |
BSD-licensed highlighting code on rafb.net |
|
179 |
* Add page navigation links at the bottom as well as the top of the page |
|
180 |
when browsing results. |
|
181 |
* Support for 8.0's alter column type |
|
182 |
* Support for 8.0's add columns with defaults and not null |
|
183 | ||
184 |
Translations |
|
185 |
* Romanian from Alin |
|
186 |
* Arabic from Zaki |
|
187 |
* Japanese from Tadashi |
|
188 |
* Spanish from Robert & Martin |
|
189 |
* Mongolian from Erdenemandal |
|
190 |
* Ukrainian from Alex Rootoff |
|
191 |
* Hebrew from jonatan |
|
192 |
* Hungarian from Sulyok |
|
193 |
* French from Pascal |
|
194 |
* Afrikaans from Petri |
|
195 |
* Turkish from Devrim |
|
196 |
* Slovak from Andrej |
|
197 |
* German from Markus |
|
198 |
* Italian from Nicola |
|
199 |
* Polish from Rafal |
|
200 | ||
201 |
Bugs |
|
202 |
* Fix that non-Auto mode import didn't work (Adrian Nida) |
|
203 |
* Fix inability to drop constraints when using a non-english translation |
|
204 |
* Work around MSIE's failure to handle downloads in SSL mode |
|
205 |
* Allow insert, update, delete, references and trigger to be granted |
|
206 |
and revoked on views. |
|
207 | ||
208 |
Version 3.4.1 |
|
209 |
------------- |
|
210 | ||
211 |
Bugs |
|
212 |
* Fix export of mixed case tables pre 7.4 |
|
213 |
* Fix table export problems pre 7.3 |
|
214 |
* Fix join clause created by view wizard for pre 7.3 |
|
215 |
* Fix reindex of mixed case indexes |
|
216 |
* Show domains in type lists in appropriate places |
|
217 |
* Fix for multiline CDATA parsing in XML import |
|
218 |
* Fix missing _schema notice in reports |
|
219 | ||
220 |
Version 3.4 |
|
221 |
----------- |
|
222 | ||
223 |
Features |
|
224 |
* Add CACHE and CYCLE parameters in sequence creation |
|
225 |
* View, add, edit and delete comments on tables, views, schemas, |
|
226 |
aggregates, conversions, operators, functions, types, |
|
227 |
opclasses, sequences and columns (Dan Boren & ChrisKL) |
|
228 |
* Add config file option for turning off the display of comments |
|
229 |
* Allow creating array columns in tables |
|
230 |
* Allow adding array columns to tables |
|
231 |
* Allow creating domains with type length and arrays |
|
232 |
* Show domain base type and comment in domains list |
|
233 |
* Allow import of CSV, Tabbed and XML data. "Auto" mode chooses |
|
234 |
import mode based on the file extension. |
|
235 |
* Allow upload and execution of _basic_ SQL scripts |
|
236 |
* More admin features available: vacuum, analyze, cluster all and reindex |
|
237 |
(with all options) (Bryan Encina) |
|
238 |
* Fix SQL popup window to reload when the database is changed so |
|
239 |
that the correct page encoding is used. |
|
240 |
* Create view wizard (Bryan Encina) |
|
241 |
* Allow specification of MATCH, DEFERRABLE and INITIALLY DEFERRED on |
|
242 |
foreign keys. |
|
243 |
* Automatically uncheck the NULL checkbox when data is typed in the value |
|
244 |
field while editing data. |
|
245 |
* Show query runtime when executing arbitrary SQL |
|
246 |
* Allow renaming functions when backend supports it |
|
247 |
* Views are now more like tables. They are listed in the browser, |
|
248 |
you can view the virtual columns of the view and its column defaults. |
|
249 |
Columns in view can also be renamed and have defaults set. |
|
250 |
* Allow viewing, dropping and creation of rules on views. |
|
251 |
* Support for 8.0-dev ALTER COLUMN TYPE, adding of SERIAL and BIGSERIAL |
|
252 |
columns, adding NOT NULL columns and adding columns with defaults. |
|
253 | ||
254 |
Bugs |
|
255 |
* Fix pg_dump output for PostgreSQL 7.0.x and 7.1.x |
|
256 |
* In 7.4 pg_dump, specify schema when dumping tables |
|
257 |
* Fix bug in displaying array types in 7.0.x |
|
258 |
* Fix bug where views appeared as tables in 7.0.x search results |
|
259 |
* Fix bug where find object SQL on < 7.2 was broken |
|
260 |
* Fix Find for domain constraints |
|
261 |
* Fix popup SQL window so that two different phpPgAdmin instances should |
|
262 |
not want to use the same pop-up. |
|
263 |
* Fix create table if you don't supply as many fields as you originally |
|
264 |
specified. |
|
265 |
* Fix schema support for views |
|
266 | ||
267 |
Translations |
|
268 |
* Trad. Chinese from Chih-Hsin Lee |
|
269 |
* Italian from Nicola |
|
270 |
* Spanish from Martin |
|
271 |
* Slovak from Andrej |
|
272 |
* German from Markus |
|
273 |
* Turkish from Devrim |
|
274 |
* Hungarian from Sulyok |
|
275 |
* French from Pascal |
|
276 |
* Polish from Rafal |
|
277 |
* Russian from Alex |
|
278 | ||
279 |
Version 3.3.1 |
|
280 |
------------- |
|
281 | ||
282 |
Bugs |
|
283 |
* Fix table stats for <= 7.2 |
|
284 | ||
285 |
Translations |
|
286 |
* Spanish from Martin |
|
287 | ||
288 |
Version 3.3 |
|
289 |
----------- |
|
290 | ||
291 |
Features |
|
292 |
* Database dump feature, which uses pg_dump |
|
293 |
* Large speed improvements by reducing number of database |
|
294 |
connections and using external style sheet. |
|
295 |
* SQL pop-up window now defaults to the current database |
|
296 |
* Display aggregates and operator classes |
|
297 |
* Integration with the PostgreSQL statistics collector. See |
|
298 |
table and index performance and usage information. |
|
299 |
* Display user session defaults for PostgreSQL >= 7.3 |
|
300 |
* Rename user feature for PostgreSQL >= 7.4 |
|
301 |
* Create functions returning arrays and table types |
|
302 |
* Allow editing Select results by oid |
|
303 |
* Allow pagination of queries entered in the SQL box |
|
304 |
* Allow EXPLAIN ANALYZE of SQL queries (in both SQL boxes) |
|
305 |
* Default cursor conveniently in SQL box and Find |
|
306 | ||
307 |
Bugs |
|
308 |
* Object browser fixed for databases with no schemas |
|
309 |
* Properly detect that reports database is missing |
|
310 |
* Fix for alter column on PostgreSQL 7.1 |
|
311 |
* phpPgAdmin now works without '.' in the include_path |
|
312 |
* Can now remove expire dates on user accounts |
|
313 |
* Properties of mixed case named views work in 7.4 |
|
314 | ||
315 |
Translations |
|
316 |
* Spanish from Martin Marques |
|
317 |
* Japanese from Tadashi Jokagi |
|
318 |
* Swedish from Stefan Malmqvist |
|
319 |
* Slovak from Andrej Misovik |
|
320 |
* Hungarian from Sulyok Peter |
|
321 |
* Trad. Chinese from Chih-Hsin Lee |
|
322 |
* Italian from Nicola Soranzo |
|
323 |
* Afrikaans from Petri Jooste |
|
324 |
* Turkish from Devrim Gunduz |
|
325 |
* German from Markus Bertheau |
|
326 |
* Czech from Libor Vanek |
|
327 |
* Russian from Alex Khodorivsky |
|
328 | ||
329 |
Version 3.2.1 |
|
330 |
------------- |
|
331 | ||
332 |
Bugs |
|
333 |
* Trailing newline problem in chinese-sim translation fixed |
|
334 | ||
335 |
Translations |
|
336 |
* French from Pascal |
|
337 |
* Russian from Step |
|
338 | ||
339 |
Version 3.2 |
|
340 |
----------- |
|
341 | ||
342 |
Features |
|
343 |
* PostgreSQL 8.0 CVS support |
|
344 |
* Option to dump table structure, data or structure and data |
|
345 |
* Set datestyle and extra_float_digits when dumping data |
|
346 |
* Results of table browse, table select, view browsing and report browsing |
|
347 |
can now ALL be sorted by column |
|
348 |
* Result rows of table selects can now be edited and deleted |
|
349 |
* Extra login security to prevent logging into servers as postgres and |
|
350 |
no password - a VERY common newbie error. |
|
351 |
* Cluster indexes and indexed constraints (with analyze) |
|
352 |
* Display clustered status of indexes and indexed constraints |
|
353 |
* Table info - shows tables that reference the table, parent tables, |
|
354 |
and child tables. |
|
355 |
* Choice of operator when performing a Select |
|
356 |
* 'Select All' feature of table selects now available on view |
|
357 |
selects. |
|
358 |
* Removed any trace of MySQL support |
|
359 |
* Show casts |
|
360 |
* Show conversions |
|
361 |
* Show languages |
|
362 |
* Make table icon link to browse table |
|
363 |
* New show_advanced option that allows the hiding or display of |
|
364 |
"advanced" objects such as conversions, types, operators, casts and |
|
365 |
languages. |
|
366 |
* Find Object feature can now find conversions, languages, domains, |
|
367 |
constraints, indexes, rules and triggers. |
|
368 |
* Better language Makefile for translators |
|
369 |
* The SQL box now remembers your query when you click 'Back'. |
|
370 | ||
371 |
Bugs |
|
372 |
* Added legal DOCTYPE |
|
373 |
* Allow creating foreign keys to tables not in current schema |
|
374 |
* Always add brackets around CHECK () constraints |
|
375 |
* Never display an index in both Indexes and Constraints |
|
376 |
* BIGSERIAL missing from PostgreSQL 7.2 |
|
377 |
* Types lengths (eg. varchar(255)) weren't being displayed properly |
|
378 |
in PostgreSQL 7.0.x |
|
379 |
* Resetting sequence on 7.1+ now restarts at 1, not 2 |
|
380 |
* Remove deprecated column default 'now' from SQL script |
|
381 |
* Properly escape pg_ in internal queries |
|
382 | ||
383 |
Translations |
|
384 |
* Afrikaans from Petri Jooste |
|
385 |
* Hungarian from Sulyok P?ter |
|
386 |
* German update from Markus Bertheau |
|
387 |
* Trad. Chinese from Chih-Hsin Lee |
|
388 |
* Hungarian from Peti |
|
389 |
* Spanish update from Martin Marques |
|
390 |
* Slovak update from Andrej Misovic |
|
391 |
* Turkish update from Devrim |
|
392 |
* Swedish update from Stefan |
|
393 |
* Italian update from Nicola |
|
394 | ||
395 |
Version 3.1 |
|
396 |
----------- |
|
397 | ||
398 |
Bug Fixes: |
|
399 |
* Table browsing for 7.4 fixed |
|
400 |
* Synch script for translators disabled due to bugginess. If you want |
|
401 |
to use it, just comment out the warning lines from the script itself. |
|
402 |
* Change HTML download to XHTML and make it a 100% conforming document, with DTD |
|
403 |
* Alter XML format to allow future features |
|
404 | ||
405 |
Translations: |
|
406 |
* Trad. Chinese |
|
407 |
* Dutch |
|
408 |
* Spanish |
|
409 |
* Swedish |
|
410 |
* Turkish |
|
411 |
* French |
|
412 |
* Japanese |
|
413 | ||
414 |
Version 3.1-rc-1 |
|
415 |
---------------- |
|
416 | ||
417 |
Bug Fixes |
|
418 |
* Table browsing for != 7.3 |
|
419 |
* SQL window improvements |
|
420 |
* Translation improvements |
|
421 | ||
422 |
Version 3.1-beta-1 |
|
423 |
------------------ |
|
424 | ||
425 |
Features: |
|
426 |
* Add first & last links to nav. Double number of pages shown. |
|
427 |
* Allow granting privileges WITH GRANT OPTION for 7.4 |
|
428 |
* Allow revoking GRANT OPTION with CASCADE option for 7.4 |
|
429 |
* Display new PostgreSQL 7.4 grant options and grantor in privileges |
|
430 |
* Find object feature |
|
431 |
* Support for domains in 7.3 and domain constraints and alter domain in 7.4 |
|
432 |
* Add/drop users to/from groups |
|
433 |
* Alter (rename) triggers |
|
434 |
* Pop-up SQL window from Mark Gibson |
|
435 |
* Superusers can always see all databases |
|
436 |
* Default database encoding for languages |
|
437 |
* Convert our images to PNG format |
|
438 |
* Allow creating tables WITHOUT OIDS |
|
439 |
* Show boolean values as TRUE or FALSE when viewing data |
|
440 |
* Allow renaming table and changing table owner |
|
441 |
* Refresh feature on table browse |
|
442 |
* Support better formatted view dumps in 7.4 |
|
443 |
* When browsing data, numeric types are aligned right |
|
444 |
* Ability to create unique and partial indexes |
|
445 |
* View and edit table comments |
|
446 |
* Changed XML format significantly. Now doesn't use field names as |
|
447 |
tag names, outputs column type information, and is in correct XML format! |
|
448 |
* Save result sets as views and reports in most cases |
|
449 |
* Download the results of selects and reports |
|
450 |
* Tick all box on Select feature |
|
451 |
* Export in HTML format |
|
452 |
* Allow listing of operators |
|
453 |
* Add a robots.txt file to prevent search engine indexation |
|
454 |
* Can now safely edit row based on OID. Guards are in place against duplicate OIDs. |
|
455 |
* Works properly if you have cookies disabled |
|
456 | ||
457 |
Bug Fixes: |
|
458 |
* Lots of NULL value in table dump fixes (XML format changed slightly) |
|
459 |
* Boolean default values and general boolean field handling fixes |
|
460 |
* Support zero column tables |
|
461 |
* Correctly display the contents of bytea fields |
|
462 |
* Consider information_schema to be a system object |
|
463 |
* Remember fields if index creation fails |
|
464 |
* Fix saving and loading function volatility |
|
465 |
* Don't list domains under types |
|
466 |
* Lots of reports fixes (titles, page reloads, etc.) |
|
467 |
* Selecting for NULL values in Select feature |
|
468 | ||
469 |
Translations: |
|
470 |
* Italian translation update from Nicola Soranzo |
|
471 |
* German update from Markus Bertheau |
|
472 |
* Spanish update from Martin Marques |
|
473 |
* Trad. Chinese update from Chih-Hsin Lee |
|
474 |
* Russian update from Step |
|
475 |
* Slovak update from Andrej |
|
476 |
* Polish update from Rafal |
|
477 |
* Swedish translation from Stefan Malqvist |
|
478 |
* Turkish update from Devrim Gunduz |
|
479 |
* German update from Markus Bertheau |
|
480 |
* Traditional Chinese update from Chih-Hsin Lee |
|
481 |
* Spanish update from Martin |
|
482 | ||
483 |
Version 3.0.1 |
|
484 |
------------- |
|
485 | ||
486 |
Bug Fixes |
|
487 |
* Lots of NULL value in table dump fixes (XML format changed slightly) |
|
488 |
* Support zero column tables |
|
489 |
* Correctly display the contents of bytea fields |
|
490 |
* Error in ADODB_base.php |
|
491 |
* Fix saving and loading function volatility |
|
492 |
* Don't list domains under types |
|
493 | ||
494 |
Version 3.0 |
|
495 |
----------- |
|
496 | ||
497 |
* German update from Markus Bertheau |
|
498 |
* Russian update from Alexander Khodorivsky |
|
499 | ||
500 |
Version 3.0-rc-2 |
|
501 |
---------------- |
|
502 | ||
503 |
* Slovak update from Andrej Misovic |
|
504 |
* Japanese update from Tadashi Jokagi |
|
505 |
* Added 'defaultdb' per-connection variable |
|
506 |
for installations where connection to template1 |
|
507 |
is disabled. |
|
508 |
* Removed uses of call time pass by reference, |
|
509 |
since it is a deprecated feature of PHP. |
|
510 | ||
511 |
Version 3.0-rc-1 |
|
512 |
---------------- |
|
513 | ||
514 |
* Fix drop database reload browser bug |
|
515 |
* Look & Feel upgrade from Davey |
|
516 |
* Value & expression on edit row |
|
517 |
* Chinese update from Chih-Hsin Lee |
|
518 |
* Fixed support for functions and sequences |
|
519 |
containing bizarre characters |
|
520 | ||
521 |
Version 3.0-beta-1 |
|
522 |
------------------- |
|
523 | ||
524 |
* Cascade drop on columns and constraints |
|
525 |
* Czech translation |
|
526 |
* Preserve spaces when displaying data |
|
527 |
* Greatly improved PostgreSQL 7.2, 7.1 and 7.0 support |
|
528 |
* Italian translation |
|
529 |
* Show database version in top bar |
|
530 |
* Many features useful for PostgreSQL hosting: |
|
531 |
- Hide reports |
|
532 |
- Filter for owned reports |
|
533 |
- Hide admin for non-super users |
|
534 |
- Easy for a user to change their own password |
|
535 |
- Enforceable minimum password length |
|
536 |
* Switched to PEAR's HTML_TreeMenu to avoid license issue |
|
537 |
* Function editor can handle setof functions, and all |
|
538 |
function properties for volatility, etc. |
|
539 |
* Manage permissions on functions |
|
540 |
* Massive table browsing improvements: |
|
541 |
- Sort ascending and descending by clicking |
|
542 |
on field name |
|
543 |
- Trim long strings. Use 'expand' and 'collapse' to |
|
544 |
see full strings or trimmed strings. |
|
545 |
* Revoke on objects. Grant or revoke to multiple groups |
|
546 |
and users at once. |
|
547 |
* Brazilian Portuguese translation from Angelo Rigo |
|
548 | ||
549 |
Version 3.0.0-dev-4 |
|
550 |
------------------- |
|
551 | ||
552 |
* Sort on a column when browsing a table |
|
553 |
* Slovak translation |
|
554 |
* Turkish translation |
|
555 |
* German translation |
|
556 |
* Reload browser after create/drop of database, schemas and tables |
|
557 |
* Select on views |
|
558 |
* Add foreign key constraint, with actions |
|
559 |
* Cascade drop on all objects |
|
560 | ||
561 |
Version 3.0.0-dev-3 |
|
562 |
------------------- |
|
563 | ||
564 |
* French translation |
|
565 |
* Russian translations |
|
566 |
* Japanese translations |
|
567 |
* Trigger definitions |
|
568 |
* ADODB upgrade |
|
569 |
* Allow editing of non-null unique |
|
570 | ||
571 |
Version 3.0.0-dev-2 |
|
572 |
------------------- |
|
573 | ||
574 |
* Language files now use an array of strings |
|
575 |
* Almost complete Chinese translation |
|
576 |
* Create sequence |
|
577 |
* Create trigger |
|
578 |
* Create index |
|
579 |
* Add check constraint |
|
580 |
* Lots of small fixes |
|
581 |
* Add column |
|
582 | ||
583 |
Version 3.0.0-dev-1 |
|
584 |
------------------- |
|
585 | ||
586 |
* Renamed to phpPgAdmin from WebDB |
|
587 |
* Heaps of other stuff |
|
588 | ||
589 |
Version 0.6 - 24-Dec-2002 |
|
590 |
------------------------- |
|
591 | ||
592 |
* Support short_tags off |
|
593 |
* Fix browsing tables, pagination, etc. |
|
594 |
* Fix all error handling |
|
595 |
* Fix problems with apostrophes in database, usernames or passwords |
|
596 | ||
597 |
Version 0.5 - 20-Dec-2002 |
|
598 |
------------------------- |
|
599 | ||
600 |
* Initial public release |
|
601 |
* Still many problems making it unsuitable for production. |
|
602 | ||
603 |
Version 0.1 - Early 2002 |
|
604 |
------------------------ |
|
605 | ||
606 |
* Initial development version |
|
607 |
html/PostgresssAdmin/INSTALL | ||
---|---|---|
1 |
phpPgAdmin Installation Guide |
|
2 |
----------------------------- |
|
3 | ||
4 |
1. Unpack your download |
|
5 | ||
6 |
If you've downloaded a tar.gz package, execute from a terminal: |
|
7 | ||
8 |
gunzip phpPgAdmin-*.tar.gz |
|
9 |
tar -xvf phpPgAdmin-*.tar |
|
10 | ||
11 |
Else, if you've downloaded a tar.bz2 package, execute from a terminal: |
|
12 | ||
13 |
bunzip2 phpPgAdmin-*.tar.bz2 |
|
14 |
tar -xvf phpPgAdmin-*.tar |
|
15 | ||
16 |
Else, if you've downloaded a zip package, execute from a terminal: |
|
17 | ||
18 |
unzip phpPgAdmin-*.zip |
|
19 | ||
20 |
2. Configure phpPgAdmin |
|
21 | ||
22 |
edit phpPgAdmin/conf/config.inc.php |
|
23 | ||
24 |
If you mess up the configuration file, you can recover it from the |
|
25 |
config.inc.php-dist file. |
|
26 | ||
27 |
3. Set up the reports database. |
|
28 | ||
29 |
If you want to enable reports (which are a useful feature) then go to |
|
30 |
the 'sql' subdirectory and view the SQL script for your database. It |
|
31 |
will contain instructions on how to set up the reports database. |
|
32 | ||
33 |
4. If you run your PHP installation in safe mode, in order that the database |
|
34 |
dump feature can work correctly, you need to set the 'safe_mode_allowed_env_vars' |
|
35 |
php.ini variable to include the PGPASSWORD and PGUSER environmental variables |
|
36 |
and the safe_mode_exec_dir to include /usr/bin (or wherever the pg_dump |
|
37 |
binaries are found). |
|
38 |
|
|
39 |
eg. safe_mode_allowed_env_vars = PHP_,PG |
|
40 |
safe_mode_exec_dir = /usr/bin |
|
41 |
|
|
42 |
Given that you usually don't want to allow everything in /usr/bin to |
|
43 |
be executed, you might want to copy the pg_dump and pg_dumpall utilities |
|
44 |
to a directory by themselves. |
|
45 |
|
|
46 |
Also, you will need to ensure that your 'pg_dump' and 'pg_dumpall' utilities |
|
47 |
are executable by the PHP process, if you want dump support in phpPgAdmin. |
|
48 | ||
49 |
Lastly, if you run phpPgAdmin in safe mode, very long running imports, |
|
50 |
exports and transactions may time out and be aborted. |
|
51 | ||
52 |
5. Enable the statistics collector in PostgreSQL. phpPgAdmin will display |
|
53 |
table and index performance and usage statistics if you have enabled the |
|
54 |
PostgreSQL statistics collector. To enable the collector, uncomment the |
|
55 |
following lines in your postgresql.conf and enable them: |
|
56 | ||
57 |
stats_start_collector = true |
|
58 |
stats_command_string = true |
|
59 |
stats_block_level = true |
|
60 |
stats_row_level = true |
|
61 | ||
62 |
6. Browse to the phpPgAdmin installation using a web browser. You might |
|
63 |
need cookies enabled for phpPgAdmin to work. |
|
64 | ||
65 |
7. IMPORTANT - SECURITY |
|
66 | ||
67 |
PostgreSQL by default does not require you to use a password to log in. |
|
68 |
We STRONGLY recomment that you enable md5 passwords for local connections |
|
69 |
in your pg_hba.conf, and set a password for the default superuser account. |
|
70 | ||
71 |
Due to the large number of phpPgAdmin installations that have not set |
|
72 |
passwords on local connections, there is now a configuration file |
|
73 |
option called 'extra_login_security', which is TRUE by default. While |
|
74 |
this option is enabled, you will be unable to log in to phpPgAdmin as |
|
75 |
the 'root', 'administrator', 'pgsql' or 'postgres' users and empty passwords |
|
76 |
will not work. |
|
77 |
|
|
78 |
Once you are certain you have properly secured your database server, you |
|
79 |
can then disable 'extra_login_security' so that you can log in as your |
|
80 |
database administrator using the administrator password. |
html/PostgresssAdmin/LICENSE | ||
---|---|---|
1 |
Copyright (c) 2002, 2003 The phpPgAdmin Project |
|
2 | ||
3 |
This program is free software; you can redistribute it and/or modify |
|
4 |
it under the terms of the GNU General Public License as published by |
|
5 |
the Free Software Foundation; either version 2 of the License, or |
|
6 |
(at your option) any later version. |
|
7 |
This program is distributed in the hope that it will be useful, |
|
8 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
9 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
10 |
GNU General Public License <http://www.opensource.org/gpl-license.html> |
|
11 |
for more details. |
|
12 |
html/PostgresssAdmin/TODO | ||
---|---|---|
1 |
PHPPGADMIN TODO LIST FOR DEVELOPERS |
|
2 |
----------------------------------- |
|
3 | ||
4 |
phpPgAdmin is an open source project which means that if you see something on |
|
5 |
this list that you would like to implement, just send us a patch. You can find |
|
6 |
our project page here: |
|
7 | ||
8 |
http://sourceforge.net/projects/phppgadmin/ |
|
9 | ||
10 |
An item is marked 'claimed' when a username in brackets is put after the TODO |
|
11 |
item. |
|
12 | ||
13 |
An item is marked with a '-' if it has been completed. |
|
14 | ||
15 |
Export |
|
16 |
------ |
|
17 | ||
18 |
* Switch to SPARQL format: |
|
19 |
http://www.w3.org/TR/2005/WD-rdf-sparql-XMLres-20050801/ |
|
20 | ||
21 |
Actually...SQL/XML is maybe better. |
|
22 | ||
23 |
Misc |
|
24 |
---- |
|
25 | ||
26 |
* Support 8.1 standard compliant strings (E'') |
|
27 | ||
28 |
Users |
|
29 |
----- |
|
30 | ||
31 |
* 7.3 user variables (eg. ALTER USER SET .. TO ...) |
|
32 | ||
33 |
Groups |
|
34 |
------ |
|
35 | ||
36 |
Roles |
|
37 |
----- |
|
38 | ||
39 |
* Support for 8.1 roles (removing users and groups) |
|
40 | ||
41 |
Permissions |
|
42 |
----------- |
|
43 | ||
44 |
* Grant ... on all tables, views, ... to user, group, public |
|
45 | ||
46 |
Databases |
|
47 |
--------- |
|
48 | ||
49 |
* Add alter database variables for 7.3+ |
|
50 |
* Comments on Create and Alter database |
|
51 | ||
52 |
Schemas (7.3) |
|
53 |
------------- |
|
54 | ||
55 |
* Rename |
|
56 |
* Alter owner |
|
57 |
* Alter ... SET SCHEMA support |
|
58 | ||
59 |
Large Objects |
|
60 |
------------- |
|
61 | ||
62 |
* Add support for large objects |
|
63 | ||
64 |
Tables |
|
65 |
------ |
|
66 | ||
67 |
* Allow PK and UNIQUE and FKs during create table |
|
68 |
* Vacuum & analyze individual tables |
|
69 |
* 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. |
|
70 |
* When browsing a table, clicking on a FK value should jump to the |
|
71 |
PK row. |
|
72 |
* When editing a table, turn FK columns into drop-downs based on estimated |
|
73 |
rows in the foreign table? |
|
74 |
* Auto-select 'WITHOUT OIDS' if 'default_with_oids' setting is false |
|
75 | ||
76 |
Views |
|
77 |
----- |
|
78 | ||
79 |
* Allow INSERT and import on views with the appropriate rules. |
|
80 | ||
81 |
Sequences |
|
82 |
--------- |
|
83 | ||
84 |
* Alter sequence |
|
85 |
* setval & nextval |
|
86 | ||
87 |
Functions |
|
88 |
--------- |
|
89 | ||
90 |
* Support 8.1 IN, OUT and INOUT parameters. |
|
91 |
* Display owner |
|
92 |
* Alter owner |
|
93 | ||
94 |
Indexes |
|
95 |
------- |
|
96 | ||
97 |
* Expressional indexes |
|
98 | ||
99 |
Types |
|
100 |
----- |
|
101 | ||
102 |
Operators |
|
103 |
--------- |
|
104 | ||
105 |
* Create |
|
106 | ||
107 |
Operator Classes |
|
108 |
---------------- |
|
109 | ||
110 |
* Create |
|
111 | ||
112 |
Triggers |
|
113 |
-------- |
|
114 | ||
115 |
* Allow functions from other schemas. |
|
116 |
* Support ENABLE/DISABLE trigger in 8.1 |
|
117 | ||
118 |
Aggregates |
|
119 |
---------- |
|
120 | ||
121 |
* Properties |
|
122 |
* Drop |
|
123 |
* Create |
|
124 | ||
125 |
Languages |
|
126 |
--------- |
|
127 | ||
128 |
* Drop |
|
129 |
* Create |
|
130 | ||
131 |
Domains (7.3) |
|
132 |
------------- |
|
133 | ||
134 |
Conversions (7.3) |
|
135 |
----------------- |
|
136 | ||
137 |
* Properties |
|
138 |
* Drop |
|
139 |
* Create |
|
140 | ||
141 |
Casts (7.3) |
|
142 |
----------- |
|
143 | ||
144 |
* Properties |
|
145 |
* Drop |
|
146 |
* Create |
|
147 | ||
148 |
Miscellaneous |
|
149 |
------------- |
|
150 | ||
151 |
* Allow management of built-in autovacuum in 8.1 |
|
152 |
* Put a 'What's blocking this query' on Processes view |
|
153 |
* Show locks on database view |
|
154 |
* Show NOTICES on queries in SQL window/file |
|
155 |
* Add sslmode to connection variables |
|
156 |
* Printable view of things |
|
157 |
* Show comments for all objects (Dan Boren) |
|
158 |
* Allow setting/dropping comments for all objects (Dan Boren) |
|
159 |
* Show owner for all objects |
|
160 |
* Allow changing owner for objects that have this feature (7.4+ generally) |
|
161 |
* Translated FAQ |
|
162 |
* Icons for all objects, for use in navigation widgets |
|
163 | ||
164 |
Exotic |
|
165 |
------ |
|
166 | ||
167 |
* Support contrib/tsearch2 for easy full text indexes |
|
168 |
* Pivot reports (ADODB has a feature for this) |
|
169 |
* Parameterized reports (use prepared queries) |
|
170 |
* Full web accessability conformance |
|
171 | ||
172 |
Principles |
|
173 |
---------- |
|
174 | ||
175 |
* register_globals off support |
|
176 |
* maximum error_reporting support - enforces code quality, reduces bugs and |
|
177 |
improves security |
|
178 |
* PHP 4.2 features used |
|
179 |
* No HTML font, colour, layout tags. Use CSS for everything |
|
180 |
* One day we should make it all XHTML |
|
181 |
* everything properly escaped - prevent sql injection and cross-site scripting |
|
182 |
probs |
|
183 |
* Support Postgres 7.0 and upwards |
|
184 |
* psql -E is a cool way of seeing how to do schema queries |
|
185 |
* Checking out older versions of describe.c in src/bin/psql in the postgres |
|
186 |
distro is a good way of seeing how to query older versions of postgres for |
|
187 |
schema information |
|
188 |
* Put functions in the highest class possible. For instance, simple selects |
|
189 |
should be in Postgres, whereas something that works for 7.1+ should be in the |
|
190 |
7.1 class. This will minimise bugs and duplicated code. |
|
191 |
* Adhere to current coding standards |
|
192 |
* Avoid using global variables if possible |
|
193 |
html/PostgresssAdmin/TRANSLATORS | ||
---|---|---|
1 |
Translator Info |
|
2 |
--------------- |
|
3 | ||
4 |
If you like phpPgAdmin, then why not translate it into your native language? |
|
5 | ||
6 |
Translation is slightly complicated in phpPgAdmin compared to other PHP |
|
7 |
software, since we support viewing database encodings that are different to |
|
8 |
your language encoding. |
|
9 | ||
10 |
Also, there are quite a large number of strings to be translated. Partial |
|
11 |
translations are better than no translations at all, and a rough guide is that |
|
12 |
the strings are in the order from most important to least important in the |
|
13 |
language file. You can ask the developers list if you don't know what a |
|
14 |
certain string means. |
|
15 | ||
16 |
To translate messages, you will need to install GNU Recode on your computer. |
|
17 | ||
18 |
GNU Recode: http://www.gnu.org/software/recode/recode.html |
|
19 | ||
20 |
Your favourite OS should have a GNU Recode package available. (See bottom for |
|
21 |
details.) |
|
22 | ||
23 |
Once you have Recode installed, these are the steps to creating a new |
|
24 |
translation: |
|
25 | ||
26 |
1. Go to the lang/ subdirectory |
|
27 | ||
28 |
2. Copy english.php to yourlanguage.php |
|
29 | ||
30 |
3. Update the comment at the top of the file. Put yourself as the language |
|
31 |
maintainer. Edit the 'applang' variable and put your language's name in it, |
|
32 |
in your language. |
|
33 |
|
|
34 |
Edit the 'appcharset' variable and put in the name of the encoding for your |
|
35 |
language. |
|
36 | ||
37 |
4. Go through as much of the rest of the file as you wish, replacing the |
|
38 |
English strings with strings in your native language. |
|
39 | ||
40 |
At this point, you can send the yourlanguage.php file to us and we will take |
|
41 |
care of testing and recoding the translation. Please only do that if you |
|
42 |
find the rest of these steps too difficult. |
|
43 | ||
44 |
5. Edit the Makefile in the lang/ directory and add an entry for your new |
|
45 |
language. Note that the parameter for Recode is "yourcharset..HTML". |
|
46 | ||
47 |
6. Run the Makefile by typing 'make yourlanguage'. A recoded language file |
|
48 |
will appear in the lang/recoded/ directory. If the recoding fails, then |
|
49 |
fix the error in your language file and try again. |
|
50 | ||
51 |
7. The HTML encoded language file is what phpPgAdmin actually uses to display |
|
52 |
localised strings. Have a look at the recoded file to see how the HTML |
|
53 |
encoding works. By encoding your language like this, we can display your |
|
54 |
language's characters as well as the characters of the language in your |
|
55 |
database. |
|
56 | ||
57 |
8. To add your language to phpPgAdmin, edit the lang/translations.php file |
|
58 |
and add your language to the $appLangFiles array. |
|
59 |
You must include the HTML encoded version of your language's name. You can |
|
60 |
get this from the recoded version of your translated strings file. |
|
61 |
Also, add your language to the $availableLanguages array for |
|
62 |
browser auto detection. |
|
63 | ||
64 |
9. Send your contribution to us. We need the lib.inc.php entry as well as the |
|
65 |
yourlanguage.php file in lang/. We don't need the recoded file as we can |
|
66 |
recode it ourselves before committing it. Email to the developers list: |
|
67 |
phppgadmin-devel@lists.sourceforge.net |
|
68 | ||
69 |
10. Thank you for your contribution! You have just made phpPgAdmin accessible |
|
70 |
to thousands more users! |
|
71 | ||
72 |
11. There exists a tool named 'langcheck' in the lang/ directory. To run it, |
|
73 |
just type 'php langcheck <language>'. It will give you a report about |
|
74 |
which strings are missing from your language file and which need to be |
|
75 |
deleted. |
|
76 | ||
77 |
Appendix A: Ways to Get Recode |
|
78 |
------------------------------ |
|
79 | ||
80 |
* FreeBSD: cd /usr/ports/converters/recode; make install clean |
|
81 |
* BSD: ftp.gnu.org/gnu/recode/ |
|
82 |
* Red Hat: rpm -Uvh recode-3.6-6.i386.rpm |
|
83 |
* Debian: Available via apt-get |
|
84 |
* Win32: http://unxutils.sourceforge.net |
html/PostgresssAdmin/aggregates.php | ||
---|---|---|
1 |
<?php |
|
2 | ||
3 |
/** |
|
4 |
* Manage aggregates in a database |
|
5 |
* |
|
6 |
* $Id: aggregates.php,v 1.12 2005/10/18 03:45:15 chriskl Exp $ |
|
7 |
*/ |
|
8 | ||
9 |
// Include application functions |
|
10 |
include_once('./libraries/lib.inc.php'); |
|
11 |
|
|
12 |
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : ''; |
|
13 |
if (!isset($msg)) $msg = ''; |
|
14 | ||
15 |
/** |
|
16 |
* Show default list of aggregates in the database |
|
17 |
*/ |
|
18 |
function doDefault($msg = '') { |
|
19 |
global $data, $conf, $misc; |
|
20 |
global $lang; |
|
21 | ||
22 |
$misc->printTrail('schema'); |
|
23 |
$misc->printTabs('schema', 'aggregates'); |
|
24 |
$misc->printMsg($msg); |
|
25 |
|
|
26 |
$aggregates = $data->getAggregates(); |
|
27 | ||
28 |
$columns = array( |
|
29 |
'aggregate' => array( |
|
30 |
'title' => $lang['strname'], |
|
31 |
'field' => 'proname', |
|
32 |
), |
|
33 |
'type' => array( |
|
34 |
'title' => $lang['strtype'], |
|
35 |
'field' => 'proargtypes', |
|
36 |
'params'=> array('null' => $lang['stralltypes']), |
|
37 |
), |
|
38 |
'comment' => array( |
|
39 |
'title' => $lang['strcomment'], |
|
40 |
'field' => 'aggcomment', |
|
41 |
), |
|
42 |
); |
|
43 |
|
|
44 |
$actions = array(); |
|
45 |
|
|
46 |
$misc->printTable($aggregates, $columns, $actions, $lang['strnoaggregates']); |
|
47 |
} |
|
48 | ||
49 |
/** |
|
50 |
* Generate XML for the browser tree. |
|
51 |
*/ |
|
52 |
function doTree() { |
|
53 |
global $misc, $data; |
|
54 |
|
|
55 |
$aggregates = $data->getAggregates(); |
|
56 |
|
|
57 |
$proto = concat(field('proname'), ' (', field('proargtypes'), ')'); |
|
58 |
|
|
59 |
$attrs = array( |
|
60 |
'text' => $proto, |
|
61 |
'icon' => 'functions', |
|
62 |
'toolTip'=> field('aggcomment'), |
|
63 |
); |
|
64 |
|
|
65 |
$misc->printTreeXML($aggregates, $attrs); |
|
66 |
exit; |
|
67 |
} |
|
68 |
|
|
69 |
if ($action == 'tree') doTree(); |
|
70 |
|
|
71 |
$misc->printHeader($lang['straggregates']); |
|
72 |
$misc->printBody(); |
|
73 | ||
74 |
switch ($action) { |
|
75 |
default: |
|
76 |
doDefault(); |
|
77 |
break; |
|
78 |
} |
|
79 | ||
80 |
$misc->printFooter(); |
|
81 | ||
82 |
?> |
html/PostgresssAdmin/all_db.php | ||
---|---|---|
1 |
<?php |
|
2 | ||
3 |
/** |
|
4 |
* Manage databases within a server |
|
5 |
* |
|
6 |
* $Id: all_db.php,v 1.41 2005/10/18 03:45:15 chriskl Exp $ |
|
7 |
*/ |
|
8 | ||
9 |
// Include application functions |
|
10 |
include_once('./libraries/lib.inc.php'); |
|
11 |
|
|
12 |
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : ''; |
|
13 |
if (!isset($msg)) $msg = ''; |
|
14 |
$PHP_SELF = $_SERVER['PHP_SELF']; |
|
15 |
Také k dispozici: Unified diff
import of old project