Skip to content

Commit

Permalink
2.4.6
Browse files Browse the repository at this point in the history
  • Loading branch information
ziggerFramework committed Aug 6, 2023
1 parent 0667e01 commit 8c58999
Show file tree
Hide file tree
Showing 127 changed files with 5,691 additions and 289 deletions.
20 changes: 19 additions & 1 deletion app/member.php
Original file line number Diff line number Diff line change
Expand Up @@ -439,13 +439,31 @@ private function get_mdf()
//
private function get_lv()
{
global $MB;
global $MB, $req;

$sql = new Pdosql();
$uploader = new Uploader();

if ($MB['adm'] == 'Y') Valid::error('', '최고 관리자는 탈퇴할 수 없습니다.');

// 비밀번호 입력 되었는지 검사
if (!$req['pwd'] || !$req['pwd2']) Valid::error('pwd', '탈퇴를 위해 비밀번호를 입력하세요.');
if ($req['pwd'] != $req['pwd2']) Valid::error('pwd2', '비밀번호와 비밀번호 확인이 일치하지 않습니다.');

// 패스워드가 올바른지 검사
$sql->query(
"
select *
from {$sql->table("member")}
where mb_idx=:col1 and mb_id=:col2 and mb_pwd={$sql->set_password($req['pwd'])} and mb_dregdate is null
",
array(
MB_IDX, $MB['id']
)
);

if ($sql->getcount() < 1) Valid::error('pwd', '비밀번호가 올바르지 않습니다.');

// delete
$sql->query(
"
Expand Down
Binary file modified install/html/images/logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion install/html/install.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ html{background: #f7f7f7;}
#inst-wrap{width: 700px;position: relative;margin: 100px auto 0 auto;background: #ffffff;box-shadow: 0 0 30px rgba(0,0,0,0.05);padding: 40px;border-radius: 5px;box-sizing: border-box;border: 1px solid #eaeaea;}
#inst-wrap .tit-wrap{position: relative;margin-bottom: 40px;}
#inst-wrap .cont-wrap{}
#inst-wrap h1 img{display: inline-block;vertical-align: middle;}
#inst-wrap h1 img{display: inline-block;height: 35px;vertical-align: middle;width: auto;}
#inst-wrap h1 em{display: inline-block;vertical-align: middle;margin-left: 20px;font-size: 20px;color: #000000;letter-spacing: -1px;}
#inst-wrap h2{position: absolute;top: -60px;right: -60px;width: 80px;height: 80px;line-height: 80px;text-align: center;border-radius: 50%;color: #ffffff;background: #000;font-size: 13px;background: #444263;font-weight: normal;}
#inst-wrap h2 strong{color: #ffffff;margin-left: 5px;}
Expand Down
20 changes: 10 additions & 10 deletions install/scheme/core.mysql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,9 @@ CREATE TABLE IF NOT EXISTS `{$req['pfx']}config` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

INSERT INTO `{$req['pfx']}config` (`cfg_type`, `cfg_key`, `cfg_value`, `cfg_regdate`) VALUES
('engine', 'title', 'Zigger Website', now()),
('engine', 'title', 'zigger Website', now()),
('engine', 'domain', '{$protocol}{$_SERVER['HTTP_HOST']}{$realdir}', now()),
('engine', 'description', 'Zigger Website Description', now()),
('engine', 'description', 'zigger Website Description', now()),
('engine', 'use_mobile', 'Y', now()),
('engine', 'use_emailchk', 'Y', now()),
('engine', 'use_recaptcha', '', now()),
Expand All @@ -205,13 +205,13 @@ INSERT INTO `{$req['pfx']}config` (`cfg_type`, `cfg_key`, `cfg_value`, `cfg_regd
('engine', 'logo', '', now()),
('engine', 'mb_division', '최고관리자|관리자|게시판관리자|정회원|정회원|정회원|정회원|정회원|일반회원|비회원', now()),
('engine', 'og_type', 'website', now()),
('engine', 'og_title', 'Zigger Website', now()),
('engine', 'og_description', 'Zigger Website Description', now()),
('engine', 'og_title', 'zigger Website', now()),
('engine', 'og_description', 'zigger Website Description', now()),
('engine', 'og_image', '', now()),
('engine', 'og_url', '{$protocol}{$_SERVER['HTTP_HOST']}{$realdir}', now()),
('engine', 'naver_verific', '', now()),
('engine', 'google_verific', '', now()),
('engine', 'theme', 'zigger-simple', now()),
('engine', 'theme', 'zigger-basic', now()),
('engine', 'use_smtp', 'N', now()),
('engine', 'smtp_server', '', now()),
('engine', 'smtp_port', '', now()),
Expand Down Expand Up @@ -271,13 +271,13 @@ CREATE TABLE IF NOT EXISTS `{$req['pfx']}sitemap` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

INSERT INTO `{$req['pfx']}sitemap` (`idx`, `caidx`, `title`, `href`, `visible`, `children`) VALUES
(1, '0001', 'About zigger', 'sub/view/contents', 'Y', 2),
(2, '00010001', 'about zigger', 'sub/view/contents', 'Y', 0),
(3, '00010002', 'zigger Manager', 'sub/view/manager', 'Y', 0),
(4, '0002', 'Board', 'sub/board/news', 'Y', 2),
(1, '0001', 'Introduce', 'sub/view/contents', 'Y', 2),
(2, '00010001', 'zigger 소개', 'sub/view/contents', 'Y', 0),
(3, '00010002', 'Manager 소개', 'sub/view/manager', 'Y', 0),
(4, '0002', 'Community', 'sub/board/news', 'Y', 2),
(5, '00020001', 'News', 'sub/board/news', 'Y', 0),
(6, '00020002', 'Freeboard', 'sub/board/free', 'Y', 0),
(7, '0003', 'Contact us', 'sub/view/contactus', 'Y', 0);
(7, '0003', 'Contact', 'sub/view/contactus', 'Y', 0);

CREATE TABLE IF NOT EXISTS `{$req['pfx']}visitcount` (
`idx` int(11) NOT NULL auto_increment,
Expand Down
20 changes: 11 additions & 9 deletions install/scheme/modules.mysql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -279,10 +279,11 @@ CREATE TABLE IF NOT EXISTS `{$req['pfx']}mod_contents` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
INSERT INTO `{$req['pfx']}mod_contents` (`idx`, `data_key`, `title`, `html`, `mo_html`, `use_mo_html`, `regdate`) VALUES
(1, 'sample', 'About zigger', '<p><span style=\"font-size:38px;letter-spacing:-2px;color:#333\"><img src=\"{$realdir}/theme/zigger-simple/layout/images/logo.png\" />&nbsp;를 선택해&nbsp;주셔서 감사합니다!</span></p>\r\n\r\n<div style=\"margin:30px 0;border-radius:10px;border:1px solid #ddd;padding:45px;background:#f7f7f7;line-height:30px;letter-spacing:-1px;\"><span style=\"color:#666666;letter-spacing:-1px;\"><span style=\"font-size:15px;letter-spacing:-1px;\">zigger는 MVC PHP로 개발된 CMS Framework 입니다.<br />\r\nMVC 로직을 통해 빠르게 반응형 웹사이트를 구축할 수 있으며,<br />\r\nzigger 공식 사이트에서 배포하는 다양한 모듈을 Core에 추가하여 원하는 기능을 쉽고 간편하게 구축할 수 있습니다.<br />\r\n<br />\r\n공식 웹사이트(https://www.zigger.net)를 통해 지속적인 업데이트를 지원 받으실&nbsp;수 있으며,<br />\r\n이용 가이드 및 다양한 소식을 빠르게 확인할 수 있습니다.<br />\r\n<br />\r\nzigger는 GNU 라이선스가 적용되어 있어 영리 및 비영리 웹사이트 구축시 자유롭게 사용할 수 있습니다.<br />\r\n다만, 무단 수정 및 배포는 금지되어 있으므로, zigger가 설치된 ROOT 리렉토리 내 LICENSE 파일을 확인 하시길 바랍니다.<br />\r\n<br />\r\n공식 웹사이트는 아래 버튼을 클릭하여 접속 가능합니다.<br />\r\nzigger를 설치해 주셔서 감사합니다.</span></span><br />\r\n<br />\r\n<strong><span style=\"font-size:12px;letter-spacing:-1px;\">이 웹페이지는 콘텐츠 모듈 ( &#39;Manage &gt; 모듈 &gt; 콘텐츠&#39; ) 로 제작된 페이지입니다. Manage에서 본 샘플 웹페이지를 확인해 보세요.</span></strong></div>\r\n\r\n<p><a href=\"https://www.zigger.net/\" style=\"display:block;margin:0 auto;line-height:50px;border-radius:4px;text-align:center;width:260px;padding:0 20px;background:#564bbe;font-size:16px;color:#fff;letter-spacing:-1px;\" target=\"_blank\">zigger 공식 사이트 이동</a></p>\r\n\r\n<p>&nbsp;</p>\r\n', '<p><span style=\"letter-spacing: -1px; font-size:22px;color: rgb(51, 51, 51);\"><img src=\"{$realdir}/theme/zigger-simple/layout/images/logo.png\" style=\"width: auto;height:16px;\" />&nbsp;를 선택해&nbsp;주셔서 감사합니다!</span></p>\r\n\r\n<div style=\"margin:20px 0;border-radius:10px;border:1px solid #ddd;padding:15px;background:#f7f7f7;line-height:20px;letter-spacing:-1px;\"><span style=\"font-size:12px;\"><span style=\"color:#666666;letter-spacing:-1px;\"><span style=\"letter-spacing: -1px;\">zigger는 MVC PHP로 개발된 CMS Framework 입니다.<br />\r\nMVC 로직을 통해 빠르게 반응형 웹사이트를 구축할 수 있으며,<br />\r\nzigger 공식 사이트에서 배포하는 다양한 모듈을 Core에 추가하여 원하는 기능을 쉽고 간편하게 구축할 수 있습니다.<br />\r\n<br />\r\n공식 웹사이트(https://www.zigger.net)를 통해 지속적인 업데이트를 지원 받으실&nbsp;수 있으며,<br />\r\n이용 가이드 및 다양한 소식을 빠르게 확인할 수 있습니다.<br />\r\n<br />\r\nzigger는 GNU 라이선스가 적용되어 있어 영리 및 비영리 웹사이트 구축시 자유롭게 사용할 수 있습니다.<br />\r\n다만, 무단 수정 및 배포는 금지되어 있으므로, zigger가 설치된 ROOT 리렉토리 내 LICENSE 파일을 확인 하시길 바랍니다.<br />\r\n<br />\r\n공식 웹사이트는 아래 버튼을 클릭하여 접속 가능합니다.<br />\r\nzigger를 설치해 주셔서 감사합니다.<br />\r\n<br />\r\n<strong><span style=\"font-size:12px;letter-spacing:-1px;\">이 웹페이지는 콘텐츠 모듈 ( &#39;Manage &gt; 모듈 &gt; 콘텐츠&#39; ) 로 제작된 페이지입니다. Manage에서 본 샘플 웹페이지를 확인해 보세요.</span></strong></span></span></span></div>\r\n\r\n<p><a href=\"https://www.zigger.net/\" style=\"display:block;margin:0 auto;line-height:40px;border-radius:4px;text-align:center;width:160px;padding:0 10px;background:#564bbe;font-size:13px;color:#fff;letter-spacing:-1px;\" target=\"_blank\">zigger 공식 사이트 이동</a></p>\r\n\r\n<p>&nbsp;</p>\r\n', 'Y', now());
(1, 'sample', 'About zigger', '<p><span style=\"font-size:38px;letter-spacing:-2px;color:#333\"><img src=\"{$realdir}/theme/zigger-basic/layout/images/logo.png\" style=\"width: 110px; height: 30px;\" />&nbsp;를 선택해&nbsp;주셔서 감사합니다!</span></p>\r\n\r\n<div style=\"margin:30px 0;border-radius:10px;border:1px solid #ddd;padding:45px;background:#f7f7f7;line-height:30px;letter-spacing:-1px;\"><span style=\"color:#666666;letter-spacing:-1px;\"><span style=\"font-size:15px;letter-spacing:-1px;\">zigger는 MVC PHP로 개발된 CMS Framework 입니다.<br />\r\nMVC 로직을 통해 빠르게 반응형 웹사이트를 구축할 수 있으며,<br />\r\nzigger 공식 사이트에서 배포하는 다양한 모듈을 Core에 추가하여 원하는 기능을 쉽고 간편하게 구축할 수 있습니다.<br />\r\n<br />\r\n공식 웹사이트(https://www.zigger.net)를 통해 지속적인 업데이트를 지원 받으실&nbsp;수 있으며,<br />\r\n이용 가이드 및 다양한 소식을 빠르게 확인할 수 있습니다.<br />\r\n<br />\r\nzigger는 GNU 라이선스가 적용되어 있어 영리 및 비영리 웹사이트 구축시 자유롭게 사용할 수 있습니다.<br />\r\n다만, 무단 수정 및 배포는 금지되어 있으므로, zigger가 설치된 ROOT 리렉토리 내 LICENSE 파일을 확인 하시길 바랍니다.<br />\r\n<br />\r\n공식 웹사이트는 아래 버튼을 클릭하여 접속 가능합니다.<br />\r\nzigger를 설치해 주셔서 감사합니다.</span></span><br />\r\n<br />\r\n<strong><span style=\"font-size:12px;letter-spacing:-1px;\">이 웹페이지는 콘텐츠 모듈 ( &#39;Manage &gt; 모듈 &gt; 콘텐츠&#39; ) 로 제작된 페이지입니다. Manage에서 본 샘플 웹페이지를 확인해 보세요.</span></strong></div>\r\n\r\n<p><a href=\"https://www.zigger.net/\" style=\"display:block;margin:0 auto;line-height:50px;border-radius:4px;text-align:center;width:260px;padding:0 20px;background:#564bbe;font-size:16px;color:#fff;letter-spacing:-1px;\" target=\"_blank\">zigger 공식 사이트 이동</a></p>\r\n\r\n<p>&nbsp;</p>\r\n', '<p><span style=\"letter-spacing: -1px; font-size:22px;color: rgb(51, 51, 51);\"><img src=\"{$realdir}/theme/zigger-basic/layout/images/logo.png\" style=\"width: 60px; height: 16px;\" />&nbsp;를 선택해&nbsp;주셔서 감사합니다!</span></p>\r\n\r\n<div style=\"margin:20px 0;border-radius:10px;border:1px solid #ddd;padding:15px;background:#f7f7f7;line-height:20px;letter-spacing:-1px;\"><span style=\"font-size:12px;\"><span style=\"color:#666666;letter-spacing:-1px;\"><span style=\"letter-spacing: -1px;\">zigger는 MVC PHP로 개발된 CMS Framework 입니다.<br />\r\nMVC 로직을 통해 빠르게 반응형 웹사이트를 구축할 수 있으며,<br />\r\nzigger 공식 사이트에서 배포하는 다양한 모듈을 Core에 추가하여 원하는 기능을 쉽고 간편하게 구축할 수 있습니다.<br />\r\n<br />\r\n공식 웹사이트(https://www.zigger.net)를 통해 지속적인 업데이트를 지원 받으실&nbsp;수 있으며,<br />\r\n이용 가이드 및 다양한 소식을 빠르게 확인할 수 있습니다.<br />\r\n<br />\r\nzigger는 GNU 라이선스가 적용되어 있어 영리 및 비영리 웹사이트 구축시 자유롭게 사용할 수 있습니다.<br />\r\n다만, 무단 수정 및 배포는 금지되어 있으므로, zigger가 설치된 ROOT 리렉토리 내 LICENSE 파일을 확인 하시길 바랍니다.<br />\r\n<br />\r\n공식 웹사이트는 아래 버튼을 클릭하여 접속 가능합니다.<br />\r\nzigger를 설치해 주셔서 감사합니다.<br />\r\n<br />\r\n<strong><span style=\"font-size:12px;letter-spacing:-1px;\">이 웹페이지는 콘텐츠 모듈 ( &#39;Manage &gt; 모듈 &gt; 콘텐츠&#39; ) 로 제작된 페이지입니다. Manage에서 본 샘플 웹페이지를 확인해 보세요.</span></strong></span></span></span></div>\r\n\r\n<p><a href=\"https://www.zigger.net/\" style=\"display:block;margin:0 auto;line-height:40px;border-radius:4px;text-align:center;width:160px;padding:0 10px;background:#564bbe;font-size:13px;color:#fff;letter-spacing:-1px;\" target=\"_blank\">zigger 공식 사이트 이동</a></p>\r\n\r\n<p>&nbsp;</p>\r\n', 'Y', now());
CREATE TABLE IF NOT EXISTS `{$req['pfx']}mod_message` (
`idx` int(11) NOT NULL auto_increment,
`hash` varchar(255) default NULL,
`from_mb_idx` int(11) NOT NULL,
`to_mb_idx` int(11) NOT NULL,
`parent_idx` int(11) default NULL,
Expand All @@ -295,14 +296,15 @@ CREATE TABLE IF NOT EXISTS `{$req['pfx']}mod_message` (
ALTER TABLE `{$req['pfx']}mod_message` ADD INDEX(`from_mb_idx`,`to_mb_idx`,`parent_idx`);
CREATE TABLE IF NOT EXISTS `{$req['pfx']}mod_alarm` (
idx int(11) NOT NULL auto_increment,
msg_from text,
from_mb_idx int(11) default NULL,
to_mb_idx int(11) NOT NULL,
href text,
memo text,
regdate datetime default NULL,
chked char(1) DEFAULT 'N',
`idx` int(11) NOT NULL auto_increment,
`hash` varchar(255) default NULL,
`msg_from` text,
`from_mb_idx` int(11) default NULL,
`to_mb_idx` int(11) NOT NULL,
`href` text,
`memo` text,
`regdate` datetime default NULL,
`chked` char(1) DEFAULT 'N',
PRIMARY KEY (`idx`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
Expand Down
8 changes: 1 addition & 7 deletions layout/css/common.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified layout/images/blank-banner.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified layout/images/blank-tmb.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions lib/controller.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,9 @@ public function get_viewer($tpl)
if (!file_exists($tpl)) Func::core_err('View 파일이 존재하지 않습니다. ('.$tpl.')');

// module view가 요청된 경우 <body>에 class 추가
if (preg_match('/\/theme\/'.$THEME[0].'\/mod-.+?\//', $tpl, $matches)) {
if (preg_match('/\/theme\/'.$CONF['theme'].'\/mod-.+?\//', $tpl, $matches)) {
$mod_name = $matches[0];
$mod_name = str_replace(array('/theme/'.$THEME[0], '/'), array('', ''), $mod_name);
$mod_name = str_replace(array('/theme/'.$CONF['theme'], '/'), array('', ''), $mod_name);
if ($mod_name) Func::add_body_class($mod_name);
}

Expand Down

0 comments on commit 8c58999

Please sign in to comment.