ÿØÿà JFIF ÿÛ „ ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /var/www/html/thietkeweb2/include/functions/ |
<?php function is_admin(){ $ob_user = new stdClass(); if(isset($_SESSION['token']) and $_SESSION['token']!=''){ $ob_user = JWT::decode($_SESSION['token'], 'NHG#789-2017', array('HS256')); if(isset($ob_user->user_name) && (strpos($ob_user->user_name,"giacbn")!==false)){ return true; } } return false; } function make_order_num(){ return date("Ymdhis").strtoupper(substr(uniqid(sha1(microtime())),0,9)); } function close_popup($text=''){ echo "<!DOCTYPE html><html lang=\"en\"><head><title>Close</title></head><body><script> alert('".$text."'); window.close(); window.opener.location.reload(); </script></body></html>"; exit(); } function close_popup_redirect($text='',$url=''){ echo "<!DOCTYPE html><html lang=\"en\"><head><title>Close</title></head><body><script> alert('".$text."'); window.close(); window.opener.document.location.href = '".$url."'; </script></body></html>"; exit(); } function find_dupicate_char_in_string($string=''){ if(empty($string)){ return ''; } $chars = $string; $arr = str_split($chars); $dups = array(); foreach(array_count_values($arr) as $val => $c){ if($c > 1) $dups[] = $val; } if(!empty($dups)){ $string_version = implode('', $dups); return $string_version; }else{ return ''; } } ?>