function remoteSave() { $ttsc = new TimeTrexSoapClient(); if ((getTTProductEdition() == TT_PRODUCT_PROFESSIONAL or $ttsc->isUpdateNotifyEnabled() == TRUE) and PRODUCTION == TRUE and DEMO_MODE == FALSE) { $ttsc->sendCompanyData($this->getId()); $ttsc->sendCompanyVersionData($this->getId()); return TRUE; } return FALSE; }
* feasible for technical reasons, the Appropriate Legal Notices must display * the words "Powered by TimeTrex". ********************************************************************************/ /* * $Revision: 1396 $ * $Id: CheckForUpdate.php 1396 2007-11-07 16:49:35Z ipso $ * $Date: 2007-11-07 08:49:35 -0800 (Wed, 07 Nov 2007) $ */ /* * Checks for any version updates... * */ require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'includes' . DIRECTORY_SEPARATOR . 'global.inc.php'; require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'includes' . DIRECTORY_SEPARATOR . 'CLI.inc.php'; $ttsc = new TimeTrexSoapClient(); if ($ttsc->isUpdateNotifyEnabled() == TRUE) { $clf = new CompanyListFactory(); $clf->getAll(); if ($clf->getRecordCount() > 0) { $i = 0; foreach ($clf as $c_obj) { if ($ttsc->getLocalRegistrationKey() == FALSE or $ttsc->getLocalRegistrationKey() == '') { $ttsc->saveRegistrationKey(); } //We must ensure that the data is up to date //Otherwise version check will fail. $ttsc->sendCompanyData($c_obj->getId()); $ttsc->sendCompanyUserLocationData($c_obj->getId()); $ttsc->sendCompanyUserCountData($c_obj->getId()); $ttsc->sendCompanyVersionData($c_obj->getId()); //Only need to call this on the last company