define('SERVER_URL', "http://www.mxchange.org");
// This current patch level
-define('CURR_SVN_REVISION', "350");
+define('CURR_SVN_REVISION', "351");
// Take a prime number which is long (if you know a longer one please try it out!)
define('_PRIME', 591623);
// Return value
return $ret;
}
+// Activate given extension
+function ACTIVATE_EXTENSION($ext_name) {
+ // Activate the extension
+ $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_extensions SET ext_active='Y' WHERE ext_name='%s' LIMIT 1",
+ array($ext_name), __FILE__, __LINE__);
+
+ // Extension has been activated?
+ if (SQL_AFFECTEDROWS() == 1) {
+ // Then run all queries
+ EXTENSION_RUN_SQLS(GET_EXT_ID($ext_name), "activate");
+ } // END - if
+}
//
?>
* Short description : A safe for storing points on a "safe" place *
* -------------------------------------------------------------------- *
* Kurzbeschreibung : Ein Tresor zum Ablegen der Punkte an einem *
- * sicheren Ort *
+ * "sicheren Ort" *
* -------------------------------------------------------------------- *
* *
* -------------------------------------------------------------------- *
// Extension is not installed so no version number was found
$ext_ver = "";
}
-
- // Disable load from database
- $result = false;
} elseif (!EXT_IS_ACTIVE("cache")) {
// Load data from database
$result = SQL_QUERY_ESC("SELECT id, ext_version FROM "._MYSQL_PREFIX."_extensions WHERE ext_name='%s' LIMIT 1",
// Maybe we want to keept the current extension active?
if (($cacheArray['active_extensions'][$ext] == "Y") && (!EXT_IS_ACTIVE($ext))) {
// Reactivate this extension!
- $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_extensions SET ext_active='Y' WHERE ext_name='%s' LIMIT 1",
- array($ext), __FILE__, __LINE__);
-
- // Extension has been activated?
- if (SQL_AFFECTEDROWS() == 1) {
- // Then run all queries
- EXTENSION_RUN_SQLS(GET_EXT_ID($ext), "activate");
- } // END - if
+ ACTIVATE_EXTENSION($ext);
} // END - if
- }
+ } // END - if
}
- }
- }
+ } // END - if
+ } // END - while
// Close directory handle
closedir($handle);
»<a href="$content[url]" target="_blank">Aktuelle Seite in neuem
Fenster öffnen</a>« <span class="surfbar_navi">[<a
+ href="#" onclick="return StartStopCounter();" id="start">Anhalten</a>|<a
target="_parent" href="{!URL!}/login.php">Loginbereich</a>|<a
target="_parent" href="{!URL!}/modules.php?module=login&what=logout">Ausloggen</a>|<a
href="javascript:window.close()">Schliessen</a>]</span><br />
var counter = document.getElementById("surfbar_counter");
var countDown = null;
+function StartStopCounter () {
+ if (countDown == null) {
+ // Start counter
+ document.getElementById("start").innerHTML = "Anhalten";
+ countDown = window.setInterval("StartCounter()", 1000);
+ } else {
+ document.getElementById("start").innerHTML = "Weiter";
+ window.clearInterval(countDown);
+ countDown = null;
+ }
+ return false;
+}
+
function Init() {
countDown = window.setInterval("StartCounter()", 1000);
window.setTimeout("InitCounter()", 500);