Zeile 468 | Zeile 468 |
---|
$theme['name'] = rawurlencode($theme['name']); header("Content-disposition: attachment; filename=".$theme['name']."-theme.xml"); header("Content-type: application/octet-stream");
|
$theme['name'] = rawurlencode($theme['name']); header("Content-disposition: attachment; filename=".$theme['name']."-theme.xml"); header("Content-type: application/octet-stream");
|
header("Content-Length: ".my_strlen($xml));
| header("Content-Length: ".strlen($xml));
|
header("Pragma: no-cache"); header("Expires: 0"); echo $xml;
| header("Pragma: no-cache"); header("Expires: 0"); echo $xml;
|
Zeile 1440 | Zeile 1440 |
---|
// Now we have the new stylesheet, save it $updated_stylesheet = array(
|
// Now we have the new stylesheet, save it $updated_stylesheet = array(
|
| "cachefile" => $db->escape_string($stylesheet['name']),
|
"stylesheet" => $db->escape_string(unfix_css_urls($new_stylesheet)), "lastmodified" => TIME_NOW );
| "stylesheet" => $db->escape_string(unfix_css_urls($new_stylesheet)), "lastmodified" => TIME_NOW );
|
Zeile 1704 | Zeile 1705 |
---|
// Now we have the new stylesheet, save it $updated_stylesheet = array(
|
// Now we have the new stylesheet, save it $updated_stylesheet = array(
|
| "cachefile" => $db->escape_string($stylesheet['name']),
|
"stylesheet" => $db->escape_string(unfix_css_urls($mybb->input['stylesheet'])), "lastmodified" => TIME_NOW );
| "stylesheet" => $db->escape_string(unfix_css_urls($mybb->input['stylesheet'])), "lastmodified" => TIME_NOW );
|
Zeile 2298 | Zeile 2300 |
---|
if($mybb->input['action'] == "set_default") {
|
if($mybb->input['action'] == "set_default") {
|
| if(!verify_post_check($mybb->input['my_post_key'])) { flash_message($lang->invalid_post_verify_key2, 'error'); admin_redirect("index.php?module=style/themes"); }
|
$query = $db->simple_select("themes", "*", "tid='".intval($mybb->input['tid'])."'"); $theme = $db->fetch_array($query);
| $query = $db->simple_select("themes", "*", "tid='".intval($mybb->input['tid'])."'"); $theme = $db->fetch_array($query);
|