diff --git a/index2.php b/index2.php index cf04cf4439..3c91dc574d 100644 --- a/index2.php +++ b/index2.php @@ -53,6 +53,7 @@ echo "
"; //echo "\n"; //echo "
\n"; +//start the user table echo "\n"; echo "\n"; echo " \n"; @@ -62,19 +63,24 @@ echo "
"; echo " ".$text['label-name'].": \n"; echo " \n"; echo " \n"; echo "\n"; - echo "\n"; - echo " \n"; - echo " \n"; - echo "\n"; - echo "
".$text['title-table']." \n"; - echo " ".$_SESSION["username"]." \n"; + echo " ".$_SESSION["username"]." \n"; echo "
\n"; - echo " ".$text['label-voicemail'].": \n"; - echo " \n"; - echo " ".$text['label-view-messages']." \n"; - echo "
\n"; +//voicemail + if (file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/voicemails/voicemail_messages.php")) { + echo "\n"; + echo " \n"; + echo " ".$text['label-voicemail'].": \n"; + echo " \n"; + echo " \n"; + echo " ".$text['label-view-messages']." \n"; + echo " \n"; + echo "\n"; + } + +//end the table + echo "\n"; echo "
\n"; echo "
\n";