softwarechecker Posted January 10, 2014 Report Share Posted January 10, 2014 Hello, i build a "SoftwareChecker" which can found over 111 Software-Products like Joomla, Typo3, Wordpress... if there up to date or to old. The Problem now is, that Revive use the Version in the contstans.php with: define('VERSION', '3.0.2); So i get the Problem, that other Software use the constants.php with the same String (define... VERSION....) too. So i would ask you, can you change the String to "REVIVE_VERSION" or a other Word? Its that possible or have you a other File with the Version-String? Quote Link to comment Share on other sites More sharing options...
Matteo Beccati Posted January 10, 2014 Report Share Posted January 10, 2014 Could you explain exactly what's the incompatibility that you are experiencing? Quote Link to comment Share on other sites More sharing options...
softwarechecker Posted January 19, 2014 Author Report Share Posted January 19, 2014 Hi Matteo, i have build a Programm which can search for installed Software like Typo3, Joomla, Wordpress.... and more Software on a Webspace. Now, few Software wrotes here Versionnumber in "constants.php", but in a directory like /system/config/constants.php, so i can different the Software. But on Revive-Adserver the constants.php is saved directly in root. So i can only different the Software on the Search-String like: define('Typo3-Software-Version', 'xxxx.xxx.xxx'); define('BUILD', 'x.x.x.x.x'); But revive-Adserver use only define('VERSION', 'x.x.x.x'); so i can not different it with the Regex. When you can rename the Constant-/Variable-Name to like: define('REVIVEVERSION', 'x.x.x.x'); or define('REVIVE-VERSION', 'x.x.x.x'); i can build the Checker (Modul) for Revive too and the User can see where is installed Revive-Adserver and and is there up to date or not. Quote Link to comment Share on other sites More sharing options...
Matteo Beccati Posted February 7, 2014 Report Share Posted February 7, 2014 Seems like a pretty weak requirement for changing it (again). Couldn't you make your search script smarter and also look for another pattern in the constants.php file? Quote Link to comment Share on other sites More sharing options...
softwarechecker Posted February 8, 2014 Author Report Share Posted February 8, 2014 Hi Mattoe, i have try it, but the on this Way, the Problem is, that the constants.php is on /, so it matchts with contao3 too: FOUND: /home/testsoftware/revive-adserver-3.0.2/constants.php MODUL: revive-adserver YOURS/OLD: 3.0.1.Revive Adserver LATEST: 3.0.2.Revive Adserver FOUND: /home/testsoftware/contao/core-3.2.3/system/config/constants.php MODUL: revive-adserver YOURS/OLD: 3.2.0 Installed Version is newer LATEST: 3.0.2.Revive Adserver I looking for Revive-Adserver now in two lines (first Line the Version-String, second Line for PRODUCT_NAME), but so i find the system/config/constants.php to and so the second-Line on Contao3 matchs not with "PRODUCT_NAME... Revive Adserver...". Is it possible to move the constants.php in a other Folder like /lib/? So i can different them. Thank you. Quote Link to comment Share on other sites More sharing options...
Matteo Beccati Posted February 8, 2014 Report Share Posted February 8, 2014 I'm sorry. I don't mean to be rude,but... You're asking us to move files or change constant names because you can't write a regex that matches 2 lines in constants.php? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.