Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
21 user(s) are online (18 user(s) are browsing Forums)

Members: 0
Guests: 21

more...

Support us!

Headlines

 
  Register To Post  

[DONE] FYI: OS4Depot is being migrated to new server
Supreme Council
Supreme Council


See User information
I'm migrating os4depot to a new server.

Submitting files will be blocked for a few days.


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

Mr Bobo Cornwater
Go to top
Re: FYI: OS4Depot is being migrated to new server
Supreme Council
Supreme Council


See User information
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 10:07:43
Vacca foeda. Sum, ergo edo

Mr Bobo Cornwater
Go to top
Re: FYI: OS4Depot is being migrated to new server
Just popping in
Just popping in


See User information
@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

Go to top
Re: FYI: OS4Depot is being migrated to new server
Supreme Council
Supreme Council


See User information
@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
Go to top
Re: FYI: OS4Depot is being migrated to new server
Just can't stay away
Just can't stay away


See User information
@origin

try ask on stackoverflow

Go to top
Re: FYI: OS4Depot is being migrated to new server
Supreme Council
Supreme Council


See User information
@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
Go to top
Re: [DONE] FYI: OS4Depot is being migrated to new server
Not too shy to talk
Not too shy to talk


See User information

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

Go to top
Re: [DONE] FYI: OS4Depot is being migrated to new server
Supreme Council
Supreme Council


See User information
@pjs

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

Vacca foeda. Sum, ergo edo

Mr Bobo Cornwater
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project