Subversion Repositories oidplus

Rev

Rev 112 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 112 Rev 150
Line 93... Line 93...
93
                $icon = file_exists(__DIR__.'/icon_big.png') ? 'plugins/objectTypes/'.basename(__DIR__).'/icon_big.png' : '';
93
                $icon = file_exists(__DIR__.'/icon_big.png') ? 'plugins/objectTypes/'.basename(__DIR__).'/icon_big.png' : '';
94
 
94
 
95
                if ($this->isRoot()) {
95
                if ($this->isRoot()) {
96
                        $title = OIDplusGuid::objectTypeTitle();
96
                        $title = OIDplusGuid::objectTypeTitle();
97
 
97
 
98
                        $res = OIDplus::db()->query("select * from ".OIDPLUS_TABLENAME_PREFIX."objects where parent = '".OIDplus::db()->real_escape_string(self::root())."'");
98
                        $res = OIDplus::db()->query("select * from ".OIDPLUS_TABLENAME_PREFIX."objects where parent = ?", array(self::root()));
99
                        if (OIDplus::db()->num_rows($res) > 0) {
99
                        if (OIDplus::db()->num_rows($res) > 0) {
100
                                $content  = 'Please select a GUID in the tree view at the left to show its contents.';
100
                                $content  = 'Please select a GUID in the tree view at the left to show its contents.';
101
                        } else {
101
                        } else {
102
                                $content  = 'Currently, no GUID is registered in the system.';
102
                                $content  = 'Currently, no GUID is registered in the system.';
103
                        }
103
                        }