⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 plugins.php

📁 Gregarius是一个基于web的RSS/RDF/ATOM聚合程序
💻 PHP
字号:
<?php// stores constants for overrides' defaultsrequire_once('mobileconstants.php');function __mobile_strip_images($i) {	static $allowed;    if (!$allowed) {			$allowed = getConfig('rss.input.allowed');			if(isset($allowed['img'])) {					unset($allowed['img']);			}    }    $i -> description = kses($i -> description ,$allowed);		return $i;}function __mobile_truncate_content($i) {	$ml = rss_theme_config_override_option('rss.output.maxlength',DEFAULT_MOBILE_OUTPUT_MAXLENGTH);	if ($ml) {		$i -> description =  html_substr($i -> description, $ml) ;	}	return $i;}if (rss_theme_config_override_option('rss.content.strip.images',DEFAULT_MOBILE_CONTENT_STRIP_IMAGES)) {	rss_set_hook('rss.plugins.items.beforerender','__mobile_strip_images');} if (rss_theme_config_override_option('rss.output.maxlength',DEFAULT_MOBILE_OUTPUT_MAXLENGTH) > 0) {	rss_set_hook('rss.plugins.items.beforerender','__mobile_truncate_content');}function mobileLoginForm() {?><html><head><title>Login</title></head><body><form method="post" action="<?php echo getPath(); ?>"><p><input type="hidden" name="media" value="mobile" /><label for="username">Username:</label><input type="text" id="username" name="username" value="" /></p><p><label for="password">Password:</label><input type="password" name="password" id="password"  value="" /></p><p><input type="submit" name="login" value="Go" /></p></form></body></html><?phpflush();exit();}if (isset($_REQUEST['mobilelogin'])) {	mobileLoginForm();}?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -