mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -07:00
Update index.php
This commit is contained in:
parent
d66afcbaaa
commit
9f55ef33cf
1 changed files with 0 additions and 9 deletions
|
@ -1,14 +1,5 @@
|
|||
<?php
|
||||
|
||||
// Preventing CSRF
|
||||
$host_arr=explode(":", $_SERVER['HTTP_HOST']);
|
||||
$hostname=$host_arr[0];
|
||||
$port = $_SERVER['SERVER_PORT'];
|
||||
$expected_http_origin="https://".$hostname.":".$port;
|
||||
if ($_SERVER['HTTP_ORIGIN'] != $expected_http_origin) {
|
||||
die ("Nope.");
|
||||
}
|
||||
|
||||
// Init
|
||||
error_reporting(NULL);
|
||||
ob_start();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue