Vergleich admin/modules/home/preferences.php - 1.4.2 - 1.4.16

  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: preferences.php 3886 2008-06-05 23:54:22Z Tikitiki $

 * $Id: preferences.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 33Zeile 33
			"cpstyle" => $db->escape_string($mybb->input['cpstyle']),
"permissions" => $db->escape_string($adminopts['permissions']),
"defaultviews" => $db->escape_string($adminopts['defaultviews']),

			"cpstyle" => $db->escape_string($mybb->input['cpstyle']),
"permissions" => $db->escape_string($adminopts['permissions']),
"defaultviews" => $db->escape_string($adminopts['defaultviews']),

			"uid" => $mybb->user['uid']


			"uid" => $mybb->user['uid'],
"codepress" => intval($mybb->input['codepress']),

		);

$db->replace_query("adminoptions", $sqlarray, "uid");

		);

$db->replace_query("adminoptions", $sqlarray, "uid");

Zeile 54Zeile 55

$page->output_nav_tabs($sub_tabs, 'preferences');



$page->output_nav_tabs($sub_tabs, 'preferences');


	$query = $db->simple_select("adminoptions", "notes, cpstyle", "uid='".$mybb->user['uid']."'", array('limit' => 1));

	$query = $db->simple_select("adminoptions", "notes, cpstyle, codepress", "uid='".$mybb->user['uid']."'", array('limit' => 1));

	$admin_options = $db->fetch_array($query);

$form = new Form("index.php?module=home/preferences", "post");

	$admin_options = $db->fetch_array($query);

$form = new Form("index.php?module=home/preferences", "post");

Zeile 71Zeile 72
	$setting_code = $form->generate_select_box("cpstyle", $folders, $admin_options['cpstyle']);

$table = new Table;

	$setting_code = $form->generate_select_box("cpstyle", $folders, $admin_options['cpstyle']);

$table = new Table;

	$table->construct_header($lang->acp_theme);

	$table->construct_header($lang->global_preferences);

	

	

	$table->construct_cell($lang->select_acp_theme."<br />{$setting_code}");




	$table->construct_cell("<strong>{$lang->acp_theme}</strong><br /><small>{$lang->select_acp_theme}</small><br /><br />{$setting_code}");
$table->construct_row();

$table->construct_cell("<strong>{$lang->codepress}</strong><br /><small>{$lang->use_codepress_desc}</small><br /><br />".$form->generate_yes_no_radio('codepress', $admin_options['codepress']));

	$table->construct_row();

$table->output($lang->preferences);

	$table->construct_row();

$table->output($lang->preferences);