Skip to main content

Posts

Showing posts with the label image

sudo bug fix update

Updated sudo packages that fix two bugs are now available for Red Hat Enterprise Linux 6. The sudo (superuser do) utility allows system administrators to give certain users the ability to run commands as root. This update fixes the following bugs: * A race condition in the signal handling code caused the sudo process to become unresponsive after receiving the SIGCHLD signal. This update modifies the signal handling to prevent the race condition, which ensures that the sudo process no longer hangs under these circumstances. (BZ#802440) * The "-l" option is used to list allowed and forbidden commands for the invoking user or for the user specified by the "-U" option. However, previously, the getgrouplist() function incorrectly checked the invoker's group membership instead of the membership of the specified user. Consequently, using the "sudo" command with both the "-l" and "-U" options listed privileges granted to any group the ...

Wordpress Tutorial: Custom Admin Panel with image upload

In previous tutorial we developed a basic plugin that allowed us to use a shortcode. This tutorial will show you how to make basic administration panel in WordPress admin. We will make two fields, first will hold name of the image and the second will hold the image itself. Image adding will be done via WordPress native image upload interface. function wp_myCustomPlugin_install ( ) {       $newoptions = get_option ( 'mycustomplugin_options' ) ;       $newoptions [ 'title' ] = '' ;       $newoptions [ 'image' ] = '' ; } http://premiumcoding.com/wordpress-tutorial-custom-admin-panel/