@ -135,7 +389,7 @@ function mod_log($page_no = 1) {
if (!hasPermission($config['mod']['modlog']))
error($config['error']['noaccess']);
$query = prepare("SELECT `username`, `ip`, `board`, `time`, `text` FROM `modlogs` LEFT JOIN `mods` ON `mod` = `mods`.`id` ORDER BY `time` DESC LIMIT :offset, :limit");
$query = prepare("SELECT `username`, `mod`, `ip`, `board`, `time`, `text` FROM `modlogs` LEFT JOIN `mods` ON `mod` = `mods`.`id` ORDER BY `time` DESC LIMIT :offset, :limit");
$query = prepare('SELECT `unread`,`pms`.`id`, `time`, `sender`, `to`, `message`, `username` FROM `pms` LEFT JOIN `mods` ON `mods`.`id` = `sender` WHERE `to` = :mod ORDER BY `unread` DESC, `time` DESC');
$query->bindValue(':mod', $mod['id']);
$query->execute() or error(db_error($query));
$messages = $query->fetchAll(PDO::FETCH_ASSOC);
$query = prepare('SELECT COUNT(*) FROM `pms` WHERE `to` = :mod AND `unread` = 1');
{% for javascript in config.additional_javascript %}<scripttype="text/javascript"src="{{ config.additional_javascript_url }}{{ javascript }}"></script>{% endfor %}
{% endif %}
{% endif %}
{% if config.recaptcha %}<styletype="text/css">{%raw%}
.recaptcha_image_cell {
background: none !important;
}
table.recaptchatable {
border: none !important;
}
#recaptcha_logo, #recaptcha_tagline {
display: none;
float: right;
}
.recaptchatable a {
display: block;
}
{% endraw %}</style>{% endif %}
{% endblock %}
</head>
<body>
{{ boardlist.top }}
{% if pm %}<divclass="top_notice">You have <ahref="?/PM/{{ pm.id }}">an unread PM</a>{% if pm.waiting > 0 %}, plus {{ pm.waiting }} more waiting{% endif %}.</div><hr/>{% endif %}
{% if config.url_banner %}<imgclass="banner"src="{{ config.url_banner }}"{%ifconfig.banner_widthorconfig.banner_height%}style="{% if config.banner_width %}width:{{ config.banner_width }}px{% endif %};{% if config.banner_width %}height:{{ config.banner_height }}px{% endif %}"{%endif%}alt=""/>{% endif %}
<header>
<h1>{{ board.url }} - {{ board.name }}</h1>
<divclass="subtitle">
{% if board.title %}
{{ board.title|e }}
{% endif %}
{% if mod %}<p><ahref="?/">{% trans %}Return to dashboard{% endtrans %}</a></p>{% endif %}
</div>
</header>
{% include 'post_form.html' %}
{% if config.blotter %}<hr/><divclass="blotter">{{ config.blotter }}</div>{% endif %}
{% if pm %}<divclass="top_notice">You have <ahref="?/PM/{{ pm.id }}">an unread PM</a>{% if pm.waiting > 0 %}, plus {{ pm.waiting }} more waiting{% endif %}.</div><hr/>{% endif %}
{% if config.url_banner %}<imgclass="banner"src="{{ config.url_banner }}"{%ifconfig.banner_widthorconfig.banner_height%}style="{% if config.banner_width %}width:{{ config.banner_width }}px{% endif %};{% if config.banner_width %}height:{{ config.banner_height }}px{% endif %}"{%endif%}alt=""/>{% endif %}
<header>
<h1>{{ board.url }} - {{ board.title }}</h1>
<h1>{{ board.url }} - {{ board.title|e }}</h1>
<divclass="subtitle">
{% if board.subtitle %}
{{ board.subtitle }}
{{ board.subtitle|e }}
{% endif %}
{% if mod %}<p><ahref="?/">{% trans %}Return to dashboard{% endtrans %}</a></p>{% endif %}
<li><inputtype="submit"value="{% trans 'Create board' %}"></li>
{% else %}
<li><inputtype="submit"value="{% trans 'Save changes' %}"></li>
{% if mod|hasPermission(config.mod.deleteboard) %}
<li><inputname="delete"onclick="return confirm('Are you sure you want to permanently delete this board?');"type="submit"value="{% trans 'Delete board' %}"></li>
<li><inputtype="submit"value="{% trans 'Create user' %}"></li>
{% else %}
<li><inputtype="submit"value="{% trans 'Save changes' %}"></li>
{% if mod|hasPermission(config.mod.deleteusers) %}
<li><inputtype="submit"value="Delete user"></li>
<li><inputname="delete"onclick="return confirm('Are you sure you want to permanently delete this user?');"type="submit"value="{% trans 'Delete user' %}"></li>
{% if pm %}<divclass="top_notice">You have <ahref="?/PM/{{ pm.id }}">an unread PM</a>{% if pm.waiting > 0 %}, plus {{ pm.waiting }} more waiting{% endif %}.</div><hr/>{% endif %}
{% if config.url_banner %}<imgclass="banner"src="{{ config.url_banner }}"{%ifconfig.banner_widthorconfig.banner_height%}style="{% if config.banner_width %}width:{{ config.banner_width }}px{% endif %};{% if config.banner_width %}height:{{ config.banner_height }}px{% endif %}"{%endif%}alt=""/>{% endif %}
<header>
<h1>{{ board.url }} - {{ board.title }}</h1>
<h1>{{ board.url }} - {{ board.title|e }}</h1>
<divclass="subtitle">
{% if board.subtitle %}
{{ board.subtitle }}
{{ board.subtitle|e }}
{% endif %}
{% if mod %}<p><ahref="?/">{% trans %}Return to dashboard{% endtrans %}</a></p>{% endif %}