]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/admin-inc.php
Earning subscriptions introduced (unfinished):
[mailer.git] / inc / modules / admin / admin-inc.php
index 308939d9b888cb1eef89341830a6bf9d0bbe6ccc..850cc853ebc094011b4c1d25285170f7ef9d0d7a 100644 (file)
@@ -594,7 +594,7 @@ function adminAddMenuSelectionBox ($menu, $type, $name, $default = '') {
        // Walk through all files
        foreach ($menuArray as $file) {
                // Is this a PHP script?
-               if ((!isDirectory($file)) && (strpos($file, '' . $type . '-') > -1) && (strpos($file, '.php') > 0)) {
+               if ((!isDirectory($file)) && (isInString('' . $type . '-', $file)) && (isInString('.php', $file))) {
                        // Then test if the file is readable
                        $test = sprintf("inc/modules/%s/%s", $menu, $file);
 
@@ -1246,7 +1246,7 @@ function adminAddEntries ($tableName, $columns = array(), $filterFunctions = arr
        } // END - foreach
 
        // Build the SQL query
-       $SQL = 'INSERT INTO `{?_MYSQL_PREFIX?}_' . $tableName[0] . '` (`' . implode('`, `', $sqlColumns) . "`) VALUES('" . implode("','", $sqlValues) . "')";
+       $SQL = 'INSERT INTO `{?_MYSQL_PREFIX?}_' . $tableName[0] . '` (`' . implode('`, `', $sqlColumns) . "`) VALUES ('" . implode("','", $sqlValues) . "')";
 
        // Run the SQL query
        SQL_QUERY($SQL, __FUNCTION__, __LINE__);
@@ -1398,7 +1398,7 @@ function adminTestProxySettings ($settingsArray) {
        $content = sendGetRequest('check-updates3.php');
 
        // Is the first line with "200 OK"?
-       $valid = (strpos($content[0], '200 OK') !== false);
+       $valid = isInString('200 OK', $content[0]);
 
        // Return result
        return $valid;