-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdist_client.php
More file actions
executable file
·125 lines (117 loc) · 4.13 KB
/
Copy pathdist_client.php
File metadata and controls
executable file
·125 lines (117 loc) · 4.13 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<?php
session_start();
require_once('config.php');
global $config;
global $usingLogin;
global $userQC;
global $outBoundPoint;
global $topPath, $boanEndPoint;
$recommandEnabled = $config->{'usingRecommandLink'};
$icon = $json->{'icon'};
if ($usingLogin && !isset($_SESSION['id'])) {
if ($usingLoginRemoteAPI && $_SERVER['SERVER_NAME'] == $outBoundPoint) {
// Do nothing for remote API login on app.company.com
$redirectUrl = str_replace("4000", "8080", $boanEndPoint);
header('Location: ' . $redirectUrl .'/'. $topPath . '/login.php?redirect='. $_SERVER['PHP_SELF']);
} else {
header('Location: login.php?redirect='. $_SERVER['PHP_SELF']);
}
}
?>
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
<title><?php echo L::client_name ." ". L::app_name ?></title>
<link rel="apple-touch-icon-precomposed" href="./images/<?php echo $icon->{'home'}; ?>">
<!-- font CSS -->
<link rel="stylesheet" href="./font/NotoSans.css">
<!-- select Css -->
<link rel="stylesheet" href="./css/nice-select.css">
<!-- common Css -->
<link rel="stylesheet" href="./css/common.css">
<?php
if (file_exists('../custom/user.css')) {
echo "<link rel=\"stylesheet\" href=\"./custom/user.css\">";
}
?>
</head>
<body>
<!-- wrap -->
<div class="wrap qa_wrap qa_type2"> <!-- (내부)qa_type1, (외부)qa_type2 -->
<div class="header">
<div class="inner">
<h1 class="logo"><a href="#"><?php echo L::client_title ." ". L::app_name ?></a></h1>
</div>
</div>
<div class="container">
<?php
$app_icon_image = "images/SiteIcon.png";
if (file_exists(dirname(__FILE__) . $app_icon_image)) {
?>
<h2 class="stit_icon">
<img src=<?php echo $app_icon_image; ?> width=70 height=70 style="border-radius:6px;border:1px solid #E5E5E5;box-sizing:border-box;"><br />
<?php echo L::title_h2_client; ?>
</h2>
<?php
} else {
?>
<h2 class="stit"><?php echo L::title_h2_client; ?></h2>
<?php
}
?>
<div class="link_os">
<!--
<a href="javascript:passingQueryTo('./android/index.php');"><span class="txt">Android</span></a>
<a href="javascript:passingQueryTo('./ios/index.php');"><span class="txt">iOS</span></a>
-->
<?php if ($usingAndroid) { ?>
<a href="./android/index.php"><span class="txt"><?php echo L::os_android; ?></span></a>
<?php }
if ($usingiOS) { ?>
<a href="./ios/index.php"><span class="txt"><?php echo L::os_ios; ?></span></a>
<?php } ?>
</div>
<?php
$isAdminID = false;
if (isset($_SESSION['id']) && $_SESSION['id'] == $userQC->{'userId'}) {
$isAdminID = true;
}
if ($recommandEnabled && !$isAdminID) {
?>
<div class="btn_area">
<a href="./phpmodules/recommand.php" class="btn_send"><?php echo L::button_link_to_recommand; ?></a>
<!-- <p class="txt_link">(AOS iOS 모둠 페이지)</p> -->
</div>
<?php
}
?>
</div>
</div>
<!-- //wrap -->
<!-- footer -->
<div class="footer">
<div class="inner">
<p class="copyright"><?php echo L::copywrite_years; ?> © <a href="javascript:logout();"><?php echo L::copywrite_company; ?></a></p>
</div>
</div>
<!-- //footer -->
<!-- jquery JS -->
<script src="./js/jquery-3.2.1.min.js"></script>
<!-- select JS -->
<script src="./js/jquery.nice-select.min.js"></script>
<!-- placeholder JS : For ie9 -->
<script src="./plugin/jquery-placeholder/jquery.placeholder.min.js"></script>
<!-- common JS -->
<script src="./js/common.js"></script>
<!-- app dist common for client JS -->
<script src="./js/appDistCommon4client.js?v4"></script>
<!-- ChannelIO 스크립트 -->
<?php
require_once('./phpmodules/ChannelIO.php');
echo generateChannelIOScript();
?>
</body>
</html>