initial commit

This commit is contained in:
Ben Ramey
2017-03-02 21:57:21 -06:00
commit fd8ad64063
22097 changed files with 1960930 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
<?php
/**
* Log rotation batch script
*
* This script is used to manage log rotation, and should be called automatically by a cron task daily
*
* @package ##PROJECT_NAME##
* @subpackage batch
* @version $Id: rotate_log.php 3148 2007-01-04 19:34:28Z fabien $
*/
define('SF_ROOT_DIR', realpath(dirname(__file__).'/..'));
define('SF_APP', '##APP_NAME##');
define('SF_ENVIRONMENT', '##ENV_NAME##');
define('SF_DEBUG', ##DEBUG##);
require_once(SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTORY_SEPARATOR.SF_APP.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php');
if (sfConfig::get('sf_logging_enabled') && sfConfig::get('sf_logging_rotate'))
{
sfLogManager::rotate(SF_APP, SF_ENVIRONMENT, sfConfig::get('sf_logging_period'), sfConfig::get('sf_logging_history'));
}