Vergleich admin/modules/config/plugins.php - 1.4.0 - 1.4.6

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * 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: plugins.php 3870 2008-05-31 22:20:03Z Tikitiki $

 * $Id: plugins.php 4292 2008-12-13 01:58:07Z Tikitiki $

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 39Zeile 39
				continue;
}
$plugininfo = $infofunc();

				continue;
}
$plugininfo = $infofunc();

 
			$plugininfo['guid'] = trim($plugininfo['guid']);

			

			

			if(trim($plugininfo['guid']) != "")

			if($plugininfo['guid'] != "")

			{
$info[] = $plugininfo['guid'];
$names[$plugininfo['guid']] = array('name' => $plugininfo['name'], 'version' => $plugininfo['version']);

			{
$info[] = $plugininfo['guid'];
$names[$plugininfo['guid']] = array('name' => $plugininfo['name'], 'version' => $plugininfo['version']);

Zeile 127Zeile 128
	
$sub_tabs['update_plugins'] = array(
'title' => $lang->plugin_updates,

	
$sub_tabs['update_plugins'] = array(
'title' => $lang->plugin_updates,

		'link' => "index.php?module=config/plugin&action=check",

		'link' => "index.php?module=config/plugins&action=check",

		'description' => $lang->plugin_updates_desc
);

		'description' => $lang->plugin_updates_desc
);

	

	

	$page->output_nav_tabs($sub_tabs, 'update_plugins');

$table->output($lang->plugin_updates);

	$page->output_nav_tabs($sub_tabs, 'update_plugins');

$table->output($lang->plugin_updates);

Zeile 141Zeile 142
// Activates or deactivates a specific plugin
if($mybb->input['action'] == "activate" || $mybb->input['action'] == "deactivate")
{

// Activates or deactivates a specific plugin
if($mybb->input['action'] == "activate" || $mybb->input['action'] == "deactivate")
{

 
	if(!verify_post_check($mybb->input['my_post_key']))
{
flash_message($lang->invalid_post_verify_key2, 'error');
admin_redirect("index.php?module=config/plugins");
}


	if($mybb->input['action'] == "activate")
{
$plugins->run_hooks("admin_config_plugins_activate");

	if($mybb->input['action'] == "activate")
{
$plugins->run_hooks("admin_config_plugins_activate");

Zeile 148Zeile 155
	else
{
$plugins->run_hooks("admin_config_plugins_deactivate");

	else
{
$plugins->run_hooks("admin_config_plugins_deactivate");

	}

	}

	
$codename = $mybb->input['plugin'];
$codename = str_replace(array(".", "/", "\\"), "", $codename);

	
$codename = $mybb->input['plugin'];
$codename = str_replace(array(".", "/", "\\"), "", $codename);

Zeile 169Zeile 176
	$installed_func = "{$codename}_is_installed";
$installed = true;
if(function_exists($installed_func) && $installed_func() != true)

	$installed_func = "{$codename}_is_installed";
$installed = true;
if(function_exists($installed_func) && $installed_func() != true)

	{

	{

		$installed = false;
}


		$installed = false;
}


Zeile 295Zeile 302
			if($plugins->is_compatible($codename) == false)
{
$compatibility_warning = "<span style=\"color: red;\">".$lang->sprintf($lang->plugin_incompatible, $mybb->version)."</span>";

			if($plugins->is_compatible($codename) == false)
{
$compatibility_warning = "<span style=\"color: red;\">".$lang->sprintf($lang->plugin_incompatible, $mybb->version)."</span>";

 
			}
else
{
$compatibility_warning = "";

			}

$installed_func = "{$codename}_is_installed";

			}

$installed_func = "{$codename}_is_installed";

Zeile 331Zeile 342
				}
else
{

				}
else
{

					$table->construct_cell("<a href=\"index.php?module=config/plugins&amp;action=activate&amp;plugin={$codename}\">{$lang->install_and_activate}</a>", array("class" => "align_center", "colspan" => 2));

					$table->construct_cell("<a href=\"index.php?module=config/plugins&amp;action=activate&amp;plugin={$codename}&amp;my_post_key={$mybb->post_code}\">{$lang->install_and_activate}</a>", array("class" => "align_center", "colspan" => 2));

				}
}
// Plugin is activated and installed
else if($active_plugins[$codename])
{

				}
}
// Plugin is activated and installed
else if($active_plugins[$codename])
{

				$table->construct_cell("<a href=\"index.php?module=config/plugins&amp;action=deactivate&amp;plugin={$codename}\">{$lang->deactivate}</a>", array("class" => "align_center", "width" => 150));

				$table->construct_cell("<a href=\"index.php?module=config/plugins&amp;action=deactivate&amp;plugin={$codename}&amp;my_post_key={$mybb->post_code}\">{$lang->deactivate}</a>", array("class" => "align_center", "width" => 150));

				if($uninstall_button)
{

				if($uninstall_button)
{

					$table->construct_cell("<a href=\"index.php?module=config/plugins&amp;action=deactivate&amp;uninstall=1&amp;plugin={$codename}\">{$lang->uninstall}</a>", array("class" => "align_center", "width" => 150));

					$table->construct_cell("<a href=\"index.php?module=config/plugins&amp;action=deactivate&amp;uninstall=1&amp;plugin={$codename}&amp;my_post_key={$mybb->post_code}\">{$lang->uninstall}</a>", array("class" => "align_center", "width" => 150));

				}
else
{

				}
else
{

Zeile 350Zeile 361
			// Plugin is installed but not active
else if($installed == true)
{

			// Plugin is installed but not active
else if($installed == true)
{

				$table->construct_cell("<a href=\"index.php?module=config/plugins&amp;action=activate&amp;plugin={$codename}\">{$lang->activate}</a>", array("class" => "align_center", "width" => 150));

				$table->construct_cell("<a href=\"index.php?module=config/plugins&amp;action=activate&amp;plugin={$codename}&amp;my_post_key={$mybb->post_code}\">{$lang->activate}</a>", array("class" => "align_center", "width" => 150));

				if($uninstall_button)
{

				if($uninstall_button)
{

					$table->construct_cell("<a href=\"index.php?module=config/plugins&amp;action=deactivate&amp;uninstall=1&amp;plugin={$codename}\">{$lang->uninstall}</a>", array("class" => "align_center", "width" => 150));

					$table->construct_cell("<a href=\"index.php?module=config/plugins&amp;action=deactivate&amp;uninstall=1&amp;plugin={$codename}&amp;my_post_key={$mybb->post_code}\">{$lang->uninstall}</a>", array("class" => "align_center", "width" => 150));

				}
else
{

				}
else
{

Zeile 366Zeile 377
	
if($table->num_rows() == 0)
{

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

		$table->contruct_cell($lang->no_plugins, array('colspan' => 2));

		$table->construct_cell($lang->no_plugins, array('colspan' => 3));

		$table->construct_row();
}
$table->output($lang->plugins);

		$table->construct_row();
}
$table->output($lang->plugins);