X-Git-Url: https://disinclined.org/git/?a=blobdiff_plain;f=index.php;h=b95b16d3dc40d1f45063f416f8804c444a793f81;hb=27d39343f641c2f3c63e7699b8de94786aadbfea;hp=5c6a7f52ad829b69785ca43baa45580961c77432;hpb=3287504436374babf203180d8b25def2cfc8dacd;p=dylansserver.git diff --git a/index.php b/index.php index 5c6a7f5..b95b16d 100644 --- a/index.php +++ b/index.php @@ -13,10 +13,10 @@ abstract class cms { public function __construct() { $config = parse_ini_file($this->config_file, true); $this->db = new mysqli( - $config[database]['domain'], - $config[database]['user'], - $config[database]['password'], - $config[database]['database']); + $config['database']['domain'], + $config['database']['user'], + $config['database']['password'], + $config['database']['database']); if (mysqli_connect_errno()) { echo "Problem connecting to database: "; echo mysqli_connect_error(); @@ -93,7 +93,7 @@ abstract class cms { $scripts - +
END_OF_NAVIGATION; @@ -454,7 +498,7 @@ END_OF_NAVIGATION; $date_posted = $entry['date_posted']; $author = $entry['author']; $text = htmlspecialchars($entry['text']); - $head = "

$author

"; + $head = "

" . htmlspecialchars($author) . "

"; echo << $head @@ -493,15 +537,13 @@ END_CAPTCHA_STYLE;

what's this say?


-
-








enter the numbers you hear:

- + another? / audio? / image?help?