mirror of
https://github.com/mashirozx/sakura.git
synced 2024-12-12 09:54:35 +08:00
fix
This commit is contained in:
parent
5157540319
commit
8b77fbd380
@ -157,7 +157,6 @@
|
||||
data-fixed="true"
|
||||
data-theme="orange">
|
||||
</div>
|
||||
<style>.skin-menu{left:auto;right:10px;}.changeSkin-gear{left:auto;right:5px;}</style>
|
||||
<?php endif; ?>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -1627,7 +1627,7 @@ function change_avatar($avatar){
|
||||
preg_match('/:\"([^\"]*)\"/i',$qqavatar,$matches);
|
||||
return '<img src="'.$matches[1].'" data-src="'.stripslashes($m[1]).'" class="lazyload avatar avatar-24 photo" alt="😀" width="24" height="24" onerror="imgError(this,1)">';
|
||||
}else{
|
||||
$iv = SAKURA_VERSION;
|
||||
$iv = str_repeat($sakura_privkey, 2);
|
||||
$encrypted = openssl_encrypt($qq_number, 'aes-128-cbc', $sakura_privkey, 0, $iv);
|
||||
$encrypted = urlencode(base64_encode($encrypted));
|
||||
return '<img src="'.rest_url("sakura/v1/qqinfo/avatar").'?qq='.$encrypted.'"class="lazyload avatar avatar-24 photo" alt="😀" width="24" height="24" onerror="imgError(this,1)">';
|
||||
|
@ -401,7 +401,7 @@ function get_qq_avatar(){
|
||||
global $sakura_privkey;
|
||||
$encrypted=$_GET["qq"];
|
||||
if(isset($encrypted)){
|
||||
$iv = SAKURA_VERSION;
|
||||
$iv = str_repeat($sakura_privkey, 2);
|
||||
$encrypted = urldecode(base64_decode($encrypted));
|
||||
$qq_number = openssl_decrypt($encrypted, 'aes-128-cbc', $sakura_privkey, 0, $iv);
|
||||
preg_match('/^\d{3,}$/', $qq_number, $matches);
|
||||
|
@ -58,9 +58,6 @@
|
||||
<?php if (akina_option('facebook')){ ?>
|
||||
<li><a href="<?php echo akina_option('facebook', ''); ?>" target="_blank" class="social-wangyiyun" title="Facebook"><img src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/images/sns/facebook.png"/></a></li>
|
||||
<?php } ?>
|
||||
<?php if (akina_option('googleplus')){ ?>
|
||||
<li><a href="<?php echo akina_option('googleplus', ''); ?>" target="_blank" class="social-wangyiyun" title="Google+"><img src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/images/sns/googleplus.png"/></a></li>
|
||||
<?php } ?>
|
||||
<?php if (akina_option('jianshu')){ ?>
|
||||
<li><a href="<?php echo akina_option('jianshu', ''); ?>" target="_blank" class="social-wangyiyun" title="Jianshu"><img src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/images/sns/jianshu.png"/></a></li>
|
||||
<?php } ?>
|
||||
|
@ -689,14 +689,14 @@ function optionsframework_options() {
|
||||
'id' => 'facebook',
|
||||
'std' => '',
|
||||
'type' => 'text');
|
||||
|
||||
/*
|
||||
$options[] = array(
|
||||
'name' => __('Google+', 'sakura'),
|
||||
'desc' => __('G+ address', 'sakura'),/*G+地址*/
|
||||
'desc' => __('G+ address', 'sakura'),
|
||||
'id' => 'googleplus',
|
||||
'std' => '',
|
||||
'type' => 'text');
|
||||
|
||||
*/
|
||||
$options[] = array(
|
||||
'name' => __('Jianshu', 'sakura'),/*简书*/
|
||||
'desc' => __('Jianshu address', 'sakura'),/*简书地址*/
|
||||
|
@ -6809,7 +6809,8 @@ input[type=radio]:checked:before {
|
||||
.changeSkin-gear {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 5px;
|
||||
left: auto;
|
||||
right: 5px;
|
||||
width: auto;
|
||||
height: auto;
|
||||
z-index: 99;
|
||||
@ -8294,7 +8295,8 @@ td.hljs-ln-numbers {
|
||||
.skin-menu {
|
||||
position: fixed;
|
||||
bottom: 50px;
|
||||
left: 10px;
|
||||
left: auto;
|
||||
right: 10px;
|
||||
height: auto;
|
||||
width: 220px;
|
||||
border-radius: 5px;
|
||||
|
Loading…
Reference in New Issue
Block a user