Revision 3526,
537 bytes
checked in by afernandes, 14 years ago
(diff) |
Ticket #1416 - Disponibilizado modulos Timesheet e DMS para a comunidade.
|
-
Property svn:executable set to
*
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | |
---|
4 | function getReadableDate($timestamp) { |
---|
5 | return date("d.m.Y", $timestamp); |
---|
6 | } |
---|
7 | |
---|
8 | function getLongReadableDate($timestamp) { |
---|
9 | return date("d.m.Y - H:i:s", $timestamp); |
---|
10 | } |
---|
11 | |
---|
12 | function sanitizeString($string) { |
---|
13 | #$string = str_replace("'", "", $string); |
---|
14 | $string = str_replace("--", "", $string); |
---|
15 | $string = str_replace("<", "", $string); |
---|
16 | $string = str_replace(">", "", $string); |
---|
17 | $string = str_replace("/*", "", $string); |
---|
18 | $string = str_replace("*/", "", $string); |
---|
19 | #$string = str_replace("\"", "", $string); |
---|
20 | |
---|
21 | return $string; |
---|
22 | } |
---|
23 | |
---|
24 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.