]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-mediadata.php
Extensions bitcoins/yacy added, new API functions for handling proxy/non-proxy added:
[mailer.git] / inc / extensions / ext-mediadata.php
index 176ca4a0fd49d377fbfa3f59925b1e0b01a0e290..58aaf2c7a8606d0c2ad8400fe3d4e4286f6cbd86 100644 (file)
  * $Date::                                                            $ *
  * $Tag:: 0.2.1-FINAL                                                 $ *
  * $Author::                                                          $ *
- * Needs to be in all Files and every File needs "svn propset           *
- * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -74,12 +72,12 @@ switch (getExtensionMode()) {
 
        case 'activate': // Do stuff when admin activates this extension
                // SQL commands to run
-               addExtensionSql('');
+               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_guest_menu` SET `visible`='Y', `locked`='N' WHERE `what`='mediadata' LIMIT 1");
                break;
 
        case 'deactivate': // Do stuff when admin deactivates this extension
                // SQL commands to run
-               addExtensionSql('');
+               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_guest_menu` SET `visible`='N', `locked`='Y' WHERE `what`='mediadata' LIMIT 1");
                break;
 
        case 'update': // Update an extension
@@ -105,8 +103,8 @@ switch (getExtensionMode()) {
                                addExtensionSql("CREATE TABLE `{?_MYSQL_PREFIX?}_mediadata` (
 `media_key` VARCHAR(255) NOT NULL DEFAULT '',
 `media_value` VARCHAR(255) NOT NULL DEFAULT '',
-PRIMARY KEY (media_key)
-) TYPE={?_TABLE_TYPE?}");
+PRIMARY KEY (`media_key`)
+) ENGINE = {?_TABLE_TYPE?} CHARACTER SET utf8 COLLATE utf8_general_ci");
 
                                // Add auto-check file
                                addIncludeToPool('extension', 'inc/gen_mediadata.php');
@@ -152,7 +150,7 @@ Bitte stellen Sie diesen derzeit manuell unter <a href=\"%url=modules.php?module
        case 'modify': // When the extension got modified
                break;
 
-       case 'test': // For testing purposes. For details see file inc/modules/admin/what-extensions.php, arround line 305.
+       case 'test': // For testing purposes
                break;
 
        case 'init': // Do stuff when extension is initialized