if($throttle=db_fetch_object(db_query("SELECT * FROM watchdog WHERE type = '$type' AND hostname = '".getenv("REMOTE_ADDR")."' AND ".time()." - timestamp < $rate"))){
if($throttle=db_fetch_object(db_query("SELECT * FROM {watchdog} WHERE type = '$type' AND hostname = '".getenv("REMOTE_ADDR")."' AND ".time()." - timestamp < $rate"))){
@@ -130,7 +130,7 @@ function theme_list($refresh = 0) {
...
@@ -130,7 +130,7 @@ function theme_list($refresh = 0) {
if(!$list){
if(!$list){
$list=array();
$list=array();
$result=db_query("SELECT * FROM system where type = 'theme' AND status = '1' ORDER BY name");
$result=db_query("SELECT * FROM {system} where type = 'theme' AND status = '1' ORDER BY name");
while($theme=db_fetch_object($result)){
while($theme=db_fetch_object($result)){
if(file_exists($theme->filename)){
if(file_exists($theme->filename)){
$list[$theme->name]=$theme;
$list[$theme->name]=$theme;
...
@@ -189,7 +189,7 @@ function theme_init() {
...
@@ -189,7 +189,7 @@ function theme_init() {
functiontheme_blocks($region){
functiontheme_blocks($region){
global$user;
global$user;
$result=db_query("SELECT * FROM blocks WHERE (status = '1' OR custom = '1') ".($region!="all"?"AND region = %d ":"")."ORDER BY weight, module",$region=="left"?0:1);
$result=db_query("SELECT * FROM {blocks} WHERE (status = '1' OR custom = '1') ".($region!="all"?"AND region = %d ":"")."ORDER BY weight, module",$region=="left"?0:1);