public static function get($key) { $string = self::$strings[$key]; if (!isset($string)) { if (!isset(self::$stringsEN)) { self::$stringsEN = parent::getStrings(substr(__CLASS__, 0, strlen(__CLASS__) - 1), parent::LANG_EN); } return self::$stringsEN[$key]; } return $string; }
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';
} error_reporting(E_ALL & ~E_NOTICE); /* *= INCLUDES: DO NOT DELETE ANY OF THESE LINES. =* */ // Config require LIB . 'static/config.php'; define('PREFIX', $DBCRED['prefix']); // Base require LIB . 'static/definitions.php'; // Languages require LIB . 'translations/Translation.php'; define('LANG', Translation::getLang()); define('LANGS', LIB . 'translations/'); require LANGS . 'GeneralT.php'; GeneralT::init(); // Classes require LIB . 'base/InfoMessage.php'; require LIB . 'base/AdminInfoMessage.php'; require LIB . 'themes/scss/scss.inc.php'; // Auto-Loader require LIB . 'common/ClassLoader.php'; // Connect to database $db = new Database($DBCRED['host'], $DBCRED['username'], $DBCRED['password'], $DBCRED['database']); // Unset $DBCRED for security reasons unset($DBCRED); $userManager = new UserManager(); $user = $userManager->getUser(); // Tokens $token = new Token(); $token->_('user.php', 'GET', RANK_USER);
?> </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>
</div> <br /> <h1>' . ACPPluginsT::get('available_plugins') . '</h1> <div class="plugins"> '; $availablePlugins = PluginHelper::getAvailablePlugins(); foreach ($availablePlugins as $plugin) { $parsedURL = parse_url($plugin->getURL()); $url = is_array($parsedURL) ? $plugin->getURL() : '#'; echo ' <div class="item"> <div class="meta"> <h2>' . htmlspecialchars($plugin->getTitle()) . ' <small>' . GeneralT::getFormat('by', '<a href="' . $url . '" target="_blank">' . htmlspecialchars($plugin->getAuthor()) . '</a>') . '</small></h2> <p> ' . htmlspecialchars($plugin->getDescription()) . ' </p> </div> <div class="actions"> <a href="./plugins.php?install=' . htmlspecialchars($plugin->getPackageName()) . '" class="button greenB">' . ACPPluginsT::get('install') . '</a> </div> </div> '; } if (count($availablePlugins) < 1) { echo InfoMessage::setText(ACPPluginsT::get('no_new_plugins')); }