Commit a16429aa authored by lechuck's avatar lechuck Committed by kiki

Initial commit

parent 1b035938
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*.noblogs.org" />
</cross-domain-policy>
This diff is collapsed.
<?php phpinfo() ?>
<?php
function get_blog_domain($old_blog_id) {
global $wpdb;
$id = int($old_blog_id);
$sql = sprintf("SELECT blog form old_noblogs_id WHERE id=%d", $id);
$result = $wpdb->get_row($sql);
if (!$result) {
return;
}
return sprintf("%s.noblogs.org", $result->blog);
}
ob_start();
// Load wordpress api.
define('WP_CACHE',false);
require_once('/opt/noblogs/www/wp-load.php');
if (isset($_GET['blogId']) && is_numeric($_GET['blogId'])) {
$domain = get_blog_domain($_GET['blogId']);
if (!$domain) {
header("Location: https://noblogs.org");
} else {
if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') {
$scheme = 'https://';
} else {
$scheme = 'http://';
}
header(sprintf("Location: %s%s/rss2", $scheme, $domain));
}
}
ob_flush();
?>
......@@ -203,7 +203,7 @@ if ( ! is_multisite() ) {
*/
function _add_themes_utility_last() {
// Must use API on the admin_menu hook, direct modification is only possible on/before the _admin_menu hook
add_submenu_page( 'themes.php', __( 'Theme Editor' ), __( 'Theme Editor' ), 'edit_themes', 'theme-editor.php' );
add_submenu_page('themes.php', _x('Editor', 'theme editor'), _x('Editor', 'theme editor'), 'switch_themes', 'theme-editor.php');
}
$count = '';
......
......@@ -143,9 +143,10 @@ function wp_initial_constants() {
* @since 3.0.0
*/
function wp_plugin_directory_constants() {
if ( ! defined( 'WP_CONTENT_URL' ) ) {
define( 'WP_CONTENT_URL', get_option( 'siteurl' ) . '/wp-content' ); // full url - WP_CONTENT_DIR is defined further up
}
// patched by lesion [http://core.trac.wordpress.org/ticket/13941]
if ( !defined('WP_CONTENT_URL') )
define( 'WP_CONTENT_URL', site_url('wp-content' ) );
#define( 'WP_CONTENT_URL', get_option('siteurl') . '/wp-content'); // full url - WP_CONTENT_DIR is defined further up
/**
* Allows for the plugins directory to be moved from the default location.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment