Vergleich admin/modules/style/themes.php - 1.4.1 - 1.4.3

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 340Zeile 340
		$properties = unserialize($theme['properties']);

$xml = "<?xml version=\"1.0\" encoding=\"{$lang->settings['charset']}\"?".">\r\n";

		$properties = unserialize($theme['properties']);

$xml = "<?xml version=\"1.0\" encoding=\"{$lang->settings['charset']}\"?".">\r\n";

		$xml .= "<theme name=\"".$theme['name']."\" version=\"".$mybb->version_code."\">\r\n";

		$xml .= "<theme name=\"".htmlspecialchars_uni($theme['name'])."\" version=\"".$mybb->version_code."\">\r\n";

		$xml .= "\t<properties>\r\n";
foreach($properties as $property => $value)
{

		$xml .= "\t<properties>\r\n";
foreach($properties as $property => $value)
{

Zeile 1103Zeile 1103
		$stylesheets[basename($file)] = $stylesheet2;
}


		$stylesheets[basename($file)] = $stylesheet2;
}


	$this_stylesheet = $stylesheets[$stylesheet['cachefile']];	






	if(!array_key_exists($stylesheet['cachefile'], $stylesheets) && array_key_exists("css.php?stylesheet=".$stylesheet['tid'], $stylesheets))
{
$stylesheet['cachefile'] = "css.php?stylesheet=".$stylesheet['tid'];
}

$this_stylesheet = $stylesheets[$stylesheet['cachefile']];

	unset($stylesheets);

if($mybb->request_method == "post")

	unset($stylesheets);

if($mybb->request_method == "post")

Zeile 1155Zeile 1160
			// Update Stylesheet			
$update_array = array(
'name' => $db->escape_string($mybb->input['name']),

			// Update Stylesheet			
$update_array = array(
'name' => $db->escape_string($mybb->input['name']),

				'attachedto' => $db->escape_string(implode('|', $attached)),
'lastmodified' => TIME_NOW

				'attachedto' => $db->escape_string(implode('|', $attached))


			);

if($stylesheet['name'] != $mybb->input['name'])

			);

if($stylesheet['name'] != $mybb->input['name'])

Zeile 1169Zeile 1173
			// If the name changed, re-cache our stylesheet
if($stylesheet['name'] != $mybb->input['name'])
{

			// If the name changed, re-cache our stylesheet
if($stylesheet['name'] != $mybb->input['name'])
{

 
				$db->update_query("themestylesheets", array('lastmodified' => TIME_NOW), "sid='{$stylesheet['sid']}'", 1);

				if(!cache_stylesheet($theme['tid'], str_replace('/', '', $mybb->input['name']), $theme['stylesheet']))
{
$db->update_query("themestylesheets", array('cachefile' => "css.php?stylesheet={$stylesheet['sid']}"), "sid='{$stylesheet['sid']}'", 1);

				if(!cache_stylesheet($theme['tid'], str_replace('/', '', $mybb->input['name']), $theme['stylesheet']))
{
$db->update_query("themestylesheets", array('cachefile' => "css.php?stylesheet={$stylesheet['sid']}"), "sid='{$stylesheet['sid']}'", 1);