|
Posted by |-|erc on 10/19/05 10:13
OK, here's the start of the index file I'm working on and its used for every page like so
index.php?action=register
index.php?action=logout
etc.
<?php
define ('IN_SITE', 1 );
define ('LOGGED_IN', FALSE );
$userinfo = '';
include('config.php');
$link = @mysql_connect ($DB_HOST, $DB_USER, $DB_PASS) or die ('SQL Connection troubles');
mysql_select_db ($DB_DB);
include($_SERVER['DOCUMENT_ROOT'] . "/functions.php");
if ($action != "do_login")
{
$user = $_COOKIE['user'];
$pass = $_COOKIE['pass'];
if (verifyuser('', $pass,$user) == TRUE)
Nowhere in config or functions is $action defined, so how can this work?
It works on CPanel but not in PLESK. In PLESK I added the line $action = $_GET['action'];
I thought it already had it, that got it working in PLESK aswell but some screens still don't show
so I took it out again.
Herc
Navigation:
[Reply to this message]
|