Vergleich admin/adminoptions.php - 1.2.10 - 1.2.14

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

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

 * $Id: adminoptions.php 2932 2007-03-10 05:48:55Z chris $

 * $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");