";
$errors .= "Please input a valid data label for Category " . $catnames[$i-1] . " (less than 3 alphanumeric characters)";
@@ -280,14 +280,14 @@ function getstats($completed)
if(array_key_exists("cat".$catnames[$i-1].$j."-txt", $form))
{
// check if has ".jpg", etc.
- if( preg_match("/\.[A-Za-z]{2,4}/",$form["cat".$catnames[$i-1].$j."-txt"]))
+ if( preg_match("/\.[\p{L}]{2,4}/u",$form["cat".$catnames[$i-1].$j."-txt"]))
{
$errors .= "
";
$errors .= "The text input, '" . $form["cat".$catnames[$i-1].$j."-txt"];
$errors .= "' in Category " . $catnames[$i-1] . " appears to be a file name.";
$errors .= "
";
}
- else if ( preg_match("/[^A-Za-z0-9\-\(\)\$\#\@\? ]+/", $form["cat".$catnames[$i-1].$j."-txt"]))
+ else if ( preg_match("/[^\p{L}\p{N}\-\(\)\$\#\@\? ]+/u", $form["cat".$catnames[$i-1].$j."-txt"]))
{
$errors .= "
";
$errors .= "The text input, '" . $form["cat".$catnames[$i-1].$j."-txt"];
diff --git a/core/survey.php b/core/survey.php
index cb22aba..50982aa 100644
--- a/core/survey.php
+++ b/core/survey.php
@@ -5,6 +5,7 @@
IAT Survey
+
diff --git a/createdb.sh b/createdb.sh
index 4693fe2..f3df361 100644
--- a/createdb.sh
+++ b/createdb.sh
@@ -7,7 +7,7 @@ if [ ${#MYSQL} -lt "5" ]; then
exit 1
fi
-Q1="CREATE DATABASE IF NOT EXISTS IAT555;"
+Q1="CREATE DATABASE IF NOT EXISTS IAT555 CHARACTER SET utf8 COLLATE utf8_unicode_ci;"
Q2="CREATE USER 'IATexp555'@'localhost' IDENTIFIED BY 'myIAT';"
Q3="GRANT ALL ON IAT555.* TO 'IATexp555'@'localhost';"
Q4="FLUSH PRIVILEGES;"
diff --git a/experimenter.php b/experimenter.php
index d030ca4..5303f34 100644
--- a/experimenter.php
+++ b/experimenter.php
@@ -2,7 +2,7 @@
IAT Experimenter Page
-
+
diff --git a/index.php b/index.php
index 3435015..ad7f133 100644
--- a/index.php
+++ b/index.php
@@ -2,6 +2,7 @@
Online IAT
+