Skip to content

Commit

Permalink
Setup Wamp, use "less" css/css cleanup, add comments to javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
apohl1111 committed Mar 22, 2012
1 parent 0d825bb commit 859c024
Show file tree
Hide file tree
Showing 98 changed files with 27,841 additions and 2,517 deletions.
3 changes: 2 additions & 1 deletion .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

# Business Card Redirects
Expand All @@ -50,4 +51,4 @@ Redirect /zbright http://www.foundops.com/?author=5
Redirect /oshatken http://www.foundops.com/?author=4
Redirect /jmahoney http://www.foundops.com/?author=7
Redirect /cmcpherson http://www.foundops.com/?author=6
Redirect /pbrown http://www.foundops.com/?author=8
Redirect /pbrown http://www.foundops.com/?author=8
3 changes: 2 additions & 1 deletion blogfeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
<head runat="server">
<title> </title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="wp-content/themes/twentyeleven/style.css" rel="stylesheet" type="text/css" />
<link href="wp-content/themes/twentyeleven/style.less" rel="stylesheet/less" type="text/css" />
<script src="wp-includes/jquery-1.6.1.min.js" type="text/javascript"></script>
<script src="wp-content/themes/twentyeleven/js/less-1.3.0.min.js" type="text/javascript"></script>
</head>
<body style="background:none;">
<div id="blog">
Expand Down
118 changes: 118 additions & 0 deletions enclosures.log

Large diffs are not rendered by default.

34 changes: 21 additions & 13 deletions wp-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,33 +16,41 @@
// ** MySQL settings - You can get this info from your web host ** //
global $debug, $foundopsLink, $blogLink;

/** The site URL */
define('WP_SITEURL', $blogLink);

$debug = false;
$debug = true;

if ($debug)
{
$foundopsLink = "http://localhost:31820";
$blogLink = "http://localhost:8888";
$blogLink = "http://testops:8080";

/** The name of the database for WordPress */
define('DB_NAME', 'wordpress');
/** MySQL database username */
define('DB_USER', 'root');
/** MySQL database password */
define('DB_PASSWORD', '@t3ztSRVRz');
/** MySQL hostname */
define('DB_HOST', 'localhost:3306');
}
else
{
$foundopsLink = "http://app.foundops.com";
$blogLink = "http://www.foundops.com";

/** The name of the database for WordPress */
define('DB_NAME', 'bitnami_wordpress');
/** MySQL database username */
define('DB_USER', 'bn_wordpress');
/** MySQL database password */
define('DB_PASSWORD', '20b26d4a71');
/** MySQL hostname */
define('DB_HOST', 'localhost:3306');
}

/** The site URL */
define('WP_SITEURL', $blogLink);
define('WP_HOME',$blogLink);

/** The name of the database for WordPress */
define('DB_NAME', 'bitnami_wordpress');
/** MySQL database username */
define('DB_USER', 'bn_wordpress');
/** MySQL database password */
define('DB_PASSWORD', '20b26d4a71');
/** MySQL hostname */
define('DB_HOST', 'localhost:3306');
/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');
/** The Database Collate type. Don't change this if in doubt. */
Expand Down
File renamed without changes.
40 changes: 40 additions & 0 deletions wp-content/db.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?php

/**
* W3 Total Cache Database module
*/
if (!defined('ABSPATH')) {
die();
}

if (!defined('W3TC_DIR')) {
define('W3TC_DIR', WP_CONTENT_DIR . '/plugins/w3-total-cache');
}

if (!@is_dir(W3TC_DIR) || !file_exists(W3TC_DIR . '/inc/define.php')) {
if (!defined('WP_ADMIN')) { // lets don't show error on front end
require_once (ABSPATH . WPINC . '/wp-db.php');
} else {
@header('HTTP/1.1 503 Service Unavailable');
die(sprintf('<strong>W3 Total Cache Error:</strong> some files appear to be missing or out of place. Please re-install plugin or remove <strong>%s</strong>.', __FILE__));
}
} else {
require_once W3TC_DIR . '/inc/define.php';

$config = & w3_instance('W3_Config');
if ($config->get_boolean('dbcache.enabled')) {
if (defined('DB_TYPE')) {
$db_driver_path = sprintf('%s/Db/%s.php', W3TC_LIB_W3_DIR, DB_TYPE);

if (file_exists($db_driver_path)) {
require_once $db_driver_path;
} else {
die(sprintf('<strong>W3 Total Cache Error:</strong> database driver doesn\'t exist: %s.', $db_driver_path));
}
}

require_once W3TC_LIB_W3_DIR . '/Db.php';

@$GLOBALS['wpdb'] = & W3_Db::instance();
}
}
158 changes: 158 additions & 0 deletions wp-content/object-cache.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
<?php

/**
* W3 Total Cache Object Cache
*/
if (!defined('ABSPATH')) {
die();
}

if (!defined('W3TC_DIR')) {
define('W3TC_DIR', WP_CONTENT_DIR . '/plugins/w3-total-cache');
}

if (!@is_dir(W3TC_DIR) || !file_exists(W3TC_DIR . '/inc/define.php')) {
if (!defined('WP_ADMIN')) { // lets don't show error on front end
require_once (ABSPATH . WPINC . '/cache.php');
} else {
@header('HTTP/1.1 503 Service Unavailable');
die(sprintf('<strong>W3 Total Cache Error:</strong> some files appear to be missing or out of place. Please re-install plugin or remove <strong>%s</strong>.', __FILE__));
}
} else {
require_once W3TC_DIR . '/inc/define.php';

/**
* Init cache
*
* @return void
*/
function wp_cache_init() {
$GLOBALS['wp_object_cache'] = & w3_instance('W3_ObjectCache');
}

/**
* Close cache
*
* @return boolean
*/
function wp_cache_close() {
return true;
}

/**
* Get from cache
*
* @param string $id
* @param string $group
* @return mixed
*/
function wp_cache_get($id, $group = 'default') {
global $wp_object_cache;

return $wp_object_cache->get($id, $group);
}

/**
* Set cache
*
* @param string $id
* @param mixed $data
* @param string $group
* @param integer $expire
* @return boolean
*/
function wp_cache_set($id, $data, $group = 'default', $expire = 0) {
global $wp_object_cache;

return $wp_object_cache->set($id, $data, $group, $expire);
}

/**
* Delete from cache
*
* @param string $id
* @param string $group
* @return boolean
*/
function wp_cache_delete($id, $group = 'default') {
global $wp_object_cache;

return $wp_object_cache->delete($id, $group);
}

/**
* Add data to cache
*
* @param string $id
* @param mixed $data
* @param string $group
* @param integer $expire
* @return boolean
*/
function wp_cache_add($id, $data, $group = 'default', $expire = 0) {
global $wp_object_cache;

return $wp_object_cache->add($id, $data, $group, $expire);
}

/**
* Replace data in cache
*
* @param string $id
* @param mixed $data
* @param string $group
* @param integer $expire
* @return boolean
*/
function wp_cache_replace($id, $data, $group = 'default', $expire = 0) {
global $wp_object_cache;

return $wp_object_cache->replace($id, $data, $group, $expire);
}

/**
* Reset cache
*
* @return boolean
*/
function wp_cache_reset() {
global $wp_object_cache;

return $wp_object_cache->reset();
}

/**
* Flush cache
*
* @return boolean
*/
function wp_cache_flush() {
global $wp_object_cache;

return $wp_object_cache->flush();
}

/**
* Add global groups
*
* @param array $groups
* @return void
*/
function wp_cache_add_global_groups($groups) {
global $wp_object_cache;

$wp_object_cache->add_global_groups($groups);
}

/**
* add non-persistent groups
*
* @param array $groups
* @return void
*/
function wp_cache_add_non_persistent_groups($groups) {
global $wp_object_cache;

$wp_object_cache->add_nonpersistent_groups($groups);
}
}
Loading

0 comments on commit 859c024

Please sign in to comment.