This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" ?> | |
<dynamics> | |
<package name="moocore.core"> | |
<description>Contains all moocore.core submodules</description> | |
<require>moocore.core.core</require> | |
<require>moocore.core.browser</require> | |
</package> | |
<package name="moocore.native"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class ChangePasswordForm extends BaseForm | |
{ | |
public function configure() | |
{ | |
$this->getWidgetSchema()->setLabel('old', 'Old Password'); | |
$this->getWidgetSchema()->setLabel('new', 'New Password'); | |
$this->getWidgetSchema()->setLabel('repeat', 'Repeat New Password'); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Profile: | |
columns: | |
user_id: integer(8) | |
last_login_ip: string(16) | |
session_id: string(32) | |
relations: | |
User: | |
class: sfGuardUser | |
local: user_id | |
foreign: id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class myUser extends sfGuardSecurityUser | |
{ | |
public function signIn($user, $remember = false, $con = null) | |
{ | |
$user['Profile']['session_id'] = session_id(); | |
$user['Profile']['last_login_ip'] = $this->request->getRealRemoteAddress(); | |
parent::signIn($user, $remember, $con); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class ExclusiveSecurityFilter extends sfFilter | |
{ | |
public function execute($filterChain) | |
{ | |
if($this->context->getUser()->isAuthenticated() | |
&& session_id() != $this->context->getUser()->getProfile()->getSessionId() | |
&& $this->context->getUser()->getProfile()->getLastLoginIp() != $this->context->getRequest()->getRealRemoteAddress() | |
) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location = /favicon.ico { | |
log_not_found off; | |
access_log off; | |
} | |
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ { | |
expires max; | |
log_not_found off; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PHP Version 5.3.5 | |
System Windows NT KEN 6.1 build 7600 (Unknow Windows version Business Edition) i586 | |
Build Date Jan 5 2011 20:26:24 | |
Compiler MSVC9 (Visual C++ 2008) | |
Architecture x86 | |
Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--disable-isapi" "--enable-debug-pack" "--disable-isapi" "--without-mssql" "--without-pdo-mssql" "--without-pi3web" "--with-pdo-oci=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8-11g=D:\php-sdk\oracle\instantclient11\sdk,shared" "--enable-object-out-dir=../obj/" "--enable-com-dotnet" "--with-mcrypt=static" | |
Server API CGI/FastCGI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PHP Version 5.3.5 | |
System Windows NT KEN 6.1 build 7600 (Unknow Windows version Business Edition) i586 | |
Build Date Jan 5 2011 20:26:24 | |
Compiler MSVC9 (Visual C++ 2008) | |
Architecture x86 | |
Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--disable-isapi" "--enable-debug-pack" "--disable-isapi" "--without-mssql" "--without-pdo-mssql" "--without-pi3web" "--with-pdo-oci=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8-11g=D:\php-sdk\oracle\instantclient11\sdk,shared" "--enable-object-out-dir=../obj/" "--enable-com-dotnet" "--with-mcrypt=static" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# add your user to www-data and vise versa | |
sudo usermod -a -G www-data myusername | |
sudo usermod -a -G myusername www-data | |
# override umask in ~/.bashrc and /etc/init.d/apache2 | |
umask 002 | |
#restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#... | |
assetic: | |
debug: %kernel.debug% | |
use_controller: false | |
filters: | |
cssrewrite: ~ | |
#... | |
packager: | |
file: %kernel.root_dir%/../vendor/packager/packager.php | |
packages: |
OlderNewer