Zeile 13 | Zeile 13 |
---|
technical support */
|
technical support */
|
$mybboard['internalver'] = "1.04"; $mybboard['vercode'] = "100.11";
| $mybboard['internalver'] = "1.1.5"; $mybboard['vercode'] = "115";
|
// // Outputs the contents of a page rendering variables
| // // Outputs the contents of a page rendering variables
|
Zeile 37 | Zeile 37 |
---|
$serverload = serverload(); if(strstr(getenv("REQUEST_URI"), "?")) {
|
$serverload = serverload(); if(strstr(getenv("REQUEST_URI"), "?")) {
|
$debuglink = getenv("REQUEST_URI") . "&debug=1";
| $debuglink = htmlspecialchars(getenv("REQUEST_URI")) . "&debug=1";
|
} else {
|
} else {
|
$debuglink = getenv("REQUEST_URI") . "?debug=1";
| $debuglink = htmlspecialchars(getenv("REQUEST_URI")) . "?debug=1";
|
} if($mybb->settings['gzipoutput'] != "no") {
| } if($mybb->settings['gzipoutput'] != "no") {
|
Zeile 323 | Zeile 323 |
---|
{ $url = str_replace("#", "&#", $url); $url = str_replace("&", "&", $url);
|
{ $url = str_replace("#", "&#", $url); $url = str_replace("&", "&", $url);
|
| $url = str_replace(array("\n","\r",";"), "", $url);
|
header("Location: $url"); } exit;
| header("Location: $url"); } exit;
|
Zeile 744 | Zeile 745 |
---|
// function getposticons() {
|
// function getposticons() {
|
global $db, $icon, $settings, $theme, $templates, $lang; $listed = 0; $query = $db->query("SELECT * FROM ".TABLE_PREFIX."icons ORDER BY name DESC"); while($dbicon = $db->fetch_array($query)) { if($icon == $dbicon['iid']) {
| global $mybb, $db, $icon, $settings, $theme, $templates, $lang; $listed = 0; $query = $db->query("SELECT * FROM ".TABLE_PREFIX."icons ORDER BY name DESC"); while($dbicon = $db->fetch_array($query)) { if($mybb->input['icon'] == $dbicon['iid']) {
|
$iconlist .= "<input type=\"radio\" name=\"icon\" value=\"".$dbicon['iid']."\" checked> <img src=\"".$dbicon['path']."\" alt=\"".$dbicon['name']."\">";
|
$iconlist .= "<input type=\"radio\" name=\"icon\" value=\"".$dbicon['iid']."\" checked> <img src=\"".$dbicon['path']."\" alt=\"".$dbicon['name']."\">";
|
}
| }
|
else { $iconlist .= "<input type=\"radio\" name=\"icon\" value=\"".$dbicon['iid']."\"> <img src=\"".$dbicon['path']."\" alt=\"".$dbicon['name']."\">";
| else { $iconlist .= "<input type=\"radio\" name=\"icon\" value=\"".$dbicon['iid']."\"> <img src=\"".$dbicon['path']."\" alt=\"".$dbicon['name']."\">";
|
Zeile 762 | Zeile 763 |
---|
{ $iconlist .= "<br />"; $listed = 0;
|
{ $iconlist .= "<br />"; $listed = 0;
|
} }
| } }
|
eval("\$posticons = \"".$templates->get("posticons")."\";"); return $posticons; }
|
eval("\$posticons = \"".$templates->get("posticons")."\";"); return $posticons; }
|
//
| //
|
// MyBB setcookie() wrapper // function mysetcookie($name, $value="", $expires="")
|
// MyBB setcookie() wrapper // function mysetcookie($name, $value="", $expires="")
|
{ global $mybb; if(!$mybb->settings['cookiepath']) { $mybb->settings['cookiepath'] = "/";
| { global $mybb; if(!$mybb->settings['cookiepath']) { $mybb->settings['cookiepath'] = "/";
|
} if($expires == -1) { $expires = 0;
|
} if($expires == -1) { $expires = 0;
|
}
| }
|
else
|
else
|
{ if($mybb->user['rememberme'] == "no") { $expires = ""; } else { $expires = time() + (60*60*24*365); // Make the cookie expire in a years time }
| { if($mybb->user['rememberme'] == "no") { $expires = 0; } else { $expires = time() + (60*60*24*365); // Make the cookie expire in a years time }
|
} if($mybb->settings['cookiedomain']) { setcookie($name, $value, $expires, $mybb->settings['cookiepath'], $mybb->settings['cookiedomain']);
|
} if($mybb->settings['cookiedomain']) { setcookie($name, $value, $expires, $mybb->settings['cookiepath'], $mybb->settings['cookiedomain']);
|
} else
| } else
|
{ setcookie($name, $value, $expires, $mybb->settings['cookiepath']); }
| { setcookie($name, $value, $expires, $mybb->settings['cookiepath']); }
|
Zeile 810 | Zeile 811 |
---|
if(!$mybb->settings['cookiepath']) { $mybb->settings['cookiepath'] = "/";
|
if(!$mybb->settings['cookiepath']) { $mybb->settings['cookiepath'] = "/";
|
}
| }
|
if($mybb->settings['cookiedomain'])
|
if($mybb->settings['cookiedomain'])
|
{
| {
|
@setcookie($name, "", $expires, $mybb->settings['cookiepath'], $mybb->settings['cookiedomain']); } else
| @setcookie($name, "", $expires, $mybb->settings['cookiepath'], $mybb->settings['cookiedomain']); } else
|
Zeile 823 | Zeile 824 |
---|
}
function mygetarraycookie($name, $id)
|
}
function mygetarraycookie($name, $id)
|
{
| {
|
// Many minutes were used to perfect this function // With the wonderful debugging help of Matt Light global $_COOKIE, $test;
| // Many minutes were used to perfect this function // With the wonderful debugging help of Matt Light global $_COOKIE, $test;
|
Zeile 832 | Zeile 833 |
---|
if($cookie[$id]) { return $cookie[$id];
|
if($cookie[$id]) { return $cookie[$id];
|
}
| }
|
else { return 0;
|
else { return 0;
|
}
| }
|
}
function mysetarraycookie($name, $id, $value) {
| }
function mysetarraycookie($name, $id, $value) {
|
Zeile 862 | Zeile 863 |
---|
$serverload = explode(" ", $load); $serverload[0] = round($serverload[0], 4); if(!$serverload)
|
$serverload = explode(" ", $load); $serverload[0] = round($serverload[0], 4); if(!$serverload)
|
{
| {
|
$load = @exec("uptime"); $load = split("load averages?: ", $load); $serverload = explode(",", $load[1]);
| $load = @exec("uptime"); $load = split("load averages?: ", $load); $serverload = explode(",", $load[1]);
|
Zeile 1282 | Zeile 1283 |
---|
$numimages = 1; } for($i=1;$i<=$numimages;$i++)
|
$numimages = 1; } for($i=1;$i<=$numimages;$i++)
|
{
| {
|
$rep .= "<img src=\"".$theme['imgdir']."/$img\" alt=\"$alt\" />"; } return $rep;
| $rep .= "<img src=\"".$theme['imgdir']."/$img\" alt=\"$alt\" />"; } return $rep;
|
Zeile 1315 | Zeile 1316 |
---|
$ip = $_SERVER['REMOTE_ADDR']; } }
|
$ip = $_SERVER['REMOTE_ADDR']; } }
|
return $ip;
| return addslashes($ip);
|
}
function getfriendlysize($size) { global $lang; if($size >= 1073741824)
|
}
function getfriendlysize($size) { global $lang; if($size >= 1073741824)
|
{
| {
|
$size = round(($size / 1073741824), 2) . " " . $lang->size_gb; } elseif($size >= 1048576)
| $size = round(($size / 1073741824), 2) . " " . $lang->size_gb; } elseif($size >= 1048576)
|
Zeile 1388 | Zeile 1389 |
---|
$perms = $permissioncache[$forum['fid']]; } else
|
$perms = $permissioncache[$forum['fid']]; } else
|
{
| {
|
$perms = $mybbgroup; } $pwverified = 1; if($forum['password'] != "") {
|
$perms = $mybbgroup; } $pwverified = 1; if($forum['password'] != "") {
|
if($forumpass[$forum['fid']] != md5($mybbuser['uid'].$forum['password']))
| if($_COOKIE['forumpass'][$forum['fid']] != md5($mybbuser['uid'].$forum['password']))
|
{ $pwverified = 0; }
| { $pwverified = 0; }
|
Zeile 1598 | Zeile 1599 |
---|
}
function pageheaders() {
|
}
function pageheaders() {
|
global $settings;
| global $mybb;
|
if($mybb->settings['nocacheheaders'] == "yes" && $mybb->settings['standardheaders'] != "yes") { header("Expires: Sat, 1 Jan 2000 01:00:00 GMT");
| if($mybb->settings['nocacheheaders'] == "yes" && $mybb->settings['standardheaders'] != "yes") { header("Expires: Sat, 1 Jan 2000 01:00:00 GMT");
|