Several code-cleanups:
authorRoland Häder <roland@mxchange.org>
Wed, 19 Jan 2011 19:20:43 +0000 (19:20 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 19 Jan 2011 19:20:43 +0000 (19:20 +0000)
- Some if() blocks improved by using curly braces (better human-readable)
- The sender of bonus mails is not zero (0) anymore, we use NULL now (maybe
  needs some fixing)
- Thanks to SixCooler for reading text of ext-yacy

47 files changed:
beg.php
inc/classes/cachesystem.class.php
inc/config-functions.php
inc/db/lib-mysql3.php
inc/extensions-functions.php
inc/filter-functions.php
inc/functions.php
inc/install-inc.php
inc/language-functions.php
inc/libs/bonus_functions.php
inc/libs/html_mail_functions.php
inc/libs/nickname_functions.php
inc/libs/rallye_functions.php
inc/libs/refback_functions.php
inc/libs/sponsor_functions.php
inc/libs/surfbar_functions.php
inc/libs/user_functions.php
inc/libs/yoomedia_functions.php
inc/module-functions.php
inc/modules/admin/admin-inc.php
inc/modules/admin/overview-inc.php
inc/modules/admin/what-add_points.php
inc/modules/admin/what-config_imprint.php
inc/modules/admin/what-config_rallye_prices.php
inc/modules/admin/what-del_sponsor.php
inc/modules/admin/what-edit_sponsor.php
inc/modules/admin/what-list_bank_package.php
inc/modules/admin/what-list_links.php
inc/modules/admin/what-list_sponsor.php
inc/modules/admin/what-list_sponsor_pays.php
inc/modules/admin/what-list_unconfirmed.php
inc/modules/admin/what-list_user.php
inc/modules/admin/what-lock_sponsor.php
inc/modules/admin/what-sub_points.php
inc/modules/admin/what-theme_import.php
inc/modules/frametester.php
inc/modules/member/what-holiday.php
inc/modules/member/what-order.php
inc/modules/member/what-reflinks.php
inc/modules/member/what-unconfirmed.php
inc/modules/sponsor/account.php
inc/modules/sponsor/settings.php
inc/mysql-manager.php
inc/session-functions.php
inc/template-functions.php
modules.php
templates/de/html/ext/ext_yacy.tpl

diff --git a/beg.php b/beg.php
index c241a6d..9967f3b 100644 (file)
--- a/beg.php
+++ b/beg.php
@@ -145,7 +145,7 @@ if (isGetRequestParameterSet('userid')) {
                                $content['message'] = loadTemplate('beg_failed', true, $content);
                        }
                } elseif (isMember()) {
-                       // Logged in user found!
+                       // Logged in user found
                        $content['message'] = loadTemplate('beg_login', true, $content);
                } elseif (getBegPayMode() != 'NONE') { // Other pay-mode active!
                        // Load message template depending on pay-mode
index 14169a9..bee8076 100644 (file)
@@ -214,7 +214,7 @@ class CacheSystem {
                                        // Remove cache
                                        $this->removeCacheFile(true);
 
-                                       // Unsupported cache found!
+                                       // Unsupported/unhandled cache detected
                                        debug_report_bug(__METHOD__, __LINE__, 'Unsupported cache ' . $this->name . ' detected.');
                                }
 
@@ -478,7 +478,7 @@ class CacheSystem {
                                        // Does it match?
                                        $GLOBALS[__METHOD__][$ext_name] = ((isset($this->version[$this->name][$ext_name])) && ($this->version[$this->name][$ext_name] == $ext_ver));
                                } elseif ($this->isCacheReadable()) {
-                                       // No cache version found!
+                                       // No cache version found
                                        logDebugMessage(__METHOD__, __LINE__, 'Cache ' . $this->name . ' has missing version entry for extension ' . $ext_name . '! Purging cache...');
        
                                        // Remove the cache file
index df5a884..c251e8d 100644 (file)
@@ -193,7 +193,7 @@ function updateOldConfigFile () {
 
                        // Is the line found?
                        if ((substr($line, 0, strlen($old)) == $old) && (!isset($done[$old]))) {
-                               // Entry found!
+                               // Entry found
                                //* DEBUG: */ debugOutput(secureString($line) . ' - FOUND!');
 
                                // Eval the line...
@@ -239,7 +239,7 @@ function updateOldConfigFile () {
 
                // Is the $MySQL found?
                if (substr($line, 0, 6) == '$MySQL') {
-                       // Okay found!
+                       // Okay, found
                        $found = true;
                } elseif ($found === true) {
                        // Now check this row
index 9f95d57..701506b 100644 (file)
@@ -464,7 +464,7 @@ function SQL_ALTER_TABLE ($sql, $F, $L, $enableCodes = true) {
 
                // But should we DROP?
                if ($tableArray[3] == 'DROP') {
-                       // Then skip if nothing found!
+                       // Then skip if nothing found
                        $skip = true;
                        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Going to drop key ' . $keyName);
                } // END - if
index ed9ead0..3581bf0 100644 (file)
@@ -1116,7 +1116,7 @@ function addExtensionNotes ($ext_ver) {
                                'notes' => '{--INITIAL_RELEASE--}'
                        );
                } else {
-                       // No update notes found!
+                       // No update notes found
                        $content = array(
                                'ver'   => $ext_ver,
                                'notes' => '{--NO_UPDATE_NOTES--}'
@@ -1288,7 +1288,7 @@ function isExtensionUpdateRunning ($ext_name) {
                foreach ($GLOBALS['ext_running_updates'] as $ext1=>$depends) {
                        // Is it found?
                        if (($ext1 == $ext_name) || ($isRunning === true)) {
-                               // Found!
+                               // found
                                logDebugMessage(__FUNCTION__, __LINE__, 'ext1=' . $ext1 . ',ext_name=' . $ext_name . ',isRunning=' . intval($isRunning));
                                $isRunning = true;
                                break;
index 1dd99c4..e2f2b84 100644 (file)
@@ -254,7 +254,7 @@ function runFilterChain ($filterName, $data = null) {
                // Log not found filters in debug-mode
                if (isDebugModeEnabled()) {
                        // Log it away...
-                       logDebugMessage(__FUNCTION__, __LINE__, 'Filter chain ' . $filterName . ' not found!');
+                       logDebugMessage(__FUNCTION__, __LINE__, 'Filter chain ' . $filterName . ' not found.');
                } // END - if
 
                // Abort here and return content
index dbd0bc4..4b25ba9 100644 (file)
@@ -169,7 +169,7 @@ Message : ' . htmlentities(utf8_decode($message)) . '
                // Send Mail away
                return sendRawEmail($toEmail, $subject, $message, $mailHeader);
        } elseif ($isHtml != 'Y') {
-               // Problem found!
+               // Problem detected while sending a mail, forward it to admin
                return sendRawEmail(getConfig('WEBMASTER'), '[PROBLEM:]' . $subject, $message, $mailHeader);
        }
 
@@ -1858,7 +1858,7 @@ function rebuildCache ($cache, $inc = '', $force = false) {
                                //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, "inc={$inc} - LOADED!<br />");
                                loadInclude($inc);
                        } else {
-                               // Include not found!
+                               // Include not found
                                logDebugMessage(__FUNCTION__, __LINE__, 'Include ' . $inc . ' not found. cache=' . $cache);
                        }
                } // END - if
index d0e49a6..4958a31 100644 (file)
@@ -214,7 +214,7 @@ if ((!isInstalled()) || (!isAdminRegistered())) {
                                        if (SQL_SELECT_DB($GLOBALS['install_mysql']['dbase'], __FILE__, __LINE__) === true) {
                                                // Check for dumps
                                                if ((!isFileReadable(postRequestParameter('spath') . 'install/tables.sql')) || (!isFileReadable(postRequestParameter('spath') . 'install/menu-'.getLanguage().'.sql'))) {
-                                                       // Installation area not found!
+                                                       // Installation area not found
                                                        addFatalMessage(__FILE__, __LINE__, '{--INSTALL_MISSING_DUMPS--}');
                                                        return;
                                                } // END - if
index 074b25e..93999f1 100644 (file)
@@ -43,7 +43,7 @@ if (!defined('__SECURITY')) {
 // "Getter" for language strings
 // @TODO Rewrite all language constants to this function.
 function getMessage ($messageId) {
-       // Default is not found!
+       // Default is not found
        $return = '!' . $messageId . '!';
 
        // Is the language string found?
index a4a9c21..6826994 100644 (file)
@@ -85,7 +85,7 @@ function addTurboBonus ($mid, $userid, $type) {
                        // Level found
                        $points = $test[$rank - 2];
                } else {
-                       // Level not found!
+                       // Level not found
                        $points = '0.00000';
                }
        }
@@ -197,7 +197,7 @@ LIMIT 1",
                        $GLOBALS['ranking_content']['rankings'] = '{--MEMBER_BONUS_RANK_YOU_ARE_404--}';
                } // END - if
        } else {
-               // No entries found!
+               // No entries found
                // @TODO Move this HTML to a template
                $OUT = '<tr>
   <td colspan="3" align="center" height="30" class="bottom">
index 4e0169b..eb205ec 100644 (file)
@@ -58,11 +58,12 @@ function checkHtmlTags ($html) {
                $check = strtolower(substr($test, strpos($test, '<') + 1, strpos($test, '>') - strpos($test, '<') - 1));
                $check = str_replace('/', '', $check);
                if (!in_array($check, $GLOBALS['html_tags'])) {
-                       // Invalid tag found!
+                       // Invalid tag found
                        return '';
-               }
+               } // END - if
                $test = substr($test, strpos($test, '>') + 1);
-       }
+       } // END - while
+
        // Return tested code
        return $html;
 }
index a5cfe72..f3ec02b 100644 (file)
@@ -88,7 +88,7 @@ function getNickname ($userid) {
                                $GLOBALS['nicknames'][$userid] = $ret;
                        } // END - if
                } else {
-                       // Direct nickname found!
+                       // Direct nickname found
                        $ret = $userid;
 
                        // Put it in cche
index a9cb0f5..e2b69c0 100644 (file)
@@ -828,7 +828,7 @@ function addReferalRallyeTemplateSelection ($name = 'template', $default = '') {
 
                // Accept only template names between 1 and 255 chars length
                if ((strlen($read) < 256) && (!empty($read))) {
-                       // Valid entry found!
+                       // Valid entry found
                        $ral[$read] = $read;
                } else {
                        // Log invalid
index bb42f8f..c4b15f7 100644 (file)
@@ -129,7 +129,7 @@ function getRefbackPercents ($userid, $ref) {
                } else {
                        // Debug log
                        //* DEBUG: */ print(__FUNCTION__ . '(<font color="#0000aa">' . __LINE__."</font>): NO ENTRY FOUND! :-(<br />");
-                       logDebugMessage(__FUNCTION__, __LINE__, 'userid=' . $userid . ',ref=' . $ref . ' - No entry found! :-(');
+                       logDebugMessage(__FUNCTION__, __LINE__, 'userid=' . $userid . ',ref=' . $ref . ' - No entry found. :-(');
                }
 
                // Free result
index fac07ce..15ebf6c 100644 (file)
@@ -79,7 +79,7 @@ function handleSponsorRequest ($postData, $update=false, $messageArray=array(),
                                                        if (SQL_NUMROWS($result) == 1) {
                                                                // Yes, he is!
                                                                if ((getWhat() == 'add_sponsor') || ($update)) {
-                                                                       // Already found!
+                                                                       // Already found
                                                                        $ALREADY = true;
                                                                } else {
                                                                        // Update his data
@@ -207,7 +207,7 @@ function handleSponsorRequest ($postData, $update=false, $messageArray=array(),
                                $result = SQL_QUERY_ESC($sql, $DATA['values'], __FUNCTION__, __LINE__);
                        } // END - if
                } else {
-                       // Error found!
+                       // Error detected
                        $message = getMessageFromIndexedArray('{--SPONSOR_DATA_NOT_SAVED--}', 'failed', $messageArray);
                        loadTemplate('admin_settings_saved', false, $message);
                }
@@ -226,7 +226,7 @@ function sponsorTranslateUserStatus ($status) {
                // Then use it
                $ret = getMessage($constantName);
        } else {
-               // Not found!
+               // Not found
                //* DEBUG: */ debug_report_bug(__FUNCTION__, __LINE__, sprintf("Unknown status %s detected.", $status));
                logDebugMessage(__FUNCTION__, __LINE__, sprintf("Unknown status %s detected.", $status));
                $ret = getMaskedMessage('ACCOUNT_STATUS_UNKNOWN', $status);
@@ -340,7 +340,7 @@ function addSponsorContent ($what) {
                // Every sponsor action will output nothing directly. It will be written into $GLOBALS['sponsor_output']!
                loadIncludeOnce($INC);
        } else {
-               // File not found!
+               // File not found
                $GLOBALS['sponsor_output'] .= loadTemplate('admin_settings_saved', true, getMaskedMessage('SPONSOR_CONTENT_404', $what));
        }
 
index ad115ab..18476de 100644 (file)
@@ -409,7 +409,7 @@ function SURFBAR_MEMBER_EXECUTE_ACTION ($action, $urlData) {
                        $executed = SURFBAR_CHANGE_STATUS($urlData['id'], $urlData['url_status'], $urlData['new_status'], array($urlData['id'] => $urlData));
                } // END - if
        } else {
-               // Not found!
+               // Not found
                addFatalMessage(__FUNCTION__, __LINE__, '{--MEMBER_SURFBAR_EXECUTE_ACTION_404--}', $functionName);
        }
 
index 4f68201..c405600 100644 (file)
@@ -393,7 +393,7 @@ function doUserLogin ($userid, $passwd, $successUrl = '', $errorUrl = 'modules.p
                // Set userid in session
                setSession('current_userid', getUserData('userid'));
        } elseif (!isUserDataValid()) {
-               // User id not found!
+               // User id not found
                $errorCode = getCode('WRONG_ID');
        } else {
                // Unknown error
index 3e02dff..814db3d 100644 (file)
@@ -302,7 +302,7 @@ function yoomediaTranslateIndex ($type, $index) {
                // Use this element
                $return = $GLOBALS['translation_tables']['yoomedia'][$type][$index];
        } else {
-               // Not found!
+               // Not found
                logDebugMessage(__FUNCTION__, __LINE__, "type={$type},index={$index} not found.");
        }
 
@@ -317,7 +317,7 @@ function translateYooMediaError ($errorCode) {
 
        // Is the entry there?
        if (isset($GLOBALS['translation_tables']['yoomedia']['error_codes'][$errorCode])) {
-               // Entry found!
+               // Entry found
                $return = $GLOBALS['translation_tables']['yoomedia']['error_codes'][$errorCode];
        } else {
                // Log missing entries
index 75316d0..ebb5f2f 100644 (file)
@@ -154,7 +154,7 @@ function isModuleRegistered ($module) {
                        $found = true;
                } elseif (isDebugModeEnabled()) {
                        // Debug message only in debug-mode...
-                       logDebugMessage(__FUNCTION__, __LINE__, 'Module ' . $module . ' not found!');
+                       logDebugMessage(__FUNCTION__, __LINE__, 'Module ' . $module . ' not found.');
                }
 
                // Free result
index c660dac..4eadcc4 100644 (file)
@@ -218,11 +218,11 @@ LIMIT 1",
                        // Access denied
                        loadTemplate('admin_menu_failed', false, getMaskedMessage('ADMIN_ACCESS_DENIED', $what));
                } else {
-                       // Include file not found! :-(
+                       // Include file not found :-(
                        loadTemplate('admin_menu_failed', false, getMaskedMessage('ADMIN_ACTION_404', $action));
                }
        } else {
-               // Invalid action/what pair found!
+               // Invalid action/what pair found
                loadTemplate('admin_menu_failed', false, getMaskedMessage('ADMIN_ACTION_INVALID', $action . '/' . $what));
        }
 
@@ -1111,7 +1111,7 @@ function sendAdminPasswordResetLink ($email) {
 
        // Is there an account?
        if (SQL_HASZERONUMS($result)) {
-               // No account found!
+               // No account found
                return '{--ADMIN_NO_LOGIN_WITH_EMAIL--}';
        } // END - if
 
index b4ae79d..7304ac1 100644 (file)
@@ -115,7 +115,7 @@ ORDER BY
                array(getCurrentAdminId()), __FILE__, __LINE__);
 
        if (!SQL_HASZERONUMS($result_tasks)) {
-               // New jobs found!
+               // New jobs found
                $jobsDone = false;
        } // END - if
 
@@ -177,7 +177,7 @@ LIMIT 1",
                                                $add = '<li>{--ADMIN_MEMBER_UID--}: <strong>' . generateUserProfileLink($taskData['userid'], 'user_data') . ' (<a href="' . generateEmailLink($content['email'], 'user_data') . '">' . translateGender($content['gender']) . ' ' . $content['surname'] . ' ' . $content['family'] . '</a>)</strong></li>';
                                        } else {
                                                // Invalid userid, so log and zero it
-                                               logDebugMessage(__FUNCTION__, __LINE__, 'Invalid userid=' . $taskData['userid'] . ' -> not found!');
+                                               logDebugMessage(__FUNCTION__, __LINE__, 'fetchUserData() failed: userid=' . $taskData['userid'] . ' not found.');
                                                $taskData['userid'] = '0';
                                        }
                                } // END - if
index 5931a83..54edc1b 100644 (file)
@@ -116,7 +116,7 @@ if (getRequestParameter('userid') == 'all') {
                        loadTemplate('admin_add_points', false, $content);
                }
        } else {
-               // User not found!
+               // User not found
                loadTemplate('admin_settings_unsaved', false, getMaskedMessage('ADMIN_MEMBER_404', bigintval(getRequestParameter('userid'))));
        }
 } else {
index 6adb361..795fdb1 100644 (file)
@@ -62,7 +62,7 @@ if (isFormSent()) {
                // Transfer all rows to $content
                $content = $OUT;
        } else {
-               // None found!
+               // None found
                $content = loadTemplate('admin_list_imprint_row_none', true);
        }
 
index 1a4b86c..baf1ab9 100644 (file)
@@ -69,7 +69,7 @@ if (isGetRequestParameterSet('rallye')) {
                                // Free memory
                                SQL_FREERESULT($result);
 
-                               // Price level found!
+                               // Price level found
                                loadTemplate('admin_settings_saved', false, '{--RALLYE_PRICE_ALREADY_FOUND--}');
                        }
                }
index a691cc3..8001fc0 100644 (file)
@@ -84,7 +84,7 @@ if (isGetRequestParameterSet('id')) {
                        loadTemplate('admin_delete_sponsor', false, $content);
                }
        } else {
-               // Sponsor not found!
+               // Sponsor not found
                loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_SPONSOR_404', bigintval(getRequestParameter('id'))));
        }
 
index 7d6755b..a31c5c2 100644 (file)
@@ -171,11 +171,11 @@ LIMIT 1",
                        // Load mode template
                        loadTemplate($TPL, false, $content);
                } else {
-                       // Template not found!
+                       // Template not found
                        loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_SPONSOR_MODUS_TPL_404', getRequestParameter('mode')));
                }
        } else {
-               // Sponsor not found!
+               // Sponsor not found
                loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_SPONSOR_404', bigintval(getRequestParameter('id'))));
        }
 
index 8f1c784..86de21c 100644 (file)
@@ -96,7 +96,7 @@ if (!SQL_HASZERONUMS($result)) {
        // Load main template
        loadTemplate('admin_list_bank_package', false, $OUT);
 } else {
-       // No packages found!
+       // No packages found
        loadTemplate('admin_settings_saved', false, '{--ADMIN_BANK_NO_PACKAGES_FOUND--}');
 }
 
index f1403a6..cd43aeb 100644 (file)
@@ -115,7 +115,7 @@ if (isGetRequestParameterSet('userid')) {
 
                                        // Do we have an entry?
                                        if (SQL_NUMROWS($result_data) == 1) {
-                                               // Mail was found!
+                                               // Mail was found
                                                $content = SQL_FETCHARRAY($result_data);
 
                                                // Fix empty subject
index c7ec236..1c006bd 100644 (file)
@@ -140,7 +140,7 @@ ORDER BY
        `id` ASC", __FILE__, __LINE__);
 
        if (!SQL_HASZERONUMS($result_main)) {
-               // At least one sponsor found!
+               // At least one sponsor found
                $OUT = '';
                while ($content = SQL_FETCHARRAY($result_main)) {
                        // Transfer data to array
index 296b11e..dbe2126 100644 (file)
@@ -52,7 +52,7 @@ if (isGetRequestParameterSet('id')) {
                // Free memory
                SQL_FREERESULT($result);
        } else {
-               // Sponsor not found!
+               // Sponsor not found
                loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_SPONSOR_404', bigintval(getRequestParameter('id'))));
        }
 } else {
index a400f49..420a085 100644 (file)
@@ -107,12 +107,18 @@ if (($listed === true) && (!empty($sql))) {
 
        // Do we have an entry?
        if (SQL_NUMROWS($result_master) == 1) {
-               // Mail order / bonus mail found!
+               // Mail order / bonus mail found
                $poolData = SQL_FETCHARRAY($result_master);
 
-               // Transfer data to constants for the template
-               if (($poolData['id'] > 0) && ($ID == '-1')) $ID = $poolData['id'];
-               if ($col == 'bonus_id') $poolData['sender'] = '0';
+               // If there is a pool id and $ID is not set, we take it
+               if (($poolData['id'] > 0) && ($ID == '-1')) {
+                       $ID = $poolData['id'];
+               } // END - if
+
+               // Bonus mails do always have a sender 'NULL'
+               if ($col == 'bonus_id') {
+                       $poolData['sender'] = null;
+               } // END - if
 
                // Load unconfirmed mail links. Hmmm, this select query is pretty cool
                // but it does only show unconfirmed mail links from existing user
index a900423..ecc63f1 100644 (file)
@@ -107,7 +107,7 @@ LIMIT 1",
 
        // User found?
        if (SQL_NUMROWS($result_user) == 1) {
-               // Account found!
+               // Account found
                $content  = SQL_FETCHARRAY($result_user);
 
                // Get count/sum of refs, selected categories, unconfirmed mails
index a82c172..0aedbe8 100644 (file)
@@ -106,7 +106,7 @@ if (isGetRequestParameterSet('id')) {
                        $message = '{--ADMIN_SPONSOR_CANNOT_LOCK_PENDING_UNCINFIRMED_ACCOUNTS--}';
                }
        } else {
-               // Sponsor not found!
+               // Sponsor not found
                $message = getMaskedMessage('ADMIN_SPONSOR_404', bigintval(getRequestParameter('id')));
        }
 
index 37dea2b..5c5dc6c 100644 (file)
@@ -109,7 +109,7 @@ if (getRequestParameter('userid') == 'all') {
                        loadTemplate('admin_sub_points', false, $content);
                }
        } else {
-               // User not found!
+               // User not found
                loadTemplate('admin_settings_unsaved', false, getMaskedMessage('ADMIN_MEMBER_404', bigintval(getRequestParameter('userid'))));
        }
 } else {
index 84206c4..a7f9c10 100644 (file)
@@ -78,7 +78,7 @@ VALUES ('%s','N','%s','%s')",
                        // Prepare message
                        $message = getMaskedMessage('ADMIN_THEME_IMPORTED', postRequestParameter('theme'));
                } else {
-                       // Include file not found!
+                       // Include file not found
                        $message = getMaskedMessage('ADMIN_THEME_INC_404', postRequestParameter('theme'));
                }
        } else {
index c12694d..4203c99 100644 (file)
@@ -60,7 +60,7 @@ if (isGetRequestParameterSet('order')) {
                        // Mode is member
                        $mode = 'member';
                } else {
-                       // Matching line not found!
+                       // Matching line not found
                        redirectToUrl('modules.php?module=index&amp;what=login');
                }
 
index 22867b5..88bdb00 100644 (file)
@@ -76,7 +76,7 @@ ORDER BY
 LIMIT 1", array(getMemberId()), __FILE__, __LINE__);
 
 if ((SQL_NUMROWS($result1) == 1) || (SQL_NUMROWS($result2) == 1)) {
-       // Mail order found!
+       // Mail order found
        $content = merge_array($content, SQL_FETCHARRAY($result1));
        $content = merge_array($content, SQL_FETCHARRAY($result2));
 
index 0d95ae3..59b1cb1 100644 (file)
@@ -95,7 +95,7 @@ LIMIT 1",
                if (getConfig('allow_url_in_text') == 'Y') {
                        // Test submitted text against some filters (length, URLs in text etc.)
                        if ((strpos(strtolower(postRequestParameter('text')), 'https://') > -1) || (strpos(strtolower(postRequestParameter('text')), 'http://') > -1) || (strpos(strtolower(postRequestParameter('text')), "www") > -1)) {
-                               // URL found!
+                               // URL found
                                $url = 'modules.php?module=login&amp;what=order&amp;code=' . getCode('URL_FOUND');
                        } // END - if
 
index 971af09..609c738 100644 (file)
@@ -93,7 +93,9 @@ if (!SQL_HASZERONUMS($result)) {
                        $row['alternate'] = '{?MAIN_TITLE?} - {?SLOGAN?}';
                } // END - if
 
-               if ($size > 0) $row['alternate'] .= ' ('  .translateComma(round($size / 102.4) / 10) . ' {--KBYTES--})';
+               if ($size > 0) {
+                       $row['alternate'] .= ' ('  .translateComma(round($size / 102.4) / 10) . ' {--KBYTES--})';
+               } // END - if
 
                // Add some more data
                $row['userid'] = getMemberId();
@@ -105,7 +107,7 @@ if (!SQL_HASZERONUMS($result)) {
        // Load final template
        $content['refbanner_content'] = loadTemplate('member_reflinks_table', true, $OUT);
 } else {
-       // No refbanner found!
+       // No refbanner found
        $content['refbanner_content'] = loadTemplate('admin_settings_saved', true, '{--MEMBER_NO_REFBANNER_FOUND--}');
 }
 
index 3689c64..e593034 100644 (file)
@@ -165,7 +165,7 @@ LIMIT 1",
                                break;
 
                        case 'BONUS':
-                               $result_data = SQL_QUERY_ESC("SELECT subject, timestamp, cat_id, points, 0 FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `id`=%s LIMIT 1",
+                               $result_data = SQL_QUERY_ESC("SELECT `subject`, `timestamp`, `cat_id`, `points`, 0 FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `id`=%s LIMIT 1",
                                        array(bigintval($row['bonus_id'])), __FILE__, __LINE__);
                                $row['link_type'] = 'bonusid';
                                $data = $row['bonus_id'];
@@ -179,7 +179,7 @@ LIMIT 1",
 
                // Data found to this mail?
                if ((SQL_NUMROWS($result_data) == 1) && (($row['link_type'] == 'mailid') || ($row['link_type'] == 'bonusid'))) {
-                       // Mail was found!
+                       // Mail was found
                        list($subject, $timestamp, $cat, $pay, $sender) = SQL_FETCHROW($result_data);
 
                        // Subject line found?
index df50276..118d92e 100644 (file)
@@ -141,7 +141,7 @@ if (SQL_NUMROWS($result) == 1) {
                $GLOBALS['sponsor_output'] = loadTemplate('admin_settings_saved', true, getMaskedMessage('SPONSOR_ACCOUNT_FAILED', $STATUS));
        }
 } else {
-       // Sponsor account not found!
+       // Sponsor account not found
        $GLOBALS['sponsor_output'] = loadTemplate('admin_settings_saved', true, getMaskedMessage('SPONSOR_ACCOUNT_404', getSession('sponsor_id')));
 }
 
index b93b803..d4bc934 100644 (file)
@@ -119,7 +119,7 @@ if (SQL_NUMROWS($result) == 1) {
                $GLOBALS['sponsor_output'] = loadTemplate('admin_settings_saved', true, getMaskedMessage('SPONSOR_ACCOUNT_FAILED', $STATUS));
        }
 } else {
-       // Sponsor account not found!
+       // Sponsor account not found
        $GLOBALS['sponsor_output'] = loadTemplate('admin_settings_saved', true, getMaskedMessage('SPONSOR_ACCOUNT_404', getSession('sponsor_id')));
 }
 
index c53e965..9bfcadd 100644 (file)
@@ -259,7 +259,7 @@ ORDER BY
                                                // Navigation link
                                                $OUT .= '<a name="menu" class="menu_blur" href="{%url=modules.php?module=' . getModule() . '&amp;what=' . $content['sub_what'] . '%}" target="_self">';
                                        } else {
-                                               // Not found! - open
+                                               // Not found - open
                                                $OUT .= '<em style="cursor:help" class="notice" title="{%message,MENU_WHAT_404=' . $content['sub_what'] . '%}">';
                                        }
 
@@ -274,7 +274,7 @@ ORDER BY
                                                        $OUT .= '</strong>';
                                                } // END - if
                                        } else {
-                                               // Not found! - close
+                                               // Not found - close
                                                $OUT .= '</em>';
                                        }
 
@@ -963,7 +963,7 @@ function getReferalLevelPercents ($level) {
                // First look for level
                $key = array_search($level, $GLOBALS['cache_array']['refdepths']['level']);
                if ($key !== false) {
-                       // Entry found!
+                       // Entry found
                        $data['percents'] = $GLOBALS['cache_array']['refdepths']['percents'][$key];
 
                        // Count cache hit
index cef1f7a..7bfb18c 100644 (file)
@@ -91,7 +91,7 @@ function isSessionVariableSet ($var) {
 
 // Returns wether the value of the session variable or NULL if not set
 function getSession ($var) {
-       // Default is not found! ;-)
+       // Default is not found ;-)
        $value = null;
 
        // Is the variable there?
index c824961..da8ddcf 100644 (file)
@@ -485,7 +485,7 @@ function loadEmailTemplate ($template, $content = array(), $userid = '0', $loadU
                $GLOBALS['tpl_content'][$template] = '$newContent = decodeEntities("' . compileRawCode(escapeQuotes($GLOBALS['tpl_content'][$template])) . '");';
                eval($GLOBALS['tpl_content'][$template]);
        } elseif (!empty($template)) {
-               // Template file not found!
+               // Template file not found
                $newContent = '<div class="para">
        {--TEMPLATE_404--}: ' . $template . '
 </div>
@@ -618,7 +618,7 @@ function compileRawCode ($code, $simple = false, $constants = true, $full = true
                                // Does this entry exist?
                                //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, "found={$found},match={$match},set={$set}<br />");
                                if ($test == $match) {
-                                       // Match found!
+                                       // Match found
                                        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, "fuzzyFound!<br />");
                                        $fuzzyFound = true;
                                        break;
@@ -1393,7 +1393,7 @@ function determinePageTitle () {
                // Installation mode
                $pageTitle = '{--INSTALLER_OF_MAILER--}';
        } else {
-               // Configuration not found!
+               // Configuration not found
                $pageTitle = '{--NO_CONFIG_FOUND_TITLE--}';
 
                // Do not add the fatal message in installation mode
index ac2fd8c..d4e00b3 100644 (file)
@@ -89,7 +89,7 @@ if ((isExtensionActive('maintenance')) && (isMaintenanceEnabled()) && (!isAdmin(
                                // Set HTTP status
                                setHttpStatus('404');
 
-                               // Module not found!
+                               // Module not found
                                addFatalMessage(__FILE__, __LINE__, getMaskedMessage('MODULE_REGISTRY_404', getModule()));
 
                                // Set module to error module (non-existent!)
index 47e8208..eb8c2f1 100644 (file)
@@ -2,8 +2,20 @@
        <a href="http://yacy.net" rel="external" target="_blank"
         title="YaCy Peer-To-Peer Suchmaschine">YaCy</a> ist eine auf dem
        Peer-To-Peer-Prinzip aufbauende Suchmaschine. Diese Erweiterung hilft Ihnen
-       bei der Integration eines YaCy-Peers (z.B. auf Ihrem Server installiertem)
-       in Ihren {?MT_WORD?} als Webseitensuche.
+       bei der Integration eines YaCy-Peers (z.B. auf dem selben Server
+       installiertem) in Ihren {?MT_WORD?} als Webseitensuche.
+</div>
+
+<div class="para">
+       M&ouml;gliches Einsatzgebiet von YaCy w&auml;re wie zuvor angedeutet eine
+       Webseitensuche (das ein bekanntes &quot;Personal Website Search&quot;
+       Produkt ersetzen kann), {?MT_WORD3?} haben durchaus Foren oder gar einen
+       Blog installiert, die eine Suche anbieten + einige Seiten auf der
+       Hauptseite. Diesses alles zusammen liesse sich mit YaCy dann mit einer
+       einheitlichen Suchmaske durchsuchbar machen. Die Erweiterung macht hier
+       deswegen Sinn, da es dann dem Webmaster (mit zum Teil sehr wenig
+       HTML-Kenntnissen) leichter f&auml;llt, YaCy einzubinden. Das Mitglied hat
+       dann ihm eine bekannte Darstellung der Suchergebnisse.
 </div>
 
 <div class="para">
        Blog installiert haben und diese auch mit der selben Suchmaske durchsuchbar
        machen m&ouml;chten.
 </div>
+
+<div class="para">
+       Aufgrund dass es bei YaCy keinen Jugendschutzfilter (zum Rausfiltern von
+       f&uuml;r Jugendliche ungeeigneten Content) gibt und jeder Peer-Betreiber
+       selber entscheiden kann, welche Webseiten er sperrt und welche nicht,
+       sollten Sie in der YaCy-Konfiguration DHT komplett ausschalten und z.B.
+       auf einen &ouml;ffentlichen Robinson-Peer wechseln. So kommen keine ungefilterten
+       Suchergebisse in Ihren {?MT_WORD?} rein, die Sie eventuell nicht zeigen
+       wollen. Ist DHT an, ist es durchaus m&ouml;glich, dass trotz
+       Einschr&auml;nkung des URL-Filters (nur Ihre Webseite wie oben beschrieben)
+       immer noch unerw&uuml;nschte Suchergebnisse (Bildersuche z.B.) von Ihrem
+       Peer durchsuchbar sind, da Ihr Peer andere im YaCy-Netzwerk befindlichen
+       Peers anfragt.
+</div>