The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
serv.fromtime Script stopped working on new build
Author Message
ChaveS
Journeyman
*

Posts: 69
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Oct 2012
Reputation: 0



Post: #1
serv.fromtime Script stopped working on new build
I was using this script on 2009 release, now im trying the last nightly build which made this script stop working:

Code:
args <tag.vip>
local.rticks = <SERV.RTICKS.FROMTIME <STREAT <EXPLODE /,<STRARG <ARGS>>><EXPLODE :,<STREAT <ARGS>>>>>
IF <eval <serv.rticks> - <local.rticks>> >= 2592000
....

where tag.vip is 2013/01/01 00:00:00


and i have this
13:34:ERROR:(sys_vip.scp,421)Can't resolve <SERV.RTICKS.FROMTIME 01>

I found the issue

<STREAT <EXPLODE /,<STRARG <ARGS>>><EXPLODE :,<STREAT <ARGS>>>>
was returning:
2013,01,09,13,49,25
new build:
<STREAT <EXPLODE /,<STRARG <ARGS>>><EXPLODE :,<STREAT <ARGS>>>>
return:
01,0913,44,33

fixed...
"21-01-2011, MrSugarCube
- Fixed #1894: Explode function placing a comma at the beginning of the result."

No need for streat anymore:
<SERV.RTICKS.FROMTIME <EXPLODE /,<STRARG <ARGS>>>,<EXPLODE :,<STREAT <ARGS>>>> is working
(This post was last modified: 01-10-2013 02:07 AM by ChaveS.)
01-10-2013 01:42 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)