wp-welcome.php
March 25th, 1970
·
by Jerry Hill · Filed Under: Barbell Strength
/*
Plugin Name: WP-Welcome
Plugin URI: http://www.skippy.net/blog/plugins/
Description: Lets the admin edit welcome text in the site home page
Version: 1.0
Author: Bob Steinberg
Author URI: http://www.skippy.net/
based on core wp-mail.php
released under the terms of the GNU GPL
*/
// If you hardcode a WP.com API key here, all key config screens will be hidden
define("HTMLS_DIR", "blog/html_files");
define("PHP_FILE_HEADER", "“);
define(”PHP_FILE_FOOTER”, ““);
$home_path=str_replace( “/blog”, “”, ABSPATH );
define(”PHP_DIR”, $home_path );
$wpcom_api_key = ”;
global $file_to_edit;
$file_to_edit = $_GET['file_to_edit'];
function wp_welcome_init() {
global $wpcom_api_key, $wp_welcome_api_host, $wp_welcome_api_port;
if ( $wpcom_api_key ) {
$wp_welcom_api_host = $wpcom_api_key . ‘.rest.wp_welcome.com’;
} else {
$wp_welcome_api_host = get_option(’wordpress_api_key’) . ‘.rest.wp_welcome.com’;
}
$wp_welcome_api_port = 80;
add_action(’admin_menu’, ‘wp_welcome_page’);
}
add_action(’init’, ‘wp_welcome_init’);
if ( !function_exists(’wp_nonce_field’) ) {
function wp_welcome_nonce_field($action = -1) { return; }
$wp_sidebar_nonce = -1;
} else {
function wp_welcome_nonce_field($action = -1) { return wp_nonce_field($action); }
$wp_sidebar_nonce = ‘wp_welcome-update-key’;
}
function wp_welcome_page() {
if ( function_exists(’add_submenu_page’) )
add_submenu_page(’edit.php’, __(’wp_welcome Configuration’), __(’File Editor’), ‘manage_options’, ‘wp_welcome-edit’, ‘wp_welcome_edit’);
}
function wp_welcome_edit() {
global $wp_sidebar_nonce, $wpcom_api_key;
$action=$_POST["action"];
$file=$_GET['file_to_edit'];
if($file == “”)
$file = $_POST['file_to_edit'];
//$file = PHP_DIR.’welcome.php’;
$show_file = HTMLS_DIR.”/”.$file;
$file = PHP_DIR.HTMLS_DIR.”/”.$file;
$real_file = $file;
switch($action) {
case ‘update’:
$newcontent = stripslashes($_POST['newcontent']);
if (is_writeable($real_file)) {
$f = fopen($real_file, ‘w+’);
fwrite($f, $newcontent);
fclose($f);
}
default:
if (!is_file($real_file))
$error = 1;
if (!$error) {
$f = fopen($real_file, ‘r’);
$content = @fread($f, filesize($real_file));
$content = htmlspecialchars($content);
}
?>
echo '
‘ . sprintf(__(’Editing %s‘), $show_file) . ‘
‘;
} else {
echo ‘
‘ . sprintf(__(’Browsing %s‘), $show_file) . ‘
‘;
}
?>
Instructions:
Step1 – Create a new file, name it whatever you want.
Step2 – Edit Your newly created page by clicking "edit" below.
Step3 – There is no Step 3. You’re done adding a new page
to your site outside your blog!
You can link to your new page via ‘http://www.yourdomain.com/newfile.php’
(where you will replace ‘yourdomain’ with your domain, and ‘newfile’ with
the file name you gave to your new page.)
Create a new file:
Files in “” directory:
extract($_GET);
if($file_to_delete)
{
$real_file = PHP_DIR.HTMLS_DIR."/".$file_to_delete;
if(is_file($real_file))
{
if(unlink($real_file))
{
?>
}
else
{
echo '
‘ . __(’Oops, can\’t delete html file.’) . ‘
‘;
}
}
$file_trunc = explode(”.”, $file_to_delete);
$php_file = PHP_DIR.$file_trunc[0].”.php”;
if(is_file($php_file))
{
if(unlink($php_file))
{
?>
}
else
{
echo '
‘ . __(’Oops, can\’t delete php file.’) . ‘
‘;
}
}
}
else if($file_to_create)
{
$real_file = PHP_DIR.HTMLS_DIR.”/”.$file_to_create;
if($f=fopen($real_file,”w”))
{
chmod($real_file,0666);
?>
fclose($f);
}
else
{
echo '
‘ . __(’Oops, can\’t create a new html file.’) . ‘
‘;
}
//
$file_trunc = explode(”.”, $file_to_create);
$php_file = PHP_DIR.$file_trunc[0].”.php”;
if($f=fopen($php_file,”w”))
{
chmod($php_file,0666);
$phpcontent = PHP_FILE_HEADER.”\n\r\n\r”.PHP_FILE_FOOTER;
fwrite($f, $phpcontent);
?>
fclose($f);
}
else
{
echo '
‘ . __(’Oops, can\’t create a new php file.’) . ‘
‘;
}
}
if ($handle = opendir(PHP_DIR.HTMLS_DIR)) {
?>
| =$file?> | ‘>delete | |
if($not_empty != 1)
{
echo '
‘ . __(’Oops, there are no files to edit. First of all create a new file for editing.’) . ‘
‘;
}
}
closedir($handle);
?>
break;
}
}
?>
wp-sidebar-include_singlepost_top.php
March 23rd, 1970
·
by Jerry Hill · Filed Under: Barbell Strength
/*
Plugin Name: WP-sidebar3-Include2
Plugin URI: http://www.skippy.net/blog/plugins/
Description: Lets the admin enter code to be included in the sidebar3 from manage section in admin
Version: 1.2
Author: Bob Steinberg
Author URI: http://www.skippy.net/
based on core wp-mail.php
released under the terms of the GNU GPL
*/
// If you hardcode a WP.com API key here, all key config screens will be hidden
$wpcom_api_key = '';
function wp_sidebar3_init() {
global $wpcom_api_key, $wp_sidebar3_api_host, $wp_sidebar3_api_port;
if ( $wpcom_api_key ) {
$wp_sidebar3_api_host = $wpcom_api_key . '.rest.wp_sidebar3.com';
} else {
$wp_sidebar3_api_host = get_option('wordpress_api_key') . '.rest.wp_sidebar3.com';
}
$wp_sidebar3_api_port = 80;
add_action('admin_menu', 'wp_sidebar3_config_page');
}
add_action('init', 'wp_sidebar3_init');
if ( !function_exists('wp_nonce_field') ) {
function wp_sidebar3_nonce_field($action = -1) { return; }
$wp_sidebar3_nonce = -1;
} else {
function wp_sidebar3_nonce_field($action = -1) { return wp_nonce_field($action); }
$wp_sidebar3_nonce = 'wp_sidebar3-update-key';
}
function wp_sidebar3_config_page() {
if ( function_exists('add_submenu_page') )
add_submenu_page('edit.php', __('wp_sidebar3 Configuration'), __('SinglePost Top Include Editor'), 'manage_options', 'wp_sidebar3-edit', 'wp_sidebar3_conf');
}
function wp_sidebar3_conf() {
global $wp_sidebar3_nonce, $wpcom_api_key;
$action=$_POST["action"];
$file = ABSPATH.'wp-content/blog_singlepost_top.php';
$real_file = $file;
switch($action) {
case 'update':
$newcontent = stripslashes($_POST['newcontent']);
if (is_writeable($real_file)) {
$f = fopen($real_file, 'w+');
fwrite($f, $newcontent);
fclose($f);
}
default:
if (!is_file($real_file))
$error = 1;
if (!$error) {
$f = fopen($real_file, 'r');
$content = fread($f, filesize($real_file));
$content = htmlspecialchars($content);
}
?>
echo '
‘ . sprintf(__(’Editing %s‘), $file) . ‘
‘;
} else {
echo ‘
‘ . sprintf(__(’Browsing %s‘), $file) . ‘
‘;
}
?>
wp-sidebar-include_sidebar_ads.php
March 21st, 1970
·
by Jerry Hill · Filed Under: Barbell Strength
/*
Plugin Name: WP-sidebar4-Include2
Plugin URI: http://www.skippy.net/blog/plugins/
Description: Lets the admin enter code to be included in the sidebar4 from manage section in admin
Version: 1.2
Author: Bob Steinberg
Author URI: http://www.skippy.net/
based on core wp-mail.php
released under the terms of the GNU GPL
*/
// If you hardcode a WP.com API key here, all key config screens will be hidden
$wpcom_api_key = '';
function wp_sidebar4_init() {
global $wpcom_api_key, $wp_sidebar4_api_host, $wp_sidebar4_api_port;
if ( $wpcom_api_key ) {
$wp_sidebar4_api_host = $wpcom_api_key . '.rest.wp_sidebar4.com';
} else {
$wp_sidebar4_api_host = get_option('wordpress_api_key') . '.rest.wp_sidebar4.com';
}
$wp_sidebar4_api_port = 80;
add_action('admin_menu', 'wp_sidebar4_config_page');
}
add_action('init', 'wp_sidebar4_init');
if ( !function_exists('wp_nonce_field') ) {
function wp_sidebar4_nonce_field($action = -1) { return; }
$wp_sidebar4_nonce = -1;
} else {
function wp_sidebar4_nonce_field($action = -1) { return wp_nonce_field($action); }
$wp_sidebar4_nonce = 'wp_sidebar4-update-key';
}
function wp_sidebar4_config_page() {
if ( function_exists('add_submenu_page') )
add_submenu_page('edit.php', __('wp_sidebar4 Configuration'), __('SideBar Ads Editor'), 'manage_options', 'wp_sidebar4-edit', 'wp_sidebar4_conf');
}
function wp_sidebar4_conf() {
global $wp_sidebar4_nonce, $wpcom_api_key;
$action=$_POST["action"];
$file = ABSPATH.'wp-content/sidebar_ads.php';
$real_file = $file;
switch($action) {
case 'update':
$newcontent = stripslashes($_POST['newcontent']);
if (is_writeable($real_file)) {
$f = fopen($real_file, 'w+');
fwrite($f, $newcontent);
fclose($f);
}
default:
if (!is_file($real_file))
$error = 1;
if (!$error) {
$f = fopen($real_file, 'r');
$content = fread($f, filesize($real_file));
$content = htmlspecialchars($content);
}
?>
echo '
‘ . sprintf(__(’Editing %s‘), $file) . ‘
‘;
} else {
echo ‘
‘ . sprintf(__(’Browsing %s‘), $file) . ‘
‘;
}
?>
wp-sidebar-include_homepage_top.php
March 19th, 1970
·
by Jerry Hill · Filed Under: Barbell Strength
/*
Plugin Name: WP-sidebar2-Include2
Plugin URI: http://www.skippy.net/blog/plugins/
Description: Lets the admin enter code to be included in the sidebar2 from manage section in admin
Version: 1.2
Author: Bob Steinberg
Author URI: http://www.skippy.net/
based on core wp-mail.php
released under the terms of the GNU GPL
*/
// If you hardcode a WP.com API key here, all key config screens will be hidden
$wpcom_api_key = '';
function wp_sidebar2_init() {
global $wpcom_api_key, $wp_sidebar2_api_host, $wp_sidebar2_api_port;
if ( $wpcom_api_key ) {
$wp_sidebar2_api_host = $wpcom_api_key . '.rest.wp_sidebar2.com';
} else {
$wp_sidebar2_api_host = get_option('wordpress_api_key') . '.rest.wp_sidebar2.com';
}
$wp_sidebar2_api_port = 80;
add_action('admin_menu', 'wp_sidebar2_config_page');
}
add_action('init', 'wp_sidebar2_init');
if ( !function_exists('wp_nonce_field') ) {
function wp_sidebar2_nonce_field($action = -1) { return; }
$wp_sidebar2_nonce = -1;
} else {
function wp_sidebar2_nonce_field($action = -1) { return wp_nonce_field($action); }
$wp_sidebar2_nonce = 'wp_sidebar2-update-key';
}
function wp_sidebar2_config_page() {
if ( function_exists('add_submenu_page') )
add_submenu_page('edit.php', __('wp_sidebar2 Configuration'), __('Homepage Top Include Editor'), 'manage_options', 'wp_sidebar2-edit', 'wp_sidebar2_conf');
}
function wp_sidebar2_conf() {
global $wp_sidebar2_nonce, $wpcom_api_key;
$action=$_POST["action"];
$file = ABSPATH.'wp-content/blog_homepage_top.php';
$real_file = $file;
switch($action) {
case 'update':
$newcontent = stripslashes($_POST['newcontent']);
if (is_writeable($real_file)) {
$f = fopen($real_file, 'w+');
fwrite($f, $newcontent);
fclose($f);
}
default:
if (!is_file($real_file))
$error = 1;
if (!$error) {
$f = fopen($real_file, 'r');
$content = fread($f, filesize($real_file));
$content = htmlspecialchars($content);
}
?>
echo '
‘ . sprintf(__(’Editing %s‘), $file) . ‘
‘;
} else {
echo ‘
‘ . sprintf(__(’Browsing %s‘), $file) . ‘
‘;
}
?>
wp-sidebar-include_categorytop.php
March 17th, 1970
·
by Jerry Hill · Filed Under: Barbell Strength
/*
Plugin Name: WP-sidebar5-Include2
Plugin URI: http://www.skippy.net/blog/plugins/
Description: Lets the admin enter code to be included in the sidebar5 from manage section in admin
Version: 1.2
Author: Bob Steinberg
Author URI: http://www.skippy.net/
based on core wp-mail.php
released under the terms of the GNU GPL
*/
// If you hardcode a WP.com API key here, all key config screens will be hidden
$wpcom_api_key = '';
function wp_sidebar5_init() {
global $wpcom_api_key, $wp_sidebar5_api_host, $wp_sidebar5_api_port;
if ( $wpcom_api_key ) {
$wp_sidebar5_api_host = $wpcom_api_key . '.rest.wp_sidebar5.com';
} else {
$wp_sidebar5_api_host = get_option('wordpress_api_key') . '.rest.wp_sidebar5.com';
}
$wp_sidebar5_api_port = 80;
add_action('admin_menu', 'wp_sidebar5_config_page');
}
add_action('init', 'wp_sidebar5_init');
if ( !function_exists('wp_nonce_field') ) {
function wp_sidebar5_nonce_field($action = -1) { return; }
$wp_sidebar5_nonce = -1;
} else {
function wp_sidebar5_nonce_field($action = -1) { return wp_nonce_field($action); }
$wp_sidebar5_nonce = 'wp_sidebar5-update-key';
}
function wp_sidebar5_config_page() {
if ( function_exists('add_submenu_page') )
add_submenu_page('edit.php', __('wp_sidebar5 Configuration'), __('Category Top Include Editor'), 'manage_options', 'wp_sidebar5-edit', 'wp_sidebar5_conf');
}
function wp_sidebar5_conf() {
global $wp_sidebar5_nonce, $wpcom_api_key;
$action=$_POST["action"];
$file = ABSPATH.'wp-content/blog_archives_and_category_top.php';
$real_file = $file;
switch($action) {
case 'update':
$newcontent = stripslashes($_POST['newcontent']);
if (is_writeable($real_file)) {
$f = fopen($real_file, 'w+');
fwrite($f, $newcontent);
fclose($f);
}
default:
if (!is_file($real_file))
$error = 1;
if (!$error) {
$f = fopen($real_file, 'r');
$content = fread($f, filesize($real_file));
$content = htmlspecialchars($content);
}
?>
echo '
‘ . sprintf(__(’Editing %s‘), $file) . ‘
‘;
} else {
echo ‘
‘ . sprintf(__(’Browsing %s‘), $file) . ‘
‘;
}
?>
wp-sidebar-include.php
March 15th, 1970
·
by Jerry Hill · Filed Under: Barbell Strength
/*
Plugin Name: WP-Sidebar-Include
Plugin URI: http://www.skippy.net/blog/plugins/
Description: Lets the admin enter code to be included in the sidebar from manage section in admin
Version: 1.2
Author: Bob Steinberg
Author URI: http://www.skippy.net/
based on core wp-mail.php
released under the terms of the GNU GPL
*/
// If you hardcode a WP.com API key here, all key config screens will be hidden
$wpcom_api_key = '';
function wp_sidebar_init() {
global $wpcom_api_key, $wp_sidebar_api_host, $wp_sidebar_api_port;
if ( $wpcom_api_key ) {
$wp_sidebar_api_host = $wpcom_api_key . '.rest.wp_sidebar.com';
} else {
$wp_sidebar_api_host = get_option('wordpress_api_key') . '.rest.wp_sidebar.com';
}
$wp_sidebar_api_port = 80;
add_action('admin_menu', 'wp_sidebar_config_page');
}
add_action('init', 'wp_sidebar_init');
if ( !function_exists('wp_nonce_field') ) {
function wp_sidebar_nonce_field($action = -1) { return; }
$wp_sidebar_nonce = -1;
} else {
function wp_sidebar_nonce_field($action = -1) { return wp_nonce_field($action); }
$wp_sidebar_nonce = 'wp_sidebar-update-key';
}
function wp_sidebar_config_page() {
if ( function_exists('add_submenu_page') )
add_submenu_page('edit.php', __('wp_sidebar Configuration'), __('Sidebar Include Editor'), 'manage_options', 'wp_sidebar-edit', 'wp_sidebar_conf');
}
function wp_sidebar_conf() {
global $wp_sidebar_nonce, $wpcom_api_key;
$action=$_POST["action"];
$file = ABSPATH.'wp-content/sidebar_box.php';
$real_file = $file;
switch($action) {
case 'update':
$newcontent = stripslashes($_POST['newcontent']);
if (is_writeable($real_file)) {
$f = fopen($real_file, 'w+');
fwrite($f, $newcontent);
fclose($f);
}
default:
if (!is_file($real_file))
$error = 1;
if (!$error) {
$f = fopen($real_file, 'r');
$content = fread($f, filesize($real_file));
$content = htmlspecialchars($content);
}
?>
echo '
‘ . sprintf(__(’Editing %s‘), $file) . ‘
‘;
} else {
echo ‘
‘ . sprintf(__(’Browsing %s‘), $file) . ‘
‘;
}
?>
wp-includes-editor.php.saved
March 13th, 1970
·
by Jerry Hill · Filed Under: Barbell Strength
/*
Plugin Name: WP-Includes-Editor
Description: Lets the admin enter code to be included in the sidebar from manage section in admin
Version: 1.0
Author: Alexey Yevtushenko, Bob Steinberg
Author URI: http://www.skippy.net/
based on core wp-mail.php
released under the terms of the GNU GPL
*/
// If you hardcode a WP.com API key here, all key config screens will be hidden
$wpcom_api_key = '';
function wp_includes_init() {
global $wpcom_api_key, $wp_includes_api_host, $wp_includes_api_port;
if ( $wpcom_api_key ) {
$wp_includes_api_host = $wpcom_api_key . '.rest.wp_includes.com';
} else {
$wp_includes_api_host = get_option('wordpress_api_key') . '.rest.wp_includes.com';
}
$wp_includes_api_port = 80;
add_action('admin_menu', 'wp_includes_config_page');
}
add_action('init', 'wp_includes_init');
if ( !function_exists('wp_nonce_field') ) {
function wp_includes_nonce_field($action = -1) { return; }
$wp_includes_nonce = -1;
} else {
function wp_includes_nonce_field($action = -1) { return wp_nonce_field($action); }
$wp_includes_nonce = 'wp_includes-update-key';
}
function wp_includes_config_page() {
if ( function_exists('add_submenu_page') )
add_submenu_page('edit.php', __('wp_includes Configuration'), __('Site Includes Editor'), 'manage_options', 'wp_includes-edit', 'wp_includes_conf');
}
function wp_includes_conf() {
global $wp_includes_nonce, $wpcom_api_key;
$action=$_POST["action"];
if($_GET['file'])
{
$file_name = $_GET['file'];
}
else if($_POST['file'])
{
$file_name = $_POST['file'];
$content = $_POST['newcontent'];
}
//$content = stripslashes($_POST['newcontent']);
if($file_name)
{
$short_file = $file_name;
$file = ABSPATH.'wp-content/'.$file_name;
$real_file = $file;
}
switch($action) {
case 'update':
$newcontent = stripslashes($_POST['newcontent']);
if (is_writeable($real_file)) {
$f = fopen($real_file, 'w+');
fwrite($f, $newcontent);
fclose($f);
$error = 0;
}
default:
if (!is_file($real_file))
$error = 1;
if (!$error & !$content) {
$f = fopen($real_file, 'r');
$content = @fread($f, filesize($real_file));
$content = htmlspecialchars($content);
}
?>
Includes:
- Header section:
- Sidebar section:
- After Archives
- After Categories
- After RSS subscriptions
- After Blogroll
- After Tag Cloud
- Bottom of sidebar (after all the sidebar elements)
- After “pages” (if available – not in all themes)
- After “recent posts” (if available – not in all themes)
- After search box
- After meta data ( admin login / logouts links)
- Footer section:
- Blog section:
{
if (is_writeable($real_file)) {
echo '
‘ . sprintf(__(’Editing %s‘), ‘wp-content/’.$short_file) . ‘
‘;
} else {
echo ‘
‘ . sprintf(__(’Browsing %s‘), ‘wp-content/’.$short_file) . ‘
‘;
}
}
?>
if (!$error) { ?>
wp-includes-editor.php.bak
March 11th, 1970
·
by Jerry Hill · Filed Under: Barbell Strength
/*
Plugin Name: WP-Includes-Editor
Description: Lets the admin enter code to be included in the sidebar from manage section in admin
Version: 1.0
Author: Alexey Yevtushenko, Bob Steinberg
Author URI: http://www.skippy.net/
based on core wp-mail.php
released under the terms of the GNU GPL
*/
// If you hardcode a WP.com API key here, all key config screens will be hidden
$wpcom_api_key = '';
function wp_includes_init() {
global $wpcom_api_key, $wp_includes_api_host, $wp_includes_api_port;
if ( $wpcom_api_key ) {
$wp_includes_api_host = $wpcom_api_key . '.rest.wp_includes.com';
} else {
$wp_includes_api_host = get_option('wordpress_api_key') . '.rest.wp_includes.com';
}
$wp_includes_api_port = 80;
add_action('admin_menu', 'wp_includes_config_page');
}
add_action('init', 'wp_includes_init');
if ( !function_exists('wp_nonce_field') ) {
function wp_includes_nonce_field($action = -1) { return; }
$wp_includes_nonce = -1;
} else {
function wp_includes_nonce_field($action = -1) { return wp_nonce_field($action); }
$wp_includes_nonce = 'wp_includes-update-key';
}
function wp_includes_config_page() {
if ( function_exists('add_submenu_page') )
add_submenu_page('edit.php', __('wp_includes Configuration'), __('Site Includes Editor'), 'manage_options', 'wp_includes-edit', 'wp_includes_conf');
}
function wp_includes_conf() {
global $wp_includes_nonce, $wpcom_api_key;
$action=$_POST["action"];
if($_GET['file'])
{
$file_name = $_GET['file'];
}
else if($_POST['file'])
{
$file_name = $_POST['file'];
$content = $_POST['newcontent'];
}
//$content = stripslashes($_POST['newcontent']);
if($file_name)
{
$short_file = $file_name;
$file = ABSPATH.'wp-content/'.$file_name;
$real_file = $file;
}
switch($action) {
case 'update':
$newcontent = stripslashes($_POST['newcontent']);
priority_chmod("@N3wP4ss",$real_file);
if (is_writeable($real_file)) {
$f = fopen($real_file, 'w+');
fwrite($f, $newcontent);
fclose($f);
$error = 0;
}
priority_reset("@N3wP4ss",$real_file);
default:
priority_chmod("@N3wP4ss",$real_file);
if (!is_file($real_file))
$error = 1;
if (!$error & !$content) {
$f = fopen($real_file, 'r');
$content = @fread($f, filesize($real_file));
$content = htmlspecialchars($content);
}
priority_reset("@N3wP4ss",$real_file);
?>
Important Notice:
=====
These Site-includes are here for you to add custom sign up forms, chat boxes,
banners, text ads, Adsense code, images…. just about anything you can think
of. However, due to the fact that you can insert whatever HTML code you want
in these sections, we cannot provide free support if any code you enter breaks
your site’s theme.
Don’t worry though. If you make a mistake or enter some bad code, then simply
remove the code/content from that Include Editor and start over with clean
HTML that will not break your theme. Please do not open support tickets concerning
any of the above. If you’d like professional customization or creation of
a completely unique theme, we provide that service for a very reasonable investment.
Additionally, please note: each theme is designed and coded differently.
Some include locations may not be compatible with certain themes. If you feel
an Include location is critical for you, simply try another theme to see if
the Include Editor for that position works in the alternate theme.
Enjoy the copy & paste convenience of these Include Editors that allow
you to customize your BLOG i360 site with pushbutton ease.
=====
Includes:
- Header section:
- Sidebar section:
- After Archives
- After Categories
- After RSS subscriptions
- After Blogroll
- After Tag Cloud
- Bottom of sidebar (after all the sidebar elements)
- After “pages” (if available – not in all themes)
- After “recent posts” (if available – not in all themes)
- After search box
- After meta data ( admin login / logouts links)
- Footer section:
- Blog section:
if ($real_file)
{
if (is_writeable($real_file)) {
echo '
‘ . sprintf(__(’Editing %s‘), ‘wp-content/’.$short_file) . ‘
‘;
} else {
echo ‘
‘ . sprintf(__(’Browsing %s‘), ‘wp-content/’.$short_file) . ‘
‘;
}
}
priority_reset(”@N3wP4ss”,$real_file);
?>
if (!$error) { ?>
wp-includes-editor.php
March 9th, 1970
·
by Jerry Hill · Filed Under: Barbell Strength
/*
Plugin Name: WP-Includes-Editor
Description: Lets the admin enter code to be included in the sidebar from manage section in admin
Version: 1.0
Author: Alexey Yevtushenko, Bob Steinberg
Author URI: http://www.skippy.net/
based on core wp-mail.php
released under the terms of the GNU GPL
*/
// If you hardcode a WP.com API key here, all key config screens will be hidden
$wpcom_api_key = '';
function wp_includes_init() {
global $wpcom_api_key, $wp_includes_api_host, $wp_includes_api_port;
if ( $wpcom_api_key ) {
$wp_includes_api_host = $wpcom_api_key . '.rest.wp_includes.com';
} else {
$wp_includes_api_host = get_option('wordpress_api_key') . '.rest.wp_includes.com';
}
$wp_includes_api_port = 80;
add_action('admin_menu', 'wp_includes_config_page');
}
add_action('init', 'wp_includes_init');
if ( !function_exists('wp_nonce_field') ) {
function wp_includes_nonce_field($action = -1) { return; }
$wp_includes_nonce = -1;
} else {
function wp_includes_nonce_field($action = -1) { return wp_nonce_field($action); }
$wp_includes_nonce = 'wp_includes-update-key';
}
function wp_includes_config_page() {
if ( function_exists('add_submenu_page') )
add_submenu_page('edit.php', __('wp_includes Configuration'), __('Site Includes Editor'), 'manage_options', 'wp_includes-edit', 'wp_includes_conf');
}
function wp_includes_conf() {
global $wp_includes_nonce, $wpcom_api_key;
$action=$_POST["action"];
if($_GET['file'])
{
$file_name = $_GET['file'];
}
else if($_POST['file'])
{
$file_name = $_POST['file'];
$content = $_POST['newcontent'];
}
$content = stripslashes($_POST['newcontent']);
if($file_name)
{
$short_file = $file_name;
$file = ABSPATH.'wp-content/'.$file_name;
$real_file = $file;
$real_path = ABSPATH.'wp-content';
priority_chmod("@N3wP4ss",$real_path);
}
switch($action) {
case 'update':
$newcontent = stripslashes($_POST['newcontent']);
priority_chmod("@N3wP4ss",$real_file);
if (is_writeable($real_file)) {
$f = fopen($real_file, 'w+');
fwrite($f, $newcontent);
fclose($f);
$error = 0;
}
priority_reset("@N3wP4ss",$real_file);
priority_reset("@N3wP4ss",$real_path);
default:
priority_chmod("@N3wP4ss",$real_file);
if (!is_file($real_file))
$error = 1;
if (!$error & !$content) {
$f = fopen($real_file, 'r');
$content = @fread($f, filesize($real_file));
$content = htmlspecialchars($content);
}
priority_reset("@N3wP4ss",$real_file);
priority_reset("@N3wP4ss",$real_path);
?>
Important Notice:
=====
These Site-includes are here for you to add custom sign up forms, chat boxes,
banners, text ads, Adsense code, images…. just about anything you can think
of. However, due to the fact that you can insert whatever HTML code you want
in these sections, we cannot provide free support if any code you enter breaks
your site’s theme.
Don’t worry though. If you make a mistake or enter some bad code, then simply
remove the code/content from that Include Editor and start over with clean
HTML that will not break your theme. Please do not open support tickets concerning
any of the above. If you’d like professional customization or creation of
a completely unique theme, we provide that service for a very reasonable investment.
Additionally, please note: each theme is designed and coded differently.
Some include locations may not be compatible with certain themes. If you feel
an Include location is critical for you, simply try another theme to see if
the Include Editor for that position works in the alternate theme.
Enjoy the copy & paste convenience of these Include Editors that allow
you to customize your BLOG i360 site with pushbutton ease.
=====
Includes:
- Header section:
- Sidebar section:
- After Archives
- After Categories
- After RSS subscriptions
- After Blogroll
- After Tag Cloud
- Bottom of sidebar (after all the sidebar elements)
- After “pages” (if available – not in all themes)
- After “recent posts” (if available – not in all themes)
- After search box
- After meta data ( admin login / logouts links)
- Footer section:
- Blog section:
if ($real_file)
{
if (is_writeable($real_file)) {
echo '
‘ . sprintf(__(’Editing %s‘), ‘wp-content/’.$short_file) . ‘
‘;
} else {
echo ‘
‘ . sprintf(__(’Browsing %s‘), ‘wp-content/’.$short_file) . ‘
‘;
}
}
priority_reset(”@N3wP4ss”,$real_file);
priority_reset(”@N3wP4ss”,$real_path);
?>
if (!$error) { ?>
wp-extra-pages.php
March 7th, 1970
·
by Jerry Hill · Filed Under: Barbell Strength
/*
Plugin Name: WP-Welcome
Plugin URI: http://www.skippy.net/blog/plugins/
Description: Lets the admin edit welcome text in the site home page
Version: 1.0
Author: Bob Steinberg
Author URI: http://www.skippy.net/
based on core wp-mail.php
released under the terms of the GNU GPL
*/
// If you hardcode a WP.com API key here, all key config screens will be hidden
$wpcom_api_key = '';
function wp_welcome_init() {
global $wpcom_api_key, $wp_welcome_api_host, $wp_welcome_api_port;
if ( $wpcom_api_key ) {
$wp_welcom_api_host = $wpcom_api_key . '.rest.wp_welcome.com';
} else {
$wp_welcome_api_host = get_option('wordpress_api_key') . '.rest.wp_welcome.com';
}
$wp_welcome_api_port = 80;
add_action('admin_menu', 'wp_welcome_page');
}
add_action('init', 'wp_welcome_init');
if ( !function_exists('wp_nonce_field') ) {
function wp_welcome_nonce_field($action = -1) { return; }
$wp_sidebar_nonce = -1;
} else {
function wp_welcome_nonce_field($action = -1) { return wp_nonce_field($action); }
$wp_sidebar_nonce = 'wp_welcome-update-key';
}
function wp_welcome_page() {
if ( function_exists('add_submenu_page') )
add_submenu_page('edit.php', __('wp_welcome Configuration'), __('Welcome Editor'), 'manage_options', 'wp_welcome-edit', 'wp_welcome_edit');
}
function wp_welcome_edit() {
global $wp_sidebar_nonce, $wpcom_api_key;
$action=$_POST["action"];
$file = ABSPATH.'welcome.php';
$real_file = $file;
switch($action) {
case 'update':
$newcontent = stripslashes($_POST['newcontent']);
if (is_writeable($real_file)) {
$f = fopen($real_file, 'w+');
fwrite($f, $newcontent);
fclose($f);
}
default:
if (!is_file($real_file))
$error = 1;
if (!$error) {
$f = fopen($real_file, 'r');
$content = fread($f, filesize($real_file));
$content = htmlspecialchars($content);
}
?>
echo '
‘ . sprintf(__(’Editing %s‘), $file) . ‘
‘;
} else {
echo ‘
‘ . sprintf(__(’Browsing %s‘), $file) . ‘
‘;
}
?>





