mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Remove old session commands
Session is handled in resources/require.php
This commit is contained in:
@@ -24,10 +24,6 @@
|
|||||||
Mark J. Crane <markjcrane@fusionpbx.com>
|
Mark J. Crane <markjcrane@fusionpbx.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//start the session
|
|
||||||
ini_set("session.cookie_httponly", True);
|
|
||||||
if (!isset($_SESSION)) { session_start(); }
|
|
||||||
|
|
||||||
//includes files
|
//includes files
|
||||||
require_once __DIR__ . "/resources/require.php";
|
require_once __DIR__ . "/resources/require.php";
|
||||||
|
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ $pathtofonts = "/captcha/fonts/"; //path from the root of the website
|
|||||||
//add this to the top of the page where the form is submitted to
|
//add this to the top of the page where the form is submitted to
|
||||||
|
|
||||||
//--- begin captcha verification ---------------------
|
//--- begin captcha verification ---------------------
|
||||||
//ini_set("session.cookie_httponly", True); session_start(); //make sure sessions are started
|
|
||||||
if (strtolower($_SESSION["captcha"]) != strtolower($_REQUEST["captcha"]) || empty($_SESSION["captcha"])) {
|
if (strtolower($_SESSION["captcha"]) != strtolower($_REQUEST["captcha"]) || empty($_SESSION["captcha"])) {
|
||||||
|
|
||||||
echo " <span class=\"h2\">Sorry!</span>\n";
|
echo " <span class=\"h2\">Sorry!</span>\n";
|
||||||
|
|||||||
@@ -27,12 +27,6 @@
|
|||||||
//includes files
|
//includes files
|
||||||
require_once __DIR__ . "/require.php";
|
require_once __DIR__ . "/require.php";
|
||||||
|
|
||||||
//start the session
|
|
||||||
if (!isset($_SESSION)) {
|
|
||||||
ini_set("session.cookie_httponly", true);
|
|
||||||
session_start();
|
|
||||||
}
|
|
||||||
|
|
||||||
//connect to the database if not initialized
|
//connect to the database if not initialized
|
||||||
$database = database::new();
|
$database = database::new();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user