Files
Testing/batemin/admin_poll.php

38 lines
1.1 KiB
PHP
Raw Permalink Normal View History

2026-11-17 16:15:01 -05:00
<?php
/* $Id: admin_poll.php 12 2009-01-11 06:04:12Z john $ */
$page = "admin_poll";
include "../admin/admin_header.php";
if(isset($_POST['task'])) { $task = $_POST['task']; } elseif(isset($_GET['task'])) { $task = $_GET['task']; } else { $task = "main"; }
// SET RESULT VARIABLE
$result = 0;
if($task == "dosave")
{
$setting_permission_poll = ( !empty($_POST['setting_permission_poll']) ? $_POST['setting_permission_poll'] : NULL );
$setting_poll_html = ( !empty($_POST['setting_poll_html']) ? $_POST['setting_poll_html'] : NULL );
$setting_poll_html = str_replace(" ", "", $setting_poll_html);
$sql = "
UPDATE
se_settings
SET
setting_permission_poll='$setting_permission_poll',
setting_poll_html='$setting_poll_html'
";
$database->database_query($sql) or die($database->database_error()." SQL: ".$sql);
$setting['setting_permission_poll'] = $setting_permission_poll;
$setting['setting_poll_html'] = $setting_poll_html;
$result = 1;
}
// ASSIGN VARIABLES AND SHOW GENERAL SETTINGS PAGE
$smarty->assign('result', $result);
include "admin_footer.php";
?>