tablesettings no longer used
git-svn-id: http://svn.automattic.com/wordpress/trunk@229 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b08123af2c
commit
a5f01a4928
|
@ -471,7 +471,7 @@ function get_usernumposts($userid) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_settings($setting) {
|
function get_settings($setting) {
|
||||||
global $tablesettings, $wpdb, $cache_settings, $use_cache, $querycount;
|
global $wpdb, $cache_settings, $use_cache, $querycount;
|
||||||
if ((empty($cache_settings)) OR (!$use_cache)) {
|
if ((empty($cache_settings)) OR (!$use_cache)) {
|
||||||
$settings = get_alloptions();
|
$settings = get_alloptions();
|
||||||
$cache_settings = $settings;
|
$cache_settings = $settings;
|
||||||
|
@ -497,7 +497,7 @@ function get_alloptions() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_postdata($postid) {
|
function get_postdata($postid) {
|
||||||
global $tableusers, $tablesettings, $tablecategories, $tableposts, $tablecomments, $querycount, $wpdb;
|
global $tableusers, $tablecategories, $tableposts, $tablecomments, $querycount, $wpdb;
|
||||||
$post = $wpdb->get_row("SELECT * FROM $tableposts WHERE ID = $postid");
|
$post = $wpdb->get_row("SELECT * FROM $tableposts WHERE ID = $postid");
|
||||||
++$querycount;
|
++$querycount;
|
||||||
|
|
||||||
|
|
|
@ -15,17 +15,12 @@ timer_start();
|
||||||
|
|
||||||
get_currentuserinfo();
|
get_currentuserinfo();
|
||||||
|
|
||||||
$request = "SELECT * FROM $tablesettings";
|
$posts_per_page=get_settings('posts_per_page');
|
||||||
$result = mysql_query($request);
|
$what_to_show=get_settings('what_to_show');
|
||||||
$querycount++;
|
$archive_mode=get_settings('archive_mode');
|
||||||
while($row = mysql_fetch_object($result)) {
|
$time_difference=get_settings('time_difference');
|
||||||
$posts_per_page=$row->posts_per_page;
|
$date_format=stripslashes(get_settings('date_format'));
|
||||||
$what_to_show=$row->what_to_show;
|
$time_format=stripslashes(get_settings('time_format'));
|
||||||
$archive_mode=$row->archive_mode;
|
|
||||||
$time_difference=$row->time_difference;
|
|
||||||
$date_format=stripslashes($row->date_format);
|
|
||||||
$time_format=stripslashes($row->time_format);
|
|
||||||
}
|
|
||||||
|
|
||||||
// let's deactivate quicktags on IE Mac and Lynx, because they don't work there.
|
// let's deactivate quicktags on IE Mac and Lynx, because they don't work there.
|
||||||
if (($is_macIE) || ($is_lynx))
|
if (($is_macIE) || ($is_lynx))
|
||||||
|
|
|
@ -20,11 +20,7 @@ $is_IE = (($is_macIE) || ($is_winIE));
|
||||||
if ($user_level == 0)
|
if ($user_level == 0)
|
||||||
die ("Cheatin' uh ?");
|
die ("Cheatin' uh ?");
|
||||||
|
|
||||||
$request = " SELECT * FROM $tablesettings ";
|
$time_difference=get_settings('time_difference');
|
||||||
$result = mysql_query($request);
|
|
||||||
while($row = mysql_fetch_object($result)) {
|
|
||||||
$time_difference=$row->time_difference;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($a=="b") {
|
if ($a=="b") {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue