Subversion-Projekte lars-tiefland.content-management

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
 
3
    //$Id: load_from_db.php 3361 2011-02-24 15:34:41Z tiefland $
4
 
5
    /**
6
     * @author Lars Tiefland <tiefland@weban.de>
7
     * @copyright 2009 Webagentur Niewerth
8
     * @package Content-management
9
     * @version $Rev: 3361 $
10
     * @license propietary
11
     * @filesource
12
     *
13
     */
14
 
15
    /**
16
     *
17
     * @author Lars Tiefland <tiefland@weban.de>
18
     * @copyright 2009 Webagentur Niewerth
19
     * @package Content-management
20
     */
21
 
22
    require_once  "connect2.php";
23
 
24
    $sql = "SELECT view_data FROM content_management.Access WHERE user='" . $_SERVER["PHP_AUTH_USER"] .
25
        "'";
26
    $res = mysql_query( $sql, $localhost_dbh );
27
    if ( $res )
28
    {
29
        $row = mysql_fetch_assoc( $res );
30
        $view_data = unserialize( $row["view_data"] );
31
    }
32
    else
33
    {
34
        echo mysql_error();
35
    }
36
?>