Zeile 38 | Zeile 38 |
---|
$query = $db->simple_select("themes", "*", "tid='".$mybb->get_input('tid', MyBB::INPUT_INT)."'"); $theme = $db->fetch_array($query);
|
$query = $db->simple_select("themes", "*", "tid='".$mybb->get_input('tid', MyBB::INPUT_INT)."'"); $theme = $db->fetch_array($query);
|
if(!$theme['tid'] || $theme['tid'] == 1)
| if(!$theme || $theme['tid'] == 1)
|
{ flash_message($lang->error_invalid_theme, 'error'); admin_redirect("index.php?module=style-themes");
| { flash_message($lang->error_invalid_theme, 'error'); admin_redirect("index.php?module=style-themes");
|
Zeile 55 | Zeile 55 |
---|
$stylesheet = $db->fetch_array($query);
// Does the theme not exist?
|
$stylesheet = $db->fetch_array($query);
// Does the theme not exist?
|
if(!$stylesheet['sid'])
| if(!$stylesheet)
|
{ flash_message($lang->error_invalid_stylesheet, 'error'); admin_redirect("index.php?module=style-themes");
| { flash_message($lang->error_invalid_stylesheet, 'error'); admin_redirect("index.php?module=style-themes");
|
Zeile 525 | Zeile 525 |
---|
$theme = $db->fetch_array($query);
// Does the theme not exist?
|
$theme = $db->fetch_array($query);
// Does the theme not exist?
|
if(empty($theme['tid']))
| if(!$theme)
|
{ flash_message($lang->error_invalid_theme, 'error'); admin_redirect("index.php?module=style-themes");
| { flash_message($lang->error_invalid_theme, 'error'); admin_redirect("index.php?module=style-themes");
|
Zeile 759 | Zeile 759 |
---|
$theme = $db->fetch_array($query);
// Does the theme not exist?
|
$theme = $db->fetch_array($query);
// Does the theme not exist?
|
if(!$theme['tid'])
| if(!$theme)
|
{ flash_message($lang->error_invalid_theme, 'error'); admin_redirect("index.php?module=style-themes");
| { flash_message($lang->error_invalid_theme, 'error'); admin_redirect("index.php?module=style-themes");
|
Zeile 973 | Zeile 973 |
---|
$theme = $db->fetch_array($query);
// Does the theme not exist? or are we trying to delete the master?
|
$theme = $db->fetch_array($query);
// Does the theme not exist? or are we trying to delete the master?
|
if(!$theme['tid'] || $theme['tid'] == 1)
| if(!$theme || $theme['tid'] == 1)
|
{ flash_message($lang->error_invalid_theme, 'error'); admin_redirect("index.php?module=style-themes");
| { flash_message($lang->error_invalid_theme, 'error'); admin_redirect("index.php?module=style-themes");
|
Zeile 1093 | Zeile 1093 |
---|
$theme = $db->fetch_array($query);
// Does the theme not exist?
|
$theme = $db->fetch_array($query);
// Does the theme not exist?
|
if(empty($theme['tid']) || $theme['tid'] == 1)
| if(!$theme || $theme['tid'] == 1)
|
{ flash_message($lang->error_invalid_theme, 'error'); admin_redirect("index.php?module=style-themes");
| { flash_message($lang->error_invalid_theme, 'error'); admin_redirect("index.php?module=style-themes");
|
Zeile 1447 | Zeile 1447 |
---|
$sep = " {$lang->and} "; }
|
$sep = " {$lang->and} "; }
|
$inherited .= $sep.$file;
| $inherited .= $sep.htmlspecialchars_uni($file);
|
$sep = $lang->comma;
++$count;
| $sep = $lang->comma;
++$count;
|
Zeile 1558 | Zeile 1558 |
---|
$popup->add_item($lang->delete_revert, "index.php?module=style-themes&action=delete_stylesheet&file=".htmlspecialchars_uni($filename)."&tid={$theme['tid']}&my_post_key={$mybb->post_code}", "return AdminCP.deleteConfirmation(this, '{$lang->confirm_stylesheet_deletion}')"); }
|
$popup->add_item($lang->delete_revert, "index.php?module=style-themes&action=delete_stylesheet&file=".htmlspecialchars_uni($filename)."&tid={$theme['tid']}&my_post_key={$mybb->post_code}", "return AdminCP.deleteConfirmation(this, '{$lang->confirm_stylesheet_deletion}')"); }
|
$table->construct_cell("<strong><a href=\"index.php?module=style-themes&action=edit_stylesheet&file=".htmlspecialchars_uni($filename)."&tid={$theme['tid']}\">{$filename}</a></strong>{$inherited}<br />{$attached_to}");
| $table->construct_cell("<strong><a href=\"index.php?module=style-themes&action=edit_stylesheet&file=".htmlspecialchars_uni($filename)."&tid={$theme['tid']}\">".htmlspecialchars_uni($filename)."</a></strong>{$inherited}<br />{$attached_to}");
|
$table->construct_cell($form->generate_numeric_field("disporder[{$theme_stylesheets[$filename]['sid']}]", $properties['disporder'][$filename], array('style' => 'width: 80%; text-align: center;', 'min' => 0)), array("class" => "align_center")); $table->construct_cell($popup->fetch(), array("class" => "align_center")); $table->construct_row();
| $table->construct_cell($form->generate_numeric_field("disporder[{$theme_stylesheets[$filename]['sid']}]", $properties['disporder'][$filename], array('style' => 'width: 80%; text-align: center;', 'min' => 0)), array("class" => "align_center")); $table->construct_cell($popup->fetch(), array("class" => "align_center")); $table->construct_row();
|
Zeile 1674 | Zeile 1674 |
---|
$query = $db->simple_select("themes", "*", "tid='".$mybb->get_input('tid', MyBB::INPUT_INT)."'"); $theme = $db->fetch_array($query);
|
$query = $db->simple_select("themes", "*", "tid='".$mybb->get_input('tid', MyBB::INPUT_INT)."'"); $theme = $db->fetch_array($query);
|
if(!$theme['tid'] || $theme['tid'] == 1)
| if(!$theme || $theme['tid'] == 1)
|
{ flash_message($lang->error_invalid_theme, 'error'); admin_redirect("index.php?module=style-themes");
| { flash_message($lang->error_invalid_theme, 'error'); admin_redirect("index.php?module=style-themes");
|
Zeile 1693 | Zeile 1693 |
---|
$stylesheet = $db->fetch_array($query);
// Does the theme not exist?
|
$stylesheet = $db->fetch_array($query);
// Does the theme not exist?
|
if(!$stylesheet['sid'])
| if(!$stylesheet)
|
{ flash_message($lang->error_invalid_stylesheet, 'error'); admin_redirect("index.php?module=style-themes");
| { flash_message($lang->error_invalid_stylesheet, 'error'); admin_redirect("index.php?module=style-themes");
|
Zeile 2054 | Zeile 2054 |
---|
$query = $db->simple_select("themes", "*", "tid='".$mybb->get_input('tid', MyBB::INPUT_INT)."'"); $theme = $db->fetch_array($query);
|
$query = $db->simple_select("themes", "*", "tid='".$mybb->get_input('tid', MyBB::INPUT_INT)."'"); $theme = $db->fetch_array($query);
|
if(empty($theme['tid']) || $theme['tid'] == 1)
| if(!$theme || $theme['tid'] == 1)
|
{ flash_message($lang->error_invalid_theme, 'error'); admin_redirect("index.php?module=style-themes");
| { flash_message($lang->error_invalid_theme, 'error'); admin_redirect("index.php?module=style-themes");
|
Zeile 2073 | Zeile 2073 |
---|
$stylesheet = $db->fetch_array($query);
// Does the theme not exist?
|
$stylesheet = $db->fetch_array($query);
// Does the theme not exist?
|
if(!$stylesheet['sid'])
| if(!$stylesheet)
|
{ flash_message($lang->error_invalid_stylesheet, 'error'); admin_redirect("index.php?module=style-themes");
| { flash_message($lang->error_invalid_stylesheet, 'error'); admin_redirect("index.php?module=style-themes");
|
Zeile 2318 | Zeile 2318 |
---|
$query = $db->simple_select("themes", "*", "tid='".$mybb->get_input('tid', MyBB::INPUT_INT)."'"); $theme = $db->fetch_array($query);
|
$query = $db->simple_select("themes", "*", "tid='".$mybb->get_input('tid', MyBB::INPUT_INT)."'"); $theme = $db->fetch_array($query);
|
if(empty($theme['tid']) || $theme['tid'] == 1)
| if(!$theme || $theme['tid'] == 1)
|
{ flash_message($lang->error_invalid_theme, 'error'); admin_redirect("index.php?module=style-themes");
| { flash_message($lang->error_invalid_theme, 'error'); admin_redirect("index.php?module=style-themes");
|
Zeile 2488 | Zeile 2488 |
---|
$query = $db->simple_select("themes", "*", "tid='".$mybb->get_input('tid', MyBB::INPUT_INT)."'"); $theme = $db->fetch_array($query);
|
$query = $db->simple_select("themes", "*", "tid='".$mybb->get_input('tid', MyBB::INPUT_INT)."'"); $theme = $db->fetch_array($query);
|
if(!$theme['tid'] || $theme['tid'] == 1)
| if(!$theme || $theme['tid'] == 1)
|
{ flash_message($lang->error_invalid_theme, 'error'); admin_redirect("index.php?module=style-themes");
| { flash_message($lang->error_invalid_theme, 'error'); admin_redirect("index.php?module=style-themes");
|
Zeile 2507 | Zeile 2507 |
---|
$stylesheet = $db->fetch_array($query);
// Does the theme not exist? or are we trying to delete the master?
|
$stylesheet = $db->fetch_array($query);
// Does the theme not exist? or are we trying to delete the master?
|
if(!$stylesheet['sid'] || $stylesheet['tid'] == 1)
| if(!$stylesheet || $stylesheet['tid'] == 1)
|
{ flash_message($lang->error_invalid_stylesheet, 'error'); admin_redirect("index.php?module=style-themes");
| { flash_message($lang->error_invalid_stylesheet, 'error'); admin_redirect("index.php?module=style-themes");
|
Zeile 2550 | Zeile 2550 |
---|
$query = $db->simple_select("themes", "*", "tid='".$mybb->get_input('tid', MyBB::INPUT_INT)."'"); $theme = $db->fetch_array($query);
|
$query = $db->simple_select("themes", "*", "tid='".$mybb->get_input('tid', MyBB::INPUT_INT)."'"); $theme = $db->fetch_array($query);
|
if(empty($theme['tid']) || $theme['tid'] == 1)
| if(!$theme || $theme['tid'] == 1)
|
{ flash_message($lang->error_invalid_theme, 'error'); admin_redirect("index.php?module=style-themes");
| { flash_message($lang->error_invalid_theme, 'error'); admin_redirect("index.php?module=style-themes");
|
Zeile 2983 | Zeile 2983 |
---|
$theme = $db->fetch_array($query);
// Does the theme not exist?
|
$theme = $db->fetch_array($query);
// Does the theme not exist?
|
if(!$theme['tid'] || $theme['tid'] == 1)
| if(!$theme || $theme['tid'] == 1)
|
{ flash_message($lang->error_invalid_theme, 'error'); admin_redirect("index.php?module=style-themes");
| { flash_message($lang->error_invalid_theme, 'error'); admin_redirect("index.php?module=style-themes");
|
Zeile 3011 | Zeile 3011 |
---|
$theme = $db->fetch_array($query);
// Does the theme not exist?
|
$theme = $db->fetch_array($query);
// Does the theme not exist?
|
if(!$theme['tid'] || $theme['tid'] == 1)
| if(!$theme || $theme['tid'] == 1)
|
{ flash_message($lang->error_invalid_theme, 'error'); admin_redirect("index.php?module=style-themes");
| { flash_message($lang->error_invalid_theme, 'error'); admin_redirect("index.php?module=style-themes");
|