Vergleich admin/modules/user/group_promotions.php - 1.6.7 - 1.6.16

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

<?php
/**
* MyBB 1.6

 * Copyright � 2010 MyBB Group, All Rights Reserved

 * Copyright 2010 MyBB Group, All Rights Reserved

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

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

 * $Id: group_promotions.php 5746 2012-02-03 10:03:25Z Tomm $

 * $Id$

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 63Zeile 63

if($mybb->request_method == "post")
{


if($mybb->request_method == "post")
{

		$promotion = array(

		$update_promotion = array(

			"enabled" => 0
);


			"enabled" => 0
);


		$db->update_query("promotions", $promotion, "pid = '{$mybb->input['pid']}'");

		$db->update_query("promotions", $update_promotion, "pid = '{$mybb->input['pid']}'");


$plugins->run_hooks("admin_user_group_promotions_disable_commit");



$plugins->run_hooks("admin_user_group_promotions_disable_commit");


Zeile 150Zeile 150
		admin_redirect("index.php?module=user-group_promotions");
}


		admin_redirect("index.php?module=user-group_promotions");
}


	$promotion = array(

	$update_promotion = array(

		"enabled" => 1
);


		"enabled" => 1
);


	$db->update_query("promotions", $promotion, "pid = '{$mybb->input['pid']}'");

	$db->update_query("promotions", $update_promotion, "pid = '{$mybb->input['pid']}'");

	
$plugins->run_hooks("admin_user_group_promotions_enable_commit");


	
$plugins->run_hooks("admin_user_group_promotions_enable_commit");