<?php
/*
This file is part of PHPOLL.
PHPOLL is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
PHPOLL is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with PHPOLL; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
include "../config/config.php";
if ((isset($_POST['log'])&&$_POST['log']!="")&&(isset($_POST['pw'])&&$_POST['pw']!="")) {
$string_cook_login = "phpoll_".$prepoll."_login";
$string_cook_password = "phpoll_".$prepoll."_password";
setcookie ($string_cook_login, $_POST['log'], time()+2592000);
setcookie ($string_cook_password, $_POST['pw'], time()+2592000);
}
print "<script type=\"text/javascript\">window.location=\"config_editor.php\";</script>";
?>