/home/mjc1/public_html/onlinecs/mobile/checkLicenses.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?
include_once("./_common.php");
$charSetEncoding "set names utf8";      
mysql_query($charSetEncoding);

$checkSql "SELECT count(*) as Cnt FROM options WHERE optname = '스마트폰접속만료일'";
$result mysql_query($checkSql);
$checkLicenses mysql_fetch_array($result);
if(
$checkLicenses['Cnt'] === 0){
    echo 
"<script>alert('천년경영CS 를(을) 최신버전으로 업데이트 후 사용하세요.');location.href = './index.php';</script>";
}
$sql "SELECT usesmartphone FROM customer WHERE loginid = '{$id}'";
$result mysql_query($sql);
$userLicenses mysql_fetch_array($result);    
if(
$userLicenses['usesmartphone'] == 0){
    echo 
"<script>alert('접속권한이 없습니다 발주처에 문의하세요.');location.href = './index.php';</script>";
}
?>