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 91... Line 91...
91
                $icon = file_exists(__DIR__.'/icon_big.png') ? 'plugins/objectTypes/'.basename(__DIR__).'/icon_big.png' : '';
91
                $icon = file_exists(__DIR__.'/icon_big.png') ? 'plugins/objectTypes/'.basename(__DIR__).'/icon_big.png' : '';
92
 
92
 
93
                if ($this->isRoot()) {
93
                if ($this->isRoot()) {
94
                        $title = OIDplusJava::objectTypeTitle();
94
                        $title = OIDplusJava::objectTypeTitle();
95
 
95
 
96
                        $res = OIDplus::db()->query("select * from ".OIDPLUS_TABLENAME_PREFIX."objects where parent = '".OIDplus::db()->real_escape_string(self::root())."'");
96
                        $res = OIDplus::db()->query("select * from ".OIDPLUS_TABLENAME_PREFIX."objects where parent = ?", array(self::root()));
97
                        if (OIDplus::db()->num_rows($res) > 0) {
97
                        if (OIDplus::db()->num_rows($res) > 0) {
98
                                $content  = 'Please select a Java Package Name in the tree view at the left to show its contents.';
98
                                $content  = 'Please select a Java Package Name in the tree view at the left to show its contents.';
99
                        } else {
99
                        } else {
100
                                $content  = 'Currently, no Java Package Name is registered in the system.';
100
                                $content  = 'Currently, no Java Package Name is registered in the system.';
101
                        }
101
                        }