mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
삭제할 경우 해당 삭제날자를 기록하는 오브젝트를 생성하고 안에 기록
This commit is contained in:
parent
1a3e1f1653
commit
814519a2aa
1 changed files with 9 additions and 10 deletions
|
|
@ -165,7 +165,15 @@ class ncenterliteAdminController extends ncenterlite
|
|||
$this->setMessage('ncenterlite_message_delete_notification_all');
|
||||
}
|
||||
|
||||
$this->removeAllFlagFile();
|
||||
$flag_path = \RX_BASEDIR . 'files/cache/ncenterlite/new_notify/regdate_new.php';
|
||||
if(!FileHandler::isDir(\RX_BASEDIR . 'files/cache/ncenterlite/new_notify'))
|
||||
{
|
||||
FileHandler::makeDir(\RX_BASEDIR . 'files/cache/ncenterlite/new_notify/');
|
||||
}
|
||||
$reg_obj = new stdClass();
|
||||
$reg_obj->regdate = date('YmdHis');
|
||||
$buff = "<?php return unserialize(" . var_export(serialize($reg_obj), true) . ");\n";
|
||||
FileHandler::writeFile($flag_path, $buff);
|
||||
|
||||
if(Context::get('success_return_url'))
|
||||
{
|
||||
|
|
@ -204,13 +212,4 @@ class ncenterliteAdminController extends ncenterlite
|
|||
$this->setRedirectUrl(getNotEncodedUrl('', 'module', 'admin', 'act', 'dispNcenterliteAdminCustomList'));
|
||||
}
|
||||
}
|
||||
|
||||
function removeAllFlagFile()
|
||||
{
|
||||
$flag_path = \RX_BASEDIR . 'files/cache/ncenterlite/new_notify/';
|
||||
if(FileHandler::isDir($flag_path))
|
||||
{
|
||||
FileHandler::removeFilesInDir($flag_path);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue