Members: 16,996
Threads: 38,846
Posts: 159,391
Online: 23

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse
Old 07.08.2004, 04:43   #1 (permalink)
Expert Mamber
 
ApSpecialists's Avatar
 
Join Date: Apr 2004
Posts: 393
ApSpecialists is on a distinguished road
Default Environment Variables script

For those who are having issues with what you site's variables are, paste the following code into an empty file -- name the file with a php extension -- place the file in the same diretory you installed Mambo -- run the file in a browser.

Code:
<html>
<head>
<title>nVironmental Variables v.1.2 - NAGET.com</title>
</head>
<body bgcolor="#ffffff" text="#00000">
<font size="2" face="verdana" color="#000000">
NAGET Solutions(NAGET.com)<br>
<b>nVironmental Variables v.1.2</b><br><br>
<?php
$loading = "sub";

if($load == NULL){
	$load = $loading;
}

if($load == "sub"){

	echo("<a href=\"?load=phpinfo\">Click here to see even more info on your server!</a><br><br>
Here is a listing of the server's environmental variables-<br>");

	if(phpversion() >= 4.2) {

echo <<<naget
Visitor IP: $_SERVER[REMOTE_ADDR]<br>
Server Software: $_SERVER[SERVER_SOFTWARE]<br>
Gateway Interface: $_SERVER[GATEWAY_INTERFACE]<br>
Document Root: $_SERVER[DOCUMENT_ROOT]<br>
Server Protocal: $_SERVER[SERVER_PROTOCOL]<br>
Request Method: $_SERVER[REQUEST_METHOD]<br>
Remote Host: $_SERVER[REMOTE_HOST]<br>
HTTP Referer: $_SERVER[HTTP_REFERER]<br>
Query String: $_SERVER[QUERY_STRING]<br>
HTTP User Agent: $_SERVER[HTTP_USER_AGENT]<br>
Path: $_SERVER[PATH]<br>
HTTP Accept: $_SERVER[HTTP_ACCEPT]<br>
Remote Port: $_SERVER[REMOTE_PORT]<br>
HTTP Accept Language: $_SERVER[HTTP_ACCEPT_LANGUAGE]<br>
Script Name: $_SERVER[SCRIPT_NAME]<br>
Script Filename: $_SERVER[SCRIPT_FILENAME]<br>
HTTP Pragma: $_SERVER[HTTP_PRAGMA]<br>
Server Name: $_SERVER[SERVER_NAME]<br>
Request URI: $_SERVER[REQUEST_URI]<br>
HTTP Accept Charset: $_SERVER[HTTP_ACCEPT_CHARSET]<br>
Server Port: $_SERVER[SERVER_PORT]<br>
HTTP Host: $_SERVER[HTTP_HOST]<br>
Server Admin: $_SERVER[SERVER_ADMIN]");
naget;

	} else {

echo <<<naget
Visitor IP: $REMOTE_ADDR<br>
Server Software: $SERVER_SOFTWARE<br>
Gateway Interface: $GATEWAY_INTERFACE<br>
Document Root: $DOCUMENT_ROOT<br>
Server Protocal: $SERVER_PROTOCOL<br>
Request Method: $REQUEST_METHOD<br>
Remote Host: $REMOTE_HOST<br>
HTTP Referer: $HTTP_REFERER<br>
Query String: $QUERY_STRING<br>
HTTP User Agent: $HTTP_USER_AGENT<br>
Path: $PATH<br>
HTTP Accept: $HTTP_ACCEPT<br>
Remote Port: $REMOTE_PORT<br>
HTTP Accept Language: $HTTP_ACCEPT_LANGUAGE<br>
Script Name: $SCRIPT_NAME<br>
Script Filename: $SCRIPT_FILENAME<br>
HTTP Pragma: $HTTP_PRAGMA<br>
Server Name: $SERVER_NAME<br>
Request URI: $REQUEST_URI<br>
HTTP Accept Charset: $HTTP_ACCEPT_CHARSET<br>
Server Port: $SERVER_PORT<br>
HTTP Host: $HTTP_HOST<br>
Server Admin: $SERVER_ADMIN
naget;

	}
}

if($load == "phpinfo"){
	echo("<a href=\"env_vars.php?load=sub\">Click here to return to the main script page!</a><br><br>");
	echo phpinfo();
}

echo("<br><br><b>Know of something that can help improve this script? <a href=\"mailto:webmaster@naget.com?subject='ENV_VARS: Request Feature'\">Email it to me</a></b>");
?>
</font>
</body>
</html>
From: http://www.naget.com/
__________________
If I stop learning, close the lid... I'm dead
Mambo Hosting :: iNET Host Services
The Mambo Directory :: MamboVista
Templates :: Mambo-Corporate
ApSpecialists is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Here is a shell script to help you automate DB backups with cron Aaron Mambo 4.5 'How Do I' Questions 6 26.06.2005 15:15
Exporting variables from Mambo Adrian Sewell Mambo 4.5 'How Do I' Questions 0 31.07.2004 19:31
Script in site Gambino Mambo 4.5 General Talk 0 15.07.2004 11:29
LB Directory Script or component jknedler Component 'How Do I' Questions 0 06.07.2004 20:18
e107/PN Downloads -> Remository Conversion Script question MadJeff Component Development 2 08.04.2004 20:50


All times are GMT +2. The time now is 02:36.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.