From 14832df079cc90a44b16c081834e724d4d4b54df Mon Sep 17 00:00:00 2001 From: codepoet Date: Sat, 18 Mar 2023 13:19:51 -0400 Subject: [PATCH] Update tandc.php --- tandc.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tandc.php b/tandc.php index d013201..3459b37 100644 --- a/tandc.php +++ b/tandc.php @@ -7,9 +7,8 @@ $config = include('config.php'); echo "
  • This server allows you to share up to " . $config['maxsharelength'] . " items per share space.
  • "; } if (isset($config['termsandconditions'])) { - while (list($key, $val) = each($config['termsandconditions'])) - { - echo "
  • $val
  • "; + foreach ($config['termsandconditions'] as $key => $val) { + echo "
  • $val
  • "; } } else { echo "Administrator: you can define your terms and conditions by creating a config.php file -- use the config-example.php as a reference."; @@ -22,4 +21,4 @@ $config = include('config.php'); echo ""; } ?> - \ No newline at end of file +