ilchClan-v1.1-userCP/UPLOAD/contents/ucp/contact.php

37 lines
1020 B
PHP

<?php
# Copyright: Marcel 'H4ckHunt3r 'Naeve
## Support: www.naeve.info && www.ilch.de
defined('main') or die('no direct access');
$tpl = new tpl( 'ucp/contact.htm' );
if(isset($_POST['subContact']))
{
if(db_query("UPDATE prefix_user SET icq='".escape($_POST['icq'],"string")."',msn='".escape($_POST['msn'],"string")."',skype='".escape($_POST['skype'],"string")."',yahoo='".escape($_POST['yahoo'],"string")."',aim='".escape($_POST['aim'],"string")."',steam='".escape($_POST['steam'],"string")."',xfire='".escape($_POST['xfire'],"string")."' WHERE id='".$uid."'"))
{
$message .= "Daten wurden eingetragen!";
} else {
$message .= "Daten wurden nicht eingetragen!";
}
}
$uI = db_fetch_object(db_query("SELECT * FROM prefix_user WHERE id='".$uid."'"));
$uArr = array(
'icq' => $uI->icq,
'msn' => $uI->msn,
'skype' => $uI->skype,
'steam' => $uI->steam,
'xfire' => $uI->xfire,
'yahoo' => $uI->yahoo,
'aim' => $uI->aim,
'message' => $message
);
$tpl->set_ar_out($uArr,0);
?>