?> </time> </div> <?php } else { ?> <div class="avatar"> <img src="<?php echo UserReadOnly::getAvatarDirectory() . Config::get('default_avatar'); ?> " /> </div> <div class="userinfo"> <h2><?php echo GeneralT::get('unknown'); ?> </h2> <time><?php echo date('d.m.Y, H:i', $post->getDate()); ?> </time> </div> <?php } ?> <div class="actions"> ... </div>
echo ' <option value="' . $key . '" ' . ($plugin->getPreferenceValue($db, $pref->getKey()) == $key ? 'selected' : '') . '>' . $value . '</option> '; } echo ' </select> </div> </li> '; } else { echo ' <li class="text"> <div class="prefTitle">' . $pref->getTitle() . '</div> <div class="prefContent">' . $pref->getValue() . '</div> </li> '; } } } } echo ' <li class="save"> <input type="submit" name="submit" value="' . GeneralT::get('save') . '" /> </li> </ul> </form> </div> '; } } include 'template/footer.php';
$manifest = PluginManifest::fromPackageName($packageName); PluginHelper::installPlugin($manifest); header("Location: ./plugins.php"); exit; } catch (Exception $e) { echo AdminErrorMessage::setText(ACPPluginsT::getFormat('install_error', htmlspecialchars($packageName), $e->getMessage()), true); } } else { if (isset($_GET['uninstall'])) { $packageName = basename($_GET['uninstall']); if ($_GET['ok'] == 1) { PluginHelper::uninstallPlugin($packageName); header("Location: ./plugins.php"); exit; } else { echo AdminQuestionMessage::setText(ACPPluginsT::get('uninstall_confirmation'), true)->addLink(GeneralT::get('yes'), './plugins.php?uninstall=' . htmlspecialchars($packageName) . '&ok=1')->addLink(GeneralT::get('no'), './plugins.php'); } } } include 'template/header.php'; echo ' <h1>' . ACPPluginsT::get('active_plugins') . '</h1> <div class="plugins"> '; $installedPlugins = PluginHelper::getActivePlugins(); foreach ($installedPlugins as $plugin) { $parsedURL = parse_url($plugin->getURL()); $url = is_array($parsedURL) ? $plugin->getURL() : '#'; echo ' <div class="item">