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

Drupal 7.10 #1

Open
wants to merge 71 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
fa91b2f
Forward port of Pressflow 6 Smart Start functionality.
Mar 2, 2011
4f90f5e
Add the Pantheon installation profile.
Mar 2, 2011
7940a0f
Hide other installation profiles.
Mar 2, 2011
9882761
adding pantheon module
Mar 3, 2011
c9dd94e
adding CA cert bit
Mar 4, 2011
3b03c40
Fix typo.
Mar 4, 2011
af23ba0
Removing oneliner invalid text
Hornswoggles Apr 13, 2011
c7fd97b
fixing stub file
Hornswoggles Apr 13, 2011
5f019a6
beginning d7 apachesolr module for hyperion
May 13, 2011
529b215
marking as experimental
May 17, 2011
4013553
Merge branch 'solrclient' of github.com:pantheon-systems/pantheon7
May 17, 2011
b4c65ae
disable should restore default class
May 17, 2011
da9f22f
Merge branch 'solrclient' of github.com:pantheon-systems/pantheon7
May 17, 2011
5b2d029
Merge commit '7.2'
May 26, 2011
01ea8df
Adding Josh's gitignore so we can have a clear conflict resolution pa…
Jun 2, 2011
5143c7c
Merge tag '7.2' of git://git.drupalcode.org/project/drupal into 7.2
Jun 2, 2011
49b96f3
Merge the 7.2 Pressflow updates, and resolve a conflict in .gitignore.
Jun 2, 2011
2873742
Merge branch 'master' of github.com:pantheon-systems/pantheon7
Jun 7, 2011
61d4cb1
eliminate notice-level warning
Jun 9, 2011
70c5d7d
Update installation profile to use new apachesolr module's database s…
Jun 16, 2011
d7253d3
The path already contains a "/".
Jun 17, 2011
a9d14f3
Moving pantheon.module to pantheon_api.module
Jun 20, 2011
eab7e50
hidden for the win!
Jun 21, 2011
9df1684
updating dependency on pantheon_api
Jun 21, 2011
44a8dbf
Add apachesolr beta6 and memcache beta3 modules to Pantheon Core
Jun 21, 2011
eb331cc
Upgrade apachesolr module from beta6 to beta8
Jun 21, 2011
62e132b
Upgrade memcache module from beta3 to beta4
Jun 21, 2011
72458fd
Remove d.o packing data from .info files
Jun 21, 2011
8226852
we don't need to set apachesolr config in the api install
Jun 28, 2011
a705a14
fixing ygg api url
Jun 28, 2011
ad59b4b
measure twice, cut once; add slashes in urls
Jun 28, 2011
bb712f0
add ygg api port
Jun 28, 2011
cabc787
add ygg api port
Jun 28, 2011
450dcfc
Merge branch 'update_solr_module' of github.com:pantheon-systems/pant…
Jun 30, 2011
43e06ef
Merge tag '7.4' of git://git.drupalcode.org/project/drupal into 7.4
Jul 1, 2011
a390a21
fixing class name to prevent registry conflicts
Jul 1, 2011
efd3adf
remove errant drupal_http_request() that was overwriting curl() results
Jul 1, 2011
24901d9
Merge branch 'VULCAN-787'
Jul 6, 2011
2151a06
Merge branch '7.4'
Jul 6, 2011
bf57181
Merge remote branch 'origin/hyperion-auto' of ../pantheon7
Jul 8, 2011
d658c32
Merge remote branch 'origin/login' of ../pantheon7
Jul 8, 2011
aeebc6b
making this module the go-to for drupal7 support
Jul 8, 2011
d3683ae
Merge commit '7.4'
elliotttf Jul 25, 2011
8b61940
Merge pull request #4 from elliotttf/master
davidstrauss Jul 25, 2011
51031d7
unhiding the api module so it can be enabled as a dependency
Jul 27, 2011
a3e5b18
Merge tag '7.6' of git://git.drupalcode.org/project/drupal
Jul 27, 2011
f9273a1
Merge tag '7.7' of git://git.drupalcode.org/project/drupal
Jul 28, 2011
c01ba62
Merge tag '7.7' of git://git.drupalcode.org/project/drupal
Jul 28, 2011
19f5d70
fixes to solr
Aug 17, 2011
c478eab
Merge branch 'master' of git://github.com/pantheon-systems/7-development
Aug 18, 2011
7dd6648
adding environmental config pickup
Aug 23, 2011
673fb0b
allow for environmental PRESSFLOW_SETTINGS to override settings.php
Aug 23, 2011
6cb28bf
Merge pull request #7 from pressflow/env-settings
Aug 25, 2011
9c1babe
core status reporting switches to constant VERSION rather than .info …
Aug 25, 2011
06aa0b4
Merge branch 'master' of github.com:pressflow/7 into version-fix
Aug 25, 2011
94d3b07
Merge pull request #1 from pantheon-systems/version-fix
Aug 25, 2011
999abd1
adding some healthchecks
Aug 25, 2011
bb32f4a
Merge branch 'master' of github.com:pantheon-systems/7-development in…
Aug 30, 2011
57ca357
adding a status-code setting value
Aug 30, 2011
dcd82db
nixing php.check.php in favor of the built in php-fpm ping
Aug 30, 2011
f57b8ef
Merge branch 'healthchecks' of github.com:pantheon-systems/7-development
Aug 30, 2011
f3a4caf
Merge tag '7.8' of http://git.drupal.org/project/drupal
Sep 2, 2011
6363c8c
Merge branch 'master' of github.com:pressflow/7
Sep 2, 2011
1be8516
Merge branch 'master' of github.com:pressflow/7
Sep 2, 2011
ec49600
Merge branch 'master' of github.com:pantheon-systems/7-development
Sep 2, 2011
bef8634
moving to PRESSFLOW_SETTINGS
Sep 21, 2011
593a790
remove dupe code, use proper art for json_decode()
Sep 26, 2011
4533a69
Merge branch 'master' of github.com:pantheon-systems/7-development
Sep 26, 2011
b49eacc
resolve issues with Expect header
Oct 8, 2011
f5dcfff
Merge tag '7.9' of git://git.drupalcode.org/project/drupal
Oct 27, 2011
1994b1d
Merge tag '7.10' of https://github.com/drupal/drupal into drupal-7.10
Dec 6, 2011
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 27 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,28 @@
# Ignore configuration files that may contain sensitive information.
sites/*/settings*.php
# Drupal #
##########
sites/*/files/*
files/*

# Ignore paths that contain user-generated content.
sites/*/files
sites/*/private
# Packages #
############
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip

# Logs and databases #
######################
*.log
*.sql

# OS generated files #
######################
.DS_Store?
ehthumbs.db
Icon?
Thumbs.db
._*
28 changes: 28 additions & 0 deletions includes/bootstrap.inc
Original file line number Diff line number Diff line change
Expand Up @@ -726,8 +726,25 @@ function drupal_settings_initialize() {
if (file_exists(DRUPAL_ROOT . '/' . conf_path() . '/settings.php')) {
include_once DRUPAL_ROOT . '/' . conf_path() . '/settings.php';
}

$is_https = isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on';

// Load environmental config, if present.
if (isset($_SERVER['PRESSFLOW_SETTINGS'])) {
$pressflow_settings = json_decode($_SERVER['PRESSFLOW_SETTINGS'], TRUE);
foreach ($pressflow_settings as $key => $value) {
// One level of depth should be enough for $conf and $database.
if ($key == 'conf') {
foreach($value as $conf_key => $conf_value) {
$conf[$conf_key] = $value;
}
}
else {
$$key = $value;
}
}
}

if (isset($base_url)) {
// Parse fixed base URL from settings.php.
$parts = parse_url($base_url);
Expand Down Expand Up @@ -2329,6 +2346,17 @@ function _drupal_bootstrap_database() {
function _drupal_bootstrap_variables() {
global $conf;

// Pressflow Smart Start
if (!empty($GLOBALS['databases']) && variable_get('pressflow_smart_start', FALSE)) {
try {
$result = db_query('SELECT s.name FROM {system} s WHERE s.name = :name', array(':name' => 'system'));
} catch (Exception $e) {
// Redirect to the installer if an essential table is missing.
include_once DRUPAL_ROOT . '/includes/install.inc';
install_goto('install.php');
}
}

// Initialize the lock system.
require_once DRUPAL_ROOT . '/' . variable_get('lock_inc', 'includes/lock.inc');
lock_initialize();
Expand Down
24 changes: 24 additions & 0 deletions misc/healthchecks/db.check.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php
// Load environmental config, if present.
if (isset($_SERVER['PRESSFLOW_SETTINGS'])) {
$pressflow_config = json_decode($_SERVER['PRESSFLOW_SETTINGS'], TRUE);
$db = $pressflow_config['databases']['default']['default'];
$link = mysql_connect($db['host'] . ':' . $db['port'], $db['username'], $db['password']);
if (!$link) {
fail('Could not connect: ' . mysql_error());
}
echo "OK\n";
mysql_close($link);
}
else {
fail("No config found.\n");
}

/**
* Fail with a status code.
*/
function fail($message, $code = 500) {
header(sprintf("HTTP/1.0 %s %s", $code, $message));
echo $message;
exit;
}
1 change: 1 addition & 0 deletions misc/healthchecks/static.check.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
OK
Loading