<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Traits; use Illuminate\Support\Facades\Session; use Illuminate\Support\Facades\View; use ModStart\Core\Input\Request; trait SecurityTrait { private function checkSecuritySecondVerify() { goto rSOv1; rSOv1: $QjRRV = modstart_config('Vendor_SecuritySecondVerifyPassword'); goto ye99O; bKMUv: Session::set('Vendor_SecuritySecondVerifyTime', time() + 3600); goto wSQsf; ye99O: if (!$QjRRV) { return; } goto lv9fP; lv9fP: $PNKHK = intval(Session::get('Vendor_SecuritySecondVerifyTime')); goto rjBXe; rjBXe: if ($PNKHK < time()) { header('Location: ' . modstart_admin_url('security/second_verify', array('redirect' => Request::currentPageUrl(), '_is_tab' => View::shared('_isTabQuery')))); die; } goto bKMUv; wSQsf: } }