Jump to content

Recommended Posts

Hello Guys

 

I need help.

 

I found one PHP script for simple auto update of "system" (automatic updating of website for example)

http://maxmorgandesign.com/simple_php_auto_update_system/

I want to adjust this script for my project,  and In this code there is a line (on line 10):

 echo '<p>CURRENT VERSION: '.get_siteInfo('CMS-Version').'</p>';

which variable should write in my page to define curent version of CMS?

 

I try to googleit but unsuccessful :-/

 

Many thanks

Link to comment
https://forums.phpfreaks.com/topic/290366-help-with-defining-value/
Share on other sites

There is a LOT of customization you will have to do with that specific script. I'm sorry, but based on your original question, I think this is too advanced for you and you will need a lot of help making the script work for your needs if you are not understanding what it's doing.

 

But in short, let's pretend this is WordPress. Each wordpress installation contains the current version number of the install, which you would need to know in order to check the main wordpress site to see if a newer version was available by comparing the 2 versions (your install vs main wordpress site).

 

That's what get_siteInfo('CMS-Version') is doing, but it's specific to that authors custom CMS he developed. So you'd have to make your own.

Edited by CroNiX
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.