nav li{
poistion:relative;
}
nav li.active:before{
content:"";
background:#3498DB;
position: absolute;
width:4px;
height:100%;
}
@font-face {
font-family: 'Gotham Pro';
src: url('../font/GothamPro_regular.eot');
src: local('☺'),
url('../font/GothamPro_regular.eot?') format('embedded-opentype'),
url('../font/GothamPro_regular.woff') format('woff'),
url('../font/GothamPro_regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
$('#shareButton').click(function() {
FB.ui({
method: 'feed',
link: 'https://developers.facebook.com/docs/dialogs/',
caption: 'An example caption',
}, function(response){
if (response === null) {
console.log('was not shared');
} else {
console.log('shared - post id is ' + response.post_id);
}
});
});
[uwsgi]
socket = 127.0.0.1:8002
stats = 127.0.0.1:1717
plugins = python3
virtualenv = /home/web/env/
pythonpath: /home/web/env/bin/
chdir = /home/web/src/
env = DJANGO_SETTINGS_MODULE=settings.dev
touch-reload = /home/web/uwsgi
check-static = /home/web/static/
module = seller.wsgi:application
public function hashPassword($password){
return CPasswordHelper::hashPassword($password);
}
public function validatePassword($password){
return CPasswordHelper::verifyPassword($password,$this->password);
}
public function authenticate(){
$user = Users::model()->findByAttributes(array('login' => $this->username));
if($user === null){
$this->errorCode = self::ERROR_USERNAME_INVALID;
}else if(!$user->validatePassword($this->password)){
$this->errorCode = self::ERROR_PASSWORD_INVALID;
}else{
$this->_id = $user->id;
$this->setState('login', $user->login);
$this->errorCode = self::ERROR_NONE;
}
return $this->errorCode == self::ERROR_NONE;
}