41 lines
1.1 KiB
PHP
41 lines
1.1 KiB
PHP
<?php
|
|
|
|
class stCommunicationActions extends sfActions {
|
|
|
|
public function executeSoap() {
|
|
$this->setLayout(false);
|
|
$server = new stCommunicationShopSoapServer();
|
|
|
|
$s = new SoapServer(null, array('uri' => ''));
|
|
$s->setObject($server);
|
|
$s->handle();
|
|
}
|
|
|
|
public function executeCheck() {
|
|
if ($this->getRequestParameter('forced', false))
|
|
stCommunicationCache::disableCache();
|
|
|
|
if (stLicenseAbuse::checkLicenseAbuseStatus()) {
|
|
stLicenseAbuse::checkLicenseAndDomain();
|
|
}
|
|
|
|
if ($this->getRequestParameter('forced', false))
|
|
stCommunicationCache::enableCache();
|
|
|
|
file_put_contents(sfConfig::get('sf_data_dir') . '/.phpversion', phpversion());
|
|
|
|
exit('done');
|
|
}
|
|
|
|
public function executeCheckVersion() {
|
|
stCommunication::refreshLicenseInformation();
|
|
stPear::runPearCommand('clear-cache');
|
|
|
|
stPartialCache::clear('stBackend', '_updateInfo', array('app' => 'backend'));
|
|
|
|
sfLoader::loadHelpers('stUpdate');
|
|
|
|
exit(get_shop_version());
|
|
}
|
|
}
|