diff options
author | Jan-Philipp Litza <janphilipp@litza.de> | 2011-09-14 22:53:27 +0200 |
---|---|---|
committer | Jan-Philipp Litza <janphilipp@litza.de> | 2011-09-14 22:53:27 +0200 |
commit | e9193a7161affc823477775784007c38fa9600cf (patch) | |
tree | a4e6b012db55f964fb2c89b1e141dba138db2d0a /includes/pages | |
parent | 1342dc49cf1789f9d54cb3c7be327c68f403a0f7 (diff) |
fix typo and remove some globals
Diffstat (limited to 'includes/pages')
-rw-r--r-- | includes/pages/user_settings.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/pages/user_settings.php b/includes/pages/user_settings.php index 1b039f0c..aa22b419 100644 --- a/includes/pages/user_settings.php +++ b/includes/pages/user_settings.php @@ -155,10 +155,10 @@ function user_settings() { echo "</form>\n"; } - switch (GetPicturShow($_SESSION['UID'])) { + switch (GetPictureShow($_SESSION['UID'])) { case 'Y' : echo Get_Text('pub_einstellungen_PictureShow') . "<br />"; - echo displayPictur($_SESSION['UID'], 0); + echo displayPicture($_SESSION['UID'], 0); echo "<form action=\"./einstellungen.php\" method=\"post\">\n"; echo "<input type=\"hidden\" name=\"action\" value=\"delPicture\">\n"; echo "<input type=\"submit\" value=\"" . Get_Text("delete"), "\">\n"; @@ -166,7 +166,7 @@ function user_settings() { break; case 'N' : echo Get_Text('pub_einstellungen_PictureNoShow') . "<br />"; - echo displayPictur($_SESSION['UID'], 0); + echo displayPicture($_SESSION['UID'], 0); echo "<form action=\"./einstellungen.php\" method=\"post\">\n"; echo "<input type=\"hidden\" name=\"action\" value=\"delPicture\">\n"; echo "<input type=\"submit\" value=\"" . Get_Text("delete"), "\">\n"; @@ -217,7 +217,7 @@ function user_settings() { if (($_FILES["file"]["type"] == "image/jpeg") || ($_FILES["file"]["type"] == "image/png") || ($_FILES["file"]["type"] == "image/gif")) { $data = addslashes(fread(fopen($_FILES["file"]["tmp_name"], "r"), filesize($_FILES["file"]["tmp_name"]))); - if (GetPicturShow($_SESSION['UID']) == "") + if (GetPictureShow($_SESSION['UID']) == "") $SQL = "INSERT INTO `UserPicture` " . "( `UID`,`Bild`, `ContentType`, `show`) " . "VALUES ('" . $_SESSION['UID'] . "', '$data', '" . $_FILES["file"]["type"] . "', 'N')"; |