initial commit

This commit is contained in:
Ben Ramey
2017-03-02 21:57:21 -06:00
commit fd8ad64063
22097 changed files with 1960930 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
K 25
svn:wc:ra_dav:version-url
V 84
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/apps/frontend/modules/user/actions
END
actions.class.php
K 25
svn:wc:ra_dav:version-url
V 102
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/apps/frontend/modules/user/actions/actions.class.php
END

View File

@@ -0,0 +1,62 @@
10
dir
55
http://barnabas/svn/pae.co.at/trunk/proactiveenglish/apps/frontend/modules/user/actions
http://barnabas/svn
2009-05-28T02:14:48.119086Z
25
ben
5f44b648-3ce2-dc11-a6be-00b0d029fcea
actions.class.php
file
2010-07-31T05:41:50.000000Z
bfb28b5a58d9d2c8f2d64051d9aabf3a
2009-05-28T02:14:48.119086Z
25
ben
909

View File

@@ -0,0 +1,41 @@
<?php
/**
* user actions.
*
* @package pae
* @subpackage user
* @author Your name here
* @version SVN: $Id: actions.class.php 2692 2006-11-15 21:03:55Z fabien $
*/
class userActions extends sfActions
{
/**
* Executes index action
*
*/
public function executeIndex()
{
$this->forward('default', 'module');
}
/**
* Toggles language from german to english
* or english to german as appropriate.
*
* @return void
* @author Benjamin Ramey <ben.ramey@gmail.com>
**/
public function executeToggleLanguage()
{
$newCulture = 'en';
$curCulture = $this->getUser()->getCulture();
if($curCulture == "en")
$newCulture = 'de';
$this->getUser()->setCulture($newCulture);
$redirectUrl = str_replace("/".$curCulture."/", "/".$newCulture."/", $this->getRequest()->getReferer());
$this->redirect($redirectUrl);
}
}

View File

@@ -0,0 +1,41 @@
<?php
/**
* user actions.
*
* @package pae
* @subpackage user
* @author Your name here
* @version SVN: $Id: actions.class.php 2692 2006-11-15 21:03:55Z fabien $
*/
class userActions extends sfActions
{
/**
* Executes index action
*
*/
public function executeIndex()
{
$this->forward('default', 'module');
}
/**
* Toggles language from german to english
* or english to german as appropriate.
*
* @return void
* @author Benjamin Ramey <ben.ramey@gmail.com>
**/
public function executeToggleLanguage()
{
$newCulture = 'en';
$curCulture = $this->getUser()->getCulture();
if($curCulture == "en")
$newCulture = 'de';
$this->getUser()->setCulture($newCulture);
$redirectUrl = str_replace("/".$curCulture."/", "/".$newCulture."/", $this->getRequest()->getReferer());
$this->redirect($redirectUrl);
}
}