Revision 677
Added by thorn almost 17 years ago
jsadmin.php | ||
---|---|---|
31 | 31 |
|
32 | 32 |
function get_setting($name, $default = '') { |
33 | 33 |
global $database; |
34 |
$rs = $database->query("SELECT value FROM ".TABLE_PREFIX."settings WHERE name = '".$name."'");
|
|
34 |
$rs = $database->query("SELECT value FROM ".TABLE_PREFIX."mod_jsadmin WHERE name = '".$name."'");
|
|
35 | 35 |
if($row = $rs->fetchRow()) |
36 | 36 |
return $row['value']; |
37 | 37 |
return |
... | ... | |
44 | 44 |
$prev_value = get_setting($name, false); |
45 | 45 |
|
46 | 46 |
if($prev_value === false) { |
47 |
$database->query("INSERT INTO ".TABLE_PREFIX."settings (name,value) VALUES ('$name','$value')");
|
|
47 |
$database->query("INSERT INTO ".TABLE_PREFIX."mod_jsadmin (name,value) VALUES ('$name','$value')");
|
|
48 | 48 |
} else { |
49 |
$database->query("UPDATE ".TABLE_PREFIX."settings SET value = '$value' WHERE name = '$name'");
|
|
49 |
$database->query("UPDATE ".TABLE_PREFIX."mod_jsadmin SET value = '$value' WHERE name = '$name'");
|
|
50 | 50 |
} |
51 | 51 |
} |
52 | 52 |
|
Also available in: Unified diff
jsadmin: added latest changes from swen, fixes most (or all?) issues.