~ubuntu-branches/ubuntu/lucid/phpmyadmin/lucid

« back to all changes in this revision

Viewing changes to setup/lib/common.inc.php

  • Committer: Bazaar Package Importer
  • Author(s): Michal Čihař
  • Date: 2009-06-30 14:05:13 UTC
  • mfrom: (1.2.1 upstream) (36.1.2 karmic)
  • Revision ID: james.westby@ubuntu.com-20090630140513-hz71do3sij2jhm4s
* New upstream version fixing XSS (PMASA-2009-5).
* Document no empty password in README.Debian and the shipped sample
  configuration file (LP: #388703).
* Install service file for avahi (if web service enabled and if avahi is
  installed) (LP: #369244).
* Mention protecting of setup if not using provided configuration snippets
  for webservers.
* Call ucf with --debconf-ok in postrm (Closes: #534894).

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 * @package    phpMyAdmin-setup
6
6
 * @author     Piotr Przybylski <piotrprz@gmail.com>
7
7
 * @license    http://www.gnu.org/licenses/gpl.html GNU GPL 2.0
8
 
 * @version    $Id: common.inc.php 11741 2008-11-03 16:32:38Z crackpl $
9
 
 */
10
 
 
11
 
// TODO: remove
12
 
error_reporting(E_ALL | E_STRICT);
13
 
 
 
8
 * @version    $Id: common.inc.php 12195 2009-01-18 18:55:00Z crackpl $
 
9
 */
 
10
 
 
11
/**
 
12
 * Do not include full common.
 
13
 * @ignore
 
14
 */
14
15
define('PMA_MINIMUM_COMMON', TRUE);
15
16
define('PMA_SETUP', TRUE);
16
17
chdir('..');
19
20
require_once './libraries/url_generating.lib.php';
20
21
require_once './setup/lib/ConfigFile.class.php';
21
22
 
22
 
// TODO: remove
 
23
// use default error handler
23
24
restore_error_handler();
24
 
if ($error_handler->countErrors() > 0) {
25
 
    $error_handler->dispAllErrors();
26
 
}
27
25
 
28
26
// Save current language in a cookie, required since we use PMA_MINIMUM_COMMON
29
27
PMA_setCookie('pma_lang', $GLOBALS['lang']);
204
202
}
205
203
 
206
204
/**
207
 
 * Wraps link in <a> tags and replaces argument separator in internal links
 
205
 * Wraps link in &lt;a&gt; tags and replaces argument separator in internal links
208
206
 * to the one returned by PMA_get_arg_separator()
209
207
 *
210
208
 * @param string $link
225
223
 
226
224
    return '<a href="' . $link . '">' . $text . '</a>';
227
225
}
228
 
?>
 
 
b'\\ No newline at end of file'
 
226
?>