Merge branch 'master' of github.com:gnuboard/g4s
This commit is contained in:
@ -68,7 +68,7 @@ $sql = " insert into {$g4['board_table']}
|
||||
bo_hot = '{$board[bo_hot]}',
|
||||
bo_image_width = '{$board[bo_image_width]}',
|
||||
bo_skin = '{$board['bo_skin']}',
|
||||
bo_mobile_skin = '{$board['bo_mobile']}',
|
||||
bo_mobile_skin = '{$board['bo_mobile_skin']}',
|
||||
bo_include_head = '{$board['bo_include_head']}',
|
||||
bo_include_tail = '{$board['bo_include_tail']}',
|
||||
bo_content_head = '".addslashes($board['bo_content_head'])."',
|
||||
|
||||
27
bbs/poll.php
Normal file
27
bbs/poll.php
Normal file
@ -0,0 +1,27 @@
|
||||
<?
|
||||
include_once('./_common.php');
|
||||
|
||||
$field = '';
|
||||
|
||||
foreach($_POST as $key=>$value)
|
||||
{
|
||||
$field .= '<input type="hidden" name="'.$key.'" value="'.$value.'"/>'."\n";
|
||||
}
|
||||
|
||||
$g4['title'] = '투표하기';
|
||||
include_once(G4_PATH.'/head.sub.php');
|
||||
?>
|
||||
|
||||
<form id="fpoll" name="fpoll" action="<?=G4_BBS_URL?>/poll_update.php" method="post">
|
||||
<? echo $field; ?>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
$("#fpoll").submit();
|
||||
});
|
||||
</script>
|
||||
|
||||
<?
|
||||
include_once(G4_PATH.'/tail.sub.php');
|
||||
?>
|
||||
@ -44,7 +44,9 @@ function fpoll_submit(f)
|
||||
return false;
|
||||
}
|
||||
|
||||
win_poll(f.action);
|
||||
var url = "<?=G4_BBS_URL?>/poll.php";
|
||||
f.action = url;
|
||||
win_poll(url);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user