tablesettings no longer used

git-svn-id: https://develop.svn.wordpress.org/trunk@229 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mike Little 2003-06-15 22:48:49 +00:00
parent db5f15602e
commit d00989642f
3 changed files with 9 additions and 18 deletions

View File

@ -471,7 +471,7 @@ function get_usernumposts($userid) {
}
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)) {
$settings = get_alloptions();
$cache_settings = $settings;
@ -497,7 +497,7 @@ function get_alloptions() {
}
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");
++$querycount;

View File

@ -15,17 +15,12 @@ timer_start();
get_currentuserinfo();
$request = "SELECT * FROM $tablesettings";
$result = mysql_query($request);
$querycount++;
while($row = mysql_fetch_object($result)) {
$posts_per_page=$row->posts_per_page;
$what_to_show=$row->what_to_show;
$archive_mode=$row->archive_mode;
$time_difference=$row->time_difference;
$date_format=stripslashes($row->date_format);
$time_format=stripslashes($row->time_format);
}
$posts_per_page=get_settings('posts_per_page');
$what_to_show=get_settings('what_to_show');
$archive_mode=get_settings('archive_mode');
$time_difference=get_settings('time_difference');
$date_format=stripslashes(get_settings('date_format'));
$time_format=stripslashes(get_settings('time_format'));
// let's deactivate quicktags on IE Mac and Lynx, because they don't work there.
if (($is_macIE) || ($is_lynx))

View File

@ -20,11 +20,7 @@ $is_IE = (($is_macIE) || ($is_winIE));
if ($user_level == 0)
die ("Cheatin' uh ?");
$request = " SELECT * FROM $tablesettings ";
$result = mysql_query($request);
while($row = mysql_fetch_object($result)) {
$time_difference=$row->time_difference;
}
$time_difference=get_settings('time_difference');
if ($a=="b") {