You are here: accessing $_GET implicitly « PHP Programming Language « IT news, forums, messages
accessing $_GET implicitly

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация