From 49ff543541097a514cf8c836b74cd9514df2bf98 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Mon, 17 Aug 2009 15:25:11 -0400 Subject: Databasified Affiliates and Website Projects The following database changes must be made ASAP: * Import the links.sql script into the database Closes #114 --- includes/functions.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'includes/functions.php') diff --git a/includes/functions.php b/includes/functions.php index b0b28d5..ce7a03e 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -357,4 +357,18 @@ function getPollOfTheWeek($id = -1) return $result; } +function getTagColor($i) +{ + switch ($i % 7) + { + case 0: return 'blue'; + case 1: return 'green'; + case 2: return 'orange'; + case 3: return 'pink'; + case 4: return 'purple'; + case 5: return 'red'; + case 6: return 'yellow'; + } +} + ?> -- cgit 1.4.1