Subversion Repositories personal-webbase

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 daniel-mar 1
<?php
2
 
3
if (!defined('WBLEGAL')) die('Kann nicht ohne Personal WebBase ausgef&uuml;hrt werden.');
4
 
5
function set_searchable($mod, $tab, $sta)
6
{
7
        global $WBConfig, $tables_database;
8
 
9
        if (isset($tables_database[$WBConfig->getMySQLPrefix().'modules']['is_searchable']))
10
                db_query("UPDATE `".$WBConfig->getMySQLPrefix()."modules` SET `is_searchable` = '$sta' WHERE `module` = '$mod' AND `table` = '$tab'");
11
}
12
 
13
function is_searchable($tab)
14
{
15
        global $WBConfig, $tables_database;
16
 
17
        if (isset($tables_database[$WBConfig->getMySQLPrefix().'modules']['is_searchable']))
18
        {
19
                $rs = db_query("SELECT `is_searchable` FROM `".$WBConfig->getMySQLPrefix()."modules` WHERE `table` = '$tab'");
20
                $rw = db_fetch($rs);
21
                return $rw['is_searchable'];
22
        }
23
        else
24
        {
25
                return false;
26
        }
27
}
28
 
29
?>