~ubuntu-branches/ubuntu/hardy/phpmyadmin/hardy

« back to all changes in this revision

Viewing changes to libraries/session.inc.php

  • Committer: Bazaar Package Importer
  • Author(s): Thijs Kinkhorst, Thijs Kinkhorst, Translations
  • Date: 2007-06-17 17:52:03 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20070617175203-6oa2mpmgazkhp8tl
Tags: 4:2.10.2-1

[ Thijs Kinkhorst ]
* New upstream release.
* Welcome Michal Čihař as new co-maintainer.

[ Translations ]
* Vietnamese by Clytie Siddall (Closes: #427177).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?php
2
 
/* $Id: session.inc.php 9922 2007-02-05 12:37:18Z cybot_tm $ */
 
2
/* $Id: session.inc.php 10422 2007-06-05 16:32:49Z lem9 $ */
3
3
// vim: expandtab sw=4 ts=4 sts=4:
4
4
/**
5
5
 * session handling
23
23
    require_once('./libraries/select_lang.lib.php');
24
24
    // Displays the error message
25
25
    // (do not use &amp; for parameters sent by header)
26
 
    header('Location: error.php'
 
26
    header('Location: ' . (defined('PMA_SETUP') ? '../' : '') . 'error.php'
27
27
            . '?lang='  . urlencode($available_languages[$lang][2])
28
28
            . '&dir='   . urlencode($text_dir)
29
29
            . '&type='  . urlencode($strError)
104
104
    $session_error = ob_get_contents();
105
105
    ob_end_clean();
106
106
    if ($r !== true || ! empty($session_error)) {
 
107
        setcookie($session_name, '', 1);
107
108
        $cfg = array('DefaultLang'           => 'en-iso-8859-1',
108
109
                     'AllowAnywhereRecoding' => false);
109
110
        // Loads the language file
110
111
        require_once './libraries/select_lang.lib.php';
111
112
        // Displays the error message
112
113
        // (do not use &amp; for parameters sent by header)
113
 
        header('Location: error.php'
 
114
        header('Location: ' . (defined('PMA_SETUP') ? '../' : '') . 'error.php'
114
115
                . '?lang='  . urlencode($available_languages[$lang][2])
115
116
                . '&dir='   . urlencode($text_dir)
116
117
                . '&type='  . urlencode($strError)