Subversion-Projekte lars-tiefland.content-management

Revision

Blame | Letzte Änderung | Log anzeigen | RSS feed

<?php

    /**
     * @package   Content-management
     * @author    Lars Tiefland <tiefland@weban.de>
     * @copyright 2009 Webagentur Niewerth
     * @license   propietary http://www.weban.de
     * @version   $Rev: 3361 $
     * @filesource
     * 
     */

    /**
     * 
     * @package   Content-management
     * @author    Lars Tiefland <tiefland@weban.de>
     * @copyright 2009 Webagentur Niewerth
     */

    // SVN: $Id: save_profile.php 3361 2011-02-24 15:34:41Z tiefland $

    require_once  "connect2.php";

    if ( $mode == "del" )
    {
        $sql = "
            DELETE FROM
                content_management.user_profiles
            WHERE
                u_id=" . $_SESSION["U_ID"] . "
            AND
                id=" . $_GET["id"] . "
            AND
                w_id=" . $webs["ID"] . "
            AND
                type='" . $_GET["type"] . "'
        ";
    }
    else
    {
        $sql = "
            REPLACE INTO
                content_management.user_profiles
            (
                u_id,
                name,
                type,
                w_id,
                `values`
            )
            VALUES
            (
                " . $_SESSION["U_ID"] . ",
                '" . $_GET["name"] . "',
                '" . $_GET["type"] . "',
                " . $webs["ID"] . ",
                '" . serialize( $_SESSION["quick_edit_config.php"] ) . "'
            )
        ";
    }
    mysql_query( $sql, $localhost_dbh );
    header( "Location: quick_edit_config.php" );

?>