XFileSharing Free - Changing the date format

Free version of Xfilesharing

Moderator: admin

Message
Author
Bassman
Posts: 20
Joined: Sep 07, 2007 10:24 am
Location: UK

Changing the date format

#1 Postby Bassman » Oct 10, 2007 11:10 am

Hi,
is it possible to change the date format on the download page to the UK standard dd-mm-yyyy

Cheers

User avatar
PilgrimX182
Posts: 2182
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#2 Postby PilgrimX182 » Oct 10, 2007 12:14 pm

Sure. In index.cgi find this line

Code: Select all

&message("Sorry but this file reached max downloads limit") if $c->{max_downloads_number} && $file->{downloads} >= $c->{max_downloads_number};


and add this code below:

Code: Select all

$file->{created}=~s/(\d+)-(\d+)-(\d+)/$3-$2-$1/;

Bassman
Posts: 20
Joined: Sep 07, 2007 10:24 am
Location: UK

#3 Postby Bassman » Oct 10, 2007 9:30 pm

That worked
Thanks very much
:D

xfileshare.eu
Posts: 17
Joined: May 06, 2010 11:55 am

#4 Postby xfileshare.eu » May 07, 2010 3:46 pm

Please in new version 1.7 is possible?


Return to “XFileSharing Free”

Who is online

Users browsing this forum: No registered users and 0 guests