completed data license functions, picture fixes, public profile link
+ menu option "my profile/public profile" - enlargit log pics - short date format for some locales - data license constants * dont display license-disabled log pics * delete log pics on declined license instead replacing + delete waypoint descriptions on declined license * no cache desc replacement message if it was empty + license-content-disable-function for old-disabled users + script to process all old-deleted users due to incompatible license + settings for license admin functions and for license disclaimer - fixed CC license link on english tos page * update caches.last_modified with changes of additional waypoints + XML interface license disclaimer
This commit is contained in:
@@ -1294,6 +1294,16 @@
|
||||
END IF;
|
||||
END;");
|
||||
|
||||
sql_dropTrigger('coordinatesAfterInsert');
|
||||
sql("CREATE TRIGGER `coordinatesAfterInsert` AFTER INSERT ON `coordinates`
|
||||
FOR EACH ROW
|
||||
BEGIN
|
||||
/* dont overwrite date values while XML client is running */
|
||||
IF ISNULL(@XMLSYNC) OR @XMLSYNC!=1 AND NEW.`type`=1 THEN
|
||||
UPDATE `caches` SET `last_modified`=NOW() WHERE `caches`.`cache_id`=NEW.`cache_id`;
|
||||
END IF;
|
||||
END;");
|
||||
|
||||
sql_dropTrigger('coordinatesBeforeUpdate');
|
||||
sql("CREATE TRIGGER `coordinatesBeforeUpdate` BEFORE UPDATE ON `coordinates`
|
||||
FOR EACH ROW
|
||||
@@ -1304,4 +1314,34 @@
|
||||
END IF;
|
||||
END;");
|
||||
|
||||
sql_dropTrigger('coordinatesAfterUpdate');
|
||||
sql("CREATE TRIGGER `coordinatesAfterUpdate` AFTER UPDATE ON `coordinates`
|
||||
FOR EACH ROW
|
||||
BEGIN
|
||||
/* dont overwrite date values while XML client is running */
|
||||
IF ISNULL(@XMLSYNC) OR @XMLSYNC!=1 AND NEW.`type`=1 THEN
|
||||
UPDATE `caches` SET `last_modified`=NOW() WHERE `caches`.`cache_id`=NEW.`cache_id`;
|
||||
END IF;
|
||||
END;");
|
||||
|
||||
sql_dropTrigger('coordinatesAfterDelete');
|
||||
sql("CREATE TRIGGER `coordinatesAfterDelete` AFTER DELETE ON `coordinates`
|
||||
FOR EACH ROW
|
||||
BEGIN
|
||||
/* dont overwrite date values while XML client is running */
|
||||
IF ISNULL(@XMLSYNC) OR @XMLSYNC!=1 AND OLD.`type`=1 THEN
|
||||
UPDATE `caches` SET `last_modified`=NOW() WHERE `caches`.`cache_id`=OLD.`cache_id`;
|
||||
END IF;
|
||||
END;");
|
||||
|
||||
sql_dropTrigger('savedTextsBeforeInsert');
|
||||
sql("CREATE TRIGGER `savedTextsBeforeInsert` BEFORE INSERT ON `saved_texts`
|
||||
FOR EACH ROW
|
||||
BEGIN
|
||||
/* dont overwrite date values while XML client is running */
|
||||
IF ISNULL(@XMLSYNC) OR @XMLSYNC!=1 THEN
|
||||
SET NEW.`date_created`=NOW();
|
||||
END IF;
|
||||
END;");
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user