1) { $r_default_context = stream_context_get_default ( array ('http' => array( 'proxy' => $Proxy, 'request_fulluri' => True, ), ) ); libxml_set_streams_context($r_default_context); } $daten = @simplexml_load_file($url); return ($daten); } ?>

".__('Alive.IO is almost ready.')." ".sprintf(__('You must enter your Alive.IO Username for it to work.'), "options-general.php?page=alivesettings")."

"; } } // action function for above hook function mt_add_pages() { // Add a new submenu under Settings: add_options_page(__('Alive.io Settings','menu-alive.io'), __('Alive.io Settings','menu-alive.io'), 'manage_options', 'alivesettings', 'mt_settings_page'); } // mt_settings_page() displays the page content for the alive.io settings submenu function mt_settings_page() { //must check that the user has the required capability if (!current_user_can('manage_options')) { wp_die( __('You do not have sufficient permissions to access this page.') ); } // variables for the field and option names $opt_name = 'mt_alive_username'; $hidden_field_name = 'mt_submit_hidden'; $data_field_name = 'mt_alive_username'; // Read in existing option value from database $opt_val = get_option( $opt_name ); // See if the user has posted us some information // If they did, this hidden field will be set to 'Y' if( isset($_POST[ $hidden_field_name ]) && $_POST[ $hidden_field_name ] == 'Y' ) { // Read their posted value $opt_val = $_POST[ $data_field_name ]; $alive_url="http://".$opt_val.".alive.io/interface/xml"; $xml = getXMLfromURL($alive_url); if($xml) { $result = $xml->value[0]; } if($xml && $result != -1) { // Save the posted value in the database update_option( $opt_name, $opt_val ); // echo $alive_url." url exist" // Put an settings updated message on the screen ?>

registered?', 'menu-alive.io' ); ?>

'; // header echo "

" . __( 'Alive.io Settings', 'menu-alive.io' ) . "

"; // settings form ?>

Welcome to Alive.IO

Ever wondered how will your viewers know if you pass away?

Let Alive.IO help you keep your online identity on par with your real one.

Three simple steps to put your alive.io status on your blog!

1. Put your Alive.IO username below.
2. Go to Apearance->Widgets and pull in the alive.io widget to your widget area.
3. In Widget Options Set the messages you want to display while alive or deceased.


Don't have an Alive.IO username?Register now!!