When I publish my site, I'm just testing it, I bought the software this week.
There's a code that shouldn't appear.
It appears at the top of the page, I don't know if it's a problem only when using the login form.
0) { $items = file($database, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); foreach ($items as $line) { list($username, $password, $email, $name, $active) = explode('|', trim($line)); if ($username == $_POST['username'] && $active != "0" && $password == $crypt_pass) { $found = true; $fullname = $name; break; } } } if ($found == false) { header('Location: '.$error_page); exit; } else { $_SESSION['username'] = $_POST['username']; $_SESSION['fullname'] = $fullname; $_SESSION['expires_by'] = time() + $session_timeout; $_SESSION['expires_timeout'] = $session_timeout; $rememberme = isset($_POST['rememberme']) ? true : false; if ($rememberme) { setcookie('username', $_POST['username'], time() + 3600*24*30); setcookie('password', $_POST['password'], time() + 3600*24*30); } header('Location: '.$success_page); exit; } } $username = isset($_COOKIE['username']) ? $_COOKIE['username'] : ''; $password = isset($_COOKIE['password']) ? $_COOKIE['password'] : ''; if (!isset($_SESSION['username'])) { $_SESSION['referrer'] = $_SERVER['REQUEST_URI']; header('Location: '); exit; } if (isset($_SESSION['expires_by'])) { $expires_by = intval($_SESSION['expires_by']); if (time() < $expires_by) { $_SESSION['expires_by'] = time() + intval($_SESSION['expires_timeout']); } else { unset($_SESSION['username']); unset($_SESSION['expires_by']); unset($_SESSION['expires_timeout']); $_SESSION['referrer'] = $_SERVER['REQUEST_URI']; header('Location: '); exit; } } if (!isset($_SESSION['username'])) { header('Location: '); exit; } ?>
Error in publication
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/publish.html
http://www.wysiwygwebbuilder.com/preview.html
Frequently Asked Questions about Publishing
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/publish.html
http://www.wysiwygwebbuilder.com/preview.html
Frequently Asked Questions about Publishing
- BaconFries
-
- Posts: 5648
- Joined: Thu Aug 16, 2007 7:32 pm
Re: Error in publication
This is not a error. What you are seeeing is the PHP of the form. Please ensure that the page extension is set to .php and not .htmlPHP code is showing on the page. What is happening?
Also note any page that uses PHP cannot be viewed locally you are required to publish to your be host /server which should support PHP.
See the following
PHP code is showing on the page. What is happening?
http://www.wysiwygwebbuilder.com/forum/ ... 10&t=32967