mirror of https://github.com/mashirozx/sakura.git
parent
c222fad75d
commit
87b9db7b3d
|
@ -48,7 +48,7 @@
|
|||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
|
||||
$robot_comments = '';
|
||||
if(comments_open()){
|
||||
if(akina_option('norobot')) $robot_comments = '<label class="siren-checkbox-label"><input class="siren-checkbox-radio" type="checkbox" name="no-robot"><span class="siren-no-robot-checkbox siren-checkbox-radioInput"></span>'.__('I\'m not a robot', 'sakura').'</label>';
|
||||
$private_ms = akina_option('open_private_message') ? '<label class="siren-checkbox-label"><input class="siren-checkbox-radio" type="checkbox" name="is-private"><span class="siren-is-private-checkbox siren-checkbox-radioInput"></span>'.__('Comment in private', 'sakura').'</label>' : '';
|
||||
|
|
|
@ -279,6 +279,7 @@ function convertip($ip)
|
|||
$ipAllNum = ($ipend - $ipbegin) / 7 + 1;
|
||||
$BeginNum = 0;
|
||||
$EndNum = $ipAllNum;
|
||||
$ip1num = $ip2num = $ipAddr1 = $ipAddr2 = '';
|
||||
while ($ip1num > $ipNum || $ip2num < $ipNum) {
|
||||
$Middle = intval(($EndNum + $BeginNum) / 2);
|
||||
fseek($fd, $ipbegin + 7 * $Middle);
|
||||
|
@ -438,6 +439,7 @@ if (!function_exists('akina_comment_format')) {
|
|||
<?php if (current_user_can('manage_options') and (wp_is_mobile() == false)) {
|
||||
$comment_ID = $comment->comment_ID;
|
||||
$i_private = get_comment_meta($comment_ID, '_private', true);
|
||||
$flag = '';
|
||||
$flag .= ' <i class="fa fa-snowflake-o" aria-hidden="true"></i> <a href="javascript:;" data-actionp="set_private" data-idp="' . get_comment_id() . '" id="sp" class="sm" style="color:rgba(0,0,0,.35)">' . __("Private", "sakura") . ': <span class="has_set_private">';
|
||||
if (!empty($i_private)) {
|
||||
$flag .= __("Yes", "sakura") . ' <i class="fa fa-lock" aria-hidden="true"></i>';
|
||||
|
|
Loading…
Reference in New Issue