b2evolution

Multilingual multiuser multiblog engine

b2evolution Technical Documentation (Version 1.9) [ class tree: main ] [ index: main ] [ all elements ]

Source for file _prune_hits_sessions.job.php

Documentation is available at _prune_hits_sessions.job.php

  1. <?php
  2. /**
  3.  * This file implements the Hit and Session pruning Cron controller
  4.  *
  5.  * @author fplanque: Francois PLANQUE
  6.  *
  7.  * @version $Id: _prune_hits_sessions.job.php,v 1.1.2.4 2006/11/27 19:12:50 fplanque Exp $
  8.  */
  9. if!defined('EVO_MAIN_INIT') ) die'Please, do not access this page directly.' );
  10.  
  11. global $Settings;
  12.  
  13. global $model_path;
  14.  
  15. if$Settings->get'auto_prune_stats_mode' != 'cron' )
  16. // Autopruning is NOT requested
  17.     $result_message T_('Auto pruning is not set to run as a scheduled task');
  18.     return 2;
  19. }
  20.  
  21. require_once $model_path.'sessions/_hitlist.class.php';
  22.  
  23. $result_message Hitlist::dbprune()// will prune once per day, according to Settings
  24.  
  25. ifempty($result_message) )
  26. {
  27.     return 1/* ok */
  28. }
  29.  
  30. return 100;
  31.  
  32. /*
  33.  * $Log: _prune_hits_sessions.job.php,v $
  34.  * Revision 1.1.2.4  2006/11/27 19:12:50  fplanque
  35.  * 1.9 POT has gone public. No more unnecessary changes.
  36.  * 1.9.x language packs should work for ALL 1.9.x versions.
  37.  * Adding strings is okay. Removing strings/changing strings for fun is not OK.
  38.  * Move to 1.10 or 2.0
  39.  *
  40.  * Revision 1.1.2.3  2006/11/26 22:31:37  blueyed
  41.  * Normalized messages (dot at end of full sentences)
  42.  *
  43.  * Revision 1.1.2.2  2006/11/04 19:54:51  fplanque
  44.  * Reinjected old Log blocks. Removing them from CVS was a bad idea -- especially since Daniel has decided branch 1.9 was his HEAD...
  45.  *
  46.  * Revision 1.1  2006/07/06 19:59:08  fplanque
  47.  * better logs, better stats, better pruning
  48.  *
  49.  */
  50. ?>

Documentation generated on Tue, 18 Dec 2007 22:51:09 +0100 by phpDocumentor 1.4.0