Changeset 468
- Timestamp:
- 10/26/2003 12:19:23 AM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/b2-include/b2functions.php
r465 r468 464 464 } 465 465 466 /* Options functions */ 467 466 468 function get_settings($setting) { 467 469 global $wpdb, $cache_settings, $use_cache, $querycount; … … 489 491 return $all_options; 490 492 } 491 493 494 function update_option($option_name, $newvalue) { 495 global $wpdb, $tableoptions; 496 // No validation at the moment 497 $wpdb->query("UPDATE $tableoptions SET option_value = '$newvalue' WHERE option_name = '$option_name'"); 498 } 499 500 function add_option() { 501 // Adds an option if it doesn't already exist 502 global $wpdb, $tableoptions; 503 // TODO 504 } 505 492 506 function get_postdata($postid) { 493 507 global $tableusers, $tablecategories, $tableposts, $tablecomments, $querycount, $wpdb;
Note: See TracChangeset
for help on using the changeset viewer.