pull/176/head
Spirit 2019-12-26 19:52:06 +08:00
parent 5157540319
commit 8b77fbd380
6 changed files with 9 additions and 11 deletions

View File

@ -157,7 +157,6 @@
data-fixed="true" data-fixed="true"
data-theme="orange"> data-theme="orange">
</div> </div>
<style>.skin-menu{left:auto;right:10px;}.changeSkin-gear{left:auto;right:5px;}</style>
<?php endif; ?> <?php endif; ?>
</body> </body>
</html> </html>

View File

@ -1627,7 +1627,7 @@ function change_avatar($avatar){
preg_match('/:\"([^\"]*)\"/i',$qqavatar,$matches); 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)">'; 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{ }else{
$iv = SAKURA_VERSION; $iv = str_repeat($sakura_privkey, 2);
$encrypted = openssl_encrypt($qq_number, 'aes-128-cbc', $sakura_privkey, 0, $iv); $encrypted = openssl_encrypt($qq_number, 'aes-128-cbc', $sakura_privkey, 0, $iv);
$encrypted = urlencode(base64_encode($encrypted)); $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)">'; 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)">';

View File

@ -401,7 +401,7 @@ function get_qq_avatar(){
global $sakura_privkey; global $sakura_privkey;
$encrypted=$_GET["qq"]; $encrypted=$_GET["qq"];
if(isset($encrypted)){ if(isset($encrypted)){
$iv = SAKURA_VERSION; $iv = str_repeat($sakura_privkey, 2);
$encrypted = urldecode(base64_decode($encrypted)); $encrypted = urldecode(base64_decode($encrypted));
$qq_number = openssl_decrypt($encrypted, 'aes-128-cbc', $sakura_privkey, 0, $iv); $qq_number = openssl_decrypt($encrypted, 'aes-128-cbc', $sakura_privkey, 0, $iv);
preg_match('/^\d{3,}$/', $qq_number, $matches); preg_match('/^\d{3,}$/', $qq_number, $matches);

View File

@ -58,9 +58,6 @@
<?php if (akina_option('facebook')){ ?> <?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> <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 } ?>
<?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')){ ?> <?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> <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 } ?> <?php } ?>

View File

@ -689,14 +689,14 @@ function optionsframework_options() {
'id' => 'facebook', 'id' => 'facebook',
'std' => '', 'std' => '',
'type' => 'text'); 'type' => 'text');
/*
$options[] = array( $options[] = array(
'name' => __('Google+', 'sakura'), 'name' => __('Google+', 'sakura'),
'desc' => __('G+ address', 'sakura'),/*G+地址*/ 'desc' => __('G+ address', 'sakura'),
'id' => 'googleplus', 'id' => 'googleplus',
'std' => '', 'std' => '',
'type' => 'text'); 'type' => 'text');
*/
$options[] = array( $options[] = array(
'name' => __('Jianshu', 'sakura'),/*简书*/ 'name' => __('Jianshu', 'sakura'),/*简书*/
'desc' => __('Jianshu address', 'sakura'),/*简书地址*/ 'desc' => __('Jianshu address', 'sakura'),/*简书地址*/

View File

@ -6809,7 +6809,8 @@ input[type=radio]:checked:before {
.changeSkin-gear { .changeSkin-gear {
position: fixed; position: fixed;
bottom: 0; bottom: 0;
left: 5px; left: auto;
right: 5px;
width: auto; width: auto;
height: auto; height: auto;
z-index: 99; z-index: 99;
@ -8294,7 +8295,8 @@ td.hljs-ln-numbers {
.skin-menu { .skin-menu {
position: fixed; position: fixed;
bottom: 50px; bottom: 50px;
left: 10px; left: auto;
right: 10px;
height: auto; height: auto;
width: 220px; width: 220px;
border-radius: 5px; border-radius: 5px;