insecure-php-application-fo.../includes/common.php

19 lines
385 B
PHP
Raw Permalink Normal View History

2019-11-14 08:15:43 +01:00
<?php
2019-11-18 11:30:22 +01:00
ini_set('display_errors', true);
error_reporting(E_ALL);
2019-11-14 08:15:43 +01:00
require 'config.php';
function connect()
{
return mysqli_connect(MYSQL_HOST, MYSQL_USERNAME, MYSQL_PASSWORD, MYSQL_DATABASE);
}
2019-11-18 11:30:22 +01:00
function text($text = '')
{
header('Content-Type: text/plain');
echo $text;
exit;
}
2019-11-14 08:15:43 +01:00
session_start();