zsfErr('There is not Font file <span style="color: #c00; font-weight: bold">han</span>.', 30); } unset($zsfHanFont); $imgFontEngWidth = array_merge($imgFontEngWidth, $imgFontHanWidth); } # 함수 : 디렉토리 존재 여부 체크 및 권한 체크 함수 function zsfDirChk($dir) { if (!is_dir($dir)) { zsfErr('There is not directory <span style="color: #c00; font-weight: bold">' . $dir . '</span>.', 40); } elseif (substr(sprintf('%o', fileperms($dir)), -4) < 755) { zsfErr('Directory <span style="color: #c00; font-weight: bold">' . $dir . '</span> must be 755 permission.', 50); } } # kevinpark1981@gmail.com 경로설정 zsfDirChk('../../../../data/zmLogConnect'); # 세션 파일 저장 $zsfFp = fopen('../../../../data/zmLogConnect/' . zsfSessId . '.php', 'w+'); fwrite($zsfFp, '<?php $zsfQ=\'' . $zsfQ . '\'; $zsfA=\'' . $zsfA . '\'; $zsfN=\'' . $zsfN . '\';?>'); fclose($zsfFp); # Passed, Denied 디렉토리 존재여부 체크 및 권한 체크 # kevinpark1981@gmail.com zsfCleanFile('../../../../data/zmLogConnect/', 1); /* 이미지 출력 */ $thisZsfCfg['logoW'] = isset($zsfCfg['zsfLogo']) && $zsfCfg['zsfLogo'] ? 32 : 0; # 로고 폭(여백 포함) $thisZsfCfg['imH'] = str_replace('px', '', substr($thisZsfCfg['fontName'], -4)) * 1; # 원래 이미지 높이 $thisZsfCfg['ratio'] = round($thisZsfCfg['imH'] / $thisZsfCfg['height'], 2);
} else { zsfErr('There is not Font file <span style="color: #c00; font-weight: bold">han</span>.', 30); } unset($zsfHanFont); $imgFontEngWidth = array_merge($imgFontEngWidth, $imgFontHanWidth); } # 함수 : 디렉토리 존재 여부 체크 및 권한 체크 함수 function zsfDirChk($dir) { if (!is_dir($dir)) { zsfErr('There is not directory <span style="color: #c00; font-weight: bold">' . $dir . '</span>.', 40); } elseif (substr(sprintf('%o', fileperms($dir)), -4) < 755) { zsfErr('Directory <span style="color: #c00; font-weight: bold">' . $dir . '</span> must be 755 permission.', 50); } } zsfDirChk(zsfAr . 'Log/Connect'); # 세션 파일 저장 $zsfFp = fopen('Log/Connect/' . zsfSessId . '.php', 'w+'); fwrite($zsfFp, '<?php $zsfQ=\'' . $zsfQ . '\'; $zsfA=\'' . $zsfA . '\'; $zsfN=\'' . $zsfN . '\';?>'); fclose($zsfFp); # Passed, Denied 디렉토리 존재여부 체크 및 권한 체크 zsfCleanFile('Log/Connect/', 1); /* 이미지 출력 */ $thisZsfCfg['logoW'] = isset($zsfCfg['zsfLogo']) && $zsfCfg['zsfLogo'] ? 32 : 0; # 로고 폭(여백 포함) $thisZsfCfg['imH'] = str_replace('px', '', substr($thisZsfCfg['fontName'], -4)) * 1; # 원래 이미지 높이 $thisZsfCfg['ratio'] = round($thisZsfCfg['imH'] / $thisZsfCfg['height'], 2); # 축소비율