Changeset 488
- Timestamp:
- Aug 21, 2004, 3:03:49 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/upload.php
r394 r488 169 169 list( $day,$month,$year ) = explode( '/', $_POST['date_creation'] ); 170 170 // int checkdate ( int month, int day, int year) 171 if ( checkdate( $month, $day, $year ) ) 172 { 173 // int mktime ( int hour, int minute, int second, 174 // int month, int day, int year [, int is_dst]) 175 $date_creation = mktime( 0, 0, 0, $month, $day, $year ); 171 if (checkdate($month, $day, $year)) 172 { 173 $date_creation = $year.'-'.$month.'-'.$day; 176 174 } 177 175 else … … 182 180 // creation of the "infos" field : 183 181 // <infos author="Pierrick LE GALL" comment="my comment" 184 // date_creation=" 1056891767" name="" />182 // date_creation="2004-08-14" name="" /> 185 183 $xml_infos = '<infos'; 186 184 $xml_infos.= ' author="'.htmlspecialchars($_POST['author'],ENT_QUOTES).'"';
Note: See TracChangeset
for help on using the changeset viewer.