X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fextensions%2Fext-task.php;h=7abb45a7762befd56d13805d7a01df301da0948b;hb=d798a412acb8c1263933bd7f7a0fd9aa251495a7;hp=88361812162c49565191a7dd47c3e680d6b47b7c;hpb=8a9324b2d931f54f54f4319fd7234910af77012c;p=mailer.git diff --git a/inc/extensions/ext-task.php b/inc/extensions/ext-task.php index 8836181216..7abb45a776 100644 --- a/inc/extensions/ext-task.php +++ b/inc/extensions/ext-task.php @@ -32,8 +32,7 @@ ************************************************************************/ // Some security stuff... -if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF']))) -{ +if (!defined('__SECURITY')) { $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } @@ -49,14 +48,14 @@ $EXT_VER_HISTORY = array("0.0", "0.0.1", "0.0.2", "0.0.3", "0.0.4", "0.0.5", "0. switch ($EXT_LOAD_MODE) { -case "register": // Do stuff when installtion is running (modules.php?module=admin&action=login is called) +case "register": // Do stuff when installation is running (modules.php?module=admin&action=login is called) // SQL commands to run - $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (action, what, title, sort, descr) VALUES ('task', '', 'Aufgaben-Management', '1', 'Erweitertes Aufgaben-Management zur leichten verwaltung der vom System erzeugten Aufgaben.')"; - $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (action, what, title, sort, descr) VALUES ('task', 'list_task', 'Aufgaben auflisten', '1', 'Alle Ihnen zugewiesenen Aufgaben auflisten (keine Updates).')"; + $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (action, what, title, sort, descr) VALUES ('task', NULL, 'Aufgaben-Management','1','Erweitertes Aufgaben-Management zur leichten verwaltung der vom System erzeugten Aufgaben.')"; + $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (action, what, title, sort, descr) VALUES ('task','list_task','Aufgaben auflisten','1','Alle Ihnen zugewiesenen Aufgaben auflisten (keine Updates).')"; $SQLs[] = "UPDATE "._MYSQL_PREFIX."_task_system SET status='SOLVED' WHERE status='CLOSED'"; // Enable CSS file? - $EXT_CSS = 'Y'; + $EXT_CSS = "Y"; break; case "remove": // Do stuff when removing extension @@ -94,7 +93,7 @@ case "update": // Update an extension case "0.0.4": // SQL queries for v0.0.4 // Update notes (these will be set as task text!) - $UPDATE_NOTES = "Fehler Warning: Missing argument 2 for create_timestamp_from_selections() in ".PATH."inc/libs/pro_functions.php on line 227 behoben."; + $UPDATE_NOTES = "Fehler Warning: Missing argument 2 for create_timestamp_from_selections() in {!PATH!}inc/libs/pro_functions.php on line 227 behoben."; break; case "0.0.5": // SQL queries for v0.0.5 @@ -134,7 +133,7 @@ case "update": // Update an extension case "0.1.2": // SQL queries for v0.1.2 // Update notes (these will be set as task text!) - $UPDATE_NOTES = "Seit Patch 340 überflüssige HTML-Tags entfernt."; + $UPDATE_NOTES = "Seit Patch 340 überflüssige HTML-Tags entfernt."; break; case "0.1.3": // SQL queries for v0.1.3 @@ -156,10 +155,10 @@ case "update": // Update an extension // Update notes (these will be set as task text!) $UPDATE_NOTES = "Weitere Direkt-Links eingebaut:
"; break; @@ -181,7 +180,7 @@ case "update": // Update an extension case "0.2.0": // SQL queries for v0.2.0 // Update notes (these will be set as task text!) - $UPDATE_NOTES = "Alle Administratoren, Referral-Banner und aktivierte Referral-Banner werden nun eingeblendet."; + $UPDATE_NOTES = "Alle Administratoren, Referal-Banner und aktivierte Referal-Banner werden nun eingeblendet."; break; case "0.2.1": // SQL queries for v0.2.1 @@ -245,11 +244,5 @@ default: // Do stuff when extension is loaded break; } -// Language file prefix -$EXT_LANG_PREFIX = "task"; - -// Extension is always active? -$EXT_ALWAYS_ACTIVE = 'N'; - // ?>