/home/mjc1/public_html/mac_confirm/header.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?
header
("Content-type:text/html;charset=euc-kr");
session_start();
include_once(
"./common.php");

/* jyh µð¹ö±ë ÇÔ¼ö */
function prt($data=null$size=0) {
    
//if (!isdev()) return;
    
ob_start();
    
print_r($data);
    
$content_text ob_get_contents();
    
ob_end_clean();
    
$content_list explode("\n"$content_text);
    
$rows count($content_list);
    
$cols 0;
    foreach (
$content_list as $line) {
        if ((
$col mb_strlen($line)) > $cols) {
            
$cols $col;
            if (
$cols 128$rows++;
        }
    }
    
$rows += 2;
    
$cols += 2;
    if (!
headers_sent()) {
        
header('Content-type: text/html; charset=euc-kr');
    }
    echo 
'<textarea cols="' $cols '" rows="' $rows '"';
    echo 
' style="display:block; margin:0; padding:5px; border:1px solid #999;';
    if (
$size) echo ' width:' $size 'px;';
    echo 
' font-family:Hwsr_9pt, Gulimche; font-size:9pt;">';
    echo 
$content_text;
    echo 
'</textarea>';
}

if(
is_mobile()){
    
$viewport "<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=3.0, minimum-scale=1.0, user-scalable=yes' />";
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <?php echo $viewport;?>
    <meta http-equiv="Content-Type" content="text/html; charset=euc-kr" />
    <title>¿¥Á¦À̼ÒÇÁÆ® - Mac Address °ü¸®</title>
    <script type="text/javascript" src="./js/jquery-1.6.1.min.js"></script>
</head>