<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Traits; use Illuminate\Support\Facades\Session; use ModStart\Core\Input\Request; trait SecurityTrait { private function checkSecuritySecondVerify() { goto vA2Iv; vA2Iv: $mAE70 = modstart_config('Vendor_SecuritySecondVerifyPassword'); goto G_Ulr; Gh6TC: Session::set('Vendor_SecuritySecondVerifyTime', time() + 3600); goto tMCFH; G_Ulr: if (!$mAE70) { return; } goto lQR_d; lQR_d: $mVj5z = intval(Session::get('Vendor_SecuritySecondVerifyTime')); goto C0G6m; C0G6m: if ($mVj5z < time()) { header('Location: ' . modstart_admin_url('security/second_verify', array('redirect' => Request::currentPageUrl()))); die; } goto Gh6TC; tMCFH: } }