rendered paste body<?phpfunction plug_scan(){chdir("plugins");$plugins = glob("*_gplug.php");$num_plugs = count($plugins);$num_plugs = $num_plugs - 1;$a = 0;while ($num_plugs >= $a) { include"$plugins[$num_plugs]"; $num_plugs = $num_plugs - 1; }chdir("..");}function plug_disable($plugin){chdir("plugins");rename("$plugin","{$plugin}.disable");chdir("..");}function plug_enable($plugin){chdir("plugins");rename("{$plugin}.disable","$plugin");chdir("..");}function if_enabled($plugin){chdir("plugins");if(!file_exists($plugin)) { echo"<a href='plug.php?plug_action=enable&plugin=$plugin'>Enable</a>"; }else { echo"<b>Enabled</b>"; }chdir("..");}function if_disabled($plugin){chdir("plugins");$disable = ".disable";$plugin_2 = $plugin . $disable;if(!file_exists($plugin_2)) { echo"<a href='plug.php?plug_action=disable&plugin=$plugin'>Disable</a>"; }else { echo"<b>Disabled</b>"; }chdir("..");}function plug_display(){chdir("plugins");echo"<center><table border=1><tr><td align=center>Gecko Plugins</td></tr></table><table border=1>";$plugins = glob("*_gplug.php");$num_plugs = count($plugins);$num_plugs = $num_plugs - 1;$a = 0;chdir("..");while ($num_plugs >= $a) { $plugin = $plugins[$num_plugs]; echo"<tr><td>"; echo"$plugins[$num_plugs]"; echo"</td><td>"; if_enabled($plugin); echo"</td><td>"; if_disabled($plugin); echo"</td></tr>"; $num_plugs = $num_plugs - 1; }echo"</table>";}//done declaring functions//begin plugin action manager$plugin = $_GET['plugin'];$plug_action = $_GET['plug_action'];switch ($plug_action){case "enable":plug_enable($plugin);break;case "disable":plug_disable($plugin);break;}?>