Subversion-Projekte lars-tiefland.content-management

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
 
3
    /**
4
     * @package   Content-management
5
     * @author    Lars Tiefland <tiefland@weban.de>
6
     * @copyright 2009 Webagentur Niewerth
7
     * @license   propietary http://www.weban.de
8
     * @version   $Rev: 3361 $
9
     * @filesource
10
     *
11
     */
12
 
13
    /**
14
     *
15
     * @package   Content-management
16
     * @author    Lars Tiefland <tiefland@weban.de>
17
     * @copyright 2009 Webagentur Niewerth
18
     */
19
 
20
    // SVN: $Id: save_profile.php 3361 2011-02-24 15:34:41Z tiefland $
21
 
22
    require_once  "connect2.php";
23
 
24
    if ( $mode == "del" )
25
    {
26
        $sql = "
27
            DELETE FROM
28
                content_management.user_profiles
29
            WHERE
30
                u_id=" . $_SESSION["U_ID"] . "
31
            AND
32
                id=" . $_GET["id"] . "
33
            AND
34
                w_id=" . $webs["ID"] . "
35
            AND
36
                type='" . $_GET["type"] . "'
37
        ";
38
    }
39
    else
40
    {
41
        $sql = "
42
            REPLACE INTO
43
                content_management.user_profiles
44
            (
45
                u_id,
46
                name,
47
                type,
48
                w_id,
49
                `values`
50
            )
51
            VALUES
52
            (
53
                " . $_SESSION["U_ID"] . ",
54
                '" . $_GET["name"] . "',
55
                '" . $_GET["type"] . "',
56
                " . $webs["ID"] . ",
57
                '" . serialize( $_SESSION["quick_edit_config.php"] ) . "'
58
            )
59
        ";
60
    }
61
    mysql_query( $sql, $localhost_dbh );
62
    header( "Location: quick_edit_config.php" );
63
 
64
?>