]> git.mxchange.org Git - ctracker.git/blobdiff - libs/lib_connect.php
Use constants instead of keywords
[ctracker.git] / libs / lib_connect.php
index b981c03be1c466c1a5c87442b60518c2fe412172..7a155de919a85c803f4ff02d8487e15a0446f86e 100644 (file)
@@ -94,7 +94,7 @@ function crackerTrackerInsertArray ($table, $rowData) {
        // Is there a link up?
        if (!isCrackerTrackerDatabaseLinkUp()) {
                // Abort silently here
-               return false;
+               return FALSE;
        } // END - if
 
        // Is it found?
@@ -103,7 +103,7 @@ function crackerTrackerInsertArray ($table, $rowData) {
                $SQL = 'INSERT INTO `' . $table . '` (`' . implode('`,`', array_keys($rowData)) . '`) VALUES(' . implode_secure($rowData) . ')';
 
                // Reset insert id
-               $GLOBALS['ctracker_last_insert_id'] = false;
+               $GLOBALS['ctracker_last_insert_id'] = FALSE;
 
                // Run it
                runCrackerTrackerSql($SQL, __FUNCTION__, __LINE__);
@@ -176,7 +176,7 @@ function runCrackerTrackerSql ($SQL, $F, $L) {
 // Checks wether a table was found
 function isCrackerTrackerTableCreated ($table) {
        // Default is not found
-       $found = false;
+       $found = FALSE;
 
        // Run the query
        $result = runCrackerTrackerSql('SHOW TABLES', __FUNCTION__, __LINE__);
@@ -186,7 +186,7 @@ function isCrackerTrackerTableCreated ($table) {
                // Is the table there?
                if ($tab == $table) {
                        // Okay, found. So abort
-                       $found = true;
+                       $found = TRUE;
                        break;
                } // END - if
        } // END - if
@@ -308,7 +308,7 @@ function isCrackerTrackerIpSuspicious () {
        // Skip this silently if we have not config
        if (!isCrackerTrackerDatabaseLinkUp()) {
                // Skip this step silently, all is not suspicious
-               return false;
+               return FALSE;
        } // END - if
 
        // We only need the very last attempt to get!
@@ -318,7 +318,7 @@ function isCrackerTrackerIpSuspicious () {
        $found = (mysql_num_rows($result) == 1);
 
        // And again?
-       if ($found === true) {
+       if ($found === TRUE) {
                // Cache the entry
                $GLOBALS['ctracker_last_suspicious_entry'] = mysql_fetch_array($result);
        } // END - if
@@ -339,7 +339,7 @@ function ifCrackerTrackerIpHasTicket () {
        $found = (mysql_num_rows($result) == 1);
 
        // And again?
-       if ($found === true) {
+       if ($found === TRUE) {
                // Cache the ticket data
                $GLOBALS['ctracker_last_ticket'] = mysql_fetch_array($result);
        } // END - if