Revision 3754,
633 bytes
checked in by emersonfaria, 14 years ago
(diff) |
Ticket #1551 - Correcoes de bugs e Melhorias de formatacao de email no Z-Push.
|
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[3637] | 1 | <?php |
---|
| 2 | //global $db; // global variable that can be used with any script |
---|
| 3 | function dbconnect() |
---|
| 4 | { |
---|
| 5 | // set up database connection details |
---|
| 6 | $dbhost = "10.200.112.132"; // replace with your database hostname or ip |
---|
[3754] | 7 | $dbuser = "zpush"; // replace with your database username |
---|
| 8 | $dbpass = "zpush"; // replace with your database password |
---|
[3637] | 9 | $dbname = "expresso"; // replace with your database name |
---|
| 10 | |
---|
| 11 | // connect to database |
---|
| 12 | $db = pg_pconnect("host=" . $dbhost . " port=5432 dbname=" . $dbname . " user=" . $dbuser . " password=" . $dbpass); |
---|
| 13 | return $db; |
---|
| 14 | }// end connect() |
---|
| 15 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.