Vergleich inc/functions_post.php - 1.8.16 - 1.8.18

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 194Zeile 194

// Fetch display group data.
$displaygroupfields = array("title", "description", "namestyle", "usertitle", "stars", "starimage", "image");


// Fetch display group data.
$displaygroupfields = array("title", "description", "namestyle", "usertitle", "stars", "starimage", "image");

 

if(!$post['displaygroup'])
{
$post['displaygroup'] = $post['usergroup'];
}


	$displaygroup = usergroup_displaygroup($post['displaygroup']);
if(is_array($displaygroup))
{

	$displaygroup = usergroup_displaygroup($post['displaygroup']);
if(is_array($displaygroup))
{

Zeile 398Zeile 404
			{
eval("\$post['button_warn'] = \"".$templates->get("postbit_warn")."\";");
$warning_link = "warnings.php?uid={$post['uid']}";

			{
eval("\$post['button_warn'] = \"".$templates->get("postbit_warn")."\";");
$warning_link = "warnings.php?uid={$post['uid']}";

			}

			}

			else
{
$post['button_warn'] = '';

			else
{
$post['button_warn'] = '';

Zeile 602Zeile 608
					$display = "none";
}
eval("\$post['button_quickdelete'] = \"".$templates->get("postbit_quickdelete")."\";");

					$display = "none";
}
eval("\$post['button_quickdelete'] = \"".$templates->get("postbit_quickdelete")."\";");

			}


			}


			// Restore Post
if(is_moderator($fid, "canrestoreposts") && $postcounter != 1)
{

			// Restore Post
if(is_moderator($fid, "canrestoreposts") && $postcounter != 1)
{

Zeile 1014Zeile 1020
			eval("\$post['attachments'] = \"".$templates->get("postbit_attachments")."\";");
}
}

			eval("\$post['attachments'] = \"".$templates->get("postbit_attachments")."\";");
}
}

 
}

/**
* Returns bytes count from human readable string
* Used to parse ini_get human-readable values to int
*
* @param string $val Human-readable value
*/
function return_bytes($val) {
$val = trim($val);
if ($val == "")
{
return 0;
}

$last = strtolower($val[strlen($val)-1]);
switch($last)
{
case 'g':
$val *= 1024;
case 'm':
$val *= 1024;
case 'k':
$val *= 1024;
}

return intval($val);

}

}