X-Git-Url: https://disinclined.org/git/?a=blobdiff_plain;f=index.php;h=485b0636a59ee2653844391c2ebac0df3e0f87da;hb=f4311d6999688a97e69368017d511cd13e4b7c1f;hp=c53e9a85985d52402fbab39f8cf5751450d2f9b6;hpb=268795ba61ed5adaa452c551e1c3bd58505d16a0;p=dylansserver.git diff --git a/index.php b/index.php index c53e9a8..485b063 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 +491,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 +530,13 @@ END_CAPTCHA_STYLE;

what's this say?


-
-








enter the numbers you hear:

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