remove avatars
|
@ -410,7 +410,6 @@ CREATE TABLE IF NOT EXISTS `User` (
|
|||
`Tshirt` tinyint(4) DEFAULT '0',
|
||||
`color` tinyint(4) DEFAULT '10',
|
||||
`Sprache` char(64) NOT NULL,
|
||||
`Avatar` int(11) DEFAULT '0',
|
||||
`Menu` char(1) NOT NULL DEFAULT 'L',
|
||||
`lastLogIn` int(11) NOT NULL,
|
||||
`CreateDate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
|
@ -430,8 +429,8 @@ CREATE TABLE IF NOT EXISTS `User` (
|
|||
-- Daten für Tabelle `User`
|
||||
--
|
||||
|
||||
INSERT INTO `User` (`UID`, `Nick`, `Name`, `Vorname`, `Alter`, `Telefon`, `DECT`, `Handy`, `email`, `email_shiftinfo`, `jabber`, `Size`, `Passwort`, `password_recovery_token`, `Gekommen`, `Aktiv`, `force_active`, `Tshirt`, `color`, `Sprache`, `Avatar`, `Menu`, `lastLogIn`, `CreateDate`, `Art`, `kommentar`, `Hometown`, `api_key`, `got_voucher`) VALUES
|
||||
(1, 'admin', 'Gates', 'Bill', 42, '', '-', '', 'admin@example.com', 0, '', 'XL', '$6$rounds=5000$hjXbIhoRTH3vKiRa$Wl2P2iI5T9iRR.HHu/YFHswBW0WVn0yxCfCiX0Keco9OdIoDK6bIAADswP6KvMCJSwTGdV8PgA8g8Xfw5l8BD1', NULL, 1, 0, 0, 0, 2, 'de_DE.UTF-8', 115, 'L', 1431613486, '0000-00-00 00:00:00', '', '', '', '038850abdd1feb264406be3ffa746235', 0);
|
||||
INSERT INTO `User` (`UID`, `Nick`, `Name`, `Vorname`, `Alter`, `Telefon`, `DECT`, `Handy`, `email`, `email_shiftinfo`, `jabber`, `Size`, `Passwort`, `password_recovery_token`, `Gekommen`, `Aktiv`, `force_active`, `Tshirt`, `color`, `Sprache`, `Menu`, `lastLogIn`, `CreateDate`, `Art`, `kommentar`, `Hometown`, `api_key`, `got_voucher`) VALUES
|
||||
(1, 'admin', 'Gates', 'Bill', 42, '', '-', '', 'admin@example.com', 0, '', 'XL', '$6$rounds=5000$hjXbIhoRTH3vKiRa$Wl2P2iI5T9iRR.HHu/YFHswBW0WVn0yxCfCiX0Keco9OdIoDK6bIAADswP6KvMCJSwTGdV8PgA8g8Xfw5l8BD1', NULL, 1, 0, 0, 0, 2, 'de_DE.UTF-8', 'L', 1431613486, '0000-00-00 00:00:00', '', '', '', '038850abdd1feb264406be3ffa746235', 0);
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
|
|
|
@ -165,7 +165,7 @@ function User($id) {
|
|||
* @param $id UID
|
||||
*/
|
||||
function mUser_Limit($id) {
|
||||
$user_source = sql_select("SELECT `UID`, `Nick`, `Name`, `Vorname`, `Telefon`, `DECT`, `Handy`, `email`, `jabber`, `Avatar` FROM `User` WHERE `UID`='" . sql_escape($id) . "' LIMIT 1");
|
||||
$user_source = sql_select("SELECT `UID`, `Nick`, `Name`, `Vorname`, `Telefon`, `DECT`, `Handy`, `email`, `jabber` FROM `User` WHERE `UID`='" . sql_escape($id) . "' LIMIT 1");
|
||||
if ($user_source === false)
|
||||
return false;
|
||||
if (count($user_source) > 0)
|
||||
|
|
|
@ -71,7 +71,7 @@ function admin_user() {
|
|||
|
||||
$html .= " <tr><td>Hometown</td><td>" . "<input type=\"text\" size=\"40\" name=\"Hometown\" value=\"" . $user_source['Hometown'] . "\"></td></tr>\n";
|
||||
|
||||
$html .= "</table>\n</td><td valign=\"top\">" . User_Avatar_render($user_source) . "</td></tr>";
|
||||
$html .= "</table>\n</td><td valign=\"top\"></td></tr>";
|
||||
|
||||
$html .= "</td></tr>\n";
|
||||
$html .= "</table>\n<br />\n";
|
||||
|
|
|
@ -265,16 +265,6 @@ function User_groups_render($user_groups) {
|
|||
return join('<br />', $output);
|
||||
}
|
||||
|
||||
/**
|
||||
* Render a users avatar.
|
||||
*
|
||||
* @param User $user
|
||||
* @return string
|
||||
*/
|
||||
function User_Avatar_render($user) {
|
||||
return '<div class="avatar"> <img src="pic/avatar/avatar' . $user['Avatar'] . '.gif"></div>';
|
||||
}
|
||||
|
||||
/**
|
||||
* Render a user nickname.
|
||||
*
|
||||
|
|
Before Width: | Height: | Size: 933 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 581 B |
Before Width: | Height: | Size: 286 B |
Before Width: | Height: | Size: 266 B |
Before Width: | Height: | Size: 293 B |
Before Width: | Height: | Size: 685 B |
Before Width: | Height: | Size: 276 B |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 980 B |
Before Width: | Height: | Size: 322 B |
Before Width: | Height: | Size: 731 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 883 B |
Before Width: | Height: | Size: 364 B |
Before Width: | Height: | Size: 662 B |
Before Width: | Height: | Size: 223 B |
Before Width: | Height: | Size: 1021 B |
Before Width: | Height: | Size: 956 B |
Before Width: | Height: | Size: 173 B |
Before Width: | Height: | Size: 159 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 710 B |
Before Width: | Height: | Size: 945 B |
Before Width: | Height: | Size: 318 B |
Before Width: | Height: | Size: 717 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 961 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 471 B |
Before Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 235 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 5.6 KiB |
Before Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 214 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 228 B |
Before Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 1021 B |
Before Width: | Height: | Size: 223 B |
Before Width: | Height: | Size: 176 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 572 B |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 163 B |
Before Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 236 B |
Before Width: | Height: | Size: 232 B |
Before Width: | Height: | Size: 240 B |
Before Width: | Height: | Size: 233 B |
Before Width: | Height: | Size: 448 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 171 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 158 B |
Before Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 161 B |
Before Width: | Height: | Size: 204 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 653 B |
Before Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 324 B |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 154 B |
Before Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 173 B |
Before Width: | Height: | Size: 757 B |
Before Width: | Height: | Size: 206 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 240 B |
Before Width: | Height: | Size: 659 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 184 B |
Before Width: | Height: | Size: 167 B |
Before Width: | Height: | Size: 487 B |
Before Width: | Height: | Size: 359 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 169 B |
Before Width: | Height: | Size: 981 B |
Before Width: | Height: | Size: 868 B |
Before Width: | Height: | Size: 1.2 KiB |