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/admin/modules/default/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/admin/modules/default/actions/actions.class.php
END

View File

@@ -0,0 +1,62 @@
10
dir
55
http://barnabas/svn/pae.co.at/trunk/proactiveenglish/apps/admin/modules/default/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:51.000000Z
c90760bc850ef949c089ea983e33eb8a
2009-05-28T02:14:48.119086Z
25
ben
1570

View File

@@ -0,0 +1,79 @@
<?php
/**
* default actions.
*
* @package pae
* @subpackage default
* @author Your name here
* @version SVN: $Id: actions.class.php 2692 2006-11-15 21:03:55Z fabien $
*/
class defaultActions extends sfActions
{
/**
* Executes index action
*
*/
public function executeIndex()
{
}
/**
* Login action
*
* @return void
* @author Benjamin Ramey <ben.ramey@gmail.com>
**/
public function executeLogin()
{
$request = $this->getRequest();
if($request->getMethod() != sfRequest::POST)
{
if($this->getUser()->isAuthenticated())
{
$this->redirect('default/index');
}
return sfView::SUCCESS;
}
else
{
$u = $this->getUser();
if($this->getRequestParameter('username') == 'admin'
&& $this->getRequestParameter('password') == 'gerard.1995')
{
$u->setAuthenticated(true);
$u->addCredential('admin');
$this->redirect('default/index');
}
else
{
$request->setError('Login failed', 'Username and/or password was not correct. Please try again.');
return sfView::SUCCESS;
}
}
}
/**
* Logout action
*
* @return void
* @author Benjamin Ramey <ben.ramey@gmail.com>
**/
public function executeLogout()
{
$this->getUser()->setAuthenticated(false);
$this->redirect('default/login');
}
/**
* Secure action
*
* @return void
* @author Benjamin Ramey <ben.ramey@gmail.com>
**/
public function executeSecure()
{
}
}

View File

@@ -0,0 +1,79 @@
<?php
/**
* default actions.
*
* @package pae
* @subpackage default
* @author Your name here
* @version SVN: $Id: actions.class.php 2692 2006-11-15 21:03:55Z fabien $
*/
class defaultActions extends sfActions
{
/**
* Executes index action
*
*/
public function executeIndex()
{
}
/**
* Login action
*
* @return void
* @author Benjamin Ramey <ben.ramey@gmail.com>
**/
public function executeLogin()
{
$request = $this->getRequest();
if($request->getMethod() != sfRequest::POST)
{
if($this->getUser()->isAuthenticated())
{
$this->redirect('default/index');
}
return sfView::SUCCESS;
}
else
{
$u = $this->getUser();
if($this->getRequestParameter('username') == 'admin'
&& $this->getRequestParameter('password') == 'gerard.1995')
{
$u->setAuthenticated(true);
$u->addCredential('admin');
$this->redirect('default/index');
}
else
{
$request->setError('Login failed', 'Username and/or password was not correct. Please try again.');
return sfView::SUCCESS;
}
}
}
/**
* Logout action
*
* @return void
* @author Benjamin Ramey <ben.ramey@gmail.com>
**/
public function executeLogout()
{
$this->getUser()->setAuthenticated(false);
$this->redirect('default/login');
}
/**
* Secure action
*
* @return void
* @author Benjamin Ramey <ben.ramey@gmail.com>
**/
public function executeSecure()
{
}
}