<?php
/**
 * Main index page for guestbook. 
 * 
 * This application is designed for website generated by RVSiteBuilder.
 * Unauthorized copy of the script is prohibited.
 * 
 * @version 1.00
 * @author pairote@rvglobalsoft.com
 * @copyright Copyright &copy; http://www.rvglobalsoft.com/index.php/rvsitebuilder/sitebuilderbilling/action/terms
 * @package rvsitebuilder
 */
 require_once('include.php');
 $name = (isset($_GET['name']))? $_GET['name'] : $_POST['name'];
 $key = (isset($_GET['key']))? $_GET['key'] : $_POST['key'];
 
   echo "<table cellpadding=\"0\" cellspacing=\"0\" class=\"borderoutside\" width=\"90%\" align=\"center\">\n" . 
            "    <tr>\n" . 
            "        <td align=\"right\">" .
//            "        <img src=\"" . SCRIPT_URL . $aConfig['theme'] . "/images/admin.gif\" alt=\"\" width=\"12\" height=\"12\" /> \n" . 
//            "        <a href=\"?page=admin\" class=\"signlink\">Administration</a> | \n" .
            "        <img src=\"" . SCRIPT_URL . $aConfig['theme'] . "/images/signicn.gif\" alt=\"\" width=\"12\" height=\"12\" /> \n" . 
            "        <a href=\"?page=list\" class=\"signlink\">View the Guestbook</a>\n" . 
            "        </td>\n" . 
            "    </tr>\n" . 
            "    <tr>\n" . 
            "        <td><b>" . strftime($aConfig['date_format']) . "</b><br />\n" . 
            "        </td>\n" . 
            "    </tr>\n" . 
            "    <tr>\n" . 
            "        <td height=\"10\"></td>\n" . 
            "    </tr>\n" .
            "    <tr>\n" . 
            "        <td>\n" . 

            "        <table cellpadding=\"1\" cellspacing=\"1\" width=\"100%\">\n" . 
            "            <tr>\n" . 
            "                 <td class=\"bgtabcolor\" height=\"2\"><img src=\"" . SCRIPT_URL . $aConfig['theme'] . "/images/spacer.gif\" alt=\"\" width=\"1\" height=\"2\" /></td>\n" . 
            "            </tr>\n" .             
            "            <tr>\n" . 
            "                <td class=\"txtheadb\">" . $aLang['Delete comment'] . ":</td>\n" . 
            "            </tr>\n" . 
            "            <tr>\n" . 
            "                <td class=\"bgtabcolor\" height=\"4\"></td>\n" . 
            "            </tr>\n" . 
            "            <tr>\n" . 
            "                <td class=\"bglinecolor\" height=\"1\"></td>\n" . 
            "            </tr>\n" . 
            "            <tr>\n" . 
            "                <td></td>\n" . 
            "            </tr>" .
            "        </table>";       

        if (isset($error) && $error) {
            echo '<p align="center"><font color="red">' . $aLang['verify password failed'] . '</font></p>'; 
        }                              
         echo '<br />';
         echo '<div align="center">';
         echo $aLang['delete warning1'] . ' ' . $name . '?';
         echo '<br>' . $aLang['delete warning2'];
         echo '<br>&nbsp;';
         echo '<form action="?page=realdelete" method="post" name="guestForm" id="guestForm">';
         echo $aLang['admin password'] . ': <input type="password" name="comfirmPassword" value="">';
         echo '<input type="hidden" name="name" value="' . $name . '">';
         echo '<input type="hidden" name="key" value="' . $key . '">';
         echo '<input value="Submit" type="submit">';
         echo '<form>';
         echo '</div>';
        echo '<br /><br /><br />';
        
        echo '   </td>';
        echo '  </tr>'; 
        echo '</table>';
    
?>