=========================== */ ?> isAdmin()) { $plugins = array(); if ($handle = opendir(Absolute_Path."plugins")) { while (false !== ($file = readdir($handle))) { if (substr($file, strlen($file)-4, 4) == ".php") { $plugins[] = substr($file, 0, strlen($file)-4); } } closedir($handle); } $actives = json_decode($conf->active_plugins, 1); $actives = $actives[1]; if (isset($_POST["btnsubmit"])) { $actives = array(); foreach ($_POST['plugins'] as $plugin => $val) { if ($val != 'off') { $file = $plugin.'.php'; $actives[$plugin] = $file; } } if (!$tumble->saveOption(json_encode(array(array('total'=>count($actives)),$actives)), "active_plugins")) { header("Location: ".$conf->urlGelato."/admin/plugins.php?error=1&desc=".$conf->merror); die(); } header("Location: ".$conf->urlGelato."/admin/plugins.php?modified=true"); die(); } else { ?> gelato :: <?php echo __("Plugins")?>
".__("The configuration has been modified successfully.")."
"; } } if (isset($_GET["error"])) { if ($_GET["error"]==1) { echo "
".__("Error on the database server: ")."".$_GET["des"]."
"; } } ?>
here'); } else { foreach ($plugins as $key => $plugin) { //FIXME terminar esto asi se lee la info desde el archivo 'a la' WP /* $plugin_data = implode( '', file( Absolute_Path."plugins/".$plugin.'.php' )); preg_match( '|Plugin Name:(.*)$|mi', $plugin_data, $plugin_name ); preg_match( '|Plugin URI:(.*)$|mi', $plugin_data, $plugin_uri ); preg_match( '|Description:(.*)$|mi', $plugin_data, $description ); preg_match( '|Author:(.*)$|mi', $plugin_data, $author_name ); preg_match( '|Author URI:(.*)$|mi', $plugin_data, $author_uri ); if ( preg_match( "|Version:(.*)|i", $plugin_data, $version )) $version = trim( $version[1] ); else $version = ''; $plugin_data = array('Name' => trim($plugin_name[1]), 'URI' => trim($plugin_uri[1]), 'Description' => trim($description[1]), 'Author' => trim($author_name[1]), 'Author_uri' => trim($author_uri[1]), 'Version' => $version); */ $desc = __("There is no info for this plugin jet"); $activated = array_key_exists($plugin, $actives); ?>

" class="submit"/>

urlGelato."/login.php"); } ?>