first commit
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
<?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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user