Directly after uploading, the following php-errors exsist:
Notice: Undefined index: act in \shout.php on line 88
Notice: Undefined index: act in \shout.php on line 110
Notice: Undefined index: act in \shout.php on line 138
Notice: Undefined index: act in \shout.php on line 181
Notice: Undefined index: page in \shout.php on line 198
Notice: Undefined index: q in \shout.php on line 233
Notice: Undefined index: act in \shout.php on line 328
Next to that, if the 'short open tags' are disable with php.ini, the source is displayed.
To fix it:
Change line 88
FROM: if ( $_POST['act']=='login') {
TO: if ( isset($_POST['act']) && $_POST['act']=='login') {
Change line 110
FROM: } else if ($_POST['act']=='logout') {
TO: } elseif ( isset($_POST['act']) && $_POST['act']=='logout') {
Change line 138
FROM: if ($_POST['act']=='shout') {
TO: if ( isset($_POST['act']) && $_POST['act']=='shout') {
Change line 181
FROM: if ($_GET['act']=='del' && !empty($_GET['k'])) {
TO: if ( isset($_GET['act']) && $_GET['act']=='del' && !empty($_GET['k'])) { // delete a shout
Change line 198
FROM: $page = $_GET['page'];
TO: $page = (isset($_GET['page']) ? $_GET['page']: '');
Change line 233
FROM: if ($_POST['q']!='' && $_POST['q']!='Search for...') {
TO: if ( isset($_POST['q']) && $_POST['q']!='' && $_POST['q']!='Search for...') {
Change line 328
FROM: if ($_POST['act']=='search') {
TO: if ( isset($_POST['act']) && $_POST['act']=='search') {
Change line 43
FROM: <?
TO: <?php
Thanks Edwin, those mistakes are now taken care of in the latest cshout version 3