]> git.mxchange.org Git - mailer.git/blobdiff - inc/stats-functions.php
Code style changed, ext-user continued:
[mailer.git] / inc / stats-functions.php
index 816be3410d7a723eb21656bb336bc1afe907cddc..c3f607114228cf869f5afaeb84391cfa5327a5b5 100644 (file)
@@ -51,7 +51,7 @@ function initStatsSystem () {
                loadStatsTable();
 
                // Stats are loaded!
-               $GLOBALS['stats_loaded'] = true;
+               $GLOBALS['stats_loaded'] = TRUE;
        } // END - if
 }
 
@@ -102,7 +102,7 @@ function setStatsEntry ($entry, $value) {
 // Loads stats table
 function loadStatsTable () {
        // Check if the link is up
-       if (!SQL_IS_LINK_UP()) return false;
+       if (!SQL_IS_LINK_UP()) return FALSE;
 
        // Is it there for today?
        if (!isStatsTableCreated()) {
@@ -128,7 +128,7 @@ function loadStatsTable () {
 // Checks if the the statistics table is created
 function isStatsTableCreated () {
        // Check if the link is up
-       if (!SQL_IS_LINK_UP()) return false;
+       if (!SQL_IS_LINK_UP()) return FALSE;
 
        // Ask for it
        $result = SQL_QUERY_ESC("SHOW TABLES LIKE '{?_MYSQL_PREFIX?}_stats_%s'",
@@ -141,7 +141,7 @@ function isStatsTableCreated () {
 // Create the dummy table
 function createStatsTable () {
        // Check if the link is up
-       if (!SQL_IS_LINK_UP()) return false;
+       if (!SQL_IS_LINK_UP()) return FALSE;
 
        // Create it here
        $result = SQL_QUERY_ESC("CREATE TEMPORARY TABLE IF NOT EXISTS `{?_MYSQL_PREFIX?}_stats_%s` (
@@ -155,7 +155,7 @@ PRIMARY KEY (`stats_entry`)
 // Write all entries to the table
 function writeStatsTable () {
        // Check if the link is up
-       if (!SQL_IS_LINK_UP()) return false;
+       if (!SQL_IS_LINK_UP()) return FALSE;
 
        // Empty the table first
        SQL_QUERY_ESC("TRUNCATE `{?_MYSQL_PREFIX?}_stats_%s`",