Esempio n. 1
0
function plugin_setting_view()
{
    ?>
	<div class=containertitle>
	<?php 
    if (isset($_GET['setting'])) {
        ?>
<span class="actived">插件设置完成</span><?php 
    }
    ?>
	<?php 
    if (isset($_GET['error'])) {
        ?>
<span class="error">插件设置失败</span><?php 
    }
    ?>
	</div>
	<div class=line></div>
	<h2>MoeCDN 设置</h2>

	<form method="post" action="plugin.php?plugin=moecdn&action=setting">

		<table class="form-table">
			<tbody>
			<tr><th scope="row">Gravatar</th>
				<td><label for="gravatar">
						<input name="gravatar" type="hidden" value="0" />
						<input name="gravatar" type="checkbox" name="gravatar" value="1" <?php 
    MoeCDN::checked('gravatar');
    ?>
>
						替换 Gravatar 服务器
					</label></td>
			</tr>
			<tr><th scope="row">Google</th>
				<td><label for="googleapis">
						<input name="googleapis" type="hidden" value="0" />
						<input name="googleapis" type="checkbox" name="googleapis" value="1" <?php 
    MoeCDN::checked('googleapis');
    ?>
>
						替换 Google Fonts 和 Google AJAX CDN 服务器
					</label></td>
			</tr>
			<tr><th scope="row">Advanced</th>
				<td><label for="worg">
						<input name="worg" type="hidden" value="0" />
						<input name="worg" type="checkbox" name="worg" value="1" <?php 
    MoeCDN::checked('worg');
    ?>
>
						替换 Emoji 图片服务器
					</label></td>
			</tr>
			</tbody>
		</table>
        <br/>
		<p class="submit">
			<input type="submit" name="submit" id="submit" class="btn btn-primary" value="保存更改">
		</p>
	</form>
    <br/>如果插件正常工作且你已经以管理员身份登陆,你将可以在网页的源代码中看到 "Thank you for using MoeCDN!"
    <br/>MoeCDN // 作者:
    <a href="http://zhizhe8.net/" target="_blank">Kenvix</a> +
    <a href="http://i.qaq.cat/" target="_blank">Balthild</a>
    //
    <a href="https://github.com/MoeNetwork/MoeCDN-EMLOG" target="_blank">Github</a>
<?php 
}