ok also
www.happytreefriends-4story.de
profil_edit
<?php
# Copyright by: Manuel
# Support: www.ilch.de
defined ('main') or die ( 'no direct access' );
$title = $allgAr['title'].' :: Users :: Profil';
$hmenu = $extented_forum_menu.'<a class="smalfont" href="?user">Users</a><b> » </b> Profil'.$extented_forum_menu_sufix;
$design = new design ( $title , $hmenu, 1);
if ( $_SESSION['authright'] <= -1 ) {
if ( empty ($_POST['submit']) ) {
$design->header();
$abf = 'SELECT email,wohnort,homepage,aim,msn,icq,xfire,yahoo,avatar,status,staat,gebdatum,sig,opt_pm_popup,opt_pm,opt_mail,geschlecht,spezrank FROM `prefix_user` WHERE id = "'.$_SESSION['authid'].'"';
$erg = db_query($abf);
if ( db_num_rows($erg) > 0 ) {
$row = db_fetch_assoc($erg);
$tpl = new tpl ('user/profil_edit');
$row['staat'] = '<option></option>'.arliste ( $row['staat'] , get_nationality_array() , $tpl , 'staat' );
$row['geschlecht0'] = ( $row['geschlecht'] < 1 ? 'checked' : '' );
$row['geschlecht1'] = ( $row['geschlecht'] == 1 ? 'checked' : '' );
$row['geschlecht2'] = ( $row['geschlecht'] == 2 ? 'checked' : '' );
if ( $row['status'] == 1 ) { $row['status1'] = 'checked'; $row['status0'] = ''; } else { $row['status1'] = ''; $row['status0'] = 'checked'; }
if ( $row['opt_mail'] == 1 ) { $row['opt_mail1'] = 'checked'; $row['opt_mail0'] = ''; } else { $row['opt_mail1'] = ''; $row['opt_mail0'] = 'checked'; }
if ( $row['opt_pm'] == 1 ) { $row['opt_pm1'] = 'checked'; $row['opt_pm0'] = ''; } else { $row['opt_pm1'] = ''; $row['opt_pm0'] = 'checked'; }
if ( $row['opt_pm_popup'] == 1 ) { $row['opt_pm_popup1'] = 'checked'; $row['opt_pm_popup0'] = ''; } else { $row['opt_pm_popup1'] = ''; $row['opt_pm_popup0'] = 'checked'; }
$row['avatarbild'] = ( file_exists ( $row['avatar'] ) ? '<img src="'.$row['avatar'].'" alt=""><br />' : '' );
$row['Fabreite'] = $allgAr['Fabreite'];
$row['Fahohe'] = $allgAr['Fahohe'];
$row['Fasize'] = $allgAr['Fasize'];
$row['forum_max_sig'] = $allgAr['forum_max_sig'];
$row['uid'] = $_SESSION['authid'];
$row['forum_usergallery'] = $allgAr['forum_usergallery'];
$tpl->set_ar_out($row,0);
if ($allgAr['forum_avatar_upload']) $tpl->out(1);
$tpl->set_ar_out($row,2);
profilefields_change ( $_SESSION['authid'] );
$tpl->out(3);
} else {
$tpl = new tpl ( 'user/login.htm' );
$tpl->set_out('WDLINK','index.php',0);
}
} else { # submit
# change poassword
if ( !empty($_POST['np1']) AND !empty($_POST['np2']) AND !empty($_POST['op'])) {
if ($_POST['np1'] == $_POST['np2']) {
$akpw = db_result(db_query("SELECT pass FROM prefix_user WHERE id = ".$_SESSION['authid']),0);
if ($akpw == md5($_POST['op'])) {
$newpw = md5($_POST['np1']);
db_query("UPDATE prefix_user SET pass = '".$newpw."' WHERE id = ".$_SESSION['authid']);
setcookie(session_und_cookie_name(), $_SESSION['authid'].'='.$newpw, time() + 31104000, "/" );
$fmsg = $lang['passwortchanged'];
} else {
$fmsg = $lang['passwortwrong'];
}
} else {
$fmsg = $lang['passwortnotequal'];
}
}
# avatar speichern START
$avatar_sql_update = '';
if ( !empty ( $_FILES['avatarfile']['name'] ) AND $allgAr['forum_avatar_upload'] ) {
$file_tmpe = $_FILES['avatarfile']['tmp_name'];
$rile_type = ic_mime_type ($_FILES['avatarfile']['tmp_name']);
$file_type = $_FILES['avatarfile']['type'];
$file_size = $_FILES['avatarfile']['size'];
$fmsg = $lang['avatarisnopicture'];
$size = @getimagesize ($file_tmpe);
$endar = array (1 => 'gif', 2 => 'jpg', 3 => 'png');
if ( ($size[2] == 1 OR $size[2] == 2 OR $size[2] == 3) AND $size[0] > 10 AND $size[1] > 10 AND substr ( $file_type , 0 , 6 ) == 'image/' AND substr ( $rile_type , 0 , 6 ) == 'image/' ) {
$endung = $endar[$size[2]];
$breite = $size[0];
$hoehe = $size[1];
$fmsg = $lang['avatarcannotupload'];
if ( $file_size <= $allgAr['Fasize'] AND $breite <= $allgAr['Fabreite'] AND $hoehe <= $allgAr['Fahohe'] ) {
$neuer_name = 'include/images/avatars/'.$_SESSION['authid'].'.'.$endung;
@unlink (db_result(db_query("SELECT avatar FROM prefix_user WHERE id = ".$_SESSION['authid']),0));
move_uploaded_file ( $file_tmpe , $neuer_name );
@chmod($neuer_name, 0777);
$avatar_sql_update = "avatar = '".$neuer_name."',";
$fmsg = $lang['pictureuploaded'];
}
}
} elseif ( isset($_POST['avatarloeschen']) ) {
$fmsg = $lang['picturedelete'];
@unlink (db_result(db_query("SELECT avatar FROM prefix_user WHERE id = ".$_SESSION['authid']),0));
$avatar_sql_update = "avatar = '',";
}
# avatar speichern ENDE
# email aendern
if ($_POST['email'] != $_POST['aemail']) {
$id = $_SESSION['authid'].'||'.md5 (uniqid (rand()));
db_query("INSERT INTO prefix_usercheck (`check`,email,datime,ak)
VALUES ('".$id."','".escape($_POST['email'],'string')."',NOW(),3)");
$page = $_SERVER["HTTP_HOST"].$_SERVER["SCRIPT_NAME"];
$text = $lang['changedthemail'] . sprintf ($lang['registconfirmlink'], $page, $id );
icmail ($_POST['email'], $lang['mail'].' '.$lang['changed'], $text );
$fmsg = $lang['pleaseconfirmmail'];
}
#
#remove account
if (isset($_POST['removeaccount'])) {
$id = $_SESSION['authid'].'-remove-'.md5 (uniqid (rand()));
db_query("INSERT INTO prefix_usercheck (`check`,email,datime,ak)
VALUES ('".$id."','".escape($_POST['email'],'string')."',NOW(),5)");
$page = $_SERVER["HTTP_HOST"].$_SERVER["SCRIPT_NAME"];
$text = $lang['removeconfirm'] . sprintf ($lang['registconfirmlink'], $page, $id );
icmail ($_POST['email'], html_entity_decode($lang['removeaccount']), $text );
$fmsg = $lang['pleaseconfirmremove'];
}
#remove account
# statische felder speichern
db_query("UPDATE prefix_user
SET
homepage = '".get_homepage(escape($_POST['homepage'], 'string'))."',
wohnort = '".escape($_POST['wohnort'], 'string')."',
icq = '".escape($_POST['icq'], 'string')."',
msn = '".escape($_POST['msn'], 'string')."',
xfire = '".escape($_POST['xfire'], 'string')."'
yahoo = '".escape($_POST['yahoo'], 'string')."',
".$avatar_sql_update."
aim = '".escape($_POST['aim'], 'string')."',
staat = '".escape($_POST['staat'], 'string')."',
geschlecht = '".escape($_POST['geschlecht'], 'string')."',
status = '".escape($_POST['status'], 'string')."',
opt_mail = '".escape($_POST['opt_mail'], 'string')."',
opt_pm = '".escape($_POST['opt_pm'], 'string')."',
opt_pm_popup = '".escape($_POST['opt_pm_popup'], 'string')."',
gebdatum = '".get_datum(escape($_POST['gebdatum'], 'string'))."',
sig = '".substr(escape($_POST['sig'], 'string'),0,$allgAr['forum_max_sig'])."'
WHERE id = ".$_SESSION['authid']
);
# change other profil fields
profilefields_change_save ( $_SESSION['authid'] );
$design->header();
# definie and print msg
$fmsg = ( isset($fmsg) ? $fmsg : $lang['changesuccessful'] );
wd('?user-8' , $fmsg , 3 );
}
} else {
$tpl = new tpl ( 'user/login' );
$tpl->set_out('WDLINK', '?user-8', 0);
}
$design->footer();
?>
user_details
<?php
# Copyright by: Manuel
# Support: www.ilch.de
defined ('main') or die ( 'no direct access' );
$uid = $menu->get(2);
$abf = 'SELECT * FROM prefix_user WHERE id = "'.$uid.'"';
$erg = db_query($abf);
$row = db_fetch_assoc($erg);
$avatar = '';
if ( file_exists($row['avatar'])) {
$avatar = '<img src="'.$row['avatar'].'" border="0">';
}
$regsek = mktime ( 0,0,0, date('m'), date('d'), date('Y') ) - $row['regist'];
$regday = round($regsek / 86400);
$postpday = ( $regday == 0 ? 0 : round($row['posts'] / $regday, 2 ) );
$ar = array (
'NAME' => $row['name'],
'JOINED' => date('d M Y',$row['regist']),
'LASTAK' => date('d M Y - H:i',$row['llogin']),
'POSTS' => $row['posts'],
'postpday' => $postpday,
'RANG' => userrang ($row['posts'],$uid),
'AVATA' => $avatar,
'xfire' => $row['xfire'],
'skype' => $row['skype'],
'steam' => $row['steam'],
'upic' => $row['userpic'],
'fname' => $row['firstname'],
'lname' => $row['lastname'],
'description' => bbcode($row['descr'])
);
$title = $allgAr['title'].' :: Users :: Details von '.$row['name'];
$hmenu = $extented_forum_menu.'<a class="smalfont" href="?user">Users</a><b> » </b> Details von '.$row['name'].$extented_forum_menu_sufix;
$design = new design ( $title , $hmenu, 1);
$design->header();
$tpl = new tpl ( 'user/userdetails' );
$l = profilefields_show ( $uid );
$ar['rowspan'] = 4 + substr_count($l, '<tr><td class="');
$ar['profilefields'] = $l;
$tpl->set_ar_out($ar,0);
$design->footer();
?>
user.php
<?php
// Copyright by: Manuel
// Support: www.ilch.de
defined ('main') or die ('no direct access');
defined ('admin') or die ('only admin access');
function user_get_group_list ($uid) {
$l = 'Mitglied in Gruppen:<br />';
$erg = db_query("SELECT prefix_groups.name FROM prefix_groupusers LEFT JOIN prefix_groups ON prefix_groups.id = prefix_groupusers.gid WHERE prefix_groupusers.uid = " . $uid);
while ($r = db_fetch_assoc($erg)) {
$l .= '- ' . $r['name'] . '<br />';
}
return ($l);
}
function user_get_all_mod_list () {
$l = '';
$erg = db_query("SELECT DISTINCT name FROM prefix_modules WHERE fright = 1 ORDER BY prefix_modules.name");
while ($r = db_fetch_assoc($erg)) {
$x = $r['name'];
$l .= '<th style="font-size: 9px; font-weight: normal;" title="' . $r['name'] . '" valign="bottom">' . $x . '</th>';
}
return ($l);
}
function user_get_mod_change_list ($uid) {
$l = '';
$erg = db_query("SELECT prefix_modules.id, uid FROM prefix_modules LEFT JOIN prefix_modulerights ON prefix_modulerights.mid = prefix_modules.id AND prefix_modulerights.uid = " . $uid . " WHERE fright = 1 ORDER BY prefix_modules.name");
while ($r = db_fetch_assoc($erg)) {
if ($r['uid'] == '') {
$c = '';
} else {
$c = ' checked';
}
$l .= '<td align="center"><input onclick="changeModulRecht(' . $r['id'] . ',' . $uid . ')" type="checkbox" id="MN' . $r['id'] . '-' . $uid . '" name="MN' . $r['id'] . '-' . $uid . '" ' . $c . ' /></td>';
}
return ($l);
}
function user_get_mod_list ($uid) {
$l = 'Modulrechte:<br />';
$erg = db_query("SELECT DISTINCT module FROM prefix_modulerights WHERE uid = " . $uid);
while ($r = db_fetch_assoc($erg)) {
$l .= '- ' . $r['module'] . '<br />';
}
return ($l);
}
function getfl($gid) {
$liste = '';
$erg = db_query("SELECT view,name,reply,start,mods FROM prefix_forums WHERE view = " . $gid . " OR reply = " . $gid . " OR start = " . $gid . " OR mods = " . $gid);
while ($row = db_fetch_assoc($erg)) {
$v = ($row['view'] == $gid ? 'sehen/lesen,' : '');
$r = ($row['reply'] == $gid ? 'antworten,' : '');
$s = ($row['start'] == $gid ? 'Themen starten,' : '');
$m = ($row['mods'] == $gid ? 'Moderieren,' : '');
$liste .= $row['name'] . '<span class="smalfont">(' . $v . $r . $s . $m . ')</span> ';
}
return($liste);
}
if (isset($_POST['action'])) {
$design = new design ('Admins Area', 'Admins Area', 0);
$design->header();
$wdtext = 'Es ist ein Fehler aufgetreten.';
if (chk_antispam('adminuser_action', true) and isset($_POST['uid'])) {
$uid = escape($_POST['uid'], 'integer');
switch($_POST['action']){
// einen user komplett loeschen
case 'deleteUser':
$name = get_n($uid);
if ($uid != 1 and !empty($name)) {
user_remove($uid);
$wdtext = 'Der User ' . $name . ' wurde erfolgreich gelöscht.';
}
break;
// das recht eines users aendern
case 'changeRight' :
$altes_recht = db_result(db_query("SELECT recht FROM prefix_user WHERE id = " . $uid), 0);
$neues_recht = escape($_POST['newright'], 'integer');
if (($neues_recht > $_SESSION['authright'] AND $altes_recht > $_SESSION['authright']) OR ($_SESSION['authid'] == 1 AND $uid != 1)) {
$q = "UPDATE prefix_user SET recht = " . $neues_recht . " WHERE id = " . $uid;
db_query($q);
}
$wdtext = false;
break;
// modulrechte fuer einen user aendern
case 'changeModulRight' :
$modul = escape($_POST['modul'], 'integer');
$aktion = $_POST['giveremove'];
if ($aktion == 'give' AND 0 == db_result(db_query("SELECT COUNT(*) FROM prefix_modulerights WHERE mid = '" . $modul . "' AND uid = " . $uid), 0)) {
db_query("INSERT INTO prefix_modulerights (mid,uid) VALUES ('" . $modul . "'," . $uid . ")");
} elseif ($aktion == 'remove' AND 1 == db_result(db_query("SELECT COUNT(*) FROM prefix_modulerights WHERE mid = '" . $modul . "' AND uid = " . $uid), 0)) {
db_query("DELETE FROM prefix_modulerights WHERE mid = '" . $modul . "' AND uid = " . $uid);
}
$wdtext = false;
break;
}
}
if ($wdtext === false) {
$antispam = get_antispam('adminuser_action', 0, true);
?><script type="text/javascript"><!--
function updateParent() { parent.setNewAntispam(document.getElementById('tmp').childNodes[0]);}
window.onload = function() { updateParent(); };
//--></script>
<div id="tmp"><?php echo $antispam; ?></div>
<?php
exit;
}
wd('admin.php?' . $menu->get_complete(), $wdtext, 5);
$design->footer(1);
}
$um = $menu->get(1);
switch ($um) {
default :
$design = new design ('Admins Area', 'Admins Area', 2);
$design->header();
$q = '';
if (isset($_REQUEST['q'])) {
$q = escape($_REQUEST['q'], 'string');
}
$tpl = new tpl ('user/user', 1);
$tpl->set('modlall', user_get_all_mod_list());
$tpl->set('anzmods', db_result(db_query("SELECT COUNT(*) FROM prefix_modules WHERE fright = 1"), 0));
$tpl->set('action_antispam', get_antispam('adminuser_action', 0, true));
$tpl->set_out('q', unescape($q), 0);
$q = str_replace('*', '%', $q);
if (strpos($q, '%') === false) {
$q = $q . '%';
}
$limit = 15; // Limit
$page = ($menu->getA(1) == 'p' ? $menu->getE(1) : 1);
$MPL = db_make_sites ($page , "WHERE name LIKE '" . $q . "'" , $limit , '?user' , 'user');
$anfang = ($page - 1) * $limit;
$class = '';
$q = "SELECT name,recht,id,banned FROM `prefix_user` WHERE name LIKE '" . $q . "' ORDER by recht,posts DESC LIMIT " . $anfang . "," . $limit;
$erg = db_query($q);
while ($row = db_fetch_object($erg)) {
if ($class == 'Cmite') {
$class = 'Cnorm';
} else {
$class = 'Cmite';
}
if ($row->banned == 1) {
$banned = ' <a href="admin.php?user-debann-'.$row->id.'"><img src="include/images/icons/debann.png" border="0" title="entbannen" alt="entbannen" /></a> ';
} else {
$banned = ' <a href="admin.php?user-bann-'.$row->id.'"><img src="include/images/icons/bann.png" border="0" title="bannen" alt="bannen" /></a> ';
}
$ar = array ('name' => $row->name,
'class' => $class,
'id' => $row->id,
'grouplist' => user_get_group_list($row->id),
'recht' => dblistee($row->recht, "SELECT id,name FROM prefix_grundrechte ORDER BY id ASC"),
'modslist' => user_get_mod_change_list($row->id),
'banned' => $banned,
);
$tpl->set_ar_out($ar, 1);
}
$tpl->set_out('MPL', $MPL, 2);
$design->footer();
break;
// gruppen zugehoerigkeiten eines users aendern
case 'gruppen' :
$uid = $menu->get(2);
if (isset($_POST['usergroups'])) {
$erg = db_query("SELECT id FROM prefix_groups");
while ($row = db_fetch_assoc($erg)) {
$ck = db_count_query("SELECT COUNT(uid) FROM prefix_groupusers WHERE uid = " . $uid . " AND gid = " . $row['id']);
if ($ck == 0 AND isset ($_POST['grprhave'][$row['id']][$uid])) {
db_query("INSERT INTO prefix_groupusers (uid,gid,fid) VALUES ( " . $uid . ", " . $row['id'] . ", 3 )");
} elseif ($ck == 1 AND !isset ($_POST['grprhave'][$row['id']][$uid])) {
db_query("DELETE FROM prefix_groupusers WHERE uid = " . $uid . " AND gid = " . $row['id']);
}
}
}
$user_name = db_result(db_query("SELECT name FROM prefix_user WHERE id = " . $uid), 0);
$tpl = new tpl ('user/gruppen', 1);
$tpl->set_ar_out(array('username' => $user_name, 'userid' => $uid), 0);
$class = 'Cnorm';
$erg = db_query("SELECT name,id FROM prefix_groups");
while ($row = db_fetch_assoc($erg)) {
$ck = db_count_query("SELECT COUNT(uid) FROM prefix_groupusers WHERE uid = " . $uid . " AND gid = " . $row['id']);
$row['ck'] = ($ck == 0 ? '' : 'checked');
$class = ($class == 'Cnorm' ? 'Cmite' : 'Cnorm');
$row['class'] = $class;
$tpl->set_ar_out($row, 1);
}
$tpl->out(2);
break;
// details eines users anzeigen
case 1 :
$design = new design ('Admins Area', 'Admins Area', 2);
$design->header();
if (isset ($_REQUEST['uID'])) {
$uid = $_REQUEST['uID'];
} else {
$uid = $menu->get(2);
}
$erg = db_query("SELECT name,email,id,recht,wohnort,homepage,aim,msn,icq,xfire,yahoo,status,staat,gebdatum,sig,opt_pm,opt_pm_popup,opt_mail,geschlecht,spezrank,avatar FROM prefix_user WHERE id = '" . $uid . "'");
if (db_num_rows($erg) == 0) {
die ('Fehler: Username nicht gefunden <a href="?user">zurück</a>');
} else {
$row = db_fetch_assoc($erg);
$tpl = new tpl ('user/details', 1);
$row['recht'] = dbliste ($row['recht'] , $tpl, 'recht', "SELECT id,name FROM prefix_grundrechte ORDER BY id ASC");
$row['staat'] = '<option></option>' . arliste ($row['staat'] , get_nationality_array() , $tpl , 'staat');
$row['spezrank'] = '<option></option>' . dbliste ($row['spezrank'], $tpl, 'spezrank', "SELECT id, bez FROM prefix_ranks WHERE spez = 1");
$row['geschlecht0'] = ($row['geschlecht'] < 1 ? 'checked' : '');
$row['geschlecht1'] = ($row['geschlecht'] == 1 ? 'checked' : '');
$row['geschlecht2'] = ($row['geschlecht'] == 2 ? 'checked' : '');
if ($row['status'] == 1) {
$row['status1'] = 'checked';
$row['status0'] = '';
} else {
$row['status1'] = '';
$row['status0'] = 'checked';
}
if ($row['opt_mail'] == 1) {
$row['opt_mail1'] = 'checked';
$row['opt_mail0'] = '';
} else {
$row['opt_mail1'] = '';
$row['opt_mail0'] = 'checked';
}
if ($row['opt_pm'] == 1) {
$row['opt_pm1'] = 'checked';
$row['opt_pm0'] = '';
} else {
$row['opt_pm1'] = '';
$row['opt_pm0'] = 'checked';
}
if ($row['opt_pm_popup'] == 1) {
$row['opt_pm_popup1'] = 'checked';
$row['opt_pm_popup0'] = '';
} else {
$row['opt_pm_popup1'] = '';
$row['opt_pm_popup0'] = 'checked';
}
if (@file_exists($row['avatar'])) {
$row['avatar'] = '<img src="' . $row['avatar'] . '" border="0" /><br />' ;
}else {
$row['avatar'] = '';
}
$row['antispam'] = get_antispam('adminuser', 0, true);
$tpl->set_ar_out ($row, 0);
profilefields_change ($row['id']);
$tpl->out(1);
}
$design->footer();
break;
// details des users aendern
case 2 :
$design = new design ('Admins Area', 'Admins Area', 2);
$design->header();
$changeok = true;
$uid = escape($_POST['uID'], 'integer');
$altes_recht = db_result(db_query("SELECT recht FROM prefix_user WHERE id = " . $uid), 0);
$neues_recht = escape($_POST['urecht'], 'integer');
if (($neues_recht <= $_SESSION['authright'] OR $altes_recht <= $_SESSION['authright']) AND $_SESSION['authid'] > 1) {
$changeok = false;
}
if ($changeok and chk_antispam('adminuser', true)) {
if (isset($_POST['userdel'])) {
user_remove($uid);
wd ('?user', 'User wurde erfolgreich gelöscht');
} else {
$abf = "SELECT * FROM prefix_user WHERE id = '" . $uid . "'";
$erg = db_query($abf);
$row = db_fetch_object($erg);
if (isset($_POST['passw'])) {
$newPass = genkey (8);
$newPassMD5 = md5($newPass);
icmail ($row->email , 'neues Password' , "Hallo\n\nDein Password wurde soeben von einem Administrator gäendert es ist nun:\n\n$newPass\n\nGruß der Administrator");
db_query('UPDATE `prefix_user` SET pass = "' . $newPassMD5 . '" WHERE id = "' . escape($_POST['uID'], 'integer') . '"');
}
// avatar speichern START
$avatar_sql_update = '';
if (!empty ($_FILES['avatarfile']['name'])) {
$file_tmpe = $_FILES['avatarfile']['tmp_name'];
$rile_type = ic_mime_type ($_FILES['avatarfile']['tmp_name']);
$file_type = $_FILES['avatarfile']['type'];
$file_size = $_FILES['avatarfile']['size'];
$fmsg = $lang['avatarisnopicture'];
$size = @getimagesize ($file_tmpe);
$endar = array (1 => 'gif', 2 => 'jpg', 3 => 'png');
if (($size[2] == 1 OR $size[2] == 2 OR $size[2] == 3) AND $size[0] > 10 AND $size[1] > 10 AND substr ($file_type , 0 , 6) == 'image/' AND substr ($rile_type , 0 , 6) == 'image/') {
$endung = $endar[$size[2]];
$breite = $size[0];
$hoehe = $size[1];
$neuer_name = 'include/images/avatars/' . $uid . '.' . $endung;
@unlink (db_result(db_query("SELECT avatar FROM prefix_user WHERE id = " . $uid), 0));
move_uploaded_file ($file_tmpe , $neuer_name);
@chmod($neuer_name, 0777);
$avatar_sql_update = ', avatar = "' . $neuer_name . '"';
$fmsg = $lang['pictureuploaded'];
}
} elseif (isset($_POST['avatardel'])) {
$fmsg = $lang['picturedelete'];
@unlink (db_result(db_query("SELECT avatar FROM prefix_user WHERE id = " . $uid), 0));
$avatar_sql_update = ', avatar = ""';
}
// avatar speichern ENDE
profilefields_change_save (escape($_POST['uID'], 'integer'));
$usaName1 = escape($_POST['usaName1'], 'string');
$email = escape($_POST['email'], 'string');
$homepage = escape($_POST['homepage'], 'string');
$wohnort = escape($_POST['wohnort'], 'string');
$icq = escape($_POST['icq'], 'string');
$msn = escape($_POST['msn'], 'string');
$xfire = escape($_POST['xfire'], 'string');
$yahoo = escape($_POST['yahoo'], 'string');
$aim = escape($_POST['aim'], 'string');
$staat = escape($_POST['staat'], 'string');
$spezrank = escape($_POST['spezrank'], 'integer');
$geschlecht = escape($_POST['geschlecht'], 'integer');
$status = escape($_POST['status'], 'integer');
$opt_mail = escape($_POST['opt_mail'], 'integer');
$opt_pm = escape($_POST['opt_pm'], 'integer');
$opt_pm_popup = escape($_POST['opt_pm_popup'], 'integer');
$gebdatum = escape($_POST['gebdatum'], 'string');
$sig = escape($_POST['sig'], 'string');
// Name im Forum ändern
if ($_POST['forumname'] == 'on') {
$oldname = db_count_query("SELECT name FROM `prefix_user` WHERE id =" . $uid);
if ($oldname != $usaName1) {
db_query("UPDATE `prefix_posts` SET erst = '$usaName1' WHERE erstid = " . $uid);
db_query("UPDATE `prefix_topics` SET erst = '$usaName1' WHERE erst = '$oldname'");
}
}
db_query('UPDATE prefix_user
SET
name = "' . $usaName1 . '",
recht = "' . $neues_recht . '",
email = "' . $email . '",
homepage = "' . $homepage . '",
wohnort = "' . $wohnort . '",
icq = "' . $icq . '",
msn = "' . $msn . '",
xfire = "' . $xfire . '",
yahoo = "' . $yahoo . '",
aim = "' . $aim . '",
staat = "' . $staat . '",
spezrank = "' . $spezrank . '",
geschlecht = "' . $geschlecht . '",
status = "' . $status . '",
opt_mail = "' . $opt_mail . '",
opt_pm = "' . $opt_pm . '",
opt_pm_popup = "' . $opt_pm_popup . '",
gebdatum = "' . $gebdatum . '",
sig = "' . $sig . '"
' . $avatar_sql_update . '
WHERE id = "' . $uid . '"');
}
}
wd('admin.php?user-1-' . $uid, 'Das Profil wurde erfolgreich geaendert', 2);
$design->footer();
break;
// mal kurz nen neuen user anlegen
case 'createNewUser' :
$msg = '';
if (!empty($_POST['name']) AND !empty($_POST['pass']) AND !empty($_POST['email']) and chk_antispam('adminuser_create', true)) {
$_POST['name'] = escape($_POST['name'], 'string');
$_POST['recht'] = escape($_POST['recht'], 'integer');
$_POST['email'] = escape($_POST['email'], 'string');
$erg = db_query("SELECT id FROM prefix_user WHERE name = BINARY '" . $_POST['name'] . "'");
if (db_num_rows($erg) > 0) {
$msg = 'Der Name ist leider schon vorhanden!';
} else {
$new_pass = $_POST['pass'];
$md5_pass = md5($new_pass);
db_query("INSERT INTO prefix_user (name,pass,recht,regist,llogin,email)
VALUES('" . $_POST['name'] . "','" . $md5_pass . "'," . $_POST['recht'] . ",'" . time() . "','" . time() . "','" . $_POST['email'] . "')");
$userid = db_last_id();
db_query("INSERT INTO prefix_userfields (uid,fid,val) VALUES (" . $userid . ",2,'1')");
db_query("INSERT INTO prefix_userfields (uid,fid,val) VALUES (" . $userid . ",3,'1')");
if (isset($_POST['info'])) {
$page = $_SERVER["HTTP_HOST"] . $_SERVER["SCRIPT_NAME"];
$page = str_replace('admin.php', 'index.php', $page);
$tpl = new tpl ('user/new_user_email', 1);
$tpl->set('name', $_POST['name']);
$tpl->set('pass', $_POST['pass']);
$tpl->set('page', $page);
$txt = $tpl->get(0);
unset($tpl);
icmail ($_POST['email'], 'Admin hat dich angelegt', $txt);
}
$msg = 'Benutzer angelegt <a href="javascript:closeThisWindow()">Fenster schließen</a>';
}
}
$pass = '';
$email = '';
$recht = '';
if (isset($_POST['pass'])) {
$pass = $_POST['pass'];
}
if (isset($_POST['email'])) {
$email = $_POST['email'];
}
if (isset($_POST['recht'])) {
$recht = $_POST['recht'];
} else {
$recht = '-1';
}
$tpl = new tpl ('user/new_user', 1);
$tpl->set('msg', $msg);
$tpl->set('pass', $pass);
$tpl->set('email', $email);
$tpl->set('recht', dblistee($recht, "SELECT id,name FROM prefix_grundrechte ORDER BY id ASC"));
$tpl->set('antispam', get_antispam('adminuser_create', 0, true));
$tpl->out(0);
break;
case 'bann':
$id = $menu->get(2);
db_query("UPDATE prefix_user SET banned = 1 WHERE id = ".$id."");
echo '<meta http-equiv="refresh" content="0; URL=admin.php?user">';
break;
case 'debann':
$id = $menu->get(2);
db_query("UPDATE prefix_user SET banned = 0 WHERE id = ".$id."");
echo '<meta http-equiv="refresh" content="0; URL=admin.php?user">';
break;
}
?>
userdetails.html
<a href="javascript:history.back(1)"><b>«</b> {_lang_back}</a>
<br />
<br />
<table width="100%" cellpadding="3" cellspacing="1" class="border">
<tr class="Chead">
<th colspan="3"><b>{_lang_detailsfrom} {NAME}</b></th>
</tr><tr>
<td class="Cmite" width="30%">{_lang_nickname}</td>
<td class="Cnorm" width="40%">{NAME}</td>
<td class="Cnorm" width="30%" rowspan="{rowspan}" valign="top" align="center">
{AVATA}
<br /><br />
<font class="smalfont">{RANG}</font>
</td>
</tr>
<tr>
<td class="Cmite">{_lang_regsince}</td>
<td class="Cnorm">{JOINED}</td>
</tr>
<tr>
<td class="Cmite">{_lang_lastactivity}</td>
<td class="Cnorm">{LASTAK}</td>
</tr>
<tr>
<td class="Cmite">{_lang_posts2}</td>
<td class="Cnorm">{POSTS}, {_lang_perday}: {postpday}</td>
{profilefields}
</tr><tr>
<td class="Cmite">xFire:</td>
<td class="Cnorm">{xfire}</td>
</tr><tr>
<tr>
<td class="Cmite">steam:</td>
<td class="Cnorm">{steam}</td>
</tr><tr>
<tr>
<td class="Cmite">Skype:</td>
<td class="Cnorm">{skype}</td>
</tr><tr>
</table>
<br />
<a href="javascript:history.back(1)"><b>«</b> {_lang_back}</a>
profil_edit.html
<!-- PROFILEDIT EDITED BY SONICDESIGNS !-->
<form action="index.php?user-profil" method="POST" enctype="multipart/form-data">
<table class="border" width="100%" border="0" cellspacing="1" cellpadding="1">
<tr>
<td class="Chead" height="25" align="center" valign="middle"> <strong>{_lang_profil}
editieren</strong></td>
</tr>
<tr>
<td class="Cnorm" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr align="left" valign="top">
<td width="100%"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="padding:2px;" class="Cdark"><strong>Persönliche
Daten</strong></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr class="Cmite">
<td width="100" align="left" valign="middle"><img src="include/images/icons/email.png" width="16" height="16" alt="" align="left">
<strong>{_lang_mail}</strong></td>
<td align="left" valign="top"><input style="margin-top:1px;" name="email" value="{email}" />
<input style="margin-top:1px;" type="hidden" name="aemail" value="{email}" />
<font class="smalfont">{_lang_mustbeentered}</font></td>
</tr>
<tr class="Cnorm">
<td width="100" align="left" valign="middle"><img src="include/images/icons/application_home.png" width="16" height="16" alt="" align="left">
<strong>{_lang_homepage}</strong></td>
<td align="left" valign="top"><input style="margin-top:1px;" name="homepage" value="{homepage}" /></td>
</tr>
<tr class="Cmite">
<td width="100" align="left" valign="middle"><img src="include/images/icons/building.png" width="16" height="16" alt="" align="left">
<strong>{_lang_hometown}</strong></td>
<td align="left" valign="top"><input style="margin-top:1px;" name="wohnort" value="{wohnort}" /></td>
</tr>
<tr class="Cnorm">
<td width="100" align="left" valign="middle"><img src="include/images/icons/icq.png" width="16" height="16" alt="" align="left">
<strong>{_lang_icq}</strong></td>
<td align="left" valign="top"><input style="margin-top:1px;" name="icq" value="{icq}" /></td>
</tr>
<tr class="Cmite">
<td width="100" align="left" valign="middle"><img src="include/images/icons/msn.png" width="16" height="16" alt="" align="left">
<strong>{_lang_msn}</strong></td>
<td align="left" valign="top"><input style="margin-top:1px;" name="msn" value="{msn}" /></td>
</tr>
<tr class="Cnorm">
<td width="100" align="left" valign="middle"><img src="include/images/icons/yahoo.png" width="16" height="16" alt="" align="left">
<strong>{_lang_yahoo}</strong></td>
<td align="left" valign="top"><input style="margin-top:1px;" name="yahoo" value="{yahoo}" /></td>
</tr>
<tr class="Cmite">
<td width="100" align="left" valign="middle"><img src="include/images/icons/aim.png" width="16" height="16" alt="" align="left">
<strong>{_lang_aim}</strong></td>
<td align="left" valign="top"><input style="margin-top:1px;" name="aim" value="{aim}" /></td>
</tr>
<tr class="Cnorm">
<td width="100" align="left" valign="middle"><img src="include/images/icons/cake.png" width="16" height="16" alt="" align="left">
<strong>{_lang_birthday}</strong></td>
<td align="left" valign="top"><input style="margin-top:1px;" name="gebdatum" value="{gebdatum}" />
<font class="smalfont">{_lang_dateformat}</font></td>
</tr>
<tr class="Cmite">
<td width="100" align="left" valign="middle"><img src="include/images/icons/flag_green.png" width="16" height="16" alt="" align="left">
<strong>{_lang_state}</strong></td>
<td align="left" valign="top"><select name="staat">{_list_staat@<option%1 value="%2">%3</option>}
</select></td>
</tr>
<tr class="Cnorm">
<td width="100" align="left" valign="middle"><img src="include/images/icons/vcard.png" width="16" height="16" alt="" align="left">
<strong>{_lang_sex}</strong></td>
<td align="left" valign="top"><img src="include/images/icons/user.png" width="16" height="16" alt="" align="left">
<input style="margin-top:1px;" type="radio" value="1" id="geschlecht1" name="geschlecht" {geschlecht1} />
<label for="geschlecht1">{_lang_male}</label> <br> <img src="include/images/icons/user_female.png" width="16" height="16" alt="">
<input style="margin-top:1px;" id="geschlecht2" type="radio" value="2" name="geschlecht" {geschlecht2} />
<label for="geschlecht2"> {_lang_female}</label> <br>
<img src="include/images/icons/user_gray.png" width="16" height="16" alt="">
<input style="margin-top:1px;" id="geschlecht0" type="radio" value="0" name="geschlecht" {geschlecht0} />
<label for="geschlecht0"> {_lang_itdoesntmatter}</label></td>
</tr>
<tr class="Cmite">
<td width="100" align="left" valign="middle"><img src="include/images/icons/status_online.png" width="16" height="16" alt="" align="left">
<strong>{_lang_status}</strong></td>
<td align="left" valign="top"><img src="include/images/icons/user_green.png" width="16" height="16" alt="" align="left">
<input style="margin-top:1px;" id="status_aktiv" type="radio" value="1" name="status" {status1} />
<label for="status_aktiv"> {_lang_active}</label> <br>
<img src="include/images/icons/user_red.png" width="16" height="16" alt="" align="left">
<input style="margin-top:1px;" id="status_inaktiv" type="radio" value="0" name="status" {status0} />
<label for="status_inaktiv"> {_lang_inactive}</label></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr>
<td width="50%" align="left" valign="top" class="Cdark" style="padding:2px;"><strong>Kontakteinstellungen</strong></td>
<td width="50%" align="left" valign="top" class="Cdark" style="padding:2px;"><strong>Avatarbild</strong></td>
</tr>
<tr>
<td width="50%" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr class="Cmite" align="left" valign="top">
<td width="150" valign="middle"><img src="include/images/icons/tag_blue.png" width="16" height="16" alt="" align="left">
<strong>{_lang_mails}</strong><br> <span class="smalfont">{_lang_fromotherusers}?</span></td>
<td> <input style="margin-top:1px;" id="opt_mail1" type="radio" value="1" name="opt_mail" {opt_mail1} />
<label for="opt_mail1"> {_lang_yes}</label> <br>
<input style="margin-top:1px;" id="opt_mail0" type="radio" value="0" name="opt_mail" {opt_mail0} />
<label for="opt_mail0"> {_lang_no}</label> </td>
</tr>
<tr class="Cnorm" align="left" valign="top">
<td width="150" valign="middle"><img src="include/images/icons/tag_green.png" width="16" height="16" alt="" align="left">
<strong>{_lang_privatemessages}</strong><br> <span class="smalfont">{_lang_fromotherusers}?</span></td>
<td><input style="margin-top:1px;" id="opt_pm1" type="radio" value="1" name="opt_pm" {opt_pm1} />
<label for="opt_pm1"> {_lang_yes}</label> <br>
<input style="margin-top:1px;" id="opt_pm0" type="radio" value="0" name="opt_pm" {opt_pm0} />
<label for="opt_pm0"> {_lang_no}</label></td>
</tr>
<tr class="Cmite" align="left" valign="top">
<td width="150" valign="middle"><img src="include/images/icons/tag_orange.png" width="16" height="16" alt="" align="left">
<strong>{_lang_privatemessages}</strong><br> <span class="smalfont">{_lang_popupbynewmsg}?</span></td>
<td><input style="margin-top:1px;" id="opt_pm_popup1" type="radio" value="1" name="opt_pm_popup" {opt_pm_popup1} />
<label for="opt_pm_popup1"> {_lang_yes}</label>
<br> <input style="margin-top:1px;" id="opt_pm_popup0" type="radio" value="0" name="opt_pm_popup" {opt_pm_popup0} />
<label for="opt_pm_popup0"> {_lang_no}</label></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="padding:2px;" class="Cdark" align="left" valign="top"><strong>Account
löschen </strong></td>
</tr>
<tr>
<td class="Cnorm" align="left" valign="top"> <br>
<input style="margin-top:1px;" type="checkbox" value="yes" name="removeaccount" />
<strong>Account jetzt {_lang_delete}? </strong>
<font class="smalfont"><em>{_lang_mustbeentered}</em></font><br>
<br> <div style="border:2px #ff0000 solid;background:#fefebc;color:#ff0000;padding:2px;">
<strong>Achtung!</strong><br>
Dieser Schritt kann nicht rückganig gemacht
werden. Nach dem löschen sind alle Daten von
dir gelöscht. </div></td>
</tr>
</table></td>
{EXPLODE}
<td width="50%" align="center" valign="top"> <table style="border:1px #c3c3c3 solid;" width="82" height="82" border="0" cellpadding="1" cellspacing="1">
<tr>
<td align="center" valign="middle" bgcolor="#FFFFFF">{avatarbild}</td>
</tr>
</table>
<input style="margin-top:1px;" type="checkbox" value="yes" name="avatarloeschen" />
<strong>Aktuelles {_lang_delete}?</strong> <br /> <input style="margin-top:1px;" type="file" name="avatarfile" />
<br /> <font class="smalfont"><br />
<em>{_lang_criterions}: <br>
{_lang_maxwidth} {Fabreite}px, {_lang_maxheight} {Fahohe}px
{_lang_and} max size {Fasize} bytes. {_lang_otherwisenoaction}.</em></font><br /></td>
</tr>
</table></td>
</tr>
<tr>
<td>{EXPLODE}
<table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr align="left" valign="top">
<td width="50%" class="Cdark" style="padding:2px;"><strong>Signatur</strong></td>
<td width="50%" class="Cdark" style="padding:2px;"><strong>Passwort
ändern</strong></td>
</tr>
<tr align="left" valign="top">
<td class="Cnorm" width="50%"><textarea cols="25%" rows="2" name="sig">{sig}</textarea>
<font class="smalfont">{_lang_max} {forum_max_sig} {_lang_signs}.</font></td>
<td class="Cmite" width="50%"> <label style="float:left; width:35%;"><strong>{_lang_current}</strong></label>
<input style="margin-top:1px;" type="password" name="op" maxlength="20">
<br /> <label style="float:left; width:35%;"><strong>{_lang_new}</strong></label>
<input style="margin-top:1px;" type="password" name="np1" maxlength="20">
<br /> <label style="float:left; width:35%;"><strong>{_lang_repeat}</strong></label>
<input style="margin-top:1px;" type="password" name="np2" maxlength="20">
</td>
</tr>
</table></td>
</tr>
<tr>
<td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="Cdark" style="padding:2px;" align="left" valign="top"><strong>4story.de </strong></td>
</tr>
<tr>
<td class="Cdark" style="padding:2px;" align="left" valign="top"><strong>League of Legends </strong></td>
</tr>
<tr>
<td class="Cdark" style="padding:2px;" align="left" valign="top"><strong>Guild Wars </strong></td>
</tr>
<tr>
<td align="center" valign="top"><style type="text/css">input{margin-top:1px;margin-bottom:1px;}</style><strong>{EXPLODE}</strong></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" valign="middle"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top" class="Cdark" style="padding:2px;"><strong>Absenden</strong></td>
</tr>
<tr>
<td align="center" valign="top"><input style="margin-top:1px;font-weight:bold;" type="submit" value="{_lang_send2}" name="submit"></td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</form>
<!-- PROFILEDIT EDITED BY SONICDESIGNS !-->
details.html
<form action="admin.php?user-2" method="POST" enctype="multipart/form-data">
<input type="hidden" name="uID" value="{id}">
{antispam}
<table border="0" cellspacing="1" cellpadding="3" class="border">
<tr class="Chead"><td colspan="2"><b>Details von {name} - ID: {id}</b></td></tr>
<tr>
<td width="20%" class="Cmite">Recht</td>
<td width="80%" class="Cnorm"><select name="urecht">{_list_recht@<option%1 value="%2">%3</option>}</select></td>
</tr><tr>
<td class="Cmite">Name</td>
<td class="Cnorm"><input name='usaName1' maxlength="100" value='{name}' onfocus="document.getElementById('fnc').style.display='';"><span id="fnc" style="display:none;"><input type="checkbox" name="forumname" /> Name im Forum ändern</span></td>
</tr><tr>
<td class="Cmite">eMail</td>
<td class="Cnorm"><input name='email' maxlength="100" value='{email}'></td>
</tr><tr>
<td class="Cmite">Homepage</td>
<td class="Cnorm"><input name="homepage" value="{homepage}" /></td>
</tr><tr>
<td class="Cmite">Wohnort</td>
<td class="Cnorm"><input name="wohnort" value="{wohnort}" /></td>
</tr><tr>
<td class="Cmite">ICQ</td>
<td class="Cnorm"><input name="icq" value="{icq}" /></td>
</tr><tr>
<td class="Cmite">MSN</td>
<td class="Cnorm"><input name="msn" value="{msn}" /></td>
><tr>
<td class="Cmite">xfire</td>
<td class="Cnorm"><input name="xfire" value="{xfire}" /></td>
</tr>
</tr><tr>
<td class="Cmite">Yahoo</td>
<td class="Cnorm"><input name="yahoo" value="{yahoo}" /></td>
</tr><tr>
<td class="Cmite">AIM</td>
<td class="Cnorm"><input name="aim" value="{aim}" /></td>
</tr><tr>
<td class="Cmite">Gebdatum</td>
<td class="Cnorm"><input name="gebdatum" value="{gebdatum}" /></td>
</tr><tr>
<td class="Cmite">Staat</td>
<td class="Cnorm"><select name="staat">{_list_staat@<option%1 value="%2">%3</option>}</select></td>
</tr><tr>
<td class="Cmite">Rank</td>
<td class="Cnorm"><select name="spezrank">{_list_spezrank@<option%1 value="%2">%3</option>}</select></td>
</tr><tr>
<td class="Cmite">Geschlecht</td>
<td class="Cnorm"><input type="radio" value="1" name="geschlecht" {geschlecht1} /> männlich, <input type="radio" value="2" name="geschlecht" {geschlecht2} /> weiblich, <input type="radio" value="0" name="geschlecht" {geschlecht0} /> wurstegal</td>
</tr><tr>
<td class="Cmite">Status</td>
<td class="Cnorm"><input type="radio" value="1" name="status" {status1} /> aktiv, <input type="radio" value="0" name="status" {status0} /> inaktiv</td>
</tr><tr>
<td class="Cmite">eMails</td>
<td class="Cnorm"><input type="radio" value="1" name="opt_mail" {opt_mail1} /> ja, <input type="radio" value="0" name="opt_mail" {opt_mail0} /> nein ||Erklärung: eMails von anderen Usern?</td>
</tr><tr>
<td class="Cmite">PrivMsgs</td>
<td class="Cnorm"><input type="radio" value="1" name="opt_pm" {opt_pm1} /> ja, <input type="radio" value="0" name="opt_pm" {opt_pm0} /> nein ||Erklärung: PrivMsgs von anderen Usern?</td>
</tr><tr>
<td class="Cmite">PrivMsgs Popup</td>
<td class="Cnorm"><input type="radio" value="1" name="opt_pm_popup" {opt_pm_popup1} /> ja, <input type="radio" value="0" name="opt_pm_popup" {opt_pm_popup0} /> nein ||Erklärung: Popup bei einer neuen PrivMsgs?</td>
</tr><tr>
<td class="Cmite">Avatar</td>
<td class="Cnorm"><input type="checkbox" name="avatardel" value="1">Löschen ?<br />
{avatar}<input type="file" name="avatarfile" /></td>
</tr><tr>
<td class="Cmite">Password</td>
<td class="Cnorm"><input type="checkbox" name="passw" value="1">neues generieren ?</td>
</tr><tr>
<td class="Cmite">User</td>
<td class="Cnorm"><input type="checkbox" name="userdel" value="1">Löschen ? <font color="#FF0000">Achtung der User wird <strong>ohne Rückfrage</strong> gelöscht</font></td>
</tr><tr>
<td class="Cmite">Signature</td>
<td class="Cnorm"><textarea cols="60" rows="2" name="sig">{sig}</textarea></td>
</tr><tr>
<td colspan="2" class="Cnorm">
<fieldset><legend>Profilefields </legend>
{EXPLODE}
</fieldset>
</td></tr>
<tr>
<td class="Cdark"></td>
<td class="Cdark">
<input type="submit" value="Ändern" name="submit"> <input type="button" value="zurück" onclick="javscript:history.back();" />
</td>
</tr>
</table>
</form>
Zuletzt modifiziert von xZoa am 30.05.2011 - 18:19:26