Vergleich admin/modules/config/calendars.php - 1.6.0 - 1.6.11

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * $Id: calendars.php 5125 2010-07-27 07:28:03Z RyanGordon $

 * $Id$

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 295Zeile 295

if(!$errors)
{


if(!$errors)
{

			$calendar = array(

			$updated_calendar = array(

				"name" => $db->escape_string($mybb->input['name']),
"disporder" => intval($mybb->input['disporder']),
"startofweek" => intval($mybb->input['startofweek']),

				"name" => $db->escape_string($mybb->input['name']),
"disporder" => intval($mybb->input['disporder']),
"startofweek" => intval($mybb->input['startofweek']),

Zeile 309Zeile 309
				"allowsmilies" => $db->escape_string($mybb->input['allowsmilies'])
);


				"allowsmilies" => $db->escape_string($mybb->input['allowsmilies'])
);


			$db->update_query("calendars", $calendar, "cid = '".intval($mybb->input['cid'])."'");

			$db->update_query("calendars", $updated_calendar, "cid = '".intval($mybb->input['cid'])."'");

			
$plugins->run_hooks("admin_config_calendars_edit_commit");


			
$plugins->run_hooks("admin_config_calendars_edit_commit");


Zeile 391Zeile 391
	{
// Delete the calendar
$db->delete_query("calendars", "cid='{$calendar['cid']}'");

	{
// Delete the calendar
$db->delete_query("calendars", "cid='{$calendar['cid']}'");

 
		$db->delete_query("calendarpermissions", "cid='{$calendar['cid']}'");

		$db->delete_query("events", "cid='{$calendar['cid']}'");

$plugins->run_hooks("admin_config_calendars_delete_commit");

		$db->delete_query("events", "cid='{$calendar['cid']}'");

$plugins->run_hooks("admin_config_calendars_delete_commit");

Zeile 459Zeile 460
	
if($table->num_rows() == 0)
{

	
if($table->num_rows() == 0)
{

		$table->construct_cell($lang->no_calendars, array('colspan' => 4));

		$table->construct_cell($lang->no_calendars, array('colspan' => 5));

		$table->construct_row();
$no_results = true;
}

		$table->construct_row();
$no_results = true;
}