Changeset 229
- Timestamp:
- 06/15/2003 10:48:49 PM (20 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/b2-include/b2functions.php
r216 r229 472 472 473 473 function get_settings($setting) { 474 global $ tablesettings, $wpdb, $cache_settings, $use_cache, $querycount;474 global $wpdb, $cache_settings, $use_cache, $querycount; 475 475 if ((empty($cache_settings)) OR (!$use_cache)) { 476 476 $settings = get_alloptions(); … … 498 498 499 499 function get_postdata($postid) { 500 global $tableusers, $table settings, $tablecategories, $tableposts, $tablecomments, $querycount, $wpdb;500 global $tableusers, $tablecategories, $tableposts, $tablecomments, $querycount, $wpdb; 501 501 $post = $wpdb->get_row("SELECT * FROM $tableposts WHERE ID = $postid"); 502 502 ++$querycount; -
trunk/wp-admin/b2header.php
r212 r229 16 16 get_currentuserinfo(); 17 17 18 $request = "SELECT * FROM $tablesettings"; 19 $result = mysql_query($request); 20 $querycount++; 21 while($row = mysql_fetch_object($result)) { 22 $posts_per_page=$row->posts_per_page; 23 $what_to_show=$row->what_to_show; 24 $archive_mode=$row->archive_mode; 25 $time_difference=$row->time_difference; 26 $date_format=stripslashes($row->date_format); 27 $time_format=stripslashes($row->time_format); 28 } 18 $posts_per_page=get_settings('posts_per_page'); 19 $what_to_show=get_settings('what_to_show'); 20 $archive_mode=get_settings('archive_mode'); 21 $time_difference=get_settings('time_difference'); 22 $date_format=stripslashes(get_settings('date_format')); 23 $time_format=stripslashes(get_settings('time_format')); 29 24 30 25 // let's deactivate quicktags on IE Mac and Lynx, because they don't work there. -
trunk/wp-admin/b2sidebar.php
r199 r229 21 21 die ("Cheatin' uh ?"); 22 22 23 $request = " SELECT * FROM $tablesettings "; 24 $result = mysql_query($request); 25 while($row = mysql_fetch_object($result)) { 26 $time_difference=$row->time_difference; 27 } 23 $time_difference=get_settings('time_difference'); 28 24 29 25 if ($a=="b") {
Note: See TracChangeset
for help on using the changeset viewer.