芝麻web文件管理V1.00
编辑当前文件:/home/digitalh/network.digitalhubbd.com/pages/browser_check.php
logged_in) { if (Registry::load('config')->csrf_token) { $redirect = false; } } if ($redirect) { redirect(); } if (isset($_GET['user_tkn'])) { $width = 300; $height = 60; $image = imagecreatetruecolor($width, $height); $background_color = imagecolorallocate($image, 22, 27, 34); $text_color = imagecolorallocate($image, 255, 255, 255); imagefilledrectangle($image, 0, 0, $width, $height, $background_color); $characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; $text = substr(str_shuffle($characters), 0, 6); update_user_csrf_token(['force_request' => true, 'token_code' => $text]); $font_size = 35; $font_path = 'assets/thirdparty/fonts/vademecum.regular.ttf'; $bbox = imagettfbbox($font_size, 0, $font_path, $text); $x = (int) (($width - ($bbox[2] - $bbox[0])) / 2); $y = (int) (($height + ($bbox[1] - $bbox[7])) / 2); imagettftext($image, $font_size, 0, $x, $y, $text_color, $font_path, $text); header('Content-Type: image/png'); imagepng($image); imagedestroy($image); exit; } ?>
browser_check_title ?>
site_url; if (isset($_GET['redirect'])) { $_GET['redirect'] = htmlspecialchars($_GET['redirect']); $form_url .= $_GET['redirect']; } ?>
token_check_input_text ?>