Changing the expiration date of the 1C Bitrix CMS

Sometimes it is necessary to prolongate standard Bitrix test period because when developing a large project 30 days are not enough.
So to change the expiration date you should:
1. Open the file /bitrix/modules/main/include.php, it is obfuscated
2. Format the code from the file using, for example www.phpformatter.com
3. Search the file for the word “OLDSITEEXPIREDATE”
4. We are looking for strings:

I’ve got this strings on lines 978 and 979
If we decode them, we’d get:

5. Before those lines there are 2 more:

I’ve got this strings on lines 976 and 977
They are equal to:

6. If we change $_671325857 and $_895978193 to 1682990400, this is 05.02.23 in unix format, we’d prolongate test period.
7. You should also comment the for loop before these lines(I’ve got this loop on line 975):

To sum up
Old code:

New code:

Changing the expiration date this way will stop Bitrix autoupdates, so you’d better buy a license.

Leave a Reply

Your email address will not be published. Required fields are marked *