addAdminMenuSql('surfbar','config_surfbar','Einstellungen','Einstellungen an der Surfbar ändern, wie Festvergütung, prozentuale Ref-Vergütung und vieles mehr.',4);
addAdminMenuSql('surfbar','surfbar_stats','Statistiken','Detailierte Statistiken zu einer ausgewählten URL anzeigen.',5);
addAdminMenuSql('surfbar','list_surfbar_actions','Mitgliederaktionen','Listet alle Mitgliederaktionen auf.',6);
+
+ // Register module
+ addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_mod_reg` (`module`,`locked`,`hidden`,`admin_only`,`mem_only`) VALUES('surfbar','Y','Y','N','N')");
break;
case 'remove': // Do stuff when removing extension
addExtensionSql('DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_surfbar_urls`');
addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_member_menu` WHERE `action`='surfbar'");
addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE `action`='surfbar'");
+
+ // Unregister module
+ addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_mod_reg` WHERE `module`='surfbar' LIMIT 1");
break;
case 'activate': // Do stuff when admin activates this extension
<div class="para">
{--TEMPLATE_CONTENT--}
<pre>' . print_r($content, true) . '</pre>
- {--TEMPLATE_DATA--}
- <pre>' . print_r($DATA, true) . '</pre>
</div>';
} else {
// No file!
<li>{--DOUBLER_REFERAL_LINK--}</li>
<li>{--DOUBLER_TIMEOUT_1--} <strong>{%config,createFancyTime=doubler_timeout%}</strong> {--DOUBLER_TIMEOUT_2--}</li>
<li>{--DOUBLER_HAVE_FUN--}</li>
- <li><strong><a href="{?URL?}/doubler.php">{--DOUBLER_WANNA_TRY--}</a></strong></li>
+ <li><strong><a href="{%url=doubler.php%}">{--DOUBLER_WANNA_TRY--}</a></strong></li>
</ul>
</td>
</tr>
<tr>
<td class="doubler_main" style="padding-left: 0px; padding-right: 10px; padding-top: 10px; padding-bottom: 10px">
<ul>
- <li>{--DOUBLER_NOT_YET_REGISTERED--} <a href="{?URL?}/ref.php?refid={%pipe,determineReferalId%}">{--DOUBLER_REGISTER_NOW--}</a></li>
+ <li>{--DOUBLER_NOT_YET_REGISTERED--} <a href="{%url=ref.php?refid={%pipe,determineReferalId%}%}">{--DOUBLER_REGISTER_NOW--}</a></li>
<li>{--DOUBLER_YOUR_ADVERTISING_HERE--} <a href="{%url=modules.php?module=index&what=impressum&refid={%pipe,determineReferalId%}%}">{--DOUBLER_CONTACT_US--}</a></li>
</ul>
</td>
-<form accept-charset="utf-8" action="{?URL?}/install.php?page=2" method="post">
+<form accept-charset="utf-8" action="{%url=install.php?page=2%}" method="post">
<table border="0" cellspacing="0" cellpadding="0" class="install_main">
<tr>
<td align="center">
<div align="center">
-<form accept-charset="utf-8" action="{?URL?}/install.php?page=2" method="post" target="_self">
+<form accept-charset="utf-8" action="{%url=install.php?page=2%}" method="post" target="_self">
<table border="0" cellspacing="0" cellpadding="0" class="install_main">
<tr>
<td colspan="2" align="center">
<div align="center">
-<form accept-charset="utf-8" action="{?URL?}/install.php?page=3" method="post" target="_self">
+<form accept-charset="utf-8" action="{%url=install.php?page=3%}" method="post" target="_self">
<table border="0" cellspacing="0" cellpadding="0" class="install_table">
<tr>
<td colspan="2" align="center" class="install_title">
</tr>
</table>
</form>
-</div>
\ No newline at end of file
+</div>
-<form accept-charset="utf-8" action="{?URL?}/install.php?page=5" method="post" target="_self">
+<form accept-charset="utf-8" action="{%url=install.php?page=5%}" method="post" target="_self">
<table border="0" cellspacing="0" cellpadding="0" class="install_table">
<tr>
<td colspan="2" align="center">
<div align="center">
-<form accept-charset="utf-8" action="{?URL?}/install.php?page=finalize" method="POST" target="_self">
+<form accept-charset="utf-8" action="{%url=install.php?page=finalize%}" method="POST" target="_self">
<table border="0" cellspacing="0" cellpadding="0" class="install_main">
<tr>
<td colspan="2" align="center">
var interval = null;
-var countDown = "{%pipe,getRequestParameter,bigintval=restart%}";
+var countDown = "{?surfbar_restart_time?}";
var timer = document.getElementById("surfbar_counter");
var buttonDiv = document.getElementById("surfbar_button");
}
function showButton () {
- buttonDiv.innerHTML = "<form accept-charset='utf-8' action='{?URL?}/surfbar.php' target='_self' method='GET'><input type='hidden' name='frame' value='top' /><input type='submit' id='member_submit' value='Surfbar erneut starten' /></form>";
+ buttonDiv.innerHTML = "<form accept-charset='utf-8' action='{%url=surfbar.php%}' target='_self' method='GET'><input type='hidden' name='frame' value='top' /><input type='submit' id='member_submit' value='Surfbar erneut starten' /></form>";
}
function counter () {
function init () {
interval = window.setInterval("counter()", 1000);
- timer.innerHTML = "$content[restart]";
+ timer.innerHTML = "{?surfbar_restart_time?}";
}
window.setTimeout("init()", 500);
<div id="surfbar_button">
Keine URLs mehr verfügbar oder Datenbankfehler liegt vor.<br />
- Neustart in <span class="surfbar_counter">$content[start]</span> Sekunden
+ Neustart in <span id="surfbar_counter" class="surfbar_counter">$content[start]</span> Sekunden
</div>
</div>
</div>
-<script src="{%url=js.php?js=surfbar_stopped%}{%ext,version=surfbar%}&restart={?surfbar_restart_time?}&autostart=$content[autostart]"
+<script src="{%url=js.php?js=surfbar_stopped%}{%ext,version=surfbar%}&autostart=$content[autostart]"
type="text/javascript"></script>