????

Your IP : 216.73.216.121


Current Path : /home2/morganrand/www/store/admin/includes/modules/security_check/
Upload File :
Current File : /home2/morganrand/www/store/admin/includes/modules/security_check/session_storage.php

<?php
/*
  $Id$

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2010 osCommerce

  Released under the GNU General Public License
*/

  class securityCheck_session_storage {
    var $type = 'warning';

    function securityCheck_session_storage() {
      global $language;

      include(DIR_FS_ADMIN . 'includes/languages/' . $language . '/modules/security_check/session_storage.php');
    }

    function pass() {
      return ((STORE_SESSIONS != '') || (is_dir(tep_session_save_path()) && tep_is_writable(tep_session_save_path())));
    }

    function getMessage() {
      if (STORE_SESSIONS == '') {
        if (!is_dir(tep_session_save_path())) {
          return WARNING_SESSION_DIRECTORY_NON_EXISTENT;
        } elseif (!tep_is_writable(tep_session_save_path())) {
          return WARNING_SESSION_DIRECTORY_NOT_WRITEABLE;
        }
      }
    }
  }
?>