source: subversion/sites/namefinder/php/options.php @ 17445

Last change on this file since 17445 was 4134, checked in by david, 12 years ago

Main application files

File size: 499 bytes
Line 
1<?php
2
3class options {
4
5  /* A simple class for retrieving configuration information from the
6     database by name. Currently only used for the date of the index
7
8     Maps directly to a database table fo the same class name
9  */
10
11  var $id;
12  var $name;
13  var $value;
14
15  /* static */ function getoption($name) {
16    global $db;
17    $options = new options();
18    $options->name = $name;
19    if ($db->select($options) == 1) { return $options->value; }
20    return '';
21  }
22}
23
24?>
Note: See TracBrowser for help on using the repository browser.