From: Roland Häder Date: Sat, 22 Jun 2013 03:19:47 +0000 (+0000) Subject: More double-quotes to single-quotes X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e5848e7e22dffe36ea207111a3a4ed1f7d5a8639;p=mailer.git More double-quotes to single-quotes --- diff --git a/inc/classes/cachesystem.class.php b/inc/classes/cachesystem.class.php index 2da580312f..73ef671954 100644 --- a/inc/classes/cachesystem.class.php +++ b/inc/classes/cachesystem.class.php @@ -318,7 +318,7 @@ class CacheSystem { $this->resetCacheReadStatus(); // Debug message - //* DEBUG: */ logDebugMessage(__METHOD__, __LINE__, sprintf("%s should be removed.", $this->name)); + //* DEBUG: */ logDebugMessage(__METHOD__, __LINE__, sprintf('%s should be removed.', $this->name)); // Is the cache file not yet rebuilt? if ((!isset($this->rebuilt[$this->name])) && ($this->isCacheReadable())) { diff --git a/inc/db/lib.php b/inc/db/lib.php index 9b243e6858..3f0f24eb7f 100644 --- a/inc/db/lib.php +++ b/inc/db/lib.php @@ -41,7 +41,7 @@ if (!defined('__SECURITY')) { } // END - if // Create include file name -$inc = sprintf("inc/db/lib-%s.php", getConfig('_DB_TYPE')); +$inc = sprintf('inc/db/lib-%s.php', getConfig('_DB_TYPE')); // Is the database library available? if (!isIncludeReadable($inc)) { diff --git a/inc/email-functions.php b/inc/email-functions.php index 3663ca4ce8..90ec5441b9 100644 --- a/inc/email-functions.php +++ b/inc/email-functions.php @@ -143,7 +143,7 @@ function sendRawEmail ($toEmail, $subject, $message, $headers) { $mail->CharSet = 'UTF-8'; // Path for PHPMailer - $mail->PluginDir = sprintf("%sinc/phpmailer/", getPath()); + $mail->PluginDir = sprintf('%sinc/phpmailer/', getPath()); $mail->IsSMTP(); $mail->SMTPAuth = TRUE; diff --git a/inc/extensions-functions.php b/inc/extensions-functions.php index 58127d2909..d842ddc163 100644 --- a/inc/extensions-functions.php +++ b/inc/extensions-functions.php @@ -957,7 +957,7 @@ function isExtensionNameValid ($ext_name) { // Is there cache? if (!isset($GLOBALS['ext_name_valid'][$ext_name])) { // Generate include file name - $INC = sprintf("inc/extensions/ext-%s.php", $ext_name); + $INC = sprintf('inc/extensions/ext-%s.php', $ext_name); // Is there a file in inc/extensions/ ? $GLOBALS['ext_name_valid'][$ext_name] = isIncludeReadable($INC); @@ -1822,7 +1822,7 @@ function loadCurrentExtensionInclude () { } // END - if // Generate INC name - $INC = sprintf("inc/extensions/ext-%s.php", getCurrentExtensionName()); + $INC = sprintf('inc/extensions/ext-%s.php', getCurrentExtensionName()); // Load it loadInclude($INC); @@ -1831,7 +1831,7 @@ function loadCurrentExtensionInclude () { // Load current extension's mode include file function loadCurrentExtensionModeInclude () { // Generate INC name - $INC = sprintf("inc/extensions/%s/mode-%s.php", getCurrentExtensionName(), getExtensionMode()); + $INC = sprintf('inc/extensions/%s/mode-%s.php', getCurrentExtensionName(), getExtensionMode()); // Is the include readable? if (isIncludeReadable($INC)) { @@ -1850,7 +1850,7 @@ function isExtensionIncludeReadable ($ext_name = '') { // Array found? if (!isset($GLOBALS['ext_inc_readable'][$ext_name])) { // Generate INC name - $INC = sprintf("inc/extensions/ext-%s.php", getCurrentExtensionName()); + $INC = sprintf('inc/extensions/ext-%s.php', getCurrentExtensionName()); // Is it readable? $GLOBALS['ext_inc_readable'][$ext_name] = isIncludeReadable($INC); @@ -1871,7 +1871,7 @@ function isExtensionFunctionFileReadable ($ext_name) { incrementStatsEntry('cache_hits'); } else { // Construct IFN for functions file - $funcsInclude = sprintf("inc/libs/%s_functions.php", $ext_name); + $funcsInclude = sprintf('inc/libs/%s_functions.php', $ext_name); // Is this include there? $isIncludeFound = ((isFileReadable($funcsInclude)) && (!isExtensionLibraryLoaded($ext_name)) && (getExtensionMode() == 'test')); diff --git a/inc/libs/country_functions.php b/inc/libs/country_functions.php index 7254ff1022..80a4c1ef85 100644 --- a/inc/libs/country_functions.php +++ b/inc/libs/country_functions.php @@ -63,7 +63,7 @@ LIMIT 1", //* DEBUG: */ print($id.'=
'.print_r($content, TRUE).'
'); // Construct human-readable description - $ret = sprintf("%s (%s)", $content['descr'], $content['code']); + $ret = sprintf('%s (%s)', $content['descr'], $content['code']); } // END - if // Free the result diff --git a/inc/libs/sponsor_functions.php b/inc/libs/sponsor_functions.php index 0edbbec6f1..81fd04d640 100644 --- a/inc/libs/sponsor_functions.php +++ b/inc/libs/sponsor_functions.php @@ -341,7 +341,7 @@ function addSponsorContent ($what) { $GLOBALS['sponsor_output'] = ''; // Generate IFN (Include FileName) - $INC = sprintf("inc/modules/sponsor/%s.php", $what); + $INC = sprintf('inc/modules/sponsor/%s.php', $what); if (isIncludeReadable($INC)) { // Every sponsor action will output nothing directly. It will be written into $GLOBALS['sponsor_output']! loadIncludeOnce($INC); diff --git a/inc/modules/admin/action- b/inc/modules/admin/action- index 4ffdb876eb..e8f0ce1031 100644 --- a/inc/modules/admin/action- +++ b/inc/modules/admin/action- @@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addYouAreHereLink('admin', __FILE__); // Load the include file -$inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/admin/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module loadIncludeOnce($inc); diff --git a/inc/modules/admin/action-admins.php b/inc/modules/admin/action-admins.php index ff6ff458a5..bcdb9855c1 100644 --- a/inc/modules/admin/action-admins.php +++ b/inc/modules/admin/action-admins.php @@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addYouAreHereLink('admin', __FILE__); // Load the include file -$inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/admin/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module loadIncludeOnce($inc); diff --git a/inc/modules/admin/action-bank.php b/inc/modules/admin/action-bank.php index 5aa6eff563..42c4a1e0ae 100644 --- a/inc/modules/admin/action-bank.php +++ b/inc/modules/admin/action-bank.php @@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addYouAreHereLink('admin', __FILE__); // Load the include file -$inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/admin/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module loadIncludeOnce($inc); diff --git a/inc/modules/admin/action-country.php b/inc/modules/admin/action-country.php index d715b9a604..61167e8e9a 100644 --- a/inc/modules/admin/action-country.php +++ b/inc/modules/admin/action-country.php @@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addYouAreHereLink('admin', __FILE__); // Load the include file -$inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/admin/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module loadIncludeOnce($inc); diff --git a/inc/modules/admin/action-coupon.php b/inc/modules/admin/action-coupon.php index 032d467c80..e5c21f525b 100644 --- a/inc/modules/admin/action-coupon.php +++ b/inc/modules/admin/action-coupon.php @@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addYouAreHereLink('admin', __FILE__); // Load the include file -$inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/admin/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module loadIncludeOnce($inc); diff --git a/inc/modules/admin/action-doubler.php b/inc/modules/admin/action-doubler.php index 4807bed243..cbbcec7373 100644 --- a/inc/modules/admin/action-doubler.php +++ b/inc/modules/admin/action-doubler.php @@ -44,12 +44,12 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addYouAreHereLink('admin', __FILE__); // Load the include file -$inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/admin/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module loadIncludeOnce($inc); } else { - // "what file" not found + // 'what file' not found addFatalMessage(__FILE__, __LINE__, '{--ADMIN_WHAT_404--}'); } diff --git a/inc/modules/admin/action-email.php b/inc/modules/admin/action-email.php index d660bdfc81..73dabb37bd 100644 --- a/inc/modules/admin/action-email.php +++ b/inc/modules/admin/action-email.php @@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addYouAreHereLink('admin', __FILE__); // Load the include file -$inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/admin/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module loadIncludeOnce($inc); diff --git a/inc/modules/admin/action-forced.php b/inc/modules/admin/action-forced.php index 3235e85013..173da32609 100644 --- a/inc/modules/admin/action-forced.php +++ b/inc/modules/admin/action-forced.php @@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addYouAreHereLink('admin', __FILE__); // Load the include file -$inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/admin/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module loadIncludeOnce($inc); diff --git a/inc/modules/admin/action-grade.php b/inc/modules/admin/action-grade.php index 567e10dab4..2c2a6b413f 100644 --- a/inc/modules/admin/action-grade.php +++ b/inc/modules/admin/action-grade.php @@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addYouAreHereLink('admin', __FILE__); // Load the include file -$inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/admin/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module loadIncludeOnce($inc); diff --git a/inc/modules/admin/action-holiday.php b/inc/modules/admin/action-holiday.php index 0529f70b90..0f081b22e2 100644 --- a/inc/modules/admin/action-holiday.php +++ b/inc/modules/admin/action-holiday.php @@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addYouAreHereLink('admin', __FILE__); // Load the include file -$inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/admin/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module loadIncludeOnce($inc); diff --git a/inc/modules/admin/action-login.php b/inc/modules/admin/action-login.php index 3d57369910..1c68fa2437 100644 --- a/inc/modules/admin/action-login.php +++ b/inc/modules/admin/action-login.php @@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addYouAreHereLink('admin', __FILE__); // Load the include file -$inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/admin/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module loadIncludeOnce($inc); diff --git a/inc/modules/admin/action-menu.php b/inc/modules/admin/action-menu.php index ecabbd2bf3..381204d104 100644 --- a/inc/modules/admin/action-menu.php +++ b/inc/modules/admin/action-menu.php @@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addYouAreHereLink('admin', __FILE__); // Load the include file -$inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/admin/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module loadIncludeOnce($inc); diff --git a/inc/modules/admin/action-misc.php b/inc/modules/admin/action-misc.php index ae75164ec6..609d94c666 100644 --- a/inc/modules/admin/action-misc.php +++ b/inc/modules/admin/action-misc.php @@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addYouAreHereLink('admin', __FILE__); // Load the include file -$inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/admin/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module loadIncludeOnce($inc); diff --git a/inc/modules/admin/action-mods.php b/inc/modules/admin/action-mods.php index 437c823336..50e24544d3 100644 --- a/inc/modules/admin/action-mods.php +++ b/inc/modules/admin/action-mods.php @@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addYouAreHereLink('admin', __FILE__); // Load the include file -$inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/admin/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module loadIncludeOnce($inc); diff --git a/inc/modules/admin/action-network.php b/inc/modules/admin/action-network.php index eed0cbcb90..55adf067e4 100644 --- a/inc/modules/admin/action-network.php +++ b/inc/modules/admin/action-network.php @@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addYouAreHereLink('admin', __FILE__); // Load the include file -$inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/admin/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module loadIncludeOnce($inc); diff --git a/inc/modules/admin/action-newsletter.php b/inc/modules/admin/action-newsletter.php index 47da2b67e3..0de6c408e1 100644 --- a/inc/modules/admin/action-newsletter.php +++ b/inc/modules/admin/action-newsletter.php @@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addYouAreHereLink('admin', __FILE__); // Load the include file -$inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/admin/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module loadIncludeOnce($inc); diff --git a/inc/modules/admin/action-payouts.php b/inc/modules/admin/action-payouts.php index 8b813721ef..b83b153e1d 100644 --- a/inc/modules/admin/action-payouts.php +++ b/inc/modules/admin/action-payouts.php @@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addYouAreHereLink('admin', __FILE__); // Load the include file -$inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/admin/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module loadIncludeOnce($inc); diff --git a/inc/modules/admin/action-rallye.php b/inc/modules/admin/action-rallye.php index a2b4f6ec1a..964072128e 100644 --- a/inc/modules/admin/action-rallye.php +++ b/inc/modules/admin/action-rallye.php @@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addYouAreHereLink('admin', __FILE__); // Load the include file -$inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/admin/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module loadIncludeOnce($inc); diff --git a/inc/modules/admin/action-repair.php b/inc/modules/admin/action-repair.php index d571fa2084..0cc1d7739a 100644 --- a/inc/modules/admin/action-repair.php +++ b/inc/modules/admin/action-repair.php @@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addYouAreHereLink('admin', __FILE__); // Load the include file -$inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/admin/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module loadIncludeOnce($inc); diff --git a/inc/modules/admin/action-setup.php b/inc/modules/admin/action-setup.php index ef89f584e9..af9ac00263 100644 --- a/inc/modules/admin/action-setup.php +++ b/inc/modules/admin/action-setup.php @@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addYouAreHereLink('admin', __FILE__); // Load the include file -$inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/admin/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module loadIncludeOnce($inc); diff --git a/inc/modules/admin/action-sponsor.php b/inc/modules/admin/action-sponsor.php index 8fb6020f07..50810d03b2 100644 --- a/inc/modules/admin/action-sponsor.php +++ b/inc/modules/admin/action-sponsor.php @@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addYouAreHereLink('admin', __FILE__); // Load the include file -$inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/admin/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module loadIncludeOnce($inc); diff --git a/inc/modules/admin/action-stats.php b/inc/modules/admin/action-stats.php index 9e6eab66ef..c91f7e5063 100644 --- a/inc/modules/admin/action-stats.php +++ b/inc/modules/admin/action-stats.php @@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addYouAreHereLink('admin', __FILE__); // Load the include file -$inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/admin/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module loadIncludeOnce($inc); diff --git a/inc/modules/admin/action-surfbar.php b/inc/modules/admin/action-surfbar.php index f70a9e9099..c4c6800923 100644 --- a/inc/modules/admin/action-surfbar.php +++ b/inc/modules/admin/action-surfbar.php @@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addYouAreHereLink('admin', __FILE__); // Load the include file -$inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/admin/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module loadIncludeOnce($inc); diff --git a/inc/modules/admin/action-task.php b/inc/modules/admin/action-task.php index f2fae63d27..106ade168a 100644 --- a/inc/modules/admin/action-task.php +++ b/inc/modules/admin/action-task.php @@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addYouAreHereLink('admin', __FILE__); // Load the include file -$inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/admin/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module loadIncludeOnce($inc); diff --git a/inc/modules/admin/action-theme.php b/inc/modules/admin/action-theme.php index 03817e27a1..685257baff 100644 --- a/inc/modules/admin/action-theme.php +++ b/inc/modules/admin/action-theme.php @@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addYouAreHereLink('admin', __FILE__); // Load the include file -$inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/admin/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module loadIncludeOnce($inc); diff --git a/inc/modules/admin/action-transfer.php b/inc/modules/admin/action-transfer.php index 1f738beaf9..38c7f9c4da 100644 --- a/inc/modules/admin/action-transfer.php +++ b/inc/modules/admin/action-transfer.php @@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addYouAreHereLink('admin', __FILE__); // Load the include file -$inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/admin/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module loadIncludeOnce($inc); diff --git a/inc/modules/admin/action-user.php b/inc/modules/admin/action-user.php index c41dea375a..0dc6d57e84 100644 --- a/inc/modules/admin/action-user.php +++ b/inc/modules/admin/action-user.php @@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addYouAreHereLink('admin', __FILE__); // Load the include file -$inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/admin/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module loadIncludeOnce($inc); diff --git a/inc/modules/admin/action-wernis.php b/inc/modules/admin/action-wernis.php index eb199865bf..3a1e172b5d 100644 --- a/inc/modules/admin/action-wernis.php +++ b/inc/modules/admin/action-wernis.php @@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addYouAreHereLink('admin', __FILE__); // Load the include file -$inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/admin/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module loadIncludeOnce($inc); diff --git a/inc/modules/admin/admin-inc.php b/inc/modules/admin/admin-inc.php index 078108d8f4..33c542893c 100644 --- a/inc/modules/admin/admin-inc.php +++ b/inc/modules/admin/admin-inc.php @@ -217,7 +217,7 @@ LIMIT 1", // Is there an entry? if (sqlNumRows($result_action) == 1) { // Is valid but does the inlcude file exists? - $inc = sprintf("inc/modules/admin/action-%s.php", $action); + $inc = sprintf('inc/modules/admin/action-%s.php', $action); if ((isIncludeReadable($inc)) && (isMenuActionValid('admin', $action, $what)) && ($GLOBALS['acl_allow'] === TRUE)) { // Ok, we finally load the admin action module loadInclude($inc); @@ -286,7 +286,7 @@ ORDER BY // Load all 'action' menus while ($mainContent = sqlFetchArray($result_main)) { // Filename - $inc = sprintf("inc/modules/admin/action-%s.php", $mainContent['main_action']); + $inc = sprintf('inc/modules/admin/action-%s.php', $mainContent['main_action']); // Is the current admin allowed to access this 'action' menu? if (isAdminAllowedAccessMenu($mainContent['main_action'])) { @@ -381,7 +381,7 @@ ORDER BY // Load all entries while ($subContent = sqlFetchArray($result_what)) { // Filename - $inc = sprintf("inc/modules/admin/what-%s.php", $subContent['sub_what']); + $inc = sprintf('inc/modules/admin/what-%s.php', $subContent['sub_what']); // Is the current admin allowed to access this 'what' menu? if (isAdminAllowedAccessMenu(NULL, $subContent['sub_what'])) { diff --git a/inc/modules/admin/what-list_user_subid.php b/inc/modules/admin/what-list_user_subid.php index 111bb4486d..f60c63f08f 100644 --- a/inc/modules/admin/what-list_user_subid.php +++ b/inc/modules/admin/what-list_user_subid.php @@ -89,7 +89,7 @@ if (isFormSent('edit')) { )); } elseif ((isGetRequestElementSet('do')) && (isGetRequestElementSet('id'))) { // Construct module name - $incFile = sprintf("inc/modules/admin/subid-%s.php", sqlEscapeString(getRequestElement('do'))); + $incFile = sprintf('inc/modules/admin/subid-%s.php', sqlEscapeString(getRequestElement('do'))); // Is the include readable and is the sub id assigned to current admin? if (!isUserSubIdAssignedToMember(getRequestElement('id'), getRequestElement('userid'))) { diff --git a/inc/modules/admin/what-logs.php b/inc/modules/admin/what-logs.php index 23c10716c3..1d3782e623 100644 --- a/inc/modules/admin/what-logs.php +++ b/inc/modules/admin/what-logs.php @@ -46,7 +46,7 @@ addYouAreHereLink('admin', __FILE__); if (isGetRequestElementSet('access')) { // Secure input and construct FQFN $access = sqlEscapeString(getRequestElement('access')); - $target = sprintf("%slogs/%s", getPath(), $access); + $target = sprintf('%slogs/%s', getPath(), $access); // Is the file valid and readable? if (isFileReadable($target)) { diff --git a/inc/modules/admin/what-repair_lang.php b/inc/modules/admin/what-repair_lang.php index eaedd39ae4..ee6ab11bb7 100644 --- a/inc/modules/admin/what-repair_lang.php +++ b/inc/modules/admin/what-repair_lang.php @@ -70,7 +70,7 @@ foreach ($validLanguages as $lang) { } // Construct english include filename - $INC = sprintf("inc/language/%s%s.php", $prefix, $lang); + $INC = sprintf('inc/language/%s%s.php', $prefix, $lang); // Is the file readable? if (isIncludeReadable($INC)) { diff --git a/inc/modules/admin/what-usage.php b/inc/modules/admin/what-usage.php index cda9129b8f..fc006e5142 100644 --- a/inc/modules/admin/what-usage.php +++ b/inc/modules/admin/what-usage.php @@ -47,14 +47,14 @@ addYouAreHereLink('admin', __FILE__); $usage = getConfig('usage_base') . '/'; // Init FQFN -$FQFN = sprintf("%s%s/index.html", +$FQFN = sprintf('%s%s/index.html', getPath(), getConfig('usage_base') ); if (isGetRequestElementSet('image')) { if (getRequestElement('type') == 'usage') { - $FQFN = sprintf("%s%s/usage.png", + $FQFN = sprintf('%s%s/usage.png', getPath(), getConfig('usage_base') ); @@ -62,7 +62,7 @@ if (isGetRequestElementSet('image')) { if (strpos(getRequestElement('image'), chr(92)) > 0) { setGetRequestElement('image', substr(getRequestElement('image'), 0, strpos(getRequestElement('image'), chr(92)))); } // END - if - $FQFN = sprintf("%s%s/%s_usage_%s.png", + $FQFN = sprintf('%s%s/%s_usage_%s.png', getPath(), getConfig('usage_base'), getRequestElement('type'), @@ -78,7 +78,7 @@ if (isGetRequestElementSet('image')) { } // END - if doShutdown(); } elseif (isGetRequestElementSet('usage')) { - $FQFN = sprintf("%s%s/usage_%s.html", + $FQFN = sprintf('%s%s/usage_%s.html', getPath(), getConfig('usage_base'), getRequestElement('usage') diff --git a/inc/modules/guest/action- b/inc/modules/guest/action- index dde138f667..a1219a93d9 100644 --- a/inc/modules/guest/action- +++ b/inc/modules/guest/action- @@ -52,7 +52,7 @@ if ((!isExtensionActive('')) && (!isAdmin())) { } // END - if // Load the include file -$inc = sprintf("inc/modules/guest/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/guest/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the guest action module loadIncludeOnce($inc); diff --git a/inc/modules/guest/action-admin.php b/inc/modules/guest/action-admin.php index 1d85aba2d6..dfc7a9036f 100644 --- a/inc/modules/guest/action-admin.php +++ b/inc/modules/guest/action-admin.php @@ -47,7 +47,7 @@ if (!defined('__SECURITY')) { addYouAreHereLink('guest', __FILE__); // Only when one admin link is clicked... -$inc = sprintf("inc/modules/guest/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/guest/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the guest action module loadIncludeOnce($inc); diff --git a/inc/modules/guest/action-main.php b/inc/modules/guest/action-main.php index 320ca5ba75..e7a3e95f07 100644 --- a/inc/modules/guest/action-main.php +++ b/inc/modules/guest/action-main.php @@ -47,7 +47,7 @@ if (!defined('__SECURITY')) { addYouAreHereLink('guest', __FILE__); // Load the include file -$inc = sprintf("inc/modules/guest/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/guest/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the guest action module loadIncludeOnce($inc); diff --git a/inc/modules/guest/action-members.php b/inc/modules/guest/action-members.php index 2c2acf39ce..da2dcd8b44 100644 --- a/inc/modules/guest/action-members.php +++ b/inc/modules/guest/action-members.php @@ -47,7 +47,7 @@ if (!defined('__SECURITY')) { addYouAreHereLink('guest', __FILE__); // Load the include file -$inc = sprintf("inc/modules/guest/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/guest/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the guest action module loadIncludeOnce($inc); diff --git a/inc/modules/guest/action-sponsor.php b/inc/modules/guest/action-sponsor.php index 3997d5553b..a1097fa2bf 100644 --- a/inc/modules/guest/action-sponsor.php +++ b/inc/modules/guest/action-sponsor.php @@ -51,7 +51,7 @@ if ((!isExtensionActive('sponsor')) && (!isAdmin())) { } // END - if // Load the include file -$inc = sprintf("inc/modules/guest/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/guest/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the guest action module loadIncludeOnce($inc); diff --git a/inc/modules/index.php b/inc/modules/index.php index 7720430d71..8d4f0d8a73 100644 --- a/inc/modules/index.php +++ b/inc/modules/index.php @@ -65,7 +65,7 @@ loadTemplate('guest_menu_content'); enableBlockMode(FALSE); // Construct FQFN -$inc = sprintf("inc/modules/guest/action-%s.php", getAction()); +$inc = sprintf('inc/modules/guest/action-%s.php', getAction()); // Is the file there? if ((isIncludeReadable($inc)) && (isMenuActionValid('guest', getAction(), getWhat()))) { diff --git a/inc/modules/login.php b/inc/modules/login.php index 3cb50ada28..0ca8ddcf50 100644 --- a/inc/modules/login.php +++ b/inc/modules/login.php @@ -76,7 +76,7 @@ enableBlockMode(FALSE); outputHtml(' '); -$inc = sprintf("inc/modules/member/action-%s.php", $action); +$inc = sprintf('inc/modules/member/action-%s.php', $action); if ((isIncludeReadable($inc)) && (isMenuActionValid('member', getAction(), getWhat()))) { // Requested module is available so we load it loadInclude($inc); diff --git a/inc/modules/member/action- b/inc/modules/member/action- index f63cc9119d..5c078f59c2 100644 --- a/inc/modules/member/action- +++ b/inc/modules/member/action- @@ -54,7 +54,7 @@ if ((!isExtensionActive('')) && (!isAdmin())) { } // END - if // Load the include file -$inc = sprintf("inc/modules/member/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/member/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the member action module loadIncludeOnce($inc); diff --git a/inc/modules/member/action-account.php b/inc/modules/member/action-account.php index dc75a76071..349132bf66 100644 --- a/inc/modules/member/action-account.php +++ b/inc/modules/member/action-account.php @@ -49,7 +49,7 @@ if (!defined('__SECURITY')) { addYouAreHereLink('member', __FILE__); // Load the include file -$inc = sprintf("inc/modules/member/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/member/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the member action module loadIncludeOnce($inc); diff --git a/inc/modules/member/action-bank.php b/inc/modules/member/action-bank.php index 9458b55c29..d8d2a1d838 100644 --- a/inc/modules/member/action-bank.php +++ b/inc/modules/member/action-bank.php @@ -54,7 +54,7 @@ if ((!isExtensionActive('bank')) && (!isAdmin())) { } // END - if // Load the include file -$inc = sprintf("inc/modules/member/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/member/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the member action module loadIncludeOnce($inc); diff --git a/inc/modules/member/action-coupon.php b/inc/modules/member/action-coupon.php index 8a31683fcb..74a2f25da9 100644 --- a/inc/modules/member/action-coupon.php +++ b/inc/modules/member/action-coupon.php @@ -54,7 +54,7 @@ if ((!isExtensionActive('coupon')) && (!isAdmin())) { } // END - if // Load the include file -$inc = sprintf("inc/modules/member/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/member/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the member action module loadIncludeOnce($inc); diff --git a/inc/modules/member/action-earn.php b/inc/modules/member/action-earn.php index cd893fd918..f7df431a43 100644 --- a/inc/modules/member/action-earn.php +++ b/inc/modules/member/action-earn.php @@ -49,7 +49,7 @@ if (!defined('__SECURITY')) { addYouAreHereLink('member', __FILE__); // Load the include file -$inc = sprintf("inc/modules/member/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/member/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the member action module loadIncludeOnce($inc); diff --git a/inc/modules/member/action-extras.php b/inc/modules/member/action-extras.php index 65b0b12c81..678d52730c 100644 --- a/inc/modules/member/action-extras.php +++ b/inc/modules/member/action-extras.php @@ -49,7 +49,7 @@ if (!defined('__SECURITY')) { addYouAreHereLink('member', __FILE__); // Load the include file -$inc = sprintf("inc/modules/member/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/member/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the member action module loadIncludeOnce($inc); diff --git a/inc/modules/member/action-logout.php b/inc/modules/member/action-logout.php index bfcea1f8bb..7c131b355a 100644 --- a/inc/modules/member/action-logout.php +++ b/inc/modules/member/action-logout.php @@ -49,7 +49,7 @@ if (!defined('__SECURITY')) { addYouAreHereLink('member', __FILE__); // Load the include file -$inc = sprintf("inc/modules/member/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/member/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the member action module loadIncludeOnce($inc); diff --git a/inc/modules/member/action-main.php b/inc/modules/member/action-main.php index 80a25ba556..b75ddc423c 100644 --- a/inc/modules/member/action-main.php +++ b/inc/modules/member/action-main.php @@ -49,7 +49,7 @@ if (!defined('__SECURITY')) { addYouAreHereLink('member', __FILE__); // Load the include file -$inc = sprintf("inc/modules/member/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/member/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the member action module loadIncludeOnce($inc); diff --git a/inc/modules/member/action-order.php b/inc/modules/member/action-order.php index 83c512509a..37ad2d092d 100644 --- a/inc/modules/member/action-order.php +++ b/inc/modules/member/action-order.php @@ -54,7 +54,7 @@ if ((!isExtensionActive('order')) && (!isAdmin())) { } // END - if // Load the include file -$inc = sprintf("inc/modules/member/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/member/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the member action module loadIncludeOnce($inc); diff --git a/inc/modules/member/action-rals.php b/inc/modules/member/action-rals.php index 8171e9d91c..4fc9a5df10 100644 --- a/inc/modules/member/action-rals.php +++ b/inc/modules/member/action-rals.php @@ -49,7 +49,7 @@ if (!defined('__SECURITY')) { addYouAreHereLink('member', __FILE__); // Load the include file -$inc = sprintf("inc/modules/member/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/member/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the member action module loadIncludeOnce($inc); diff --git a/inc/modules/member/action-stats.php b/inc/modules/member/action-stats.php index 92c79feba3..f48093b941 100644 --- a/inc/modules/member/action-stats.php +++ b/inc/modules/member/action-stats.php @@ -49,7 +49,7 @@ if (!defined('__SECURITY')) { addYouAreHereLink('member', __FILE__); // Load the include file -$inc = sprintf("inc/modules/member/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/member/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the member action module loadIncludeOnce($inc); diff --git a/inc/modules/member/action-surfbar.php b/inc/modules/member/action-surfbar.php index 2da109ba38..086a107f0e 100644 --- a/inc/modules/member/action-surfbar.php +++ b/inc/modules/member/action-surfbar.php @@ -54,7 +54,7 @@ if ((!isExtensionActive('surfbar')) && (!isAdmin())) { } // END - if // Load the include file -$inc = sprintf("inc/modules/member/what-%s.php", getWhat()); +$inc = sprintf('inc/modules/member/what-%s.php', getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the member action module loadIncludeOnce($inc); diff --git a/inc/modules/member/what-subids.php b/inc/modules/member/what-subids.php index 166e3b0c5f..13daec50d8 100644 --- a/inc/modules/member/what-subids.php +++ b/inc/modules/member/what-subids.php @@ -91,7 +91,7 @@ if (isFormSent('add_subid')) { doGenericXmlTemplateCallback('member_delete_do_user_subid'); } elseif ((isGetRequestElementSet('do')) && (isGetRequestElementSet('id'))) { // Construct module name - $incFile = sprintf("inc/modules/member/subid-%s.php", sqlEscapeString(getRequestElement('do'))); + $incFile = sprintf('inc/modules/member/subid-%s.php', sqlEscapeString(getRequestElement('do'))); // Is the include readable and is the sub id assigned to current member? if (!isUserSubIdAssignedToMember(getRequestElement('id'))) { diff --git a/inc/modules/member/what-transfer.php b/inc/modules/member/what-transfer.php index cea8fc2565..6dea4dd47a 100644 --- a/inc/modules/member/what-transfer.php +++ b/inc/modules/member/what-transfer.php @@ -176,7 +176,7 @@ switch ($mode) { sendEmail($content['sender']['userid'], '{--TRANSFER_MEMBER_SENDER_SUBJECT--}' . ': ' . $RECIPIENT, $message); // At last send admin mail(s) - $adminSubject = sprintf("%s (%s->%s)", '{--ADMIN_TRANSFER_SUBJECT--}', $SENDER, $RECIPIENT); + $adminSubject = sprintf('%s (%s->%s)', '{--ADMIN_TRANSFER_SUBJECT--}', $SENDER, $RECIPIENT); sendAdminNotification($adminSubject, 'admin_transfer_points', $content); // Transfer is completed diff --git a/inc/mysql-manager.php b/inc/mysql-manager.php index 0583c16dfa..c26a12b991 100644 --- a/inc/mysql-manager.php +++ b/inc/mysql-manager.php @@ -273,7 +273,7 @@ ORDER BY // Full file name for checking menu //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'sub_what=' . $content['sub_what']); - $inc = sprintf("inc/modules/%s/what-%s.php", $mode, $content['sub_what']); + $inc = sprintf('inc/modules/%s/what-%s.php', $mode, $content['sub_what']); if (isIncludeReadable($inc)) { // Mark currently selected menu - open if ((!empty($what)) && (($what == $content['sub_what']))) { @@ -331,7 +331,7 @@ ORDER BY enableBlockMode(); // Load menu block - $INC = sprintf("inc/modules/%s/action-%s.php", $mode, $content['action']); + $INC = sprintf('inc/modules/%s/action-%s.php', $mode, $content['action']); if (isFileReadable($INC)) { // Load include file if ((!isExtensionActive($content['action'])) || ($content['action'] == 'online')) $GLOBALS['rows'] .= loadTemplate('menu_what_begin', TRUE, $mode); diff --git a/inc/phpmailer/class.phpmailer.php b/inc/phpmailer/class.phpmailer.php index effe75ed44..59f4066477 100644 --- a/inc/phpmailer/class.phpmailer.php +++ b/inc/phpmailer/class.phpmailer.php @@ -1906,4 +1906,4 @@ class PHPMailer { } -?> \ No newline at end of file +?>