Vergleich admin/adminoptions.php - 1.2.5 - 1.2.14

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 3Zeile 3
 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

 * Website: http://www.mybboard.com
* License: http://www.mybboard.com/eula.html

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/eula.html

 *

 *

 * $Id: adminoptions.php 2644 2007-01-14 23:15:00Z dennis $

 * $Id: adminoptions.php 3705 2008-03-10 07:16:52Z dennis $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 38Zeile 38
	$options = array(
"limit" => "1"
);

	$options = array(
"limit" => "1"
);

	$query = $db->simple_select(TABLE_PREFIX."adminoptions", "*", "uid='$user[uid]'", $options);

	$query = $db->simple_select(TABLE_PREFIX."adminoptions", "*", "uid='{$mybb->user['uid']}'", $options);

	$adminoptions = $db->fetch_array($query);
$sqlarray = array(
"notes" => $db->escape_string($mybb->input['notes']),

	$adminoptions = $db->fetch_array($query);
$sqlarray = array(
"notes" => $db->escape_string($mybb->input['notes']),

Zeile 47Zeile 47
	$plugins->run_hooks("admin_adminoptions_do_updateprefs");
if(isset($adminoptions['uid']))
{

	$plugins->run_hooks("admin_adminoptions_do_updateprefs");
if(isset($adminoptions['uid']))
{

		$db->update_query(TABLE_PREFIX."adminoptions", $sqlarray, "uid='".$user['uid']."'");

		$db->update_query(TABLE_PREFIX."adminoptions", $sqlarray, "uid='".$mybb->user['uid']."'");

	}
else
{

	}
else
{

 
		$sqlarray['uid'] = $mybb->user['uid'];

		$db->insert_query(TABLE_PREFIX."adminoptions", $sqlarray);
}
cpredirect("adminoptions.php?".SID, $lang->prefs_updated);

		$db->insert_query(TABLE_PREFIX."adminoptions", $sqlarray);
}
cpredirect("adminoptions.php?".SID, $lang->prefs_updated);

Zeile 353Zeile 354
if($mybb->input['action'] == "updateprefs" || $mybb->input['action'] == "")
{


if($mybb->input['action'] == "updateprefs" || $mybb->input['action'] == "")
{


	$query = $db->simple_select(TABLE_PREFIX."adminoptions", "*", "uid='$user[uid]'");

	$query = $db->simple_select(TABLE_PREFIX."adminoptions", "*", "uid='{$mybb->user['uid']}'");

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

$plugins->run_hooks("admin_adminoptions_updateprefs");

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

$plugins->run_hooks("admin_adminoptions_updateprefs");