}
// Setter for EXT_UPDATE_DEPENDS flag
-function addExtensionUpdateDependency ($updateDepends) {
+function addExtensionDependency ($updateDepends) {
//* DEBUG */ logDebugMessage(__FUNCTION__, __LINE__, 'currName=' . getCurrentExtensionName() . '/' . $updateDepends . ' - ENTERED!');
// Is the update depency empty? (NEED TO BE FIXED!)
if (empty($updateDepends)) {
}
// Removes given extension from update denpency list
-function removeExtensionUpdateDependency ($ext_name) {
+function removeExtensionDependency ($ext_name) {
// Look it up
$key = array_search($ext_name, getExtensionUpdateDependencies());
case '0.0.9': // SQL queries for v0.0.9
// Make update depending on 'online'
- addExtensionUpdateDependency('online');
+ addExtensionDependency('online');
// Register filter
registerFilter('online_extra_links', 'ADD_LINK_ACTIVE_LIST', false, true, isExtensionDryRun());
// Update notes (these will be set as task text!)
setExtensionUpdateNotes("Filter für den "Wer ist Online" Block hinzugefügt und ist von <strong>online</strong> abhängig.");
break;
- }
+ } // END - switch
break;
case 'modify': // When the extension got modified
default: // Unknown extension mode
logDebugMessage(__FILE__, __LINE__, sprintf("Unknown extension mode %s in extension %s detected.", getExtensionMode(), getCurrentExtensionName()));
break;
-}
+} // END - switch
// [EOF]
?>
case '0.7.1': // SQL queries for v0.7.1
// Update depends on sql_patches
- addExtensionUpdateDependency('sql_patches');
+ addExtensionDependency('sql_patches');
// Add filters
registerFilter('sql_admin_extra_data', 'ADD_EXTRA_SQL_DATA', false, true, isExtensionDryRun());
case '0.2.0': // SQL queries for v0.2.0
// This update depends on sql_patches
- addExtensionUpdateDependency('sql_patches');
+ addExtensionDependency('sql_patches');
// Update notes (these will be set as task text!)
setExtensionUpdateNotes("Die Erweiterung hängt nun von der <strong>sql_patches</strong> ab.");
* -------------------------------------------------------------------- *
* Short description : Clickable forced banner or text links *
* -------------------------------------------------------------------- *
- * Kurzbeschreibung : *
+ * Kurzbeschreibung : Klickbare Forced-Banner oder -Textlinks *
* -------------------------------------------------------------------- *
* $Revision:: $ *
* $Date:: $ *
switch (getExtensionMode()) {
case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+ // This depends on 'sponsor' now
+ addExtensionDependency('sponsor');
+
// SQL commands to run
break;
addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu_las` (`la_id`, `la_action`, `la_what`) VALUES ('config', '', 'config_holiday')");
// Depends on sql_patches (or you have to execute these both SQL statements by phpMyAdmin
- addExtensionUpdateDependency('sql_patches');
+ addExtensionDependency('sql_patches');
// Update notes (these will be set as task text!)
setExtensionUpdateNotes("Erweiterung in's neue Menüsystem integriert.");
// Update notes (these will be set as task text!)
setExtensionUpdateNotes("Fehlerhinweis bei deaktivierter Erweiterung verbessert.");
break;
- }
+ } // END - switch
break;
case 'modify': // When the extension got modified
default: // Unknown extension mode
logDebugMessage(__FILE__, __LINE__, sprintf("Unknown extension mode %s in extension %s detected.", getExtensionMode(), getCurrentExtensionName()));
break;
-}
+} // END - switch
// [EOF]
?>
case '0.1.6':
// Dependency is needed for ext-registration!! (want to alter a non existent Table)
- addExtensionUpdateDependency('bonus');
+ addExtensionDependency('bonus');
setExtensionUpdateNotes("Abhänigkeit von der Erweiterung <strong>bonus</strong> hinzugefügt.");
break;
- }
+ } // END - switch
break;
case 'modify': // When the extension got modified
default: // Unknown extension mode
logDebugMessage(__FILE__, __LINE__, sprintf("Unknown extension mode %s in extension %s detected.", getExtensionMode(), getCurrentExtensionName()));
break;
-} // END - switc
+} // END - switch
// [EOF]
?>
('ZW', 'Zimbabwe', 'ext-iso3166');");
// This extension depends on the country extension
- addExtensionUpdateDependency('country');
+ addExtensionDependency('country');
// Update notes (these will be set as task text!)
setExtensionUpdateNotes("Erste Liste von 243 Ländercodes nach ISO 3166. (Quelle: Selfhtml)<br />Alle Länder sind zuerst deaktiviert. Achtung DE könnte doppelt vorkommen.<br />Ein Aktivieren/Deaktivieren lässt alle Länder beim Registrieren anzeigen oder nicht Anzeigen.");
break;
-
- }
+ } // END - switch
break;
case 'modify': // When the extension got modified
default: // Unknown extension mode
logDebugMessage(__FILE__, __LINE__, sprintf("Unknown extension mode %s in extension %s detected.", getExtensionMode(), getCurrentExtensionName()));
break;
-}
+} // END - switch
// [EOF]
?>
<strong>Wichtig: Laden Sie noch die Template member_mydata_overview und member_mydata_edit (beide zu finden unter templates/".getLanguage()."/html/member/ !) mit hoch!</strong>");
// Depends on 'country'!
- addExtensionUpdateDependency('country');
+ addExtensionDependency('country');
break;
case '0.1.3': // SQL queries for v0.1.3
addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_extensions` SET ext_has_css='Y' WHERE `ext_name`='nickname' AND ext_has_css='N' LIMIT 1");
// This update depends on sql_patches update!
- addExtensionUpdateDependency('sql_patches');
+ addExtensionDependency('sql_patches');
// Update notes (these will be set as task text!)
setExtensionUpdateNotes("CSS-Datei kann per Adminbereich ein- und ausgeschaltet werden.");
case '0.3.5': // SQL queries for 0.3.5
// This update depends on sql_patches
- addExtensionUpdateDependency('sql_patches');
+ addExtensionDependency('sql_patches');
// Register filter
registerFilter('extra_autopurge', 'RALLYE_EXTRA_AUTOPURGE', false, true, isExtensionDryRun());
// Update notes (these will be set as task text!)
setExtensionUpdateNotes("Filter hinzugefügt und ist von <strong>sql_patches</strong> abhängig.");
break;
- }
+ } // END - switch
break;
case 'modify': // When the extension got modified
addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_extensions` SET ext_has_css='Y' WHERE `ext_name`='register' AND ext_has_css='N' LIMIT 1");
// This update depends on sql_patches update!
- addExtensionUpdateDependency('sql_patches');
+ addExtensionDependency('sql_patches');
// Update notes (these will be set as task text!)
setExtensionUpdateNotes("CSS-Datei kann per Admin-Bereich ein- und ausgeschaltet werden.");
case '0.1.3': // SQL queries for v0.1.3
// This update depends on sql_patches update!
- addExtensionUpdateDependency('sql_patches');
+ addExtensionDependency('sql_patches');
// Update notes (these will be set as task text!)
setExtensionUpdateNotes("Standart Referal-Id kann per Admin-Bereich eingestellt werden (war vorher nur in modules.php und index.php direkt eingebbar.)");
<strong>Wichtig: Laden Sie noch das Template <strong>guest_register.tpl</strong> mit hoch, welches unter templates/".getLanguage()."/html/guest/ zu finden ist!</strong>");
// Depends on 'country'
- addExtensionUpdateDependency('country');
+ addExtensionDependency('country');
break;
case '0.3.3': // SQL queries for v0.3.3
switch (getCurrentExtensionVersion()) {
case '0.0.1': // SQL queries for v0.0.1
// Update depends on sql_patches
- addExtensionUpdateDependency('sql_patches');
+ addExtensionDependency('sql_patches');
// Add filters
registerFilter('post_youhere_line', 'ADD_ANONYMITY_NOTICE', false, true, isExtensionDryRun());
// SQL commands to run
//
// Try to make it depend on repair
- addExtensionUpdateDependency('repair');
+ addExtensionDependency('repair');
//
// Sponsor data
switch (getExtensionMode()) {
case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
// This depends on 'cache' now
- addExtensionUpdateDependency('cache');
+ addExtensionDependency('cache');
break;
case 'remove': // Do stuff when removing extension
addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `what`=NULL WHERE `what`=''");
// Make this depending on ext-menu
- addExtensionUpdateDependency('menu');
+ addExtensionDependency('menu');
// Update notes (these will be set as task text!)
setExtensionUpdateNotes("Schlüssel in Admin-, Gast- und Mitgliedsmenü verbessert.");
addMemberMenuSql('main','reflist','Ref-Übersicht','N','Y',5);
// Depends on refback extension
- addExtensionUpdateDependency('refback');
+ addExtensionDependency('refback');
// Update notes (these will be set as task text!)
setExtensionUpdateNotes("Ref-Übersicht eingebaut. Diese hängt von der Erweiterung <strong>refback</strong> ab.");
case '0.6.2': // SQL queries for v0.6.2
// Depends on refback extension
- addExtensionUpdateDependency('user');
+ addExtensionDependency('user');
// Update notes (these will be set as task text!)
setExtensionUpdateNotes("Abhängigkeit von <u>ext-user</u> gesetzt.");
case '0.7.1': // SQL queries for v0.7.1
// This update just depends on ext-timezone to make integration of an essential extension much easier
- addExtensionUpdateDependency('timezone');
+ addExtensionDependency('timezone');
// Update notes (these will be set as task text!)
setExtensionUpdateNotes("Zeitzone ist nun mit ext-timezone konfigurierbar.");
break;
case 'update': // Update an extension
- switch (getCurrentExtensionVersion())
- {
+ switch (getCurrentExtensionVersion()) {
case '0.0.1': // SQL queries for v0.0.1
addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_extensions` SET ext_has_css='Y' WHERE `ext_name`='task' AND ext_has_css='N' LIMIT 1");
// This update depends on sql_patches update!
- addExtensionUpdateDependency('sql_patches');
+ addExtensionDependency('sql_patches');
// Update notes (these will be set as task text!)
setExtensionUpdateNotes("CSS-Datei kann per Admin-Bereich ein- und ausgeschaltet werden.");
case '0.3.2': // SQL queries for v0.3.2
// This update depends on user update
- addExtensionUpdateDependency('sql_patches');
+ addExtensionDependency('sql_patches');
// Update notes (these will be set as task text!)
setExtensionUpdateNotes("Hängt nun von <u>ext-user</u> ab.");
break;
- }
+ } // END - switch
break;
case 'modify': // When the extension got modified
default: // Unknown extension mode
logDebugMessage(__FILE__, __LINE__, sprintf("Unknown extension mode %s in extension %s detected.", getExtensionMode(), getCurrentExtensionName()));
break;
-}
+} // END - switch
// [EOF]
?>
addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu_las` (`la_id`, `la_action`, `la_what`) VALUES ('config', '', 'config_transfer')");
// Depends on sql_patches (or you have to execute these both SQL statements by phpMyAdmin
- addExtensionUpdateDependency('sql_patches');
+ addExtensionDependency('sql_patches');
// Update notes (these will be set as task text!)
setExtensionUpdateNotes("Erweiterung in's neue Menüsystem integriert.");
break;
case 'update': // Update an extension
- switch (getCurrentExtensionVersion())
- {
+ switch (getCurrentExtensionVersion()) {
case '0.1.0': // SQL queries for v0.1
addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD `user_limit` INT(7) UNSIGNED NOT NULL DEFAULT 20");
case '0.1.1': // SQL queries for v0.1.1
// This update depends on sql_patches update!
- addExtensionUpdateDependency('sql_patches');
+ addExtensionDependency('sql_patches');
// Update notes (these will be set as task text!)
setExtensionUpdateNotes("Ungültiges Update.");
default: // Unknown extension mode
logDebugMessage(__FILE__, __LINE__, sprintf("Unknown extension mode %s in extension %s detected.", getExtensionMode(), getCurrentExtensionName()));
break;
-}
+} // END - switch
// [EOF]
?>
// Shall we remove this update?
if (in_array($ext_name, getExtensionRemovalList())) {
// Then remove this extension!
- removeExtensionUpdateDependency($ext_name);
+ removeExtensionDependency($ext_name);
} // END - if
} // END - foreach
} // END - if
<input type="text" class="form_field" name="network_affiliate_id[$content[network_id]" size="5" value="$content[network_affiliate_id]" />
<div class="tiny">($content[network_title])</div>
</td>
- <td align="center" class="{%template,ColorSwitch%} bottom right" width="50%">
+ <td align="center" class="{%template,ColorSwitch%} bottom" width="50%">
{--ADMIN_NETWORK_CONFIG_ENTER_NETWORK_SITE_ID--}:<br />
<input type="text" class="form_field" name="network_site_id[$content[network_id]" size="5" value="$content[network_site_id]" />
<div class="tiny">($content[network_title])</div>
<input type="text" class="form_field" name="network_api_password[$content[network_id]" size="20" value="$content[network_api_password]" />
<div class="tiny">($content[network_title])</div>
</td>
- <td align="center" class="{%template,ColorSwitch%} bottom right" width="50%">
+ <td align="center" class="{%template,ColorSwitch%} bottom" width="50%">
{--ADMIN_NETWORK_CONFIG_ENTER_NETWORK_QUERY_AMOUNT--}:<br />
<input type="text" class="form_field" name="network_query_amount[$content[network_id]" size="5" value="$content[network_query_amount]" />
<div class="tiny">($content[network_title])</div>