More changes for new admin path. Removed relocated files.

Moved some more files from b2-include to wp-admin.


git-svn-id: https://develop.svn.wordpress.org/trunk@40 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mike Little
2003-05-22 22:51:40 +00:00
parent 6bd0db0727
commit 1109a73a5d
42 changed files with 89 additions and 5057 deletions

136
wp-admin/b2.css Normal file
View File

@@ -0,0 +1,136 @@
#wphead {
margin: 5px;
background-image: url(http://wordpress.org/images/wp-small.png);
background-repeat: no-repeat;
height: 42px;
border-bottom: 4px solid #333;
}
#wphead a {
display: block;
height: 30px;
}
#wphead a span {
display: none;
}
#adminmenu {
list-style: none outside;
padding: 0;
margin: 5px 0 0 0;
margin-left: 40px;
height: 100%;
}
#adminmenu li {
text-align: center;
display: block;
float: left;
padding: 4px;
border-right: 1px solid #ccc;
}
#adminmenu #last {
border-right: none;
}
#adminmenu a {
padding: 3px 8px 3px 7px;
color: #333;
text-decoration: none;
border: 1px solid white;
}
#adminmenu a:hover {
background-color: #e9e9e9;
color: #333;
border: 1px solid gray;
}
body {
margin-top: 0px;
margin-left: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #FFFFFF}
body, td {
color: #000000;
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 10pt;
}
a {
color: #00019b;
font-weight: bold;
}
a:visited {
color: #006;
}
a:hover {
color: #069;
}
.panelbody {
/* empty style - for you to customize it.
this style applies to b2's interface, the part where the sections are displayed */
}
.table {
color: #000000;
font-size: 10pt;
}
.tabletoprow {
background-color: #ffffff;
color: #000000;
font-size: 12px;
font-style: italic;
}
.quicktags, .search {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 12px;
color: #000000;
background-color: #cccccc;
}
.menutop {
color: #999999;
font-size: 10px;
background-color: #DDEEFF;
}
a.menutop {
background-color: transparent;
color: #3366CC;
font-weight: normal;
border-width: 0px;
}
a.menutop:hover {
color: #FF9900;
text-decoration: underline;
font-weight: normal;
}
.menutoptitle {
color: #BBCCDD;
font-size: 14px;
font-weight: bold;
}
.b2menutop {
color: #333333;
font-size: 10px;
}
a.b2menutop {
background-color: transparent;
color: #0066ff;
font-weight: lighter;
}
a.b2menutop:hover {
color: #ff9900;
font-weight: bold;
text-decoration: none;
}
xmp { /* Just in case */
font-size: 10pt;
}
.wrap {
width: 85%;
border: 1px solid #ccc;
margin: 20px auto 10px auto;
padding: 10px;
}
form { margin: 0; padding: 0; } /* thanks #mozilla */

View File

@@ -346,4 +346,4 @@ default:
/* </Edit> */
include("b2footer.php");
?>
?>

View File

@@ -2,7 +2,7 @@
require_once("../b2config.php");
require_once($b2inc."/b2template.functions.php");
require_once($b2inc."/b2verifauth.php");
require_once("b2verifauth.php");
require_once($b2inc."/b2vars.php");
require_once($b2inc."/b2functions.php");
require_once($b2inc."/xmlrpc.inc");
@@ -156,4 +156,4 @@ if ($profile==0) {
<?php
}
?>
?>

View File

@@ -7,7 +7,7 @@
if ($pagenow != "b2profile.php") {
$menu = file("b2menutop.txt");
$menu = file("./b2menutop.txt");
$i=0;
$j=$menu[0];
while ($j != "") {

15
wp-admin/b2menutop.txt Normal file
View File

@@ -0,0 +1,15 @@
3 b2options.php Options
3 b2categories.php Categories
3 b2template.php Template
5 linkmanager.php Manage&nbsp;Links
***
(Everything after the '***' is a comment.)
To add sections to the menu, use this syntax:
the minimum level the user needs to access the section: between 0 and 10
+tab
+the URL of the section's file
+tab
+the title of this section

View File

@@ -43,7 +43,7 @@ switch($action) {
case "update":
require_once("$b2inc/b2verifauth.php");
require_once("b2verifauth.php");
get_currentuserinfo();
@@ -114,7 +114,7 @@ break;
case "viewprofile":
require_once("$b2inc/b2verifauth.php");
require_once("b2verifauth.php");
/* $profile=1;
get_currentuserinfo();

190
wp-admin/b2quicktags.js Normal file
View File

@@ -0,0 +1,190 @@
// b2 quick tags
// - authorized adaptation of the 'bbCode control code' by subBlue design ( www.subBlue.com )
// Define the quick tags
bbcode = new Array();
bbtags = new Array('<strong>','</strong>','<em>','</em>','<u>','</u>','<del>','</del>','<blockquote>','</blockquote>','<p>','</p>','<li>','</li>','<img src="" border="0" alt="" />','','<a href="">','</a>');
imageTag = false;
// Replacement for arrayname.length property
function getarraysize(thearray) {
for (i = 0; i < thearray.length; i++) {
if ((thearray[i] == "undefined") || (thearray[i] == "") || (thearray[i] == null))
return i;
}
return thearray.length;
}
// Replacement for arrayname.push(value) not implemented in IE until version 5.5
// Appends element to the array
function arraypush(thearray,value) {
thearray[ getarraysize(thearray) ] = value;
}
// Replacement for arrayname.pop() not implemented in IE until version 5.5
// Removes and returns the last element of an array
function arraypop(thearray) {
thearraysize = getarraysize(thearray);
retval = thearray[thearraysize - 1];
delete thearray[thearraysize - 1];
return retval;
}
function checkForm(formObj) {
formErrors = false;
if (formObj.content.value.length < 2) {
formErrors = "You must enter a message!";
}
if (formErrors) {
alert(formErrors);
return false;
} else {
bbstyle(formObj, -1);
//formObj.preview.disabled = true;
//formObj.submit.disabled = true;
return true;
}
}
function emoticon(theSmilie) {
if ((parseInt(navigator.appVersion) >= 4) && (navigator.appName == "Microsoft Internet Explorer"))
theSelection = document.selection.createRange().text; // Get text selection
if (theSelection) {
// Add tags around selection
document.selection.createRange().text = theSelection + theSmilie + ' ';
formObj.content.focus();
theSelection = '';
return;
}
document.post.content.value += ' ' + theSmilie + ' ';
document.post.content.focus();
}
function bbfontstyle(formObj, bbopen, bbclose) {
if ((parseInt(navigator.appVersion) >= 4) && (navigator.appName == "Microsoft Internet Explorer")) {
theSelection = document.selection.createRange().text;
if (!theSelection) {
formObj.content.value += bbopen + bbclose;
formObj.content.focus();
return;
}
document.selection.createRange().text = bbopen + theSelection + bbclose;
formObj.content.focus();
return;
} else {
formObj.content.value += bbopen + bbclose;
formObj.content.focus();
return;
}
}
function bbstyle(formObj, bbnumber) {
donotinsert = false;
theSelection = false;
bblast = 0;
if (bbnumber == -1) { // Close all open tags & default button names
while (bbcode[0]) {
butnumber = arraypop(bbcode) - 1;
formObj.content.value += bbtags[butnumber + 1];
buttext = eval('formObj.addbbcode' + butnumber + '.value');
eval('formObj.addbbcode' + butnumber + '.value ="' + buttext.substr(0,(buttext.length - 1)) + '"');
}
formObj.content.focus();
return;
}
if ((parseInt(navigator.appVersion) >= 4) && (navigator.appName == "Microsoft Internet Explorer"))
theSelection = document.selection.createRange().text; // Get text selection
if (theSelection) {
// Add tags around selection
document.selection.createRange().text = bbtags[bbnumber] + theSelection + bbtags[bbnumber+1];
formObj.content.focus();
theSelection = '';
return;
}
// Find last occurance of an open tag the same as the one just clicked
for (i = 0; i < bbcode.length; i++) {
if (bbcode[i] == bbnumber+1) {
bblast = i;
donotinsert = true;
}
}
if (donotinsert) { // Close all open tags up to the one just clicked & default button names
while (bbcode[bblast]) {
butnumber = arraypop(bbcode) - 1;
formObj.content.value += bbtags[butnumber + 1];
buttext = eval('formObj.addbbcode' + butnumber + '.value');
eval('formObj.addbbcode' + butnumber + '.value ="' + buttext.substr(0,(buttext.length - 1)) + '"');
imageTag = false;
}
formObj.content.focus();
return;
} else { // Open tags
if (imageTag && (bbnumber != 14)) { // Close image tag before adding another
formObj.content.value += bbtags[15];
lastValue = arraypop(bbcode) - 1; // Remove the close image tag from the list
formObj.addbbcode14.value = "image"; // Return button back to normal state
imageTag = false;
}
// Open tag
formObj.content.value += bbtags[bbnumber];
if ((bbnumber == 14) && (imageTag == false)) imageTag = 1; // Check to stop additional tags after an unclosed image tag
arraypush(bbcode,bbnumber+1);
eval('formObj.addbbcode'+bbnumber+'.value += "*"');
formObj.content.focus();
return;
}
}
// swirlee's bblink hack, slightly corrected
function bblink(formObj, bbnumber) {
current_url = prompt("URL:","http://");
var re = new RegExp ('http%3A//', 'gi') ;
var current_url = current_url.replace(re, 'http://') ;
if((current_url == 'null') || (current_url == "http://")) {
current_url = "";
exit;
}
if(bbnumber == 16) {
current_link_text = unescape(prompt("Link text:","link"));
if((current_link_text == null) || (current_link_text == "") || (current_link_text == "link")) {
link_text = 'link';
} else {
link_text = current_link_text;
}
final_link = '<a href="' + current_url + '">' + current_link_text + '</a>';
if (final_link != '<a href="">null</a>') {
formObj.content.value += final_link;
}
}
if(bbnumber == 14) {
current_alt = prompt("ALTernate text:","ALT");
if((current_alt == null) || (current_alt == "") || (current_alt == "ALT")) {
alttag = ' alt=""';
} else {
alttag = ' alt="' + current_alt + '"';
}
final_image = '<img src="' + current_url + '" border="0"' + alttag + ' />';
if (final_image != '<img src="" border="0" alt="" />') {
formObj.content.value += final_image;
}
}
}

View File

@@ -1,5 +1,5 @@
<?php
$title = "Template(s) & file editing";
$title = "Template(s) &amp; file editing";
/* <Template> */
function add_magic_quotes($array) {

View File

@@ -73,7 +73,6 @@ switch ($action) {
{
$standalone = 1;
include_once("./b2header.php");
include_once("./links.php");
$cat_id = $HTTP_POST_VARS["cat_id"];
$cat_name=get_linkcatname($cat_id);
@@ -97,7 +96,6 @@ switch ($action) {
case "Edit":
{
include_once ("./b2header.php");
include_once("./links.php");
$cat_id = $HTTP_POST_VARS["cat_id"];
$cat_name=get_linkcatname($cat_id);
$cat_name=addslashes($cat_name);