Commit 1cdad9ff authored by platyhouse's avatar platyhouse

.

parent ca321762
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
</script> </script>
<?php <?php
$newAppVer = "1.8.0"; $newAppVer = "1.9.0";
{ {
require_once(PLATYFRAMEWORK_SYSTEMDIR . "/platyLibrary/external/simpleHtmlDom/simple_html_dom.php"); require_once(PLATYFRAMEWORK_SYSTEMDIR . "/platyLibrary/external/simpleHtmlDom/simple_html_dom.php");
$package_name = $this->config->mobileapp->packageName; $package_name = $this->config->mobileapp->packageName;
...@@ -18,10 +18,17 @@ $newAppVer = "1.8.0"; ...@@ -18,10 +18,17 @@ $newAppVer = "1.8.0";
else else
$content = file_get_contents($fileName); $content = file_get_contents($fileName);
$html = pty_str_get_html($content, true); $html = pty_str_get_html($content, true);
if (isset($html) && $html) { if (isset($html) && $html) {
foreach ($html->find('div') as $i => $element) {
if ($element->plaintext == "Current Version" || $element->plaintext == "현재 버전") {
$appVersion = trim($element->next_sibling()->plaintext);
}
}
/*
//업체명 파싱 //업체명 파싱
foreach ($html->find('a.primary') as $element) { foreach ($html->find('a.primary') as $element) {
$data['company'] = $element->plaintext; $data['company'] = $element->plaintext;
...@@ -62,11 +69,11 @@ $newAppVer = "1.8.0"; ...@@ -62,11 +69,11 @@ $newAppVer = "1.8.0";
} }
$appVersion = trim($data['version'][0]); $appVersion = trim($data['version'][0]);
*/
if ($newAppVer > $appVersion) if ($newAppVer > $appVersion)
{ {
$needUpdate = true; $needUpdate = true;
} }
// ptyDebug($data);
} }
} }
...@@ -76,7 +83,7 @@ $newAppVer = "1.8.0"; ...@@ -76,7 +83,7 @@ $newAppVer = "1.8.0";
<div class="animated flash alert alert-info alert-dismissible"> <div class="animated flash alert alert-info alert-dismissible">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<h4><i class="icon fa fa-bell"></i> 앱 업데이트 안내 - v<?=$newAppVer?></h4> <h4><i class="icon fa fa-bell"></i> 앱 업데이트 안내 - v<?=$newAppVer?></h4>
새로운 버전이 출시되었습니다. <a href="/admin/support/notice/item/?id=7">이동</a> 하여 가이드에 따라 최신 앱을 등록해 주세요<br> 새로운 버전이 출시되었습니다. <a href="/admin/support/notice/item/?id=8">이동</a> 하여 가이드에 따라 최신 앱을 등록해 주세요<br>
관리자페이지 문의 : 010-7539-7017(매니져) 관리자페이지 문의 : 010-7539-7017(매니져)
</div> </div>
<? } ?> <? } ?>
......
...@@ -206,6 +206,13 @@ namespace platyFramework; ...@@ -206,6 +206,13 @@ namespace platyFramework;
</div> </div>
</div> </div>
<div class="row">
<div class='col-md-9'>
<?= $form->getSelect("카카오톡 공유 방식", "detail_share_kakaotalk_type", array("제목" => 0, "내용" => 1), "", ""); ?>
</div>
</div>
</div> </div>
</div> </div>
<div class="box-footer"> <div class="box-footer">
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<div class="pull-right hidden-xs"> <div class="pull-right hidden-xs">
<!-- <b>Mail to</b> : cpueblo@platyhouse.com, http://www.platyhouse.com--> <!-- <b>Mail to</b> : cpueblo@platyhouse.com, http://www.platyhouse.com-->
</div> </div>
<strong><a href="http://platyhouse.com/"><?=$this->config->system->appName?> Administrator</a>. 관리자페이지 문의 : 010-7539-7017(매니져). </strong> storyShare PlatyFramework v1.3.1 All rights reserved. <strong><a href="http://platyhouse.com/"><?=$this->config->system->appName?> Administrator</a>. 관리자페이지 문의 : 010-7539-7017(매니져). </strong> storyShare PlatyFramework v1.3.2 All rights reserved.
</footer> </footer>
<div class="modal fade" id="removeDialog"> <div class="modal fade" id="removeDialog">
<div class="modal-dialog"> <div class="modal-dialog">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment