Vergleich admin/modules/style/themes.php - 1.4.9 - 1.4.15

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * $Id$

 * $Id: themes.php 5379 2011-02-21 11:06:42Z Tomm $

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 143Zeile 143
							break;
case 3: // UPLOAD_ERR_PARTIAL
$errors[] = $lang->error_uploadfailed_php3;

							break;
case 3: // UPLOAD_ERR_PARTIAL
$errors[] = $lang->error_uploadfailed_php3;

							break;
case 4: // UPLOAD_ERR_NO_FILE
$errors[] = $lang->error_uploadfailed_php4;

 
							break;
case 6: // UPLOAD_ERR_NO_TMP_DIR
$errors[] = $lang->error_uploadfailed_php6;

							break;
case 6: // UPLOAD_ERR_NO_TMP_DIR
$errors[] = $lang->error_uploadfailed_php6;

Zeile 160Zeile 157
				}

if(!$errors)

				}

if(!$errors)

				{

				{

					// Was the temporary file found?
if(!is_uploaded_file($_FILES['local_file']['tmp_name']))
{
$errors[] = $lang->error_uploadfailed_lost;

					// Was the temporary file found?
if(!is_uploaded_file($_FILES['local_file']['tmp_name']))
{
$errors[] = $lang->error_uploadfailed_lost;

					}

					}

					// Get the contents
$contents = @file_get_contents($_FILES['local_file']['tmp_name']);
// Delete the temporary file if possible

					// Get the contents
$contents = @file_get_contents($_FILES['local_file']['tmp_name']);
// Delete the temporary file if possible

Zeile 175Zeile 172
					{
$errors[] = $lang->error_uploadfailed_nocontents;
}

					{
$errors[] = $lang->error_uploadfailed_nocontents;
}

				}

				}

			}
else if(!empty($mybb->input['url']))
{

			}
else if(!empty($mybb->input['url']))
{

Zeile 185Zeile 182
				{
$errors[] = $lang->error_local_file;
}

				{
$errors[] = $lang->error_local_file;
}

 
			}
else
{
// UPLOAD_ERR_NO_FILE
$errors[] = $lang->error_uploadfailed_php4;

			}

if(!$errors)

			}

if(!$errors)

Zeile 468Zeile 470
		$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 1440Zeile 1442

// 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 1704Zeile 1707

// 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
);