Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-02-2005, 04:02 AM
|
#1
|
Member
Registered: Mar 2005
Posts: 146
Rep:
|
Login page - Big problem with PHP -- Please help me
I have been received the manage tool + mysql database file written PHP code. This is my progress that i have done with it.
- Enable httpd, mysql, named run on my system.
- Create a database "dtabc", import the file "abc.sql" (include of the manage tool) into "dtabc" with mysqldump command . No problem occurs because i have check 'dtabc' with --phpmyadmin--, and i can see the tables of database. The manage tool can connect to database because if not, the error " Can't connect database" will appear.
- Then, i edit the path in 'config.php' file of manage tool to point to my location of manage too on web server. No problem occur because it can display when i access one of page. If having wrong path, nothing will appear.
- The first page i have got is 'login.php'. In this, having " User name" and " Paasword" where fill account information. However when i type user name and password (i'm sure that it's right), nothing happen, just receive the error "Access forbidden - Missing informations about the user". In case, i type user name and wrong password, it also display the same error message, NOT " Bad username/ Bad password" as the original website.
- I also ask my technician who give me the manage tool, however he said that the problem was my PHP or my web server because he have checked on his web server, or due to losing session ???. But, i also used my web server try to install a forum PHP (Invision board and Vbulletin with mysql), no problem appear, it can work well.
I am really not understand. Please help me solve the problem.
Thank you very very much. 
|
|
|
04-02-2005, 05:26 AM
|
#2
|
LQ Guru
Registered: Mar 2004
Distribution: Slackware
Posts: 6,797
|
Do you know if it is a mysql authentication (username and password stored in
a mysql database) or a HTTP authentication (username and password stored in
an authentication file created with htpasswd tool and managed by Apache) ?
|
|
|
04-03-2005, 12:38 AM
|
#3
|
Member
Registered: Mar 2005
Posts: 146
Original Poster
Rep:
|
Thanks for your reply,
Quote:
Do you know if it is a mysql authentication (username and password stored in
a mysql database) or a HTTP authentication (username and password stored in
an authentication file created with htpasswd tool and managed by Apache) ?
|
it is a mysql authentication (username and password stored in
a mysql database). All inforamtion contain in 'user_access' tables
Please help me solve the problem.
Thanks again
|
|
|
04-03-2005, 06:10 AM
|
#4
|
Member
Registered: Mar 2005
Posts: 146
Original Poster
Rep:
|
And here is some files in my manage tool:
-- config.php: /[abc]/includes/config.php
===============================================================
<?
// Permit compression
// header("Accept-Encoding: deflate, gzip, compress"); // deflate and gzip Browser
// header("Content-Encoding: default"); // Server
// Include all necessary files
// Lock IP
if (getenv("HTTP_CLIENT_IP")){
$ip=getenv("HTTP_CLIENT_IP");
}else{
$ip=getenv("REMOTE_ADDR");
}
$today = date("Y-m-d H:i:s");
$LocalIP[] = "192.168.1.1"; // --GreG--
$LocalIP[] = "192.168.1.1"; // --Math--
$LocalIP[] = "127.0.0.1";
//========================================================
// DATABASE
//========================================================
if (in_array($ip, $LocalIP, FALSE)) {
define('DB_SERVER', "localhost");
define('DB_SERVER_USERNAME','root');
define('DB_SERVER_PASSWORD','pass');
define('DB_DATABASE','data');
} else {
define('DB_SERVER', "localhost");
define('DB_SERVER_USERNAME','root');
define('DB_SERVER_PASSWORD','pass');
define('DB_DATABASE','data');
}
//========================================================
// SERVER DIRECTORIES
//========================================================
// FS = Filesystem (physical)
// WS = Webserver (virtual)
// Files location
define('DIR_FS_DOCUMENT_ROOT', '/var/www/html/abc/' );
define('PFS', '/var/www/html/abc');
define("DIR_WS_INCLUDES", '/var/www/html/abc/includes/');
define('WEB_URL', '');
define('WEB_BASE', '');
define('UPLOAD_DIR', '/var/www/html/abc/');
define('UPLOAD_WEB', 'abc/uploads/');
define('DIR_WS_ROOT', DIR_FS_DOCUMENT_ROOT);
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES.'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES.'classes/');
// Initialize time
srand((double)microtime()*1000000);
mt_srand((double)microtime()*1000000);
// Initialize Binary Mask
define('A', 1); // 1
define('B', 2);
define('C', 4);
define('D', 8);
define('E', 16); // 5
define('F', 32);
define('G', 64);
define('H', 128);
define('I', 256);
define('J', 512); // 10
define('K', 1024);
define('L', 2048);
define('M', 4096);
define('N', 8192);
define('O', 16384); // 15
define('P', 32768);
define('Q', 65536);
define('R', 131072);
define('S', 262144);
define('T', 524288); // 20
define('U', 1048576);
// Start session
$include_file = DIR_WS_FUNCTIONS . 'sessions_accessrights.php'; include(DIR_WS_FUNCTIONS . 'include_once.php');
$include_file = DIR_WS_CLASSES . 'accessrights.php'; include(DIR_WS_FUNCTIONS . 'include_once.php');
// Connect Database
$include_file = DIR_WS_FUNCTIONS . 'database.php'; include(DIR_WS_FUNCTIONS . 'include_once.php');
// Load all functions
$include_file = DIR_WS_FUNCTIONS . 'time.php'; include(DIR_WS_FUNCTIONS . 'include_once.php');
$include_file = DIR_WS_FUNCTIONS . 'common.php'; include(DIR_WS_FUNCTIONS . 'include_once.php');
// Load all classes
$include_file = DIR_WS_CLASSES . 'news.php'; include(DIR_WS_FUNCTIONS . 'include_once.php');
$include_file = DIR_WS_CLASSES . 'user.php'; include(DIR_WS_FUNCTIONS . 'include_once.php');
// Connection à la db + Session PHP
$GLOBAL_ERRORMESSAGE = "";
$GLOBAL_USERID = "";
$GLOBAL_ALREADYHEADER = 1;
startSession();
tep_db_connect();
$access = new CAccessrights();
if ($command == "login") { // Si l'usager veut se loguer
if (!$access->checkUserLogin($hlogin, $hpassword, $TZ)) { // Si Login incorect
$GLOBAL_ERRORMESSAGE .= "<br>Bad Login / Password<br><br>";
$include_file = "index.php"; include(DIR_WS_FUNCTIONS . 'include_once.php');
// echo "Test 1<br>";
die();
}
else { // On démarre la session, car le Login-Password est OK
if (!$access->checkSessionAtLogin()) {
$GLOBAL_ERRORMESSAGE .= "<br>Access forbidden - Error 1<br><br>";
$include_file = "index.php"; include(DIR_WS_FUNCTIONS . 'include_once.php');
// echo "Test 1<br>";
die();
}
}
$LOGEDIN = 1;
}
else if ($command == "logout") {
stopSession();
$GLOBAL_ERRORMESSAGE .= "<br>Logout Successful<br><br>";
$include_file = "index.php"; include(DIR_WS_FUNCTIONS . 'include_once.php');
die();
}
// else if ($GLOBAL_USERID != 0) { // Si ce n'est pas un Login ou un Logout
else { // Si ce n'est pas un Login ou un Logout
if (!$access->loadUserInfos()) {
if ($GLOBAL_USERID != 0) {
$GLOBAL_ERRORMESSAGE .= "<br>Access forbidden - Error 3<br><br>";
}
if (!empty($comment)) {
$GLOBAL_ERRORMESSAGE .= "<br>Last Bug Comment Entered:<br>$comment<br><br>";
}
$GLOBALS['SESSION_NAME'] = "Guest";
// echo "Test error 3";
$include_file = "index.php"; include(DIR_WS_FUNCTIONS . 'include_once.php');
die();
}
if (!$access->checkSessionInPages()) {
if ($GLOBAL_USERID != 0) {
$GLOBAL_ERRORMESSAGE .= "<br>Access forbidden - Error 4<br><br>";
}
if (!empty($comment)) {
$GLOBAL_ERRORMESSAGE .= "<br>Last Bug Comment Entered:<br>$comment<br><br>";
}
$GLOBALS['SESSION_NAME'] = "Guest";
// echo "Test error 4";
$include_file = "index.php"; include(DIR_WS_FUNCTIONS . 'include_once.php');
die();
}
}
// Created for "View history"
// if (!empty($access->m_loginid)) { $GLOBAL_USERID = $access->m_loginid; }
// echo "GUID = $GLOBAL_USERID<br>";
// print_r($access);
?>
===============================================================
|
|
|
04-03-2005, 06:11 AM
|
#5
|
Member
Registered: Mar 2005
Posts: 146
Original Poster
Rep:
|
And anothers:
-- access.php : /abc/access.php
===============================================================
<?
$GLOBAL_LANGUAGE = 1;
require_once("includes/config.php");
require_once("head.php");
if ($p_loggued_in == "1") {
$include_file = DIR_WS_CLASSES . 'components.php'; include(DIR_WS_FUNCTIONS . 'include_once.php');
$m_comp = new CComp();
$m_comp->getVersionsList($GLOBALS['SESSION_GAME'],$GLOBALS['SESSION_DEVICE']);
}
?>
<table cellpadding=0 cellspacing=0 width=100% border=0>
<tr valign=top>
<!-- begin left column-->
<td width=5 bgcolor=#5B88AB align=right> </td>
<td width="1" bgcolor="#000000"><img src="/qa/images/b.gif" width="1" height="1"></td>
<!-- end left column -->
<!-- begin main column -->
<td bgcolor=#FFFFFF>
<span class=spacer8> <br clear=all></span>
<?
if ($GLOBAL_ERRORMESSAGE) { ?>
<table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr valign="top">
<td align="center" valign="top" class="ErrorMess"><? echo $GLOBAL_ERRORMESSAGE; ?></td>
</tr>
</table>
<span class=spacer8> <br clear=all></span>
<? } ?>
<?
if ($p_loggued_in == "1" && $GLOBALS['SESSION_USERTST'] && $GLOBALS['SESSION_GAME'] && $GLOBALS['SESSION_DEVICE']) {
?>
<div align="center"><font color="#000000" class="ggheader2">Project Punch In/Out</font></div>
<? $users->loadUserInfos($GLOBALS['SESSION_USERID']);
$users->getUserHours($GLOBALS['SESSION_USERID']); ?>
<form action="access.php" method="get">
<input type="hidden" name="command" value="punch">
<input type="hidden" name="userid" value="<? echo $GLOBALS['SESSION_USERID']; ?>">
<table cellpadding="0" cellspacing="0" width="60%" border="0" class="gsblack12" align="center">
<tr valign="top">
<td align="center" width="100%"><? if ((!$users->m_Punch[0]['PunchIn']) && ($GLOBALS['SESSION_GAME'])) { ?>Punch In<? } else { ?>Punch Out<? } ?></td>
</tr>
<tr valign="top">
<td align="center"><? if ((!$users->m_Punch[0]['PunchIn']) && ($GLOBALS['SESSION_GAME'])) { echo getCompById($GLOBALS['SESSION_GAME'], 'Game'); } else { ?><input type="submit" name="punchout" value="Punch Out"><? } ?></td>
</tr>
<tr valign="top">
<td align="center"><? if ((!$users->m_Punch[0]['PunchIn']) && ($GLOBALS['SESSION_GAME'])) { echo getCompById($GLOBALS['SESSION_DEVICE'], 'Device'); } ?></td>
</tr>
<tr valign="top">
<td align="center">
<? if ((!$users->m_Punch[0]['PunchIn']) && ($GLOBALS['SESSION_GAME'])) { ?>
<SELECT name="version">
<option value="0" SELECTED>[SELECT]</option>
<? for($i=0; $i<$m_comp->nb_gdv; $i++) { ?>
<option value="<? echo $m_comp->m_gdv_id[$i]; ?>"><? echo $m_comp->m_gdv_name[$i]; ?></option>
<? } ?>
</SELECT>
<? } else { ?>
<font color="#000000"><strong>You are currently
<? if ($users->m_Punch[0]['PunchIn']) {
echo "punched in the : ".$users->m_Punch[0]['game']." / ".$users->m_Punch[0]['device']."<br>";
echo "V. ".$users->m_Punch[0]['version']." project, since ".$users->m_Punch[0]['punch_in'].".";
} ?></strong></font><br clear="all"><br><? } ?>
</td>
</tr>
<tr valign="top">
<td align="center"><?
if ((!$users->m_Punch[0]['PunchIn']) && (!$GLOBALS['SESSION_GAME'])) { ?><br><br>Log in a Project First!<br><?
} else if (!$users->m_Punch[0]['PunchIn']) { ?><input type="submit" name="punchin" value="Punch In"><? } ?></td>
</tr>
</table>
</form>
<?
} else if (!$GLOBALS['SESSION_GAME'] || ($GLOBALS['SESSION_DEVICE']<500)) {
$include_file = DIR_WS_CLASSES . 'components.php'; include(DIR_WS_FUNCTIONS . 'include_once.php');
$m_comp = new CComp();
// $m_comp->getDevicesList();
$m_comp->getGamesList();
?>
<script language="javascript">
function changeList(form, index) {
var objSelect = form.project_device;
while(objSelect.options.length > 1)
{
objSelect.remove(1);
}
<?
for($i=0; $i<$m_comp->nb_Games; $i++) {
if ($i>0) {
echo "else ";
}
?>
if (index == "<? echo $m_comp->m_gameid[$i]; ?>") {
<?
$m_comp->getGameDevice($m_comp->m_gameid[$i]);
for($j=0; $j<$m_comp->nb_gd; $j++) {
?>
objOption = document.createElement("option");
objOption.text = "<? echo $m_comp->m_gd_dname[$j] ?>";
objOption.value = "<? echo $m_comp->m_gd_did[$j] ?>";
if(document.all && !window.opera)
{objSelect.add(objOption);}
else
{objSelect.add(objOption, null);}
<?
}
?>
}
<?
}
?>
}
</script>
<div align="center"><font color="#000000" class="ggheader2">Project Login</font></div>
<form action="access.php" method="get" name="Intro" id="Intro">
<input type="hidden" name="p_loggued_in" value="1">
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr>
<td class="gsblack11" align="right" width="40%">Game Name :</td>
<td width="60%">
<select name="project_game" class="gsblack11" OnChange="changeList(this.form,this.options[this.selectedIndex].value)">
<option value="0" SELECTED>[SELECT]</option>
<? for($i=0; $i<$m_comp->nb_Games; $i++) { ?>
<option value="<? echo $m_comp->m_gameid[$i]; ?>"><? echo $m_comp->m_gamename[$i]; ?></option>
<? } ?>
</select>
</td>
</tr>
<tr>
<td class="gsblack11" align="right">Device :</td>
<td>
<select name="project_device" class="gsblack11">
<option value="0" SELECTED>[SELECT]</option>
</select>
</td>
</tr>
</table>
<span class=spacer4> <br clear=all></span>
<div align="center"><input type="submit" name="submit" value="Continue"></div>
</form>
<?
} else {
$m_news = new CNews();
$m_news->loadAllNews(); ?>
<span class=spacer4> <br clear=all></span>
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr valign="top">
<td width="10%"> </td>
<td align="center" valign="top">
<? for($i=0; $i<$m_news->nb_News; $i++) { ?>
<table cellpadding="0" cellspacing="0" width="100%" border="0" class="NewsBG">
<tr valign="top">
<td width="10" class="NewsHeader"> </td>
<td align="center" valign="middle" class="NewsHeader"><? echo $m_news->m_newsInfos[$i]['subject']; ?></td>
<td align="right" valign="middle" class="NewsHeaderDate"><? echo $m_news->m_newsInfos[$i]['created_by']." - ".$m_news->m_newsInfos[$i]['created_date']; ?></td>
<td width="10" class="NewsHeader"> </td>
</tr>
<tr valign="top">
<td width="10"> </td>
<td align="left" valign="top" colspan="2"><br><? echo $m_news->m_newsInfos[$i]['message']; ?><br><br></td>
<td width="10"> </td>
</tr>
</table>
<span class=spacer8> <br clear=all></span>
<? } ?>
</td>
<td width="10%"> </td>
</tr>
</table>
<?
}
?>
<span class=spacer8> <br clear=all></span>
</td>
<!-- end main column -->
<!-- begin rightnav -->
<td width="1" bgcolor="#000000"><img src="/abc/images/b.gif" width="1" height="1"></td>
<td width=5 bgcolor=#5B88AB align=right> </td>
<!-- end rightnav -->
</tr>
</table>
<?
require_once("foot.php");
?>
===============================================================
-- index.php : /abc/index.php
===============================================================
<?
error_reporting(~E_ALL);
require_once("includes/config.php");
require_once("head.php");
?>
<table cellpadding=0 cellspacing=0 width=100% border=0>
<tr valign=top>
<!-- begin left column-->
<td width=100 bgcolor=#5B88AB align=center><font class="gsclink11">
<br><? if ($GLOBALS['SESSION_NAME'] != "Guest") { echo " "; } else { echo "Please Log In!"; }?><br>
<br>Local IP :<br>
<? echo $ip;?><br>
</font></td>
<td width="1" bgcolor="#000000"><img src="/abc/images/b.gif" width="1" height="1"></td>
<!-- end left column -->
<!-- begin main column -->
<td bgcolor=#FFFFFF>
<span class=spacer8> <br clear=all></span>
<? if ($GLOBAL_ERRORMESSAGE) { ?>
<table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr valign="top">
<td align="center" valign="top" class="ErrorMess"><? echo $GLOBAL_ERRORMESSAGE; ?></td>
</tr>
</table>
<span class=spacer8> <br clear=all></span>
<? }
$m_news = new CNews();
$m_news->loadAllNews(); ?>
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr valign="top">
<td width="10%"> </td>
<td align="center" valign="top">
<? for($i=0; $i<$m_news->nb_News; $i++) { ?>
<table cellpadding="0" cellspacing="0" width="100%" border="0" class="NewsBG">
<tr valign="top">
<td width="10" class="NewsHeader"> </td>
<td align="center" valign="middle" class="NewsHeader"><? echo $m_news->m_newsInfos[$i]['subject']; ?></td>
<td align="right" valign="middle" class="NewsHeaderDate"><? echo $m_news->m_newsInfos[$i]['created_by']." - ".$m_news->m_newsInfos[$i]['created_date']; ?></td>
<td width="10" class="NewsHeader"> </td>
</tr>
<tr valign="top">
<td width="10"> </td>
<td align="left" valign="top" colspan="2"><br><? echo $m_news->m_newsInfos[$i]['message']; ?><br><br></td>
<td width="10"> </td>
</tr>
</table>
<span class=spacer8> <br clear=all></span>
<? } ?>
</td>
<td width="10%"> </td>
</tr>
</table>
<span class=spacer8> <br clear=all></span>
</td>
<!-- end main column -->
<!-- begin rightnav -->
<td width="1" bgcolor="#000000"><img src="/abc/images/b.gif" width="1" height="1"></td>
<td width=5 bgcolor=#5B88AB align=right> </td>
<!-- end rightnav -->
</tr>
</table>
<?
include_once("foot.php");
?>
===============================================================
|
|
|
04-03-2005, 06:11 AM
|
#6
|
Member
Registered: Mar 2005
Posts: 146
Original Poster
Rep:
|
And anothers,
-- accessright.php : /abc/includes/classes/accessright.php
==============================================================
<?
class CAccessrights
{
var $m_login;
var $m_loginid;
var $m_name;
var $m_rights;
var $m_tester;
var $m_dev;
var $m_manager;
var $m_timezone;
var $m_groups; // Liste des groupes (table access_groups)
var $m_modules;
var $m_mod;
var $m_access;
var $m_sizebinstr = 32; // Sur 32 bits
// Constructeur
function CAccessrights() {
}
// Vérifie le login-password de l'usager pour accéder au site selon ses droits
function checkUserLogin($login, $password, $TZ) {
global $GLOBAL_USERID;
// print("We are beginning the checkUserLogin()<br>");
// On vérifie si l'usager a vraiment entré des données
if (($login=="") || ($password=="")) return(false);
// On va chercher les droits d'accès de l'usager dans la bd.
$sql = "SELECT id,login,name,security,tester,dev,man,tz,options,usermask FROM qa_access WHERE login = '$login' AND password = MD5('$password') and active >0";
$db_query = tep_db_query($sql);
if (tep_db_num_rows($db_query)) {
$res = tep_db_fetch_array($db_query);
$this->m_loginid = $res[0];
$this->m_login = $res[1];
$this->m_name = $res[2];
$this->m_rights = $res[3];
$this->m_tester = $res[4];
$this->m_dev = $res[5];
$this->m_manager = $res[6];
$this->m_timezone = $TZ;
$this->m_options = $res[8];
$this->m_mask = $res[9];
}
tep_db_free_result($db_query);
// echo "$login, $password<br>";
// echo "LOGINID=$this->m_loginid LOGIN=$this->m_login IP=$this->m_ip RIGHTS=$this->m_rights <br>";
// On vérifie les données
if ($login == $this->m_login) {
session_register("SESSION_NAME");
$GLOBALS["SESSION_NAME"] = $this->m_name;
session_register("SESSION_USERID");
$GLOBALS["SESSION_USERID"] = $this->m_loginid;
$GLOBAL_USERID = $this->m_loginid;
session_register("SESSION_USERSEC");
$GLOBALS["SESSION_USERSEC"] = $this->m_rights;
session_register("SESSION_USERTST");
$GLOBALS["SESSION_USERTST"] = $this->m_tester;
session_register("SESSION_USERDEV");
$GLOBALS["SESSION_USERDEV"] = $this->m_dev;
session_register("SESSION_USERMAN");
$GLOBALS["SESSION_USERMAN"] = $this->m_manager;
session_register("SESSION_USERTZ");
$GLOBALS["SESSION_USERTZ"] = $this->m_timezone;
session_register("SESSION_OPTIONS");
if ($this->m_options == "") { $this->m_options = hexdec("FFFFFFFF"); }
$GLOBALS["SESSION_OPTIONS"] = $this->m_options;
session_register("SESSION_USERMASK");
$GLOBALS["SESSION_USERMASK"] = $this->m_mask;
return(true);
$this->checkSessionAtLogin(); }
else return(false);
}
function strIsInDb($str, $req) {
$newreq = sprintf($req, $str);
$db_query = tep_db_query($newreq);
$n = tep_db_num_rows($db_query);
tep_db_free_result($db_query);
if ($n) return(true);
else return(false);
}
function loadUserInfos() {
global $GLOBAL_ERRORMESSAGE;
// print("We are beginning the loadUserInfos()<br>");
// On va chercher les informations de l'usager dans la bd.
$sql = "SELECT abc_access.id,qa_access.login,abc_access.name,abc_access.security,abc_access_sessions.id FROM abc_access INNER JOIN abc_access_sessions ON abc_access_sessions.id = abc_access.id WHERE abc_access_sessions.sessionid = '".$GLOBALS["SESSION_ID"]."'";
$db_query = tep_db_query($sql);
if (tep_db_num_rows($db_query)) {
$res = tep_db_fetch_array($db_query);
$this->m_loginid = $res[0];
$this->m_login = $res[1];
$this->m_name = $res[2];
$this->m_rights = $res[3];
}
tep_db_free_result($db_query);
//echo "LOGINID=$this->m_loginid LOGIN=$this->m_login IP=$this->m_ip RIGHTS=$this->m_rights <br>";
// S'il manque une info, accès interdit
if (!$this->m_loginid || !$this->m_login || !$this->m_name || !$this->m_rights) {
$GLOBAL_ERRORMESSAGE .= "Access forbidden - Missing informations about the user";
stopSession();
return(false);
}
else return(true);
}
function changeCheckboxToDec($arraybox) {
for ($i=0; $i < $this->m_sizebinstr; $i++) { // Potentiel de 32 checkboxes dans le tableau
if ($arraybox[$i] == "on") $str .= "1";
else $str .= "0";
}
return(bindec(strrev($str)));
}
// Vérifie l'adresse IP selon le format x.x.x.x
// Retourne TRUE si bon format. FALSE sinon.
function checkIpAddress() {
$ip = getIPAddress();
$addr_bd = explode(".", $this->m_ip);
$addr_ip = explode(".", $ip);
$sizetab = sizeof($addr_ip);
// On procède à la vérification
for ($i=0; $i < $sizetab; $i++) {
if (is_numeric($addr_bd[$i]) && $addr_ip[$i] != $addr_bd[$i]) {
return(false);
}
}
return(true);
}
// On vérifie la validité de la session
function checkSessionAtLogin() {
global $GLOBAL_ERRORMESSAGE;
// print("We are beginning the checkSessionAtLogin()<br>");
// On insère les données dans la table access_session.
// Si elle existe déjà, on update la date seulement.
$today=gmdate("YmdHis", time());
if ($this->strIsInDb($this->m_loginid, "select id from abc_access_sessions where id='%s'")) {
$sql = "update abc_access_sessions set date='$today',sessionid='".$GLOBALS["SESSION_ID"]."' where id='$this->m_loginid'";
$db_query = tep_db_query($sql);
}
else { // On insère les données dans la table access_session.
$sql = "insert into abc_access_sessions (id,date,sessionid) values ('$this->m_loginid','$today','".$GLOBALS["SESSION_ID"]."')";
$db_query = tep_db_query($sql);
}
// Si tout s'est bien passé, l'user peut voir la page
return(true);
}
// On vérifie la validité de la session
function checkSessionInPages() {
global $GLOBAL_ERRORMESSAGE;
// print("We are beginning the checkSessionInPages()<br>");
// 1- On vérifie si le session_id existe. Si non, LOGOUT.
if ($GLOBALS["SESSION_ID"] == "") {
$GLOBAL_ERRORMESSAGE .= "Session ID is missing";
stopSession();
return(false); // Accès interdit car pas de session
}
// 2- Vérification de la date
$sql = "select UNIX_TIMESTAMP(date) from abc_access_sessions where sessionid='".$GLOBALS["SESSION_ID"]."'";
$db_query = tep_db_query($sql);
if (tep_db_num_rows($db_query)) {
$res = tep_db_fetch_array($db_query);
}
$datetime = $res[0];
tep_db_free_result($db_query);
if ((gmdate("U", time())-$datetime) > 14400) {
$GLOBAL_ERRORMESSAGE .= "Session expired";
stopSession();
return(false); // Accès interdit car temps dépassé
}
// 3- On update les données dans la table accesssession.
$today=gmdate("YmdHis", time());
$sql = "update abc_access_sessions set date='$today' where sessionid='".$GLOBALS["SESSION_ID"]."'";
$db_query = tep_db_query($sql);
// Si tout s'est bien passé, l'usager peut voir la page
return(true);
}
}
?>
==============================================================
|
|
|
04-04-2005, 09:12 AM
|
#7
|
Member
Registered: Mar 2005
Posts: 146
Original Poster
Rep:
|
Everybody, please help me. It's very important for me. I am really meet more difficult with it.
Thank you very much. I need your help, your idear, your solution, and ...more. please
|
|
|
04-04-2005, 09:39 AM
|
#8
|
LQ Guru
Registered: Mar 2004
Distribution: Slackware
Posts: 6,797
|
In /abc/includes/classes/accessright.php file :
try to replace all :
Code:
session_register("XXX");
$GLOBALS["XXX"] = bla bla;
with :
Code:
$_SESSION["XXX"] = bla bla;
|
|
|
04-04-2005, 09:51 AM
|
#9
|
Member
Registered: Mar 2005
Posts: 146
Original Poster
Rep:
|
Quote:
In /abc/includes/classes/accessright.php file :
try to replace all :
code:
session_register("XXX");
$GLOBALS["XXX"] = bla bla;
with :
code:
$_SESSION["XXX"] = bla bla;
|
Thanks for your reply, however it still doesn't work. Only and only one login page  ( I can't login.
Here is my accessright.php file has edited with your guide:
Quote:
<?
class CAccessrights
{
var $m_login;
var $m_loginid;
var $m_name;
var $m_rights;
var $m_tester;
var $m_dev;
var $m_manager;
var $m_timezone;
var $m_groups; // Liste des groupes (table access_groups)
var $m_modules;
var $m_mod;
var $m_access;
var $m_sizebinstr = 32; // Sur 32 bits
// Constructeur
function CAccessrights() {
}
// Vérifie le login-password de l'usager pour accéder au site selon ses droits
function checkUserLogin($login, $password, $TZ) {
global $GLOBAL_USERID;
// print("We are beginning the checkUserLogin()<br>");
// On vérifie si l'usager a vraiment entré des données
if (($login=="") || ($password=="")) return(false);
// On va chercher les droits d'accès de l'usager dans la bd.
$sql = "SELECT id,login,name,security,tester,dev,man,tz,options,usermask FROM abc_access WHERE login = '$login' AND password = MD5('$password') and active >0";
$db_query = tep_db_query($sql);
if (tep_db_num_rows($db_query)) {
$res = tep_db_fetch_array($db_query);
$this->m_loginid = $res[0];
$this->m_login = $res[1];
$this->m_name = $res[2];
$this->m_rights = $res[3];
$this->m_tester = $res[4];
$this->m_dev = $res[5];
$this->m_manager = $res[6];
$this->m_timezone = $TZ;
$this->m_options = $res[8];
$this->m_mask = $res[9];
}
tep_db_free_result($db_query);
// echo "$login, $password<br>";
// echo "LOGINID=$this->m_loginid LOGIN=$this->m_login IP=$this->m_ip RIGHTS=$this->m_rights <br>";
// On vérifie les données
if ($login == $this->m_login) {
//session_register("SESSION_NAME");
$_SESSION["SESSION_NAME"] = $this->m_name;
//session_register("SESSION_USERID");
$_SESSION["SESSION_USERID"] = $this->m_loginid;
$GLOBAL_USERID = $this->m_loginid;
//session_register("SESSION_USERSEC");
$_SESSION["SESSION_USERSEC"] = $this->m_rights;
//session_register("SESSION_USERTST");
$_SESSION["SESSION_USERTST"] = $this->m_tester;
//session_register("SESSION_USERDEV");
$_SESSION["SESSION_USERDEV"] = $this->m_dev;
//session_register("SESSION_USERMAN");
$_SESSION["SESSION_USERMAN"] = $this->m_manager;
//session_register("SESSION_USERTZ");
$_SESSION["SESSION_USERTZ"] = $this->m_timezone;
//session_register("SESSION_OPTIONS");
if ($this->m_options == "") { $this->m_options = hexdec("FFFFFFFF"); }
$_SESSION["SESSION_OPTIONS"] = $this->m_options;
//session_register("SESSION_USERMASK");
$_SESSION["SESSION_USERMASK"] = $this->m_mask;
return(true);
$this->checkSessionAtLogin(); }
else return(false);
}
function strIsInDb($str, $req) {
$newreq = sprintf($req, $str);
$db_query = tep_db_query($newreq);
$n = tep_db_num_rows($db_query);
tep_db_free_result($db_query);
if ($n) return(true);
else return(false);
}
function loadUserInfos() {
global $GLOBAL_ERRORMESSAGE;
// print("We are beginning the loadUserInfos()<br>");
// On va chercher les informations de l'usager dans la bd.
$sql = "SELECT abc_access.id,abc_access.login,abc_access.name,abc_access.security,abc_access_sessions.id FROM abc_access INNER JOIN abc_access_sessions ON abc_access_sessions.id = abc_access.id WHERE abc_access_sessions.sessionid = '".$GLOBALS["SESSION_ID"]."'";
$db_query = tep_db_query($sql);
if (tep_db_num_rows($db_query)) {
$res = tep_db_fetch_array($db_query);
$this->m_loginid = $res[0];
$this->m_login = $res[1];
$this->m_name = $res[2];
$this->m_rights = $res[3];
}
tep_db_free_result($db_query);
//echo "LOGINID=$this->m_loginid LOGIN=$this->m_login IP=$this->m_ip RIGHTS=$this->m_rights <br>";
// S'il manque une info, accès interdit
if (!$this->m_loginid || !$this->m_login || !$this->m_name || !$this->m_rights) {
$GLOBAL_ERRORMESSAGE .= "Access forbidden - Missing informations about the user";
stopSession();
return(false);
}
else return(true);
}
function changeCheckboxToDec($arraybox) {
for ($i=0; $i < $this->m_sizebinstr; $i++) { // Potentiel de 32 checkboxes dans le tableau
if ($arraybox[$i] == "on") $str .= "1";
else $str .= "0";
}
return(bindec(strrev($str)));
}
// Vérifie l'adresse IP selon le format x.x.x.x
// Retourne TRUE si bon format. FALSE sinon.
function checkIpAddress() {
$ip = getIPAddress();
$addr_bd = explode(".", $this->m_ip);
$addr_ip = explode(".", $ip);
$sizetab = sizeof($addr_ip);
// On procède à la vérification
for ($i=0; $i < $sizetab; $i++) {
if (is_numeric($addr_bd[$i]) && $addr_ip[$i] != $addr_bd[$i]) {
return(false);
}
}
return(true);
}
// On vérifie la validité de la session
function checkSessionAtLogin() {
global $GLOBAL_ERRORMESSAGE;
// print("We are beginning the checkSessionAtLogin()<br>");
// On insère les données dans la table access_session.
// Si elle existe déjà, on update la date seulement.
$today=gmdate("YmdHis", time());
if ($this->strIsInDb($this->m_loginid, "select id from abc_access_sessions where id='%s'")) {
$sql = "update abc_access_sessions set date='$today',sessionid='".$GLOBALS["SESSION_ID"]."' where id='$this->m_loginid'";
$db_query = tep_db_query($sql);
}
else { // On insère les données dans la table access_session.
$sql = "insert into abc_access_sessions (id,date,sessionid) values ('$this->m_loginid','$today','".$GLOBALS["SESSION_ID"]."')";
$db_query = tep_db_query($sql);
}
// Si tout s'est bien passé, l'user peut voir la page
return(true);
}
// On vérifie la validité de la session
function checkSessionInPages() {
global $GLOBAL_ERRORMESSAGE;
// print("We are beginning the checkSessionInPages()<br>");
// 1- On vérifie si le session_id existe. Si non, LOGOUT.
if ($GLOBALS["SESSION_ID"] == "") {
$GLOBAL_ERRORMESSAGE .= "Session ID is missing";
stopSession();
return(false); // Accès interdit car pas de session
}
// 2- Vérification de la date
$sql = "select UNIX_TIMESTAMP(date) from abc_access_sessions where sessionid='".$GLOBALS["SESSION_ID"]."'";
$db_query = tep_db_query($sql);
if (tep_db_num_rows($db_query)) {
$res = tep_db_fetch_array($db_query);
}
$datetime = $res[0];
tep_db_free_result($db_query);
if ((gmdate("U", time())-$datetime) > 14400) {
$GLOBAL_ERRORMESSAGE .= "Session expired";
stopSession();
return(false); // Accès interdit car temps dépassé
}
// 3- On update les données dans la table accesssession.
$today=gmdate("YmdHis", time());
$sql = "update abc_access_sessions set date='$today' where sessionid='".$GLOBALS["SESSION_ID"]."'";
$db_query = tep_db_query($sql);
// Si tout s'est bien passé, l'usager peut voir la page
return(true);
}
}
?>
|
Please help me again. Thank you very much.
|
|
|
04-04-2005, 10:29 AM
|
#10
|
LQ Guru
Registered: Mar 2004
Distribution: Slackware
Posts: 6,797
|
Ok, fine
now replace all :
PHP Code:
$GLOBALS["SESSION_ID"]
with:
PHP Code:
$_SESSION["SESSION_ID"]
|
|
|
04-05-2005, 12:34 AM
|
#11
|
Member
Registered: Mar 2005
Posts: 146
Original Poster
Rep:
|
Quote:
Ok, fine
now replace all :
PHP:
$GLOBALS["SESSION_ID"]
with:
PHP:
$_SESSION["SESSION_ID"]
|
Thanks for your idea,
however it still can't work  (. I really don't understand why. The provider said that the cause is my PHP configuration, and they also send me the phpinfo.php. I will send for you.
--- First: phpinfo.php from my provider
Quote:
PHP Version 4.3.2
System Linux kiyoko.mdc.gameloft.org 2.4.21-9.0.3.ELsmp #1 SMP Fri Apr 23 11:38:05 EDT 2004 i686
Build Date Mar 9 2004 21:01:03
Configure Command './configure' '--host=i686-pc-linux-gnu' '--build=i686-pc-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db4=/usr' '--with-curl' '--with-dom=/usr' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-ttf' '--with-gdbm' '--with-gettext' '--with-ncurses' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-regex=system' '--with-xml' '--with-expat-dir=/usr' '--with-pcre=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--with-snmp=shared,/usr' '--with-snmp=shared' '--enable-ucd-snmp-hack' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-discard-path' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--without-oci8' '--with-pear=/usr/share/pear' '--with-imap=shared' '--with-imap-ssl' '--with-kerberos=/usr/kerberos' '--with-ldap=shared' '--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-unixODBC=shared' '--enable-memory-limit' '--enable-bcmath' '--enable-shmop' '--enable-versioning' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mcal' '--with-apxs2filter=/usr/sbin/apxs'
Server API Apache 2.0 Filter
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php.ini
Scan this dir for additional .ini files /etc/php.d
additional .ini files parsed /etc/php.d/mysql.ini
PHP API 20020918
PHP Extension 20020429
Zend Extension 20021010
Debug Build no
Thread Safety disabled
Registered PHP Streams php, http, ftp, https, ftps, compress.bzip2, compress.zlib
This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies
Configuration
PHP Core
Directive Local Value Master Value
allow_call_time_pass_reference On On
allow_url_fopen On On
always_populate_raw_post_data Off Off
arg_separator.input & &
arg_separator.output & &
asp_tags Off Off
auto_append_file no value no value
auto_prepend_file no value no value
browscap no value no value
default_charset no value no value
default_mimetype text/html text/html
define_syslog_variables Off Off
disable_classes no value no value
disable_functions no value no value
display_errors On On
display_startup_errors Off Off
doc_root no value no value
docref_ext no value no value
docref_root no value no value
enable_dl On On
error_append_string no value no value
error_log no value no value
error_prepend_string no value no value
error_reporting 2039 2039
expose_php Off Off
extension_dir /usr/lib/php4 /usr/lib/php4
file_uploads On On
gpc_order GPC GPC
highlight.bg #FFFFFF #FFFFFF
highlight.comment #FF8000 #FF8000
highlight.default #0000BB #0000BB
highlight.html #000000 #000000
highlight.keyword #007700 #007700
highlight.string #DD0000 #DD0000
html_errors On On
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off
include_path .:/usr/share/pear .:/usr/share/pear
log_errors On On
log_errors_max_len 1024 1024
magic_quotes_gpc On On
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
max_execution_time 30 30
max_input_time 60 60
memory_limit 16M 16M
open_basedir no value no value
output_buffering no value no value
output_handler no value no value
post_max_size 12M 12M
precision 14 14
register_argc_argv On On
register_globals On On
report_memleaks On On
safe_mode Off Off
safe_mode_exec_dir no value no value
safe_mode_gid Off Off
safe_mode_include_dir no value no value
sendmail_from me@localhost.com me@localhost.com
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
serialize_precision 100 100
short_open_tag On On
SMTP localhost localhost
smtp_port 25 25
sql.safe_mode Off Off
track_errors Off Off
unserialize_callback_func no value no value
upload_max_filesize 50M 50M
upload_tmp_dir /var/www/tmp /var/www/tmp
user_dir no value no value
variables_order EGPCS EGPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
y2k_compliance On On
apache2filter
bcmath
BCMath support enabled
bz2
BZip2 Support Enabled
BZip2 Version 1.0.2, 30-Dec-2001
calendar
Calendar support enabled
ctype
ctype functions enabled
curl
CURL support enabled
CURL Information libcurl/7.10.6 OpenSSL/0.9.7a ipv6 zlib/1.1.4
dba
DBA support enabled
Supported handlers gdbm cdb cdb_make db4 flatfile
dbx
dbx support enabled
dbx version 1.0.0
supported databases MySQL ODBC PostgreSQL Microsoft SQL Server FrontBase Oracle 8 (oci8) Sybase-CT
Directive Local Value Master Value
dbx.colnames_case unchanged unchanged
dio
dio support enabled
domxml
DOM/XML enabled
DOM/XML API Version 20020815
libxml Version 20510
HTML Support enabled
XPath Support enabled
XPointer Support enabled
exif
EXIF Support enabled
EXIF Version 1.4 $Id: exif.c,v 1.118.2.19 2003/04/16 18:25:35 helly Exp $
Supported EXIF Version 0220
Supported filetypes JPEG,TIFF
ftp
FTP support enabled
gd
GD Support enabled
GD Version bundled (2.0.12 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
gettext
GetText Support enabled
gmp
gmp support enabled
iconv
iconv support enabled
iconv implementation glibc
iconv library version 2.3.2
Directive Local Value Master Value
iconv.input_encoding ISO-8859-1 ISO-8859-1
iconv.internal_encoding ISO-8859-1 ISO-8859-1
iconv.output_encoding ISO-8859-1 ISO-8859-1
mbstring
Multibyte Support enabled
Japanese support enabled
Multibyte (japanese) regex support enabled
mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.
Directive Local Value Master Value
mbstring.detect_order no value no value
mbstring.encoding_translation Off Off
mbstring.func_overload 0 0
mbstring.http_input pass pass
mbstring.http_output pass pass
mbstring.internal_encoding none none
mbstring.language neutral neutral
mbstring.substitute_character no value no value
mysql
MySQL Support enabled
Active Persistent Links 1
Active Links 1
Client API version 4.0.18
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient
Directive Local Value Master Value
mysql.allow_persistent On On
mysql.connect_timeout -1 -1
mysql.default_host no value no value
mysql.default_password no value no value
mysql.default_port no value no value
mysql.default_socket no value no value
mysql.default_user no value no value
mysql.max_links Unlimited Unlimited
mysql.max_persistent Unlimited Unlimited
mysql.trace_mode Off Off
openssl
OpenSSL support enabled
OpenSSL Version OpenSSL 0.9.7a Feb 19 2003
overload
User-Space Object Overloading Support enabled
pcre
PCRE (Perl Compatible Regular Expressions) Support enabled
PCRE Library Version 3.92 11-Sep-2002
posix
Revision $Revision: 1.51.2.2 $
pspell
PSpell Support enabled
session
Session Support enabled
Registered save handlers files user
Directive Local Value Master Value
session.auto_start Off Off
session.bug_compat_42 Off Off
session.bug_compat_warn Off Off
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 100 100
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /var/www/php-sessions /var/www/php-sessions
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid Off Off
shmop
shmop support enabled
sockets
Sockets Support enabled
standard
Regex Library Bundled library enabled
Dynamic Library Support enabled
Path to sendmail /usr/sbin/sendmail -t -i
Directive Local Value Master Value
assert.active 1 1
assert.bail 0 0
assert.callback no value no value
assert.quiet_eval 0 0
assert.warning 1 1
auto_detect_line_endings 0 0
default_socket_timeout 60 60
safe_mode_allowed_env_vars PHP_ PHP_
safe_mode_protected_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATH
url_rewriter.tags a=href,area=href,frame=src,input=src,form=,fieldset= a=href,area=href,frame=src,input=src,form=,fieldset=
user_agent no value no value
tokenizer
Tokenizer Support enabled
wddx
WDDX Support enabled
WDDX Session Serializer enabled
xml
XML Support active
XML Namespace Support active
EXPAT Version expat_1.95.5
yp
YP Support enabled
zlib
ZLib Support enabled
Compiled Version 1.1.4
Linked Version 1.1.4
Directive Local Value Master Value
zlib.output_compression On On
zlib.output_compression_level -1 -1
zlib.output_handler no value no value
Additional Modules
Module Name
sysvsem
sysvshm
Environment
Variable Value
HOSTNAME kiyoko.mdc.gameloft.org
SHELL /bin/bash
TERM xterm
HISTSIZE 1000
SSH_CLIENT 10.136.192.222 32851 22
SSH_TTY /dev/pts/0
USER root
LS_COLORS no=00:fi=00:di=00;34:ln=00;36 i=40;33:so=00;35:bd=40;33;01:cd=40;33;01 r=01;05;37;41:mi=01;05;37;4 1:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar= 00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.b z2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00 ;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
TMOUT 1800
USERNAME root
PATH /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
MAIL /var/spool/mail/root
PWD /etc/httpd/conf/virtual-hosts
INPUTRC /etc/inputrc
LANG en_CA.UTF-8
HOME /root
SHLVL 2
BASH_ENV /root/.bashrc
LOGNAME root
SSH_CONNECTION 10.136.192.222 32851 10.136.0.201 22
LESSOPEN |/usr/bin/lesspipe.sh %s
G_BROKEN_FILENAMES 1
_ /sbin/initlog
PHP Variables
Variable Value
PHP_SELF /info.php
_REQUEST["GameloftQA"] JsKQu4mgCiMWMV70ldbU7ASlprbgfWXq
_COOKIE["GameloftQA"] JsKQu4mgCiMWMV70ldbU7ASlprbgfWXq
_SERVER["HTTP_HOST"] gwt.gameloft.com
_SERVER["HTTP_USER_AGENT"] Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050317 Firefox/1.0.2
_SERVER["HTTP_ACCEPT"] text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
_SERVER["HTTP_ACCEPT_LANGUAGE"] en-us,en;q=0.5
_SERVER["HTTP_ACCEPT_ENCODING"] gzip,deflate
_SERVER["HTTP_ACCEPT_CHARSET"] ISO-8859-1,utf-8;q=0.7,*;q=0.7
_SERVER["HTTP_KEEP_ALIVE"] 300
_SERVER["HTTP_CONNECTION"] keep-alive
_SERVER["HTTP_COOKIE"] GameloftQA=JsKQu4mgCiMWMV70ldbU7ASlprbgfWXq
_SERVER["PATH"] /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
_SERVER["SERVER_SIGNATURE"] <address>Apache Server at gwt.gameloft.com Port 80</address>
_SERVER["SERVER_SOFTWARE"] Apache
_SERVER["SERVER_NAME"] gwt.gameloft.com
_SERVER["SERVER_ADDR"] 10.136.0.206
_SERVER["SERVER_PORT"] 80
_SERVER["REMOTE_ADDR"] 216.98.57.65
_SERVER["DOCUMENT_ROOT"] /var/www/shops/gwt.gameloft.com/www
_SERVER["SERVER_ADMIN"] root@ubisoft.qc.ca
_SERVER["SCRIPT_FILENAME"] /var/www/shops/gwt.gameloft.com/www/info.php
_SERVER["REMOTE_PORT"] 2313
_SERVER["GATEWAY_INTERFACE"] CGI/1.1
_SERVER["SERVER_PROTOCOL"] HTTP/1.1
_SERVER["REQUEST_METHOD"] GET
_SERVER["QUERY_STRING"] no value
_SERVER["REQUEST_URI"] /info.php
_SERVER["SCRIPT_NAME"] /info.php
_SERVER["PHP_SELF"] /info.php
_SERVER["PATH_TRANSLATED"] /var/www/shops/gwt.gameloft.com/www/info.php
_SERVER["argv"]
Array
(
)
_SERVER["argc"] 0
_ENV["HOSTNAME"] kiyoko.mdc.gameloft.org
_ENV["SHELL"] /bin/bash
_ENV["TERM"] xterm
_ENV["HISTSIZE"] 1000
_ENV["SSH_CLIENT"] 10.136.192.222 32851 22
_ENV["SSH_TTY"] /dev/pts/0
_ENV["USER"] root
_ENV["LS_COLORS"] no=00:fi=00:di=00;34:ln=00;36 i=40;33:so=00;35:bd=40;33;01:cd=40;33;01 r=01;05;37;41:mi=01;05;37;4 1:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar= 00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.b z2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00 ;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
_ENV["TMOUT"] 1800
_ENV["USERNAME"] root
_ENV["PATH"] /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
_ENV["MAIL"] /var/spool/mail/root
_ENV["PWD"] /etc/httpd/conf/virtual-hosts
_ENV["INPUTRC"] /etc/inputrc
_ENV["LANG"] en_CA.UTF-8
_ENV["HOME"] /root
_ENV["SHLVL"] 2
_ENV["BASH_ENV"] /root/.bashrc
_ENV["LOGNAME"] root
_ENV["SSH_CONNECTION"] 10.136.192.222 32851 10.136.0.201 22
_ENV["LESSOPEN"] |/usr/bin/lesspipe.sh %s
_ENV["G_BROKEN_FILENAMES"] 1
_ENV["_"] /sbin/initlog
PHP License
This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact license@php.net.
|
|
|
|
04-05-2005, 12:36 AM
|
#12
|
Member
Registered: Mar 2005
Posts: 146
Original Poster
Rep:
|
And here is my phpinfo.php
Quote:
PHP Version 4.3.9
System Linux bee 2.6.9-5.EL #1 Wed Jan 5 19:22:18 EST 2005 i686
Build Date Nov 24 2004 08:49:16
Configure Command './configure' '--build=i386-redhat-linux' '--host=i386-redhat-linux' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db4=/usr' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd=shared' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-ncurses=shared' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-xml' '--with-expat-dir=/usr' '--with-dom=shared,/usr' '--with-dom-xslt=/usr' '--with-dom-exslt=/usr' '--with-xmlrpc=shared' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-pear=/usr/share/pear' '--with-imap=shared' '--with-imap-ssl' '--with-kerberos' '--with-ldap=shared' '--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-snmp=shared,/usr' '--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-unixODBC=shared,/usr' '--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mbstring=shared' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mime-magic=/usr/share/file/magic.mime' '--with-apxs2=/usr/sbin/apxs'
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php.ini
Scan this dir for additional .ini files /etc/php.d
additional .ini files parsed /etc/php.d/ldap.ini, /etc/php.d/mysql.ini, /etc/php.d/odbc.ini, /etc/php.d/pgsql.ini
PHP API 20020918
PHP Extension 20020429
Zend Extension 20021010
Debug Build no
Thread Safety disabled
Registered PHP Streams php, http, ftp, https, ftps, compress.bzip2, compress.zlib
Zend logo This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
PHP Credits
Configuration
PHP Core
Directive Local Value Master Value
allow_call_time_pass_reference On On
allow_url_fopen On On
always_populate_raw_post_data Off Off
arg_separator.input & &
arg_separator.output & &
asp_tags Off Off
auto_append_file no value no value
auto_prepend_file no value no value
browscap no value no value
default_charset no value no value
default_mimetype text/html text/html
define_syslog_variables Off Off
disable_classes no value no value
disable_functions no value no value
display_errors Off Off
display_startup_errors On On
doc_root no value no value
docref_ext no value no value
docref_root no value no value
enable_dl On On
error_append_string no value no value
error_log no value no value
error_prepend_string no value no value
error_reporting 2047 2047
expose_php On On
extension_dir /usr/lib/php4 /usr/lib/php4
file_uploads On On
gpc_order GPC GPC
highlight.bg #FFFFFF #FFFFFF
highlight.comment #FF8000 #FF8000
highlight.default #0000BB #0000BB
highlight.html #000000 #000000
highlight.keyword #007700 #007700
highlight.string #DD0000 #DD0000
html_errors On On
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off
include_path .:/usr/share/pear .:/usr/share/pear
log_errors On On
log_errors_max_len 1024 1024
magic_quotes_gpc Off Off
magic_quotes_runtime Off Off
magic_quotes_sybase On On
max_execution_time 30 30
max_input_time 60 60
memory_limit 8M 8M
open_basedir no value no value
output_buffering no value no value
output_handler no value no value
post_max_size 8M 8M
precision 14 14
register_argc_argv On On
register_globals Off Off
report_memleaks On On
safe_mode Off Off
safe_mode_exec_dir no value no value
safe_mode_gid Off Off
safe_mode_include_dir no value no value
sendmail_from no value no value
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
serialize_precision 100 100
short_open_tag On On
SMTP localhost localhost
smtp_port 25 25
sql.safe_mode Off Off
track_errors Off Off
unserialize_callback_func no value no value
upload_max_filesize 2M 2M
upload_tmp_dir no value no value
user_dir no value no value
variables_order EGPCS EGPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
y2k_compliance On On
apache2handler
Apache Version Apache/2.0.52 (Red Hat)
Apache API Version 20020903
Server Administrator root@localhost
Hostname:Port 192.168.16.20:0
User/Group apache(48)/48
Max Requests Per Child: 4000 - Keep Alive: off - Max Per Connection: 100
Timeouts Connection: 120 - Keep-Alive: 15
Virtual Server No
Server Root /etc/httpd
Loaded Modules core prefork http_core mod_so mod_access mod_auth mod_auth_anon mod_auth_dbm mod_auth_digest util_ldap mod_auth_ldap mod_include mod_log_config mod_env mod_mime_magic mod_cern_meta mod_expires mod_deflate mod_headers mod_usertrack mod_setenvif mod_mime mod_dav mod_status mod_autoindex mod_asis mod_info mod_dav_fs mod_vhost_alias mod_negotiation mod_dir mod_imap mod_actions mod_speling mod_userdir mod_alias mod_rewrite mod_proxy proxy_ftp proxy_http proxy_connect mod_cache mod_suexec mod_disk_cache mod_file_cache mod_mem_cache mod_cgi mod_auth_kerb mod_auth_mysql mod_auth_pgsql mod_authz_ldap mod_perl sapi_apache2 mod_python mod_ssl
Directive Local Value Master Value
engine 1 1
last_modified 0 0
xbithack 0 0
Apache Environment
Variable Value
HTTP_HOST 192.168.16.20
HTTP_USER_AGENT Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041215 Firefox/1.0 Red Hat/1.0-12.EL4
HTTP_ACCEPT text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
HTTP_ACCEPT_LANGUAGE en-us,en;q=0.5
HTTP_ACCEPT_ENCODING gzip,deflate
HTTP_ACCEPT_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_KEEP_ALIVE 300
HTTP_COOKIE GameloftQA=EdYl0bHFVbH33YLr39dkYyhAaj2Li16w
HTTP_VIA 1.1 redbee.gameloftvn.com:8008 (squid/2.5.STABLE6)
HTTP_X_FORWARDED_FOR 192.168.16.20
HTTP_CACHE_CONTROL max-age=259200
HTTP_CONNECTION keep-alive
PATH /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
SERVER_SIGNATURE <address>Apache/2.0.52 (Red Hat) Server at 192.168.16.20 Port 80</address>
SERVER_SOFTWARE Apache/2.0.52 (Red Hat)
SERVER_NAME 192.168.16.20
SERVER_ADDR 192.168.16.20
SERVER_PORT 80
REMOTE_ADDR 192.168.16.10
DOCUMENT_ROOT /var/www/html
SERVER_ADMIN root@localhost
SCRIPT_FILENAME /var/www/html/qa/phpinfo.php
REMOTE_PORT 48477
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.0
REQUEST_METHOD GET
QUERY_STRING no value
REQUEST_URI /qa/phpinfo.php
SCRIPT_NAME /qa/phpinfo.php
HTTP Headers Information
HTTP Request Headers
HTTP Request GET /qa/phpinfo.php HTTP/1.0
Host 192.168.16.20
User-Agent Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041215 Firefox/1.0 Red Hat/1.0-12.EL4
Accept text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language en-us,en;q=0.5
Accept-Encoding gzip,deflate
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive 300
Cookie GameloftQA=EdYl0bHFVbH33YLr39dkYyhAaj2Li16w
Via 1.1 redbee.gameloftvn.com:8008 (squid/2.5.STABLE6)
X-Forwarded-For 192.168.16.20
Cache-Control max-age=259200
Connection keep-alive
HTTP Response Headers
X-Powered-By PHP/4.3.9
Connection close
Content-Type text/html; charset=UTF-8
bcmath
BCMath support enabled
bz2
BZip2 Support Enabled
BZip2 Version 1.0.2, 30-Dec-2001
calendar
Calendar support enabled
ctype
ctype functions enabled
curl
CURL support enabled
CURL Information libcurl/7.12.1 OpenSSL/0.9.7a zlib/1.2.1.2 libidn/0.5.6
dba
DBA support enabled
Supported handlers cdb cdb_make db4 inifile flatfile
dbx
dbx support enabled
dbx version 1.0.0
supported databases MySQL ODBC PostgreSQL Microsoft SQL Server FrontBase Oracle 8 (oci8) Sybase-CT
Directive Local Value Master Value
dbx.colnames_case lowercase lowercase
dio
dio support enabled
exif
EXIF Support enabled
EXIF Version 1.4 $Id: exif.c,v 1.118.2.27 2003/12/17 09:08:37 helly Exp $
Supported EXIF Version 0220
Supported filetypes JPEG,TIFF
ftp
FTP support enabled
gettext
GetText Support enabled
gmp
gmp support enabled
iconv
iconv support enabled
iconv implementation glibc
iconv library version 2.3.4
Directive Local Value Master Value
iconv.input_encoding ISO-8859-1 ISO-8859-1
iconv.internal_encoding ISO-8859-1 ISO-8859-1
iconv.output_encoding ISO-8859-1 ISO-8859-1
ldap
LDAP Support enabled
RCS Version $Id: ldap.c,v 1.130.2.10 2004/06/01 21:05:33 iliaa Exp $
Total Links 0/unlimited
API Version 3001
Vendor Name OpenLDAP
Vendor Version 20213
mime_magic
mime_magic support enabled
Directive Local Value Master Value
mime_magic.magicfile /usr/share/file/magic.mime /usr/share/file/magic.mime
mysql
MySQL Support enabled
Active Persistent Links 0
Active Links 0
Client API version 4.1.7
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib/mysql -lmysqlclient
Directive Local Value Master Value
mysql.allow_persistent On On
mysql.connect_timeout 60 60
mysql.default_host no value no value
mysql.default_password no value no value
mysql.default_port no value no value
mysql.default_socket no value no value
mysql.default_user no value no value
mysql.max_links Unlimited Unlimited
mysql.max_persistent Unlimited Unlimited
mysql.trace_mode Off Off
odbc
ODBC Support enabled
Active Persistent Links 0
Active Links 0
ODBC library unixODBC
ODBC_INCLUDE -I/usr/include
ODBC_LFLAGS -L/usr/lib
ODBC_LIBS -lodbc
Directive Local Value Master Value
odbc.allow_persistent On On
odbc.check_persistent On On
odbc.default_db no value no value
odbc.default_pw no value no value
odbc.default_user no value no value
odbc.defaultbinmode return as is return as is
odbc.defaultlrl return up to 4096 bytes return up to 4096 bytes
odbc.max_links Unlimited Unlimited
odbc.max_persistent Unlimited Unlimited
openssl
OpenSSL support enabled
OpenSSL Version OpenSSL 0.9.7a Feb 19 2003
overload
User-Space Object Overloading Support enabled
pcre
PCRE (Perl Compatible Regular Expressions) Support enabled
PCRE Library Version 4.5 01-December-2003
pgsql
PostgreSQL Support enabled
PostgreSQL(libpq) Version 7.4.6
Multibyte character support enabled
SSL support enabled
Active Persistent Links 0
Active Links 0
Directive Local Value Master Value
pgsql.allow_persistent On On
pgsql.auto_reset_persistent Off Off
pgsql.ignore_notice Off Off
pgsql.log_notice Off Off
pgsql.max_links Unlimited Unlimited
pgsql.max_persistent Unlimited Unlimited
posix
Revision $Revision: 1.51.2.2 $
pspell
PSpell Support enabled
session
Session Support enabled
Registered save handlers files user
Directive Local Value Master Value
session.auto_start Off Off
session.bug_compat_42 On On
session.bug_compat_warn On On
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 100 100
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /var/lib/php/session /var/lib/php/session
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid Off Off
shmop
shmop support enabled
sockets
Sockets Support enabled
standard
Regex Library Bundled library enabled
Dynamic Library Support enabled
Path to sendmail /usr/sbin/sendmail -t -i
Directive Local Value Master Value
assert.active 1 1
assert.bail 0 0
assert.callback no value no value
assert.quiet_eval 0 0
assert.warning 1 1
auto_detect_line_endings 0 0
default_socket_timeout 60 60
safe_mode_allowed_env_vars PHP_ PHP_
safe_mode_protected_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATH
url_rewriter.tags a=href,area=href,frame=src,input=src,form=fakeentry a=href,area=href,frame=src,input=src,form=fakeentry
user_agent no value no value
tokenizer
Tokenizer Support enabled
wddx
WDDX Support enabled
WDDX Session Serializer enabled
xml
XML Support active
XML Namespace Support active
EXPAT Version expat_1.95.7
yp
YP Support enabled
zlib
ZLib Support enabled
Compiled Version 1.2.1.2
Linked Version 1.2.1.2
Directive Local Value Master Value
zlib.output_compression Off Off
zlib.output_compression_level -1 -1
zlib.output_handler no value no value
Additional Modules
Module Name
sysvsem
sysvshm
Environment
Variable Value
LANG C
TERM xterm
PATH /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
PWD /
SHLVL 1
GTK_IM_MODULE xim
_ /sbin/initlog
PHP Variables
Variable Value
_REQUEST["GameloftQA"] EdYl0bHFVbH33YLr39dkYyhAaj2Li16w
_COOKIE["GameloftQA"] EdYl0bHFVbH33YLr39dkYyhAaj2Li16w
_SERVER["HTTP_HOST"] 192.168.16.20
_SERVER["HTTP_USER_AGENT"] Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041215 Firefox/1.0 Red Hat/1.0-12.EL4
_SERVER["HTTP_ACCEPT"] text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
_SERVER["HTTP_ACCEPT_LANGUAGE"] en-us,en;q=0.5
_SERVER["HTTP_ACCEPT_ENCODING"] gzip,deflate
_SERVER["HTTP_ACCEPT_CHARSET"] ISO-8859-1,utf-8;q=0.7,*;q=0.7
_SERVER["HTTP_KEEP_ALIVE"] 300
_SERVER["HTTP_COOKIE"] GameloftQA=EdYl0bHFVbH33YLr39dkYyhAaj2Li16w
_SERVER["HTTP_VIA"] 1.1 redbee.gameloftvn.com:8008 (squid/2.5.STABLE6)
_SERVER["HTTP_X_FORWARDED_FOR"] 192.168.16.20
_SERVER["HTTP_CACHE_CONTROL"] max-age=259200
_SERVER["HTTP_CONNECTION"] keep-alive
_SERVER["PATH"] /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
_SERVER["SERVER_SIGNATURE"] <address>Apache/2.0.52 (Red Hat) Server at 192.168.16.20 Port 80</address>
_SERVER["SERVER_SOFTWARE"] Apache/2.0.52 (Red Hat)
_SERVER["SERVER_NAME"] 192.168.16.20
_SERVER["SERVER_ADDR"] 192.168.16.20
_SERVER["SERVER_PORT"] 80
_SERVER["REMOTE_ADDR"] 192.168.16.10
_SERVER["DOCUMENT_ROOT"] /var/www/html
_SERVER["SERVER_ADMIN"] root@localhost
_SERVER["SCRIPT_FILENAME"] /var/www/html/qa/phpinfo.php
_SERVER["REMOTE_PORT"] 48477
_SERVER["GATEWAY_INTERFACE"] CGI/1.1
_SERVER["SERVER_PROTOCOL"] HTTP/1.0
_SERVER["REQUEST_METHOD"] GET
_SERVER["QUERY_STRING"] no value
_SERVER["REQUEST_URI"] /qa/phpinfo.php
_SERVER["SCRIPT_NAME"] /qa/phpinfo.php
_SERVER["PHP_SELF"] /qa/phpinfo.php
_SERVER["PATH_TRANSLATED"] /var/www/html/qa/phpinfo.php
_SERVER["argv"]
Array
(
)
_SERVER["argc"] 0
_ENV["LANG"] C
_ENV["TERM"] xterm
_ENV["PATH"] /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
_ENV["PWD"] /
_ENV["SHLVL"] 1
_ENV["GTK_IM_MODULE"] xim
_ENV["_"] /sbin/initlog
PHP License
This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact license@php.net.
|
Please help me solve the problem. Thank you very much.
|
|
|
04-05-2005, 07:34 AM
|
#13
|
LQ Guru
Registered: Mar 2004
Distribution: Slackware
Posts: 6,797
|
That's what I tought, you have register_globals set to Off, which mean you can't call your sessions variables
with their global names but with the $_SESSION[] Array instead.
Please ask before posting complete output as this, the thread is unreadable now
In /abc/access.php :
change all :
$GLOBAL[XXX]
with:
$_SESSION[XXX]
|
|
|
04-05-2005, 07:43 AM
|
#14
|
Member
Registered: Mar 2005
Posts: 146
Original Poster
Rep:
|
Thanks for your help again,
however i'm really sorry, it doesn't work  (
Do you have some mistake with me?
Please help me. And thanks for advanced.
|
|
|
All times are GMT -5. The time now is 04:05 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|