first commit

This commit is contained in:
2025-03-12 17:06:23 +01:00
commit 2241f7131f
13185 changed files with 1692479 additions and 0 deletions

View File

@@ -0,0 +1,56 @@
<?php
class stMoneybookersBackendActions extends stActions
{
/**
* Wyświetla konfigurację modułu
*/
public function executeIndex()
{
$this->config = stConfig::getInstance('stMoneybookersBackend');
if ($this->getRequest()->getMethod() == sfRequest::POST)
{
$this->config->setFromRequest('moneybookers');
$this->config->save();
$this->setFlash('notice', 'Twoje zmiany zostały zapisane');
}
$i18n = $this->getContext()->getI18n();
$this->labels = array(
'moneybookers{pay_to_email}' => $i18n->__('Login'),
'moneybookers{secret_word}' => $i18n->__('Słowo podpowiedzi'),
'moneybookers{shop_description}' => $i18n->__('Opis sklepu'),
'moneybookers{return_text}' => $i18n->__('Tekst przycisku powrotu do sklepu'),
);
$this->config->load();
}
public function validateIndex()
{
if ($this->getRequest()->getMethod() == sfRequest::POST)
{
stAuthUsersListener::checkModificationCredentials($this, $this->getRequest(), $this->getModuleName());
}
return true;
}
public function handleErrorIndex()
{
$this->config = stConfig::getInstance('stMoneybookersBackend');
$this->config->setFromRequest('moneybookers');
$this->webRequest = new stWebRequest();
$i18n = $this->getContext()->getI18n();
$this->labels = array(
'moneybookers{pay_to_email}' => $i18n->__('Login'),
'moneybookers{secret_word}' => $i18n->__('Słowo podpowiedzi'),
'moneybookers{shop_description}' => $i18n->__('Opis sklepu'),
'moneybookers{return_text}' => $i18n->__('Tekst przycisku powrotu do sklepu'),
);
return sfView::SUCCESS;
}
}

View File

@@ -0,0 +1,13 @@
<?php
class stMoneybookersBackendComponents extends sfComponents
{
public function executeListMenu()
{
}
}
?>