diff -u time_limit.old/time_limit.admin.inc time_limit/time_limit.admin.inc
--- time_limit.old/time_limit.admin.inc	2010-02-09 20:29:41.000000000 -0600
+++ time_limit/time_limit.admin.inc	2010-03-03 23:45:06.000000000 -0600
@@ -1,35 +1,47 @@
 <?php
+// $Id$
 
+/**
+ * @file
+ * Defines administative functions.
+ *
+ */
+ 
+ 
+ 
+/**
+ * Used to define Time Limit module settings form
+ */ 
 function time_limit_settings() {
   $form = array();
   
   $form['time_limit_time'] = array(
-    '#type' => 'textfield',
-    '#title' => t("Time limit"),
-    '#description' => t("(in seconds)"),
-    '#default_value' => variable_get('time_limit_time', 300),
+    '#type'           => 'textfield',
+    '#title'          => t('Time limit'),
+    '#description'    => t('(in seconds)'),
+    '#default_value'  => variable_get('time_limit_time', 300),
   );
 
   $form['time_limit_landing_page'] = array(
-    '#type' => 'textfield',
-    '#title' => t("Landing page"),
-    '#description' => t("Use internal path for page on which user will be redirect after time limit."),
-    '#default_value' => variable_get('time_limit_landing_page', 'user/register'),
+    '#type'           => 'textfield',
+    '#title'          => t('Landing page'),
+    '#description'    => t('Use internal path for page on which user will be redirect after time limit.'),
+    '#default_value'  => variable_get('time_limit_landing_page', 'user/register'),
   );
 
   $form['time_limit_message'] = array(
-    '#type' => 'textarea',
-    '#title' => t("Limit message"),
-    '#description' => t("This message will be shown after redirecting user to landing page."),
-    '#default_value' => variable_get('time_limit_message', 'Please, register or login to continue using of the site.'),
+    '#type'           => 'textarea',
+    '#title'          => t('Limit message'),
+    '#description'    => t('This message will be shown after redirecting user to landing page.'),
+    '#default_value'  => variable_get('time_limit_message', 'Please, register or login to continue using of the site.'),
   );
 
   $form['time_limit_exclude'] = array(
-    '#type' => 'textarea',
-    '#title' => t("Exclude paths"),
-    '#description' => t("Place internal paths where module should not work. One path per line."),
-    '#default_value' => variable_get('time_limit_exclude', "user/register\nuser/register\nuser/password"),
+    '#type'           => 'textarea',
+    '#title'          => t('Exclude paths'),
+    '#description'    => t('Place internal paths where module should not work. One path per line.'),
+    '#default_value'  => variable_get('time_limit_exclude', "user/register\nuser/register\nuser/password"),
   );
 
   return system_settings_form($form);
-}
\ No newline at end of file
+}
Only in time_limit: time_limit.install
diff -u time_limit.old/time_limit.module time_limit/time_limit.module
--- time_limit.old/time_limit.module	2010-02-09 20:29:41.000000000 -0600
+++ time_limit/time_limit.module	2010-03-03 23:19:13.000000000 -0600
@@ -1,6 +1,14 @@
 <?php
 // $Id$
 
+
+/**
+ * @file
+ * Main module. Limit access to site for predefined time period. 
+ *
+ */
+
+
 /**
  * Implementation of hook_perm().
  */
@@ -10,6 +18,7 @@
   );
 }
 
+
 /**
  *      Implementing hook_menu()
  */
@@ -17,7 +26,7 @@
   $items = array();
   
   $items['admin/settings/time_limit'] = array(
-    'title'	            => 'Time Limit Settings',
+    'title'             => 'Time Limit Settings',
     'page callback'     => 'drupal_get_form',
     'page arguments'    => array('time_limit_settings'),
     'access callback'   => 'user_access',
@@ -28,20 +37,25 @@
   return $items;
 }
 
+
+/**
+ *      Implementing hook_init()
+ */
 function time_limit_init() {
 
   global $user;
   
   $paths = variable_get('time_limit_exclude', "user/register\nuser/login\nuser/password") ;
-  $paths .= "\n" . variable_get('time_limit_landing_page', "user/register");
+  $paths .= "\n". variable_get('time_limit_landing_page', "user/register");
   
   // Check only anonymous users
-  if ( $user->uid == 0 && !_time_limit_match_pages( $paths ) ) {
+  if ($user->uid == 0 && !_time_limit_match_pages($paths)) {
     // If this user already visited site - check how long he was on site.
-    if ( $_SESSION['firstvisit'] > 0 ) {
-      if ( time() - $_SESSION['firstvisit'] >= variable_get('time_limit_time', 300) ) {
-        drupal_set_message( t(variable_get('time_limit_message', 'Please, register or login to continue useing of the site.')) );
-        drupal_goto( variable_get('time_limit_landing_page', 'user/register') );
+    if ($_SESSION['firstvisit'] > 0) {
+      if (time() - $_SESSION['firstvisit'] >= variable_get('time_limit_time', 300)) {
+        $message = t('!time_limit_message', array('!time_limit_message' => variable_get('time_limit_message', 'Please, register or login to continue useing of the site.')));
+        drupal_set_message($message);
+        drupal_goto(variable_get('time_limit_landing_page', 'user/register'));
       }
     } 
     // Otherwise - save timestamp of the first visit in session
@@ -51,6 +65,7 @@
   }
 }
 
+
 function _time_limit_match_pages($pages) {
   $path = drupal_get_path_alias($_GET['q']);
   // Compare with the internal and path alias (if any).
@@ -60,4 +75,4 @@
   }
   
   return $page_match;
-}
\ No newline at end of file
+}
