Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
51 user(s) are online (44 user(s) are browsing Forums)

Members: 0
Guests: 51

more...
Support us!
Recent OS4 Files
OS4Depot.net





[DONE] FYI: OS4Depot is being migrated to new server
Supreme Council
Joined:
2006/11/16 19:25
From Sweden
Posts: 3145
I'm migrating os4depot to a new server.

Submitting files will be blocked for a few days.


Edited by orgin on 2018/8/1 11:55:50
_________________
Vacca foeda. Sum, ergo edo

Mr Bobo Cornwater
   Report Go to top

Re: FYI: OS4Depot is being migrated to new server
Supreme Council
Joined:
2006/11/16 19:25
From Sweden
Posts: 3145
It's migrated now and the dns entries should be updated for everyone shortly.


I had to convert the site to php 7.0.

Anyone who could help me convert this:

text = preg_replace("/\\\\('|")/msi","$1",preg_replace("/(.*?)(\n\n|\.\n|:\n|=+\n|\s*-{3,}\s*\n)/msie",'(preg_match("/[^\n]{$width}/mi","$1")) ? preg_replace("/(\S+)[\t ]?\n/","\$1 ","$1")."$2" : "$1$2"',$text));

$width = 80
$text = the readme text for a file

The offending bit is the "e" in /msie

e is no longer supported in php 7.0.


Edited by orgin on 2018/8/1 9:07:43
_________________
Vacca foeda. Sum, ergo edo

Mr Bobo Cornwater
   Report Go to top

Re: FYI: OS4Depot is being migrated to new server
Just popping in
Joined:
2017/5/18 10:12
From Audruicq, France
Posts: 28
@orgin

Hi,

I'm not a programming expert nor in php one, but on the net, I found a php site that talks about this deprecated fonction due to risk it represents and recommends to use preg_replace_callback instead!

php.net site

Maybe this is what you're looking for?

Regards,
Petrol

   Report Go to top

Re: FYI: OS4Depot is being migrated to new server
Supreme Council
Joined:
2006/11/16 19:25
From Sweden
Posts: 3145
@Petrol

I already read that. The problem is with actually converting the original statement to the callback variant.

_________________
Vacca foeda. Sum, ergo edo

Mr Bobo Cornwater
   Report Go to top

Re: FYI: OS4Depot is being migrated to new server
Just can't stay away
Joined:
2006/11/24 17:54
From Sanremo
Posts: 1799
@origin

try ask on stackoverflow

   Report Go to top

Re: FYI: OS4Depot is being migrated to new server
Supreme Council
Joined:
2006/11/16 19:25
From Sweden
Posts: 3145
@all

If you find any problems then let me know. There might be some sneaky php 7.0 issues that I haven't found myself.

_________________
Vacca foeda. Sum, ergo edo

Mr Bobo Cornwater
   Report Go to top

Re: [DONE] FYI: OS4Depot is being migrated to new server
Just popping in
Joined:
2006/12/2 1:41
From VA, USA
Posts: 234

Thanks orgin!

Nice job. OS4Depot seems to be generally working fine for
user access... Downloads, searching, etc.

Is there anywhere you're worried about that might need more
testing?

Thanks again,

PJS

   Report Go to top

Re: [DONE] FYI: OS4Depot is being migrated to new server
Supreme Council
Joined:
2006/11/16 19:25
From Sweden
Posts: 3145
@pjs

Nothing specific really. There's probably some obscure functionality that I've missed.

_________________
Vacca foeda. Sum, ergo edo

Mr Bobo Cornwater
   Report Go to top





[Advanced Search]


Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project