Vergleich admin/modules/user/admin_permissions.php - 1.4.0 - 1.4.11

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 1Zeile 1
<?php
/**
* MyBB 1.4

<?php
/**
* MyBB 1.4

 * Copyright � 2008 MyBB Group, All Rights Reserved

 * Copyright © 2008 MyBB Group, All Rights Reserved

 *
* 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: admin_permissions.php 3977 2008-07-04 02:30:42Z Tikitiki $

 * $Id: admin_permissions.php 4423 2009-08-09 21:44:31Z RyanGordon $

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 79Zeile 79
		
$plugins->run_hooks("admin_user_admin_permissions_delete_commit");


		
$plugins->run_hooks("admin_user_admin_permissions_delete_commit");


		$user = get_user($uid);

 
		// Log admin action

		// Log admin action

		log_admin_action($uid, $user['username']);

















		if($uid < 0)
{
$query = $db->simple_select("usergroups", "title", "gid='$gid'");
$group = $db->fetch_array($query);
log_admin_action($uid, $group['title']);

}
elseif($uid == 0)
{
// Default
log_admin_action(0, $lang->default);
}
else
{
$user = get_user($uid);
log_admin_action($uid, $user['username']);
}


flash_message($lang->success_perms_deleted, 'success');
admin_redirect("index.php?module=user/admin_permissions");


flash_message($lang->success_perms_deleted, 'success');
admin_redirect("index.php?module=user/admin_permissions");

Zeile 124Zeile 139
		}
else
{

		}
else
{

			$db->insert_query("adminoptions", array('uid' => intval($mybb->input['uid']), 'permissions' => $db->escape_string(serialize($mybb->input['permissions']))));







			$insert_array = array(
"uid" => intval($mybb->input['uid']),
"permissions" => $db->escape_string(serialize($mybb->input['permissions'])),
"notes" => '',
"defaultviews" => ''
);
$db->insert_query("adminoptions", $insert_array);

		}

$plugins->run_hooks("admin_user_admin_permissions_edit_commit");

		}

$plugins->run_hooks("admin_user_admin_permissions_edit_commit");

Zeile 307Zeile 328
		}
else
{

		}
else
{

			$table->construct_cell("<a href=\"index.php?module=user/admin_permissions&amp;action=edit&amp;uid={$uid}\">Set Permissions</a>", array("class" => "align_center"));

			$table->construct_cell("<a href=\"index.php?module=user/admin_permissions&amp;action=edit&amp;uid={$uid}\">{$lang->set_permissions}</a>", array("class" => "align_center"));

		}
$table->construct_row();
}

		}
$table->construct_row();
}