$gb_com->bottest = isset($_POST['adcopy_response']) ? trim($_POST['adcopy_response']) : ''; } else { $gb_com->bottest = isset($_POST['gb_bottest']) ? trim($_POST['gb_bottest']) : ''; } $gb_com->user = isset($_POST['gb_user']) ? $_POST['gb_user'] : ''; $gb_com->email = isset($_POST['gb_email']) ? $_POST['gb_email'] : ''; $gb_com->honeypot = isset($_POST['gb_username']) ? 1 : 0; $gb_com->pass_comment = isset($_POST['pass_comment']) ? trim($_POST['pass_comment']) : ''; $gb_action = isset($_POST['gb_action' . $antispam]) ? $_POST['gb_action' . $antispam] : ''; $gb_com->comment_action($gb_action); $gb_com->db->close_db(); break; case 'addentry': include_once LAZ_INCLUDE_PATH . '/lib/vars.class.php'; include_once LAZ_INCLUDE_PATH . '/lib/add.class.php'; $gb_post = new addentry(LAZ_INCLUDE_PATH); $GB_PG['base_url'] = $gb_post->db->VARS['base_url']; $GB_PG['index'] = $gb_post->db->VARS['laz_url'] . '&op=modload&file=index'; $GB_PG['admin'] = $gb_post->db->VARS['base_url'] . '/admin.php'; $GB_PG['comment'] = $gb_post->db->VARS['laz_url'] . '&op=modload&file=index&agbook=comment'; $GB_PG['addentry'] = $gb_post->db->VARS['laz_url'] . '&op=modload&file=index&agbook=addentry'; $antispam = $gb_post->db->VARS['antispam_word']; if (isset($_POST['agb_submit_' . $antispam]) || isset($_POST['agb_preview_' . $antispam])) { $gb_post->name = isset($_POST['gb_name']) ? $_POST['gb_name'] : ''; $gb_post->email = isset($_POST['gb_email']) ? $_POST['gb_email'] : ''; $gb_post->url = isset($_POST['gb_url']) ? $_POST['gb_url'] : ''; $gb_post->comment = isset($_POST['gb_comment']) ? $_POST['gb_comment'] : ''; $gb_post->location = isset($_POST['gb_location']) ? $_POST['gb_location'] : ''; $gb_post->icq = isset($_POST['gb_icq']) ? $_POST['gb_icq'] : 0; $gb_post->aim = isset($_POST['gb_aim']) ? $_POST['gb_aim'] : ''; $gb_post->msn = isset($_POST['gb_msn']) ? $_POST['gb_msn'] : '';
$gb_com->id = isset($_GET["gb_id"]) ? $_GET["gb_id"] : ''; $gb_com->id = isset($_POST["gb_id"]) ? $_POST["gb_id"] : $gb_com->id; $gb_com->id = intval($gb_com->id); $gb_com->comment = isset($_POST["comment"]) ? $_POST["comment"] : ''; $gb_com->user = isset($_POST["gb_user"]) ? $_POST["gb_user"] : ''; $gb_com->pass_comment = isset($_POST["pass_comment"]) ? $_POST["pass_comment"] : ''; $gb_com->gb_captcha = isset($_POST["gb_captcha"]) ? $_POST["gb_captcha"] : ''; $gb_action = isset($_POST["gb_comment"]) ? $_POST["gb_comment"] : ''; $gb_com->comment_action($gb_action); $gb_com->db->close_db(); break; case "addentry": require_once $include_path . "/lib/vars.class.php"; require_once $include_path . "/lib/add.class.php"; require_once $include_path . "/lib/phrase.class.php"; $gb_post = new addentry($include_path); if (isset($_POST["gb_action"])) { $gb_post->name = isset($_POST["gb_name"]) ? $_POST["gb_name"] : ''; $gb_post->email = isset($_POST["gb_email"]) ? $_POST["gb_email"] : ''; $gb_post->url = isset($_POST["gb_url"]) ? $_POST["gb_url"] : ''; $gb_post->comment = isset($_POST["gb_comment"]) ? $_POST["gb_comment"] : ''; $gb_post->location = isset($_POST["gb_location"]) ? $_POST["gb_location"] : ''; $gb_post->icq = isset($_POST["gb_icq"]) ? $_POST["gb_icq"] : 0; $gb_post->aim = isset($_POST["gb_aim"]) ? $_POST["gb_aim"] : ''; $gb_post->gender = isset($_POST["gb_gender"]) ? $_POST["gb_gender"] : ''; $gb_post->userfile = isset($_FILES["userfile"]["tmp_name"]) && $_FILES["userfile"]["tmp_name"] != "" ? $_FILES : ''; $gb_post->user_img = isset($_POST["gb_user_img"]) ? $_POST["gb_user_img"] : ''; $gb_post->preview = isset($_POST["gb_preview"]) ? 1 : 0; $gb_post->private = isset($_POST["gb_private"]) ? 1 : 0; $gb_post->token = isset($_POST["gb_token"]) ? $_POST["gb_token"] : ''; $gb_post->gb_captcha = isset($_POST["gb_captcha"]) ? $_POST["gb_captcha"] : '';