memorizeBaseURL() 공개 메소드

write baseURL to maintenance.php in config file syntax (to be read back by embedded apps)
public memorizeBaseURL ( )
 function perform()
 {
     Pommo_Helper_Maintenance::memorizeBaseURL();
     if (is_file(Pommo::$_workDir . '/import.csv')) {
         if (!unlink(Pommo::$_workDir . '/import.csv')) {
             Pommo::kill('Unable to remove import.csv');
         }
     }
     // truncate error log
     if (filesize(Pommo::$_workDir . '/ERROR_LOG') > 25) {
         rename(Pommo::$_workDir . '/ERROR_LOG', Pommo::$_workDir . '/ERROR_LOG_OLD');
     }
     if (!($handle = fopen(Pommo::$_workDir . '/ERROR_LOG', 'w'))) {
         Pommo::$_logger->addErr(Pommo::_T('Can write to ERROR_LOG. Check work directory permissions!'));
         return;
     }
     fwrite($handle, "<?php die(); ?>\n");
     fclose($handle);
     return true;
 }