diff --git a/erika.sh b/erika.sh new file mode 100755 index 0000000..5ab4f3c --- /dev/null +++ b/erika.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +if [ $# -eq 0 ]; then + echo "Missing parameter!" + exit 1 +fi + +if [ $# -gt 1 ]; then + echo "To much parameters!" + exit 1 +fi + +echo "$1" >> /tmp/erikalog.txt +echo "$1" | /var/www/html/erika3004/erika_print + diff --git a/php/const.php b/php/const.php index 73e994f..aa6ad10 100644 --- a/php/const.php +++ b/php/const.php @@ -2,9 +2,9 @@ define('TEXT_MAXLEN', 160); define('TEXT_MAXLINE', 63); -define('ERIKA_CMD', "echo"); -define('REGEX_FILTER', '/[^-a-zA-Z0-9äüöÄÜÖß ,;\.:()°%&$§"!+*#\'\?\/\n\r]/'); -define('ZEITDATEI', 'letztmaliger.aufruf'); +define('ERIKA_CMD', "/var/www/html/erika.sh"); +define('REGEX_FILTER', '/[^-a-zA-Z0-9äüöÄÜÖß ,;\.:()°%&²³µ€ç£èé=^_`&$§"!+*#\?\t\n\r\/]/m'); // `| +define('ZEITDATEI', '/tmp/letztmaliger.aufruf'); define('PAUSEZEIT_MS', 30000); -?> \ No newline at end of file +?> diff --git a/php/erika.php b/php/erika.php index dc1e455..d799ca4 100644 --- a/php/erika.php +++ b/php/erika.php @@ -2,7 +2,7 @@ - + Schreib auf die Erika @@ -13,7 +13,7 @@
-