$start = 0; } if (!$show) { $show = 10; } $LIMIT = " LIMIT {$start},{$show}"; $errorsq = $db->query_str("SELECT * FROM {$tab['error']} ORDER BY id ASC{$LIMIT}"); if (!mysql_num_rows($errorsq)) { eval("\$errorbits = \"" . gettemplate("admin.sworaconfig.errors.non") . "\";"); } else { while ($error = $db->fetch_array($errorsq)) { if (strlen($error[text]) > 90) { eval("\$textplus = \"" . gettemplate("admin.sworaconfig.errors.morelink") . "\";"); $error[text] = substr($error[text], 0, 90) . $textplus; } $error[request_uri] = mk2url($error[request_uri]); eval("\$errorbits .= \"" . gettemplate("admin.sworaconfig.errors.errorbit") . "\";"); } list($count) = $db->query("SELECT COUNT(*) FROM {$tab['error']}"); $page = mkpages($count, $show, "admin.sworaconfig.errors.pagebit"); } eval("\$inc[action] = \"" . gettemplate("admin.sworaconfig.errors.main") . "\";"); } ########################### if ($adminaction == "showerror") { if ($error = $db->query("SELECT * FROM {$tab['error']} WHERE id='{$eid}'")) { $name = basename($error[scriptname]); $error[text] = str_replace("\n", "<br>", $error[text]); eval("\$inc[action] = \"" . gettemplate("admin.sworaconfig.errors.show") . "\";"); } else { header("LOCATION: index.php?section=admin&adminaction=errors");
function mkuser($mode, $userid, &$userref) { global $db, $tab, $useronline; if (!$userref) { $user = getuser($userid); } else { $user = $userref; } switch ($mode) { ############### case "user_hp": $user[user_hp] = mk2url($user[user_hp], 0); break; ############### ############### case "user_signatur": if (!$user[user_signatur]) { return; } $user[user_signatur] = makesmilies(mksworacodes(htmlspecialchars($user[user_signatur]))); break; ############### ############### case "user_text": $user[user_text] = makesmilies(mksworacodes($user[user_text])); break; ############### ############### case "user_gender": if ($user[user_gender] == 1) { $user[user_gender] = "männlich"; } if ($user[user_gender] == 2) { $user[user_gender] = "weiblich"; } break; ############### ############### case "user_email": switch ($user[show_email]) { case TRUE: $mode .= ".mail"; break; default: $mode .= ".nomail"; break; } break; $dir = dir("./includes"); while ($f = $dir->read()) { if (preg_match("#^u_#", $f)) { include "./includes/" . $f; } } ############### ############### case "avatar": if (!$db->query("SELECT * FROM {$tab['avatar']} WHERE userid='{$user['id']}'")) { return ""; } break; } if ($mode == "user_icq" && !$user[user_icq]) { return "---"; } if ($mode == "user_aim" && !$user[user_aim]) { return "---"; } if ($mode == "user_yim" && !$user[user_yim]) { return "---"; } if ($mode == "user_yim" && !$user[user_yim]) { return "---"; } if ($mode == "user_email" && !$user[user_email]) { return "---"; } if ($mode == "user_hp" && !$user[user_hp]) { return "---"; } eval("\$return = \"" . gettemplate("user.show.{$mode}") . "\";"); return $return; }