Please help to arrange me this code of the STAR.PHP

Name of the file: homepage _1_8

in the file homepage _1_8 there is the following file: 

hommepage.php
voici le code: 

<?php
if (isloggedin()) forward('activity');
?>
<!DOCTYPE html>
<head>
        <link rel="stylesheet" type="text/css" href="mod/homepage _1_8/cssmaongezi/style.css" />
        <style type="text/css">
        <!--
.style2 {color: #0C8DCB}
-->
        </style>
</head>
<html>
<head>
<?php
//Title configuration below
?>
<meta name="desciption" content="Maongezi est un Réseau Social qui vous permet de rester en contact avec vos amis (e) et partager des informations avec son environnement">
<meta name="keywords" content="Réseau Social, Réseau de communication, Réseau de partage des informations, Réseau de se faire connaissance ou amis avec les membres du Maongezi.">
<meta name="author" content="Polycarpe MAKOMBO YUMA">
<meta name="Maongezi" content="http://maongezi.com/"&gt;
<meta name="Email" content="reseausocial@maongezi.com">
<meta name="copyright" content="Maongezi">
<meta name="date-creation-yyyymmdd" content="30-07-2014">
<meta name="category" content="Réseautage">
<meta name="robots" content="index, follow">
<head>
<meta content="text/html; charset=UTF-8"
http-equiv="content-type">
<title>Réseau Social Maongezi</title>
<link rel="shortcut icon" href=<?php echo $site_url; ?>"mod/homepage _1_8/graphicsmaongezi/maongeziicone.png" type="image/x-icon"/>
</head>
 <?php
//Favicon configuration below. Allows you to use a custom favicon for the HOMEPAGE only.

 ?>
         
       
<?php $messages = system_messages();    
    $message = $messages['messages'];
    
    if(count($message) > 0){ 
        echo '<div  style="color: white;" class="messages">';
        echo '<span class="closeMessages"><a  style="color: white;" href="#">dismiss</a></span>';
            foreach($message as $message1)
                    {
                    echo '<p  style="color: white;">';
                    echo $message1;
                    echo '</p>';
                    }
        echo '</div>';
    }

    $errors = register_error();
    $error = $errors['errors'];
    if(count($error) > 0){ 
        echo '<div class="messages_error">';
        echo '<span class="closeMessages"><a href="#">dismiss</a></span>';
            foreach($error as $error1)
                    {
                    echo '<p>';
                    echo $error1;
                    echo '</p>';
                    }
        echo '</div>';
    }


////////////////////////////////////////////////////////////////////////////////////////////////
?>
<body>
<?php
//This is the body. Edit content here
?>

<body style="margin: 0px; padding: 0px; font-family: 'Trebuchet MS',verdana;">

<table width="100%" style="height: 100%;" cellpadding="10" cellspacing="0" border="0"><tr>

<!-- ============ LEFT COLUMN (MENU) ============== -->
<td width="20%" valign="top" bgcolor="#999f8e">
<?php
/**
 * Maongezilogin box
 *
 * @package Maongezi
 * @subpackage Core
 *
 * @uses $vars['module'] The module name. Default: aside
 */

$module = elgg_extract('module', $vars, 'aside');

$login_url = elgg_get_site_url();
if (elgg_get_config('https_login')) {
    $login_url = str_replace("http:", "https:", $login_url);
}

$title = elgg_echo('login');
$body = elgg_view_form('login', array('action' => "{$login_url}action/login"));

echo elgg_view_module($module, $title, $body);
?>
<?php
/**
 * Maongezi Register
 *
 * @package Maongezi
 * @subpackage Core
 *
 * @uses $vars['module'] The module name. Default: aside
 */

$module = elgg_extract('module', $vars, 'aside');

$register_url = elgg_get_site_url();
if (elgg_get_config('https_login')) {
    $login_url = str_replace("http:", "https:", $login_url);
}

$title = elgg_echo('register');
$body = elgg_view_form('register', array('action' => "{$login_url}action/register"));

echo elgg_view_module($module, $title, $body);
?>
</td>
<td width="80%" valign="top" link rel="stylesheet" type="text/css" href="mod/homepage _1_8/cssmaongezi/style.css" >
<font color="#ffffff"><center><h1>Bienvenue sur Maongezi</h1></center></font>
<?php
// This is the place to put content in the body.

?>
<center><font color="#00ff00"><p><h3>Réseau Social Maongezi, Réseau de Communication gratuite.</h3></font></center>
<center><font color="#ff00ff"><p><h3> Maongezi est un Réseau Social crée en RD Congo dans la Province Orientale, Ville de Kisangani.</h3></font></center>
<br><font color="#ffff00"><marquee behavior="alternate">Maongezi est un Réseau Social qui vous permet de rester en contact avec vos amis (e) et partager des informations avec son environnement.</marquee></font></br>
<p><font color="#ffffff"><marquee>Maongezi est un mot SWAHILI qui signifie MAZUNGUMUZO, en Français : CONVERSATION, en lingala : TOSOLOLA, en Anglais : TALK</marquee></font></P>

</p>
<br><img src="<?php echo elgg_get_site_url(); ?>mod/homepage _1_8/picturesmaongezi/reseautage-maongezi.jpg" border="0">  <img src="<?php echo elgg_get_site_url(); ?>mod/homepage _1_8/picturesmaongezi/reseautage-maongezi3.jpg" border="0">
</br>
<br><marquee behavior="scroll" direction="left">
<img src="<?php echo elgg_get_site_url(); ?>mod/homepage _1_8/slidermaongezi/slidermaongezi0.gif" height="180" alt="Swimming fish"/> <img src="<?php echo elgg_get_site_url(); ?>mod/homepage _1_8/slidermaongezi/slidermaongezi1.gif" height="180" alt="Swimming fish"/>  <img src="<?php echo elgg_get_site_url(); ?>mod/homepage _1_8/slidermaongezi/slidermaongezi2.gif" height="180" alt="Swimming fish"/>  <img src="<?php echo elgg_get_site_url(); ?>mod/homepage _1_8/slidermaongezi/slidermaongezi3.gif" height="180" alt="Swimming fish"/>  <img src="<?php echo elgg_get_site_url(); ?>mod/homepage _1_8/slidermaongezi/slidermaongezi4.gif" height="180" alt="Swimming fish"/> <img src="<?php echo elgg_get_site_url(); ?>mod/homepage _1_8/slidermaongezi/slidermaongezi5.gif" height="180" alt="Swimming fish"/> <img src="<?php echo elgg_get_site_url(); ?>mod/homepage _1_8/slidermaongezi/slidermaongezi6.gif" height="180" alt="Swimming fish"/>
</marquee>
</br>
</td></tr></table>

manifest.xml
voici le code:
 

<?xml version="1.0" encoding="UTF-8"?>
<plugin_manifest xmlns="http://www.elgg.org/plugin_manifest/1.8"&gt;
    <name>Homepage</name>
    <author>Speedysnail6</author>
    <version>Vapor</version>
    <blurb>Homepage for 1.9</blurb>
    <description>A homepage plugin for 1.9</description>
    <website>http://productionsX.tk</website&gt;
    <copyright></copyright>
    <license>GPL 2</license>
    <requires>
        <type>elgg_release</type>
        <version>1.9</version>
    </requires>
</plugin_manifest>

 

Start.php
voici le code:
 

<?php
 
function homepage_init() {
    // Replace the default index page
    register_plugin_hook('index','system','new_index');
}
 
function new_index() {
    if (!include_once(dirname(dirname(__FILE__)) . "/homepage _1_8/homepage.php"))
        return false;
 
    return true;
}
 
register_elgg_event_handler('init','system','homepage_init');
?>

 

When me active,ca functions while displaying a message in red in the administration plugin of Elgg 1.9 with this sentence  
  
  

  • Deprecated in 1.8: register_elgg_event_handler() was deprecated by elgg_register_event_handler()

  

  • Deprecated in 1.8: register_plugin_hook() was deprecated by elgg_register_plugin_hook_handler()

  • Deprecated in 1.8: register_elgg_event_handler() was deprecated by elgg_register_event_handler()

  • Deprecated in 1.8: register_plugin_hook() was deprecated by elgg_register_plugin_hook_handler()

Please help me to correct my codes so that that operates good and the message can apparaite in red at the time of the activation of my plugin hommePage  
  
Thank you to all person of good will to be able to give me a good answer.. I hope to have a favorable continuation of the ELGG community.