-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
7 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -216,7 +216,7 @@ function insertAttendance($about_position, $greetings, $member_srl=null) | |
$year_month = zDate(date('YmdHis'),"Ym"); | ||
$yesterday = zDate(date("YmdHis",strtotime("-1 day")),"Ymd"); | ||
|
||
//if($_SESSION['is_attended'] == $today) return new Object(-1,'attend_already_checked'); | ||
if($_SESSION['is_attended'] == $today) return new Object(-1,'attend_already_checked'); | ||
|
||
$oModuleModel = getModel('module'); | ||
$config = $oModuleModel->getModuleConfig('attendance'); | ||
|
@@ -300,13 +300,10 @@ function insertAttendance($about_position, $greetings, $member_srl=null) | |
|
||
if($config->continuity_monthly == 'yes') | ||
{ | ||
for($i=1;$i<=12;$i++) | ||
if($continuity->data % 30 === 0) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
bjrambo
Author
Owner
|
||
{ | ||
if($continuity->data==(30*$i)) | ||
{ | ||
$obj->perfect_m = 'Y'; | ||
break; | ||
} | ||
$obj->perfect_m = 'Y'; | ||
break; | ||
} | ||
$continuity->data++; | ||
} | ||
|
@@ -534,7 +531,7 @@ function insertAttendance($about_position, $greetings, $member_srl=null) | |
} | ||
} | ||
|
||
//$_SESSION['is_attended'] = $today; | ||
$_SESSION['is_attended'] = $today; | ||
|
||
/*포인트 추가*/ | ||
if($obj->today_point != 0 && $logged_info->member_srl) | ||
|
@bnu 으흠.. 이렇게 코드를 짰는데, 제가 기억이흐릿한 상태에서 코딩을 진행해서 기억이 안나더군요 ㅠ.ㅠ.
혹시 이 코드가 맞는지 확인 부탁드리겠습니다 ~ :)