$query="UPDATE $tablesettings SET posts_per_page=$newposts_per_page, what_to_show='$newwhat_to_show', archive_mode='$newarchive_mode', time_difference=$newtime_difference, AutoBR=$newautobr, time_format='$newtime_format', date_format='$newdate_format' WHERE ID = 1";
$result=mysql_query($query);
if($result==false){
$oops="<b>ERROR</b>: couldn't update the options... please contact the <a href=\"mailto:$admin_email\">webmaster</a> !<br /><br />".mysql_errno().": ".mysql_error();
die($oops);
}
header("Location: b2options.php");
break;
default:
$standalone=0;
include("./b2header.php");
if($user_level<=3){
die("You have no right to edit the options for this blog.<br>Ask for a promotion to your <a href=\"mailto:$admin_email\">blog admin</a> :)");
The following characters are recognized in the format string:<br />
a - "am" or "pm"<br />
A - "AM" or "PM"<br />
B - Swatch Internet time<br />
d - day of the month, 2 digits with leading zeros; i.e. "01" to "31"<br />
D - day of the week, textual, 3 letters; i.e. "Fri"<br />
F - month, textual, long; i.e. "January"<br />
g - hour, 12-hour format without leading zeros; i.e. "1" to "12"<br />
G - hour, 24-hour format without leading zeros; i.e. "0" to "23"<br />
h - hour, 12-hour format; i.e. "01" to "12"<br />
H - hour, 24-hour format; i.e. "00" to "23"<br />
i - minutes; i.e. "00" to "59"<br />
I (capital i) - "1" if Daylight Savings Time, "0" otherwise.<br />
j - day of the month without leading zeros; i.e. "1" to "31"<br />
l (lowercase 'L') - day of the week, textual, long; i.e. "Friday"<br />
L - boolean for whether it is a leap year; i.e. "0" or "1"<br />
m - month; i.e. "01" to "12"<br />
M - month, textual, 3 letters; i.e. "Jan"<br />
n - month without leading zeros; i.e. "1" to "12"<br />
r - RFC 822 formatted date; i.e. "Thu, 21 Dec 2000 16:01:07 +0200" (added in PHP 4.0.4)<br />
s - seconds; i.e. "00" to "59"<br />
S - English ordinal suffix, textual, 2 characters; i.e. "th", "nd"<br />
t - number of days in the given month; i.e. "28" to "31"<br />
T - Timezone setting of this machine; i.e. "MDT"<br />
U - seconds since the epoch<br />
w - day of the week, numeric, i.e. "0" (Sunday) to "6" (Saturday)<br />
Y - year, 4 digits; i.e. "1999"<br />
y - year, 2 digits; i.e. "99"<br />
z - day of the year; i.e. "0" to "365"<br />
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.<br />
<br />
Unrecognized characters in the format string will be printed as-is.