$sr = dirname(dirname(__FILE__));
require($sr . '/gb/config/config.inc.php');
include($sr . '/lib/headers.lib.php');
require_once($sr . '/lib/string.lib.php');
require_once($sr . '/lib/mysql.lib.php');
$handler_gb = mysqli_connect(GB_HOST, GB_DBUSER, GB_DBPASSWD, GB_DBNAME);
mysqli_query($handler_gb, "SET NAMES utf8");
if (!isset($gb_no_env))
{
include('../inc/header.inc.php');
?>
| Гостевая книга |
}
switch ($cmd)
{
case "add":
include($sr . '/gb/add.php');
break;
case "add_post":
include($sr . '/gb/add_post.php');
break;
case "get_msg_num":
include($sr . '/gb/get_msg_num.php');
break;
case "show_and_post":
print "| Сообщения | ";
print "| ";
include($sr . '/gb/show.php');
print " | | Добавить сообщение | | ";
include($sr . '/gb/add.php');
print " | ";
break;
default:
include($sr . '/gb/show.php');
break;
}
if (!isset($gb_no_env))
{
?>
|
|
include('../inc/footer.inc.php');
}
?>