HomeHelpTrac

Ignore:
Timestamp:
04/06/09 05:42:46 (3 years ago)
Author:
Andrey Prikaznov
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/profile_customize.php

    r9964 r9977  
    4848    { 
    4949 
    50             $query = "SELECT `BackgroundFilename` FROM `ProfilesSettings` WHERE `IDMember` = '$ID';"; 
     50            $query = "SELECT `BackgroundFilename` FROM `sys_profiles_settings` WHERE `IDMember` = '$ID';"; 
    5151            $custom_arr = db_arr( $query ); 
    5252            if ( strlen($custom_arr['BackgroundFilename']) && file_exists($dir['profileBackground'] . $custom_arr['BackgroundFilename']) && is_file($dir['profileBackground'] . $custom_arr['BackgroundFilename']) ) 
    5353                @unlink($dir['profileBackground'] . $custom_arr['BackgroundFilename']); 
    5454 
    55             $query = "DELETE FROM `ProfilesSettings` WHERE `IDMember`='$ID' LIMIT 1"; 
     55            $query = "DELETE FROM `sys_profiles_settings` WHERE `IDMember`='$ID' LIMIT 1"; 
    5656            db_res( $query ); 
    5757 
     
    6060    { 
    6161 
    62     $query = "SELECT * FROM `ProfilesSettings` WHERE `IDMember` = '$ID';"; 
     62    $query = "SELECT * FROM `sys_profiles_settings` WHERE `IDMember` = '$ID';"; 
    6363    $custom_arr = db_arr( $query ); 
    6464    $record_created = $custom_arr['IDMember'] ? 'ok' : ''; 
     
    7878                if ( !$record_created ) 
    7979                { 
    80                     $query = "INSERT INTO ProfilesSettings (`IDMember`, `BackgroundFilename` ) VALUES ( '$ID', '$pic_name$ext' )"; 
     80                    $query = "INSERT INTO `sys_profiles_settings` (`IDMember`, `BackgroundFilename` ) VALUES ( '$ID', '$pic_name$ext' )"; 
    8181                    $record_created = 'ok'; 
    8282                } 
    8383                else 
    8484                { 
    85                     $query = "UPDATE ProfilesSettings SET `BackgroundFilename` = '$pic_name$ext', `Status` = 'Approval' WHERE `IDMember` = '$ID'"; 
     85                    $query = "UPDATE `sys_profiles_settings` SET `BackgroundFilename` = '$pic_name$ext', `Status` = 'Approval' WHERE `IDMember` = '$ID'"; 
    8686                } 
    8787                $res = db_res( $query ); 
     
    9797            if (file_exists($dir['profileBackground'] . $custom_arr['BackgroundFilename'])) unlink($dir['profileBackground'] . $custom_arr['BackgroundFilename']); 
    9898 
    99                 $query = "UPDATE ProfilesSettings SET `BackgroundFilename` = '' WHERE `IDMember` = '$ID'"; 
     99                $query = "UPDATE `sys_profiles_settings` SET `BackgroundFilename` = '' WHERE `IDMember` = '$ID'"; 
    100100                $res = db_res( $query ); 
    101101            } 
     
    109109    if ( !$record_created ) 
    110110    { 
    111         $query = "INSERT INTO ProfilesSettings (`IDMember`, `BackgroundColor` ) VALUES ( '$ID', '{$_POST['bgcolor']}' )"; 
     111        $query = "INSERT INTO `sys_profiles_settings` (`IDMember`, `BackgroundColor` ) VALUES ( '$ID', '{$_POST['bgcolor']}' )"; 
    112112        $record_created = 'ok'; 
    113113    } 
    114114    else 
    115         $query = "UPDATE ProfilesSettings SET `BackgroundColor` = '{$_POST['bgcolor']}' WHERE `IDMember` = '$ID'"; 
     115        $query = "UPDATE `sys_profiles_settings` SET `BackgroundColor` = '{$_POST['bgcolor']}' WHERE `IDMember` = '$ID'"; 
    116116 
    117117    $res = db_res( $query ); 
     
    123123    if ( !$record_created ) 
    124124    { 
    125         $query = "INSERT INTO ProfilesSettings (`IDMember`, `FontColor` ) VALUES ( '$ID', '{$_POST['fontcolor']}' )"; 
     125        $query = "INSERT INTO `sys_profiles_settings` (`IDMember`, `FontColor` ) VALUES ( '$ID', '{$_POST['fontcolor']}' )"; 
    126126        $record_created = 'ok'; 
    127127    } 
    128128    else 
    129         $query = "UPDATE ProfilesSettings SET `FontColor` = '{$_POST['fontcolor']}' WHERE `IDMember` = '$ID'"; 
     129        $query = "UPDATE `sys_profiles_settings` SET `FontColor` = '{$_POST['fontcolor']}' WHERE `IDMember` = '$ID'"; 
    130130 
    131131    $res = db_res( $query ); 
     
    137137    if ( !$record_created ) 
    138138    { 
    139         $query = "INSERT INTO ProfilesSettings (`IDMember`, `FontSize` ) VALUES ( '$ID', '{$_POST['fontsize']}' )"; 
     139        $query = "INSERT INTO `sys_profiles_settings` (`IDMember`, `FontSize` ) VALUES ( '$ID', '{$_POST['fontsize']}' )"; 
    140140        $record_created = 'ok'; 
    141141    } 
    142142    else 
    143         $query = "UPDATE ProfilesSettings SET `FontSize` = '{$_POST['fontsize']}' WHERE `IDMember` = '$ID'"; 
     143        $query = "UPDATE `sys_profiles_settings` SET `FontSize` = '{$_POST['fontsize']}' WHERE `IDMember` = '$ID'"; 
    144144 
    145145    $res = db_res( $query ); 
     
    151151    if ( !$record_created ) 
    152152    { 
    153         $query = "INSERT INTO ProfilesSettings (`IDMember`, `FontFamily` ) VALUES ( '$ID', '{$_POST['fontfamily']}' )"; 
     153        $query = "INSERT INTO `sys_profiles_settings` (`IDMember`, `FontFamily` ) VALUES ( '$ID', '{$_POST['fontfamily']}' )"; 
    154154        $record_created = 'ok'; 
    155155    } 
    156156    else 
    157         $query = "UPDATE ProfilesSettings SET `FontFamily` = '{$_POST['fontfamily']}' WHERE `IDMember` = '$ID'"; 
     157        $query = "UPDATE `sys_profiles_settings` SET `FontFamily` = '{$_POST['fontfamily']}' WHERE `IDMember` = '$ID'"; 
    158158 
    159159    $res = db_res( $query ); 
     
    188188    global $site; 
    189189 
    190     $query = "SELECT * FROM `ProfilesSettings` WHERE `IDMember` = '$ID'"; 
     190    $query = "SELECT * FROM `sys_profiles_settings` WHERE `IDMember` = '$ID'"; 
    191191    $custom_arr = db_arr( $query ); 
    192192 
Note: See TracChangeset for help on using the changeset viewer.