Vergleich admin/inc/functions.php - 1.8.2 - 1.8.5

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 33Zeile 33
		"dateline" => TIME_NOW,
"module" => $db->escape_string($mybb->get_input('module')),
"action" => $db->escape_string($mybb->get_input('action')),

		"dateline" => TIME_NOW,
"module" => $db->escape_string($mybb->get_input('module')),
"action" => $db->escape_string($mybb->get_input('action')),

		"data" => $db->escape_string(@serialize($data))

		"data" => $db->escape_string(@my_serialize($data))

	);

$db->insert_query("adminlog", $log_entry);

	);

$db->insert_query("adminlog", $log_entry);

Zeile 70Zeile 70

$admin_session['data'][$name] = $value;
$updated_session = array(


$admin_session['data'][$name] = $value;
$updated_session = array(

		"data" => $db->escape_string(@serialize($admin_session['data']))

		"data" => $db->escape_string(@my_serialize($admin_session['data']))

	);
$db->update_query("adminsessions", $updated_session, "sid='{$admin_session['sid']}'");
}

	);
$db->update_query("adminsessions", $updated_session, "sid='{$admin_session['sid']}'");
}

Zeile 234Zeile 234
	$field_list = $db->show_fields_from("forumpermissions");
foreach($field_list as $field)
{

	$field_list = $db->show_fields_from("forumpermissions");
foreach($field_list as $field)
{

		if(strpos($field['Field'], 'can') !== false)

		if(strpos($field['Field'], 'can') !== false || strpos($field['Field'], 'mod') !== false)

		{
$permission_fields[$field['Field']] = 1;
}

		{
$permission_fields[$field['Field']] = 1;
}

Zeile 579Zeile 579
			}
}


			}
}


		$db->update_query("adminoptions", array('permissions' => $db->escape_string(serialize($adminoption['permissions']))), "uid='{$adminoption['uid']}'");

		$db->update_query("adminoptions", array('permissions' => $db->escape_string(my_serialize($adminoption['permissions']))), "uid='{$adminoption['uid']}'");

	}
}


	}
}