Post via Email:
You can post news from an email client!
But first you'll have to edit the options on the options screen, filling the appropriate values for your POP3 email account (this interface doesn't support IMAP yet, only POP3, sorry).
- Once you have edited the options, you can make your webserver execute b2mail.php every set amount of time (depending on your host's performance, this script can be resource intensive, so don't make it run every minute or you'll be kicked).
-You can do it with Cron-jobs, or if your host doesn't support it you can look into the various website-monitoring services, and make them check your b2mail.php URL.
+ Once you have edited the options, you can make your webserver execute wp-mail.php every set amount of time (depending on your host's performance, this script can be resource intensive, so don't make it run every minute or you'll be kicked).
+You can do it with Cron-jobs, or if your host doesn't support it you can look into the various website-monitoring services, and make them check your wp-mail.php URL.
Preliminary advice:
It is strongly advised to send your email as text-only (Outlook and Outlook Express default to 'html', which may cause problems), but HTML email could work (the script would strip all your html tags though...).
It is also advised not to use your public email address, but create a new one especially for this script. If you use your public email address and the script goes crazy posting every email on your blog and deleting all your emails, I can't take responsibility for this.
diff --git a/wp-admin/b2footer.php b/wp-admin/admin-footer.php
similarity index 100%
rename from wp-admin/b2footer.php
rename to wp-admin/admin-footer.php
diff --git a/wp-admin/b2header.php b/wp-admin/admin-header.php
similarity index 78%
rename from wp-admin/b2header.php
rename to wp-admin/admin-header.php
index 1b8326003e..5324adba0f 100644
--- a/wp-admin/b2header.php
+++ b/wp-admin/admin-header.php
@@ -1,12 +1,7 @@
diff --git a/wp-admin/b2verifauth.php b/wp-admin/auth.php
similarity index 92%
rename from wp-admin/b2verifauth.php
rename to wp-admin/auth.php
index 3fd4375ae7..cc4e68bdfe 100644
--- a/wp-admin/b2verifauth.php
+++ b/wp-admin/auth.php
@@ -41,7 +41,7 @@ function veriflog() {
if (!empty($HTTP_COOKIE_VARS["wordpressuser_".$cookiehash])) {
$error="Error: wrong login or password";
}
- $redir = "Location: $siteurl/b2login.php?redirect_to=" . urlencode($HTTP_SERVER_VARS["REQUEST_URI"]);
+ $redir = "Location: $siteurl/wp-login.php?redirect_to=" . urlencode($HTTP_SERVER_VARS["REQUEST_URI"]);
header($redir);
exit();
}
diff --git a/wp-admin/b2team.php b/wp-admin/b2team.php
deleted file mode 100644
index 47b02b5223..0000000000
--- a/wp-admin/b2team.php
+++ /dev/null
@@ -1,206 +0,0 @@
- */
-
-$b2varstoreset = array('action','standalone','redirect','profile');
-for ($i=0; $iuser_level;
-
- if ($user_level <= $usertopromote_level) {
- die('Can’t change the level of a user whose level is higher than yours.');
- }
-
- if ('up' == $prom) {
- $sql="UPDATE $tableusers SET user_level=user_level+1 WHERE ID = $id";
- } elseif ('down' == $prom) {
- $sql="UPDATE $tableusers SET user_level=user_level-1 WHERE ID = $id";
- }
- $result = $wpdb->query($sql);
-
- header('Location: b2team.php');
-
-break;
-
-case 'delete':
-
- $standalone = 1;
- require_once('b2header.php');
-
- $id = $HTTP_GET_VARS["id"];
-
- if (!$id) {
- header('Location: b2team.php');
- }
-
- $user_data = get_userdata($id);
- $usertodelete_level = $user_data->user_level;
-
- if ($user_level <= $usertodelete_level)
- die('Can’t delete a user whose level is higher than yours.');
-
- $sql = "DELETE FROM $tableusers WHERE ID = $id";
- $result = $wpdb->query($sql) or die("Couldn’t delete user #$id.");
-
- $sql = "DELETE FROM $tableposts WHERE post_author = $id";
- $result = $wpdb->query($sql) or die("Couldn’t delete user #$id’s posts.");
-
- header('Location: b2team.php');
-
-break;
-
-default:
-
- $standalone = 0;
- include ('b2header.php');
- ?>
-
-Click on a user’s login name to see his complete profile.
- To edit your profile, click on your login name.
-
-
-
-
Active users
-
-
- ID |
- Nickname |
- Name |
- E-mail |
- URL |
- Level |
- 3) { ?>
- Login |
-
-
- get_results("SELECT ID FROM $tableusers WHERE user_level>0 ORDER BY ID");
- foreach ($users as $user) {
- $user_data = get_userdata($user->ID);
- echo "\n\n";
- $email = $user_data->user_email;
- $url = $user_data->user_url;
- $bg1 = ($user_data->user_login == $user_login) ? "bgcolor=\"#ffffff\"" : "bgcolor=\"#dddddd\"";
- $bg2 = ($user_data->user_login == $user_login) ? "bgcolor=\"#ffffff\"" : "bgcolor=\"#eeeeee\"";
- echo "".$user_data->ID." | \n";
- echo "ID.")\">".$user_data->user_nickname." | \n";
- echo "".$user_data->user_firstname." ".$user_data->user_lastname." | \n";
- echo " | ";
- echo " ";
- if (($user_data->user_url != "http://") and ($user_data->user_url != ""))
- echo " ";
- echo " | \n";
- echo "".$user_data->user_level;
- if (($user_level >= 2) and ($user_level > ($user_data->user_level + 1)))
- echo " ID."&prom=up\">+ ";
- if (($user_level >= 2) and ($user_level > $user_data->user_level) and ($user_data->user_level > 0))
- echo " ID."&prom=down\">- ";
- echo " | \n";
- if ($user_level > 3) {
- echo "".$user_data->user_login." | \n";
- }
- echo "
\n";
- }
-
- ?>
-
-
-
-
-
-get_results("SELECT * FROM $tableusers WHERE user_level=0 ORDER BY ID");
- if ($users) {
-?>
-
-
Inactive users (level 0)
-
-
- ID |
- Nickname |
- Name |
- E-mail |
- URL |
- Level |
- 3) { ?>
- Login |
-
-
- ID);
- echo "\n\n";
- $email = $user_data->user_email;
- $url = $user_data->user_url;
- $bg1 = ($user_data->user_login == $user_login) ? "style=\"background-image: url('../b2-img/b2button.gif');\"" : "bgcolor=\"#dddddd\"";
- $bg2 = ($user_data->user_login == $user_login) ? "style=\"background-image: url('../b2-img/b2button.gif');\"" : "bgcolor=\"#eeeeee\"";
- echo "".$user_data->ID." | \n";
- echo "ID.")\">".$user_data->user_nickname." | \n";
- echo "".$user_data->user_firstname." ".$user_data->user_lastname." | \n";
- echo " | ";
- echo " ";
- if (($user_data->user_url != "http://") and ($user_data->user_url != ""))
- echo " ";
- echo " | \n";
- echo "".$user_data->user_level;
- if ($user_level >= 2)
- echo " ID."&prom=up\">+ ";
- if ($user_level >= 3)
- echo " ID."\" style=\"color:red;font-weight:bold;\">X ";
- echo " | \n";
- if ($user_level > 3) {
- echo "".$user_data->user_login." | \n";
- }
- echo "
\n";
- }
-
- ?>
-
-
-
-
- = 3) { ?>
-
-
To delete a user, bring his level to zero, then click on the red X.
- Warning: deleting a user also deletes all posts made by this user.
-
-
- */
-include('b2footer.php');
-?>
\ No newline at end of file
diff --git a/wp-admin/b2bookmarklet.php b/wp-admin/bookmarklet.php
similarity index 96%
rename from wp-admin/b2bookmarklet.php
rename to wp-admin/bookmarklet.php
index 38957fe43e..131d3323e9 100644
--- a/wp-admin/b2bookmarklet.php
+++ b/wp-admin/bookmarklet.php
@@ -10,7 +10,7 @@ function selected($selected, $current) {
$mode = 'bookmarklet';
$standalone = 1;
-require_once('b2header.php');
+require_once('admin-header.php');
if ($user_level == 0)
die ("Cheatin' uh?");
@@ -38,7 +38,7 @@ window.close()
-
-
-
-
-
-
-
-
-
-
-
Reference
-
- - About Date & Time formats:
- - You can format the date & time in many ways, using the PHP syntax.
- As quoted from the PHP manual, here are the letters you can use:
-
- The following characters are recognized in the format string:
- a - "am" or "pm"
- A - "AM" or "PM"
- B - Swatch Internet time
- d - day of the month, 2 digits with leading zeros; i.e. "01" to "31"
- D - day of the week, textual, 3 letters; i.e. "Fri"
- F - month, textual, long; i.e. "January"
- g - hour, 12-hour format without leading zeros; i.e. "1" to "12"
- G - hour, 24-hour format without leading zeros; i.e. "0" to "23"
- h - hour, 12-hour format; i.e. "01" to "12"
- H - hour, 24-hour format; i.e. "00" to "23"
- i - minutes; i.e. "00" to "59"
- I (capital i) - "1" if Daylight Savings Time, "0" otherwise.
- j - day of the month without leading zeros; i.e. "1" to "31"
- l (lowercase 'L') - day of the week, textual, long; i.e. "Friday"
- L - boolean for whether it is a leap year; i.e. "0" or "1"
- m - month; i.e. "01" to "12"
- M - month, textual, 3 letters; i.e. "Jan"
- n - month without leading zeros; i.e. "1" to "12"
- r - RFC 822 formatted date; i.e. "Thu, 21 Dec 2000 16:01:07 +0200" (added in PHP 4.0.4)
- s - seconds; i.e. "00" to "59"
- S - English ordinal suffix, textual, 2 characters; i.e. "th", "nd"
- t - number of days in the given month; i.e. "28" to "31"
- T - Timezone setting of this machine; i.e. "MDT"
- U - seconds since the epoch
- w - day of the week, numeric, i.e. "0" (Sunday) to "6" (Saturday)
- Y - year, 4 digits; i.e. "1999"
- y - year, 2 digits; i.e. "99"
- z - day of the year; i.e. "0" to "365"
- Z - timezone offset in seconds (i.e. "-43200" to "43200"). The offset for timezones west of UTC is always negative, and for those east of UTC is always positive.
-
- Unrecognized characters in the format string will be printed as-is.
-
- For more information and examples, check the PHP manual on this page.
-
-
-
-
-
-
-