diff --git a/footer.php b/footer.php index 4303f6f..6f35a57 100644 --- a/footer.php +++ b/footer.php @@ -157,7 +157,6 @@ data-fixed="true" data-theme="orange"> - diff --git a/functions.php b/functions.php index 3e8fb79..b192a8a 100644 --- a/functions.php +++ b/functions.php @@ -1627,7 +1627,7 @@ function change_avatar($avatar){ preg_match('/:\"([^\"]*)\"/i',$qqavatar,$matches); return '😀'; }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 '😀'; diff --git a/inc/api.php b/inc/api.php index 2205345..0c1f8fd 100644 --- a/inc/api.php +++ b/inc/api.php @@ -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); diff --git a/layouts/imgbox.php b/layouts/imgbox.php index 2393adf..532b181 100644 --- a/layouts/imgbox.php +++ b/layouts/imgbox.php @@ -58,9 +58,6 @@
  • - -
  • -
  • diff --git a/options.php b/options.php index a962c91..56b8e4e 100644 --- a/options.php +++ b/options.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'),/*简书地址*/ diff --git a/style.css b/style.css index 6da0bcc..fcc9ce5 100644 --- a/style.css +++ b/style.css @@ -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;