Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
spirit1431007 committed Dec 26, 2019
1 parent 5157540 commit 8b77fbd
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 11 deletions.
1 change: 0 additions & 1 deletion footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ class="aplayer"
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>
2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)">';
Expand Down
2 changes: 1 addition & 1 deletion inc/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 0 additions & 3 deletions layouts/imgbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]/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/[email protected]/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/[email protected]/img/Sakura/images/sns/jianshu.png"/></a></li>
<?php } ?>
Expand Down
6 changes: 3 additions & 3 deletions options.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'),/*简书地址*/
Expand Down
6 changes: 4 additions & 2 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 8b77fbd

Please sign in to comment.