Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logout #2606

Closed
wants to merge 82 commits into from
Closed

Logout #2606

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
53bb566
Added link to MIT licence
nitriques Feb 11, 2016
943a454
remove require_once call
nitriques Feb 11, 2016
b1e150e
added missing doc
nitriques Feb 11, 2016
4ce189c
removed include_once calls
nitriques Feb 11, 2016
143ae74
Updated grunt deps
nitriques Feb 18, 2016
22069f4
Added a grunt task to run phpcs
nitriques Feb 18, 2016
d68b132
Added github specific files for contribution
nitriques Feb 18, 2016
0e27ff5
Added Default Value plugin
nitriques Oct 20, 2015
15f8cef
new assets build
nitriques Oct 20, 2015
d2e292d
Fix usage of Session::unserialize()
siimsoni Jan 30, 2016
ec700e5
Update Session class to PHP 7 specification
siimsoni Jan 30, 2016
5b2ae3c
Added custom sort parameter
nitriques Feb 8, 2016
78e7439
Added section id to the output
nitriques Feb 8, 2016
9f1147d
splitted the DOMAIN constant to create the DIRROOT constant
nitriques Sep 4, 2015
b35eba8
added DIRROOT as root-dir parameter
nitriques Sep 4, 2015
34a3b50
Made `generateNonce()` return value url safe
nitriques Mar 3, 2016
5a61bf5
Add more random sources
nitriques Mar 3, 2016
42524d4
Refactored how the field gets it current values
nitriques Mar 13, 2016
825eb27
Prevent errors if EXTENSIONS is un readable
nitriques Mar 15, 2016
83a042a
Fix Namespace Cache Typo & remove useless query
jonmifsud Apr 5, 2016
06e9f4d
Merge pull request #2582 from jonmifsud/patch-1
brendo Apr 5, 2016
9363d50
Fix storage warnings on MySQL 5.7
nitriques Apr 12, 2016
ec0a040
Fix broken MySQL doc link
nitriques Apr 12, 2016
17d87a5
Set "Sections Index" as default area of default (first) author (#2530)
twiro Apr 12, 2016
de50fc3
Fix code formatting (#2586)
michael-e Apr 23, 2016
05b68ec
mt_srand function argument must be an integer
Apr 25, 2016
db403c3
Datetime field cannot have a default value of "0000-00-00"
Apr 25, 2016
f7fc180
Prevent cookie issues when running behind a proxy (#2590)
michael-e May 1, 2016
6c73f63
Deprecated $_SESSION copy into $_COOKIE
nitriques May 23, 2016
b329a14
Better php.ini overrides for insecure setups
nitriques May 23, 2016
83069c6
Allow install in folders with special chars
nitriques May 24, 2016
5e67448
Make sure the process is at the right place
nitriques May 24, 2016
a167139
Use HTTP_HOST constant instead of reading $_SERVER
nitriques May 26, 2016
f7a5406
Make sure user can delete the author (#2572)
nitriques May 31, 2016
92f762b
Only request the needed schema in table view (#2568)
nitriques May 31, 2016
0854278
Added ticks around table in DELETE statement
nitriques Apr 15, 2015
786d1cc
Add support for tag negation and filterable ops
jonmifsud Nov 27, 2015
bbc88fa
Add delegate prior to checking a field's post data (#2549)
michael-e May 31, 2016
51ba356
Add data-attributes to publish filtering interface (#2577)
twiro May 31, 2016
4b5067f
Lock/unlock tables when editing entries (#2585)
michael-e May 31, 2016
7bf5c07
Use $_SERVER[] instead of getenv()
nitriques May 31, 2016
2f1a3b3
Provide an extension point to $_SERVER reads
nitriques May 31, 2016
cf942a9
Whitespace fixes
nitriques May 31, 2016
b6d9edb
Make sure the DIRROOT constant ends with a /
nitriques May 31, 2016
2148a32
Fix root-dir parameter potential double /
nitriques May 31, 2016
f9b5b6e
Added workspace-dir parameter
nitriques May 31, 2016
34aeff3
Use DIRROOT for cookie path
nitriques May 31, 2016
a2f2323
Fix cookie safe url creation
nitriques May 31, 2016
e23f2f2
Split out the http protocol logic into a constant
nitriques Jun 4, 2016
72801b4
Restore sanity in url paths
nitriques Jun 4, 2016
29a70c1
Fixed double ticks in SQL query
nitriques Jun 4, 2016
a58ff6b
Remove trailing slash from safe cookie path
nitriques Jun 4, 2016
d6118c0
Remove mcrypt as it is not maintained
nitriques Jun 4, 2016
8ef1e28
Fix stupid typo
nitriques Jun 4, 2016
78d1a1c
Make sure we are dealing with arrays
nitriques Jun 4, 2016
b283df9
Added missing $_REQUEST when fixing magic_quotes
nitriques Jun 4, 2016
0f27412
Fixing potential XSS
nitriques Jun 4, 2016
06371ab
Added 2.7.0 migration file
nitriques Jun 5, 2016
581c99c
Added migration_270 to autoloader
nitriques Jun 6, 2016
fecc61e
Sanitize error message
nitriques Jun 6, 2016
2d8d5e0
Wrap exceptions xml message in CDATA
nitriques Jun 6, 2016
226429d
Delete __actionIndex from authors content page
nitriques Jun 6, 2016
3979c10
Output password and email even when auth == 0
nitriques Jun 7, 2016
8da82f6
Call static methods from static context
nitriques Jun 7, 2016
301d2b7
Make pickable hidden forms elements readonly
nitriques Jun 7, 2016
4fb94f4
Make email prefs pane inputs readonly by default
nitriques Jun 7, 2016
1b0e361
Updated grunt deps
nitriques Jun 7, 2016
2afebde
Added a grunt banner
nitriques Jun 7, 2016
cf90c7a
New assets build
nitriques Jun 7, 2016
7e9c94e
Tag list field: accept an array of tags (#2602)
nilshoerrmann Jun 17, 2016
0e299c6
Fix SQL problem with AND (+) operation
nitriques Jun 17, 2016
558b5d7
Refactored user data parsing
nitriques Jun 17, 2016
9c8679f
Fix broken alignment
nitriques Jun 21, 2016
5b9e33c
Removed unecessary div. qualifier
nitriques Jun 21, 2016
6aa775c
New assets build
nitriques Jun 21, 2016
93ac344
Fix #2603 for real
nitriques Jun 21, 2016
81b0b68
new assets build, re #2603
nitriques Jun 21, 2016
1f6ae8c
Standardize EOL in build
nitriques Jun 22, 2016
52893d5
Supress warning when chmod does not work
nitriques Jul 7, 2016
255b6dd
Change default permission in uploadFile to 0644
nitriques Jul 7, 2016
0c9d32a
Logout redirect to /sym/symphony/login
ChoboHub Jul 19, 2016
6a988c1
redirect with a /
ChoboHub Jul 19, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 15 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Contributing to Symphony

This is a TL;DR version of the [complete contribution guide](https://github.com/symphonycms/symphony-2/wiki/Contributing-to-Symphony).

The two most important things are [comments](https://github.com/symphonycms/symphony-2/wiki/Contributing-to-Symphony#commenting) and [https://github.com/symphonycms/symphony-2/wiki/Contributing-to-Symphony#code-style](code style).

Please insure that any new method is properly documented and that the code style is respected.

Thanks!

- The Symphony Team

### Legal

This submitting your code to the community, you agree to release all copyrights on the code you submit.
3 changes: 3 additions & 0 deletions ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Affected Symphony version(s) :
PHP version(s) :
OS(es) :
5 changes: 5 additions & 0 deletions PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Fix for #

or

Describe new feature here
1 change: 1 addition & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- Date: 08th February 2016
- [Release notes](http://getsymphony.com/download/releases/version/2.6.7/)
- [Github repository](https://github.com/symphonycms/symphony-2/tree/2.6.7)
- [MIT Licence](https://github.com/symphonycms/symphony-2/blob/master/LICENCE)

## Contents

Expand Down
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
"issues": "https://github.com/symphonycms/symphony-2/issues",
"wiki": "https://github.com/symphonycms/symphony-2/wiki"
},
"require-dev": {
"squizlabs/php_codesniffer": "2.*"
},
"minimum-stability": "stable",
"autoload": {
"classmap": ["symphony/content", "symphony/lib", "symphony/template", "install"],
Expand Down
57 changes: 53 additions & 4 deletions gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,23 @@
module.exports = function (grunt) {
'use strict';

// standardize EOL
grunt.util.linefeed = '\n';

grunt.initConfig({

pkg: grunt.file.readJSON('package.json'),

meta: {
banner: '/*!\n * <%= pkg.title || pkg.name %> ' +
' v<%= pkg.version %>\n' +
' * commit <%= commitish %> -' +
' <%= grunt.template.today("yyyy-mm-dd") %>\n' +
' <%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
' * Copyright (c) <%= grunt.template.today("yyyy") %>\n' +
' * License <%= pkg.license %>\n */\n'
},

concat: {
dist: {
files: {
Expand Down Expand Up @@ -52,6 +67,9 @@ module.exports = function (grunt) {

csso: {
styles: {
options: {
banner: '<%= meta.banner %>'
},
files: {
'symphony/assets/css/symphony.min.css': [
'symphony/assets/css/symphony.min.css'
Expand Down Expand Up @@ -88,6 +106,7 @@ module.exports = function (grunt) {
uglify: {
scripts: {
options: {
banner: '<%= meta.banner %>',
preserveComments: 'some'
},
files: {
Expand All @@ -101,6 +120,7 @@ module.exports = function (grunt) {
'symphony/assets/js/src/symphony.js',
'symphony/assets/js/src/symphony.affix.js',
'symphony/assets/js/src/symphony.collapsible.js',
'symphony/assets/js/src/symphony.defaultvalue.js',
'symphony/assets/js/src/symphony.orderable.js',
'symphony/assets/js/src/symphony.selectable.js',
'symphony/assets/js/src/symphony.duplicator.js',
Expand All @@ -127,9 +147,35 @@ module.exports = function (grunt) {
scripts: {
files: 'symphony/assets/js/src/*.js',
tasks: ['js']
},
php: {
files: ['symphony/**/*.php', 'install/**/*.php'],
tasks: ['php']
}
}
},

phpcs: {
application: {
src: ['symphony/**/*.php', 'install/**/*.php', 'index.php']
},
options: {
bin: 'vendor/bin/phpcs',
standard: 'PSR1',
showSniffCodes: true,
tabWidth: 4,
errorSeverity: 10
}
},

commitish: '',
'git-rev-parse': {
options: {
prop: 'commitish',
silent: true,
number: 7
},
dist: {}
}
});

grunt.loadNpmTasks('grunt-contrib-concat');
Expand All @@ -138,8 +184,11 @@ module.exports = function (grunt) {
//grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-phpcs');
grunt.loadNpmTasks('grunt-git-rev-parse');

grunt.registerTask('default', ['concat', 'autoprefixer', 'csso', 'uglify']);
grunt.registerTask('css', ['concat', 'autoprefixer', 'csso']);
grunt.registerTask('js', ['uglify']);
grunt.registerTask('default', ['css', 'js']);
grunt.registerTask('css', ['git-rev-parse', 'concat', 'autoprefixer', 'csso']);
grunt.registerTask('php', ['phpcs']);
grunt.registerTask('js', ['git-rev-parse', 'uglify']);
};
3 changes: 3 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
// Find out where we are:
define('DOCROOT', __DIR__);

// Propagate this change to all executables:
chdir(DOCROOT);

// Include autoloader:
require_once DOCROOT . '/vendor/autoload.php';

Expand Down
2 changes: 1 addition & 1 deletion install/includes/htaccess.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Options +SymLinksIfOwnerMatch -Indexes
</IfModule>

RewriteEngine on
RewriteBase /<!-- REWRITE_BASE -->
RewriteBase "/<!-- REWRITE_BASE -->"

### SECURITY - Protect crucial files
RewriteRule ^manifest/(.*)$ - [F]
Expand Down
2 changes: 1 addition & 1 deletion install/includes/install.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CREATE TABLE `tbl_authors` (
`first_name` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`last_name` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`last_seen` datetime DEFAULT '0000-00-00 00:00:00',
`last_seen` datetime DEFAULT '1000-01-01 00:00:00',
`user_type` enum('author','manager','developer') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'author',
`primary` enum('yes','no') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'no',
`default_area` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
Expand Down
2 changes: 1 addition & 1 deletion install/lib/class.installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ private static function __install()
'last_seen' => null,
'user_type' => 'developer',
'primary' => 'yes',
'default_area' => null,
'default_area' => '/blueprints/sections/',
'auth_token_active' => 'no'
), 'tbl_authors');
} catch (DatabaseException $e) {
Expand Down
21 changes: 21 additions & 0 deletions install/migrations/2.7.0.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

class migration_270 extends Migration
{
public static function getVersion()
{
return '2.7.0.beta1';
}

public static function getReleaseNotes()
{
return 'http://getsymphony.com/download/releases/version/2.7.0/';
}

public static function upgrade()
{

// Update the version information
return parent::upgrade();
}
}
17 changes: 10 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
{
"name": "symphonycms",
"version": "2.6.7",
"homepage": "http://www.getsymphony.com",
"repository": {
"type": "git",
"url": "https://github.com/symphonycms/symphony-2.git"
},
"license": "MIT",
"devDependencies": {
"grunt": "~0.4.5",
"grunt-autoprefixer": "~3.0.3",
"grunt-csso": "~0.8.0",
"grunt-contrib-jshint": "~0.11.3",
"grunt-contrib-uglify": "~0.11.0",
"grunt-contrib-concat": "~0.5.1",
"grunt-contrib-watch": "~0.6.1"
"grunt": "~1.0.1",
"grunt-autoprefixer": "~3.0.4",
"grunt-contrib-concat": "~1.0.1",
"grunt-contrib-jshint": "~1.0.0",
"grunt-contrib-uglify": "~1.0.1",
"grunt-contrib-watch": "~1.0.0",
"grunt-csso": "~1.0.0",
"grunt-git-rev-parse": "^0.1.5",
"grunt-phpcs": "^0.4.0"
}
}
9 changes: 8 additions & 1 deletion symphony/assets/css/devkit.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion symphony/assets/css/installer.min.css

Large diffs are not rendered by default.

13 changes: 7 additions & 6 deletions symphony/assets/css/src/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,7 @@ fieldset.settings.highlight {
margin: 0 0 0 -1.5rem;
padding: 0;
border: none;
display: block;
}

#password legend {
Expand All @@ -460,6 +461,7 @@ fieldset.settings.highlight {
color: #222;
line-height: 1.5;
text-shadow: none;
display: block;
}

#password i {
Expand All @@ -468,7 +470,7 @@ fieldset.settings.highlight {
right: 0;
}

div.password {
.password {
position: absolute;
left: 0;
box-sizing: border-box;
Expand All @@ -478,8 +480,7 @@ div.password {
}

@media screen and (max-width: 700px) {

div.password {
.password {
padding: 0;
}
}
Expand Down Expand Up @@ -606,15 +607,15 @@ ul.page form span {

/* Checkboxes */

div.field-checkbox {
.field-checkbox {
min-height: 1.6rem;
}

div.field-checkbox:first-child {
.field-checkbox:first-child {
margin-top: 2rem;
}

div.field-checkbox + .field:not(.field-checkbox) {
.field-checkbox + .field:not(.field-checkbox) {
margin-top: 2.6rem;
}

Expand Down
18 changes: 9 additions & 9 deletions symphony/assets/css/src/symphony.drawers.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@
Horizontal drawers
-----------------------------------------------------------------------------*/

div.drawer.horizontal {
.drawer.horizontal {
position: relative;
}

div.drawer.horizontal .contents {
.drawer.horizontal .contents {
margin-top: 1.7rem;
padding: 2rem 0;
border-top: 0.1rem solid rgba(0, 0, 0, 0.05);
}

div.drawer.horizontal .contents:after {
.drawer.horizontal .contents:after {
content: ' ';
display: block;
clear: both;
Expand All @@ -37,8 +37,8 @@ div.drawer.horizontal .contents:after {
/**
* Height is set implicitly via `top` and `bottom` to allow for dynamic height.
*/
div.drawer.vertical-left,
div.drawer.vertical-right {
.drawer.vertical-left,
.drawer.vertical-right {
position: absolute;
top: 0;
bottom: 0;
Expand All @@ -48,17 +48,17 @@ div.drawer.vertical-right {
background: #f4f4f4;
}

div.drawer.vertical-left {
.drawer.vertical-left {
left: 0;
border-right: 0.1rem solid rgba(0, 0, 0, 0.05);
}

div.drawer.vertical-right {
.drawer.vertical-right {
right: 0;
border-left: 0.1rem solid rgba(0, 0, 0, 0.05);
}

div.drawer.vertical-left .contents,
div.drawer.vertical-right .contents {
.drawer.vertical-left .contents,
.drawer.vertical-right .contents {
padding: 2rem;
}
9 changes: 8 additions & 1 deletion symphony/assets/css/symphony.min.css

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions symphony/assets/js/src/backend.views.js
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,10 @@ Symphony.View.add('/blueprints/datasources/:action:/:id:/:status:/:*:', function
});
}
}, 500, nameChangeCount, current, value);
})
// Enable the default value for Data Source name
.symphonyDefaultValue({
sourceElement: context
});

// Update output parameters
Expand Down Expand Up @@ -735,6 +739,10 @@ Symphony.View.add('/blueprints/events/:action:/:name:/:status:/:*:', function()
Symphony.Elements.contents.trigger('update.admin');
}
}, 500, nameChangeCount, current);
})
// Enable the default value for Event name
.symphonyDefaultValue({
sourceElement: context
});

// Change context
Expand Down