delete_value('current_poll_content'); $Cache->delete_value('current_poll_result', true); if ($returnto == "main") header("Location: " . get_protocol_prefix() . "$BASEURL"); elseif ($pollid) header("Location: " . get_protocol_prefix() . "$BASEURL/log.php?action=poll#$pollid"); else header("Location: " . get_protocol_prefix() . "$BASEURL"); die; } if ($pollid){ stdhead($lang_makepoll['head_edit_poll']); print("

".$lang_makepoll['text_edit_poll']."

"); } else { stdhead($lang_makepoll['head_new_poll']); // Warn if current poll is less than 3 days old $res = sql_query("SELECT question, added FROM polls ORDER BY added DESC LIMIT 1") or sqlerr(); $arr = mysql_fetch_assoc($res); if ($arr) { $hours = floor((strtotime(date("Y-m-d H:i:s")) - strtotime($arr["added"])) / 3600); $days = floor($hours / 24); if ($days < 3) { if ($days >= 1) $t = $days.$lang_makepoll['text_day'] . add_s($days); else $t = $hours.$lang_makepoll['text_hour'] . add_s($hours); print("

".$lang_makepoll['text_current_poll']."(" . $arr["question"] . ")".$lang_makepoll['text_is_only'].$t.$lang_makepoll['text_old']."

"); } } print("

".$lang_makepoll['text_make_poll']."

"); } ?>
*
1 *
2 *
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

*

"); ?> ">