$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
// Remove cache
$this->removeCacheFile(true);
- // Unsupported cache found!
+ // Unsupported/unhandled cache detected
debug_report_bug(__METHOD__, __LINE__, 'Unsupported cache ' . $this->name . ' detected.');
}
// 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
// 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...
// Is the $MySQL found?
if (substr($line, 0, 6) == '$MySQL') {
- // Okay found!
+ // Okay, found
$found = true;
} elseif ($found === true) {
// Now check this row
// 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
'notes' => '{--INITIAL_RELEASE--}'
);
} else {
- // No update notes found!
+ // No update notes found
$content = array(
'ver' => $ext_ver,
'notes' => '{--NO_UPDATE_NOTES--}'
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;
// 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
// 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);
}
//* 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
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
// "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?
// Level found
$points = $test[$rank - 2];
} else {
- // Level not found!
+ // Level not found
$points = '0.00000';
}
}
$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">
$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;
}
$GLOBALS['nicknames'][$userid] = $ret;
} // END - if
} else {
- // Direct nickname found!
+ // Direct nickname found
$ret = $userid;
// Put it in cche
// 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
} 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
if (SQL_NUMROWS($result) == 1) {
// Yes, he is!
if ((getWhat() == 'add_sponsor') || ($update)) {
- // Already found!
+ // Already found
$ALREADY = true;
} else {
// Update his data
$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);
}
// 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);
// 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));
}
$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);
}
// 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
// Use this element
$return = $GLOBALS['translation_tables']['yoomedia'][$type][$index];
} else {
- // Not found!
+ // Not found
logDebugMessage(__FUNCTION__, __LINE__, "type={$type},index={$index} not found.");
}
// 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
$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
// 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));
}
// Is there an account?
if (SQL_HASZERONUMS($result)) {
- // No account found!
+ // No account found
return '{--ADMIN_NO_LOGIN_WITH_EMAIL--}';
} // END - if
array(getCurrentAdminId()), __FILE__, __LINE__);
if (!SQL_HASZERONUMS($result_tasks)) {
- // New jobs found!
+ // New jobs found
$jobsDone = false;
} // END - if
$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
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 {
// Transfer all rows to $content
$content = $OUT;
} else {
- // None found!
+ // None found
$content = loadTemplate('admin_list_imprint_row_none', true);
}
// Free memory
SQL_FREERESULT($result);
- // Price level found!
+ // Price level found
loadTemplate('admin_settings_saved', false, '{--RALLYE_PRICE_ALREADY_FOUND--}');
}
}
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'))));
}
// 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'))));
}
// 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--}');
}
// 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
`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
// 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 {
// 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
// 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
$message = '{--ADMIN_SPONSOR_CANNOT_LOCK_PENDING_UNCINFIRMED_ACCOUNTS--}';
}
} else {
- // Sponsor not found!
+ // Sponsor not found
$message = getMaskedMessage('ADMIN_SPONSOR_404', bigintval(getRequestParameter('id')));
}
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 {
// 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 {
// Mode is member
$mode = 'member';
} else {
- // Matching line not found!
+ // Matching line not found
redirectToUrl('modules.php?module=index&what=login');
}
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));
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&what=order&code=' . getCode('URL_FOUND');
} // END - if
$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();
// 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--}');
}
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'];
// 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?
$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')));
}
$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')));
}
// Navigation link
$OUT .= '<a name="menu" class="menu_blur" href="{%url=modules.php?module=' . getModule() . '&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'] . '%}">';
}
$OUT .= '</strong>';
} // END - if
} else {
- // Not found! - close
+ // Not found - close
$OUT .= '</em>';
}
// 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
// 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?
$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>
// 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;
// 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
// 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!)
<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ögliches Einsatzgebiet von YaCy wäre wie zuvor angedeutet eine
+ Webseitensuche (das ein bekanntes "Personal Website Search"
+ 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ä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öchten.
</div>
+
+<div class="para">
+ Aufgrund dass es bei YaCy keinen Jugendschutzfilter (zum Rausfiltern von
+ fü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 ö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öglich, dass trotz
+ Einschränkung des URL-Filters (nur Ihre Webseite wie oben beschrieben)
+ immer noch unerwünschte Suchergebnisse (Bildersuche z.B.) von Ihrem
+ Peer durchsuchbar sind, da Ihr Peer andere im YaCy-Netzwerk befindlichen
+ Peers anfragt.
+</div>