diff options
| author | Eliot Whalan <ewhal@pantsu.cat> | 2015-09-24 04:56:14 +0200 |
|---|---|---|
| committer | Eliot Whalan <ewhal@pantsu.cat> | 2015-09-24 04:56:14 +0200 |
| commit | 72ba569a25211409eb84887da4eeb49c8c771081 (patch) | |
| tree | 4b79da74752dc6556d0af86513509075820cec19 /static/includes | |
| parent | 6afdfc24deb2d352e06189900d97d0500a40c7c4 (diff) | |
| parent | 3b4701b240f55b4e97edee7fdc13fec35a76fc5a (diff) | |
Merge remote-tracking branch 'origin/copyright-headers'
Diffstat (limited to 'static/includes')
| -rw-r--r-- | static/includes/database.inc.php | 22 | ||||
| -rw-r--r-- | static/includes/settings.inc.php | 24 |
2 files changed, 46 insertions, 0 deletions
diff --git a/static/includes/database.inc.php b/static/includes/database.inc.php index 5049487..0374afa 100644 --- a/static/includes/database.inc.php +++ b/static/includes/database.inc.php @@ -1,5 +1,27 @@ <?php +/** + * Copyright (c) 2013 Peter Lejeck <peter.lejeck@gmail.com> + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + include_once 'settings.inc.php'; /* NOTE: we don't have to unref the PDO because we're not long-running */ diff --git a/static/includes/settings.inc.php b/static/includes/settings.inc.php index 37bc4a0..6072249 100644 --- a/static/includes/settings.inc.php +++ b/static/includes/settings.inc.php @@ -1,5 +1,29 @@ <?php +/** + * Copyright (c) 2013, 2014 Peter Lejeck <peter.lejeck@gmail.com> + * Copyright (c) 2015 cenci0 <alchimist94@gmail.com> + * Copyright (c) 2015 the Pantsu.cat developers <hostmaster@pantsu.cat> + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + // PDO socket // mysql.sock path can be different from /tmp/mysql.sock, see /etc/my.cnf define('POMF_DB_CONN', 'mysql:unix_socket=/tmp/mysql.sock;dbname=pomf'); |
