alarm-ver.1.1.1/ 000755 000765 000024 00000000000 14501327122 013334 5 ustar 00pcy staff 000000 000000 alarm-ver.1.1.1/._.DS_Store 000644 000765 000024 00000000170 14501327301 015231 0 ustar 00pcy staff 000000 000000 Mac OS X 2 F x @ ATTR x x alarm-ver.1.1.1/PaxHeader/.DS_Store 000644 000765 000024 00000000321 14501327301 016763 x ustar 00pcy staff 000000 000000 30 mtime=1694871233.538006403
24 SCHILY.fflags=hidden
85 LIBARCHIVE.xattr.com.apple.FinderInfo=ICAgICAgICBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
70 SCHILY.xattr.com.apple.FinderInfo= @
alarm-ver.1.1.1/.DS_Store 000644 000765 000024 00000014004 14501327301 015015 0 ustar 00pcy staff 000000 000000 Bud1
1Scomp
m o dlg1Scomp Nช m o dmoDDblob g{้๒ZลA m o dmodDblob g{้๒ZลA m o dph1Scomp t h e m ebwspblob นbplist00ึ ]ShowStatusBar[ShowToolbar[ShowTabView_ContainerShowSidebar\WindowBounds[ShowSidebar _{{526, 278}, {1050, 638}} #/;R_klmno
t h e m elg1Scomp ^ t h e m emoDDblob ๏ฐ๛๒ZลA t h e m emodDblob ๏ฐ๛๒ZลA t h e m eph1Scomp @ t h e m evSrnlong @ @ @ @ E DSDB ` @ @ @ alarm-ver.1.1.1/theme/ 000755 000765 000024 00000000000 14501327167 014447 5 ustar 00pcy staff 000000 000000 alarm-ver.1.1.1/mod/ 000755 000765 000024 00000000000 14501327127 014120 5 ustar 00pcy staff 000000 000000 alarm-ver.1.1.1/mod/._.DS_Store 000644 000765 000024 00000000170 14501327127 016016 0 ustar 00pcy staff 000000 000000 Mac OS X 2 F x @ ATTR x x alarm-ver.1.1.1/mod/PaxHeader/.DS_Store 000644 000765 000024 00000000317 14501327127 017555 x ustar 00pcy staff 000000 000000 28 mtime=1694871127.9708103
24 SCHILY.fflags=hidden
85 LIBARCHIVE.xattr.com.apple.FinderInfo=ICAgICAgICBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
70 SCHILY.xattr.com.apple.FinderInfo= @
alarm-ver.1.1.1/mod/.DS_Store 000644 000765 000024 00000014004 14501327127 015602 0 ustar 00pcy staff 000000 000000 Bud1 mbwspblob a l a r mbwspblob ปbplist00ึ ]ShowStatusBar[ShowToolbar[ShowTabView_ContainerShowSidebar\WindowBounds[ShowSidebar _{{-1747, 433}, {1050, 638}} #/;R_klmno
a l a r mlg1Scomp 6ฆ a l a r mmoDDblob dส๒ZลA a l a r mmodDblob dส๒ZลA a l a r mph1Scomp a l a r mvSrnlong @ @ @ @ E DSDB ` @ @ @ alarm-ver.1.1.1/mod/alarm/ 000705 000765 000024 00000000000 14501327024 015203 5 ustar 00pcy staff 000000 000000 alarm-ver.1.1.1/mod/alarm/._.DS_Store 000644 000765 000024 00000000170 14501327024 017106 0 ustar 00pcy staff 000000 000000 Mac OS X 2 F x @ ATTR x x alarm-ver.1.1.1/mod/alarm/PaxHeader/.DS_Store 000644 000765 000024 00000000321 14501327024 020640 x ustar 00pcy staff 000000 000000 30 mtime=1694871060.785942316
24 SCHILY.fflags=hidden
85 LIBARCHIVE.xattr.com.apple.FinderInfo=ICAgICAgICBAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
70 SCHILY.xattr.com.apple.FinderInfo= @
alarm-ver.1.1.1/mod/alarm/.DS_Store 000644 000765 000024 00000014004 14501327024 016672 0 ustar 00pcy staff 000000 000000 Bud1 r o l l e r
c o n t r o l l e rlg1Scomp
๚
c o n t r o l l e rmoDDblob ๘4ำฤA
c o n t r o l l e rmodDblob ๘4ำฤA
c o n t r o l l e rph1Scomp l i blg1Scomp l i bmoDDblob EภีฤA l i bmodDblob EภีฤA l i bph1Scomp 0
m a n a g e . s e tlg1Scomp
m a n a g e . s e tmoDDblob ๘4ำฤA
m a n a g e . s e tmodDblob ๘4ำฤA
m a n a g e . s e tph1Scomp @ @ @ @ E DSDB ` @ @ @ alarm-ver.1.1.1/mod/alarm/manage.set/ 000705 000765 000024 00000000000 14375431160 017233 5 ustar 00pcy staff 000000 000000 alarm-ver.1.1.1/mod/alarm/controller/ 000705 000765 000024 00000000000 14375431160 017374 5 ustar 00pcy staff 000000 000000 alarm-ver.1.1.1/mod/alarm/lib/ 000705 000765 000024 00000000000 14376644412 015766 5 ustar 00pcy staff 000000 000000 alarm-ver.1.1.1/mod/alarm/lib/config.set.php 000705 000765 000024 00000001656 14375431160 020542 0 ustar 00pcy staff 000000 000000 'alarm', // ๋ชจ๋ ์๋ณ๊ฐ (๋ชจ๋ ๋๋ ํ ๋ฆฌ๋ช
)
'title' => '์๋ฆผ ๋ชจ๋' // ๋ชจ๋ ๋ช
์นญ
);
////////////////////////////////////////////////////
//
// Module ์์
//
////////////////////////////////////////////////////
define('MOD_ALARM', $MODULE_ALARM_CONF['dir']); // Module ๋ช
์นญ
define('MOD_ALARM_DIR', PH_MOD_DIR.'/'.$MODULE_ALARM_CONF['dir']); // Module ๊ฒฝ๋ก
define('MOD_ALARM_PATH', PH_MOD_PATH.'/'.$MODULE_ALARM_CONF['dir']); // Module PHP ๊ฒฝ๋ก
define('MOD_ALARM_THEME_DIR', PH_THEME_DIR.'/mod-'.$MODULE_ALARM_CONF['dir']); // Module Theme PHP ๊ฒฝ๋ก
define('MOD_ALARM_THEME_PATH', PH_THEME_PATH.'/mod-'.$MODULE_ALARM_CONF['dir']); // Module Theme PHP ๊ฒฝ๋ก
Func::define_javascript('MOD_ALARM_DIR', MOD_ALARM_DIR);
alarm-ver.1.1.1/mod/alarm/lib/controller.class.php 000705 000765 000024 00000001115 14500740303 021750 0 ustar 00pcy staff 000000 000000 configure();
if (method_exists($run, 'func') !== false) {
$run->func();
}
$run->init();
}
}
alarm-ver.1.1.1/mod/alarm/lib/lib.inc.php 000705 000765 000024 00000004640 14463463012 020014 0 ustar 00pcy staff 000000 000000 query("show columns from {$sql->table("mod:alarm")} like 'hash'", []);
if ($sql->getcount() < 1) $sql->query("alter table {$sql->table("mod:alarm")} add column hash varchar(255) default null", []);
$sql->query("update {$sql->table("mod:alarm")} set hash=concat('".Func::make_random_char()."', idx) where (from_mb_idx=:col1 or to_mb_idx=:col1) and (hash is null or hash='')", array(MB_IDX));
}
// ์๋ก์ด ์๋ฆผ ์นด์ดํ
public function get_new_count()
{
$sql = new Pdosql();
$total_count = 0;
if (IS_MEMBER) {
$sql->query(
"
select count(*) as total
from {$sql->table("mod:alarm")}
where to_mb_idx=:col1 and chked='N'
",
array(
MB_IDX
)
);
$total_count = $sql->fetch('total');
}
return $total_count;
}
// ์๋ก์ด ์๋ฆผ ๋ฑ๋ก
public function get_add_alarm($arr)
{
$sql = new Pdosql();
if (!isset($arr['to_mb_idx']) || !$arr['to_mb_idx']) return false;
$qry = array();
// ์์ ์๊ฐ ๋ค์์ธ ๊ฒฝ์ฐ
if (is_array($arr['to_mb_idx'])) {
foreach ($arr['to_mb_idx'] as $key => $value) {
$qry[] = "('".addslashes(Func::make_random_char())."', '".addslashes($arr['msg_from'])."', '".addslashes($arr['from_mb_idx'])."', '".addslashes($value)."', '".addslashes($arr['link'])."', '".addslashes($arr['memo'])."', now())";
}
}
// ์์ ์๊ฐ ํ๋ช
์ธ ๊ฒฝ์ฐ
else {
$qry [] = "('".addslashes(Func::make_random_char())."', '".addslashes($arr['msg_from'])."', '".addslashes($arr['from_mb_idx'])."', '".addslashes($arr['to_mb_idx'])."', '".addslashes($arr['link'])."', '".addslashes($arr['memo'])."', now())";
}
$sql->query(
"
insert into
{$sql->table("mod:alarm")}
(hash, msg_from, from_mb_idx, to_mb_idx, href, memo, regdate)
values
".implode(',', $qry), []
);
}
}
alarm-ver.1.1.1/mod/alarm/controller/received.php 000705 000765 000024 00000003354 14500603765 021705 0 ustar 00pcy staff 000000 000000 layout()->view(MOD_ALARM_THEME_PATH.'/received.tpl.php');
}
public function make()
{
$sql = new Pdosql();
$paging = new Paging();
$Alarm_Library = new Alarm_Library();
$req = Method::request('get', 'page');
Func::getlogin(SET_NOAUTH_MSG);
$sql->query(
$paging->query(
"
select *
from {$sql->table("mod:alarm")}
where to_mb_idx=:col1
order by idx desc
",
array(
MB_IDX
)
)
);
$print_arr = array();
if ($sql->getcount() > 0) {
do {
$sql->nl2br = 1;
$sql->specialchars = 1;
$arr = $sql->fetchs();
$sql->nl2br = 0;
$sql->specialchars = 0;
$arr['memo'] = $sql->fetch('memo');
$arr['no'] = $paging->getnum();
$arr['regdate'] = Func::datetime($arr['regdate']);
$arr[0]['view-link'] = '?mode=read&hash='.$arr['hash'];
$print_arr[] = $arr;
} while ($sql->nextRec());
}
$this->set('total_new_alarm', Func::number($Alarm_Library->get_new_count()));
$this->set('print_arr', $print_arr);
$this->set('pagingprint', $paging->pagingprint(''));
$this->set('page', $req['page']);
}
}
alarm-ver.1.1.1/mod/alarm/controller/read.php 000705 000765 000024 00000003416 14463462331 021031 0 ustar 00pcy staff 000000 000000 layout()->view();
}
public function make()
{
$sql = new Pdosql();
$req = Method::request('get', 'hash, allcheck, page');
Func::getlogin(SET_NOAUTH_MSG);
// ์ ์ฒด ์ฝ์ ์ฒ๋ฆฌ
if ($req['allcheck'] == 1) {
$sql->query(
"
update
{$sql->table("mod:alarm")} set
chked='Y'
where to_mb_idx=:col1
",
array(
MB_IDX
)
);
Func::location('?page='.$req['page']);
}
// ๋จ์ผ ์ฝ์ ์ฒ๋ฆฌ
else {
$sql->query(
"
select *
from {$sql->table("mod:alarm")}
where to_mb_idx=:col1 and hash=:col2
",
array(
MB_IDX, $req['hash']
)
);
if ($sql->getcount() < 1) Func::err_back('์๋ฆผ์ด ์กด์ฌํ์ง ์์ต๋๋ค.');
$arr = $sql->fetchs();
$sql->specialchars = 0;
$arr['href'] = $sql->fetch('href');
$sql->query(
"
update
{$sql->table("mod:alarm")} set
chked='Y'
where to_mb_idx=:col1 and hash=:col2
",
array(
MB_IDX, $req['hash']
)
);
Func::location(PH_DIR.$arr['href']);
}
}
}
alarm-ver.1.1.1/mod/alarm/manage.set/manage.js 000705 000765 000024 00000000000 14375431160 021012 0 ustar 00pcy staff 000000 000000 alarm-ver.1.1.1/mod/alarm/manage.set/manage.css 000705 000765 000024 00000000000 14375431160 021166 0 ustar 00pcy staff 000000 000000 alarm-ver.1.1.1/mod/alarm/manage.set/module.info.xml 000705 000765 000024 00000000415 14500604014 022165 0 ustar 00pcy staff 000000 000000
No. | ์ถ์ฒ | ๋ด์ฉ | ์์ ์๊ฐ |
---|---|---|---|
'.$list['memo'].''; } else { echo $list['memo']; } ?> | |||