Du må være registrert og logget inn for å kunne legge ut innlegg på freak.no
X
LOGG INN
... eller du kan registrere deg nå
Dette nettstedet er avhengig av annonseinntekter for å holde driften og videre utvikling igang. Vi liker ikke reklame heller, men alternativene er ikke mange. Vær snill å vurder å slå av annonseblokkering, eller å abonnere på en reklamefri utgave av nettstedet.
  4 854
http://img529.imageshack.us/img529/7431/screenshotzm2.jpg
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
DET ER SÅNN DEN BURDE SE UT

Kode

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>Teamspeak Display Demo</title>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
		<link href="http://www.freewebs.com/top3ranks/main.css" rel="stylesheet" type="text/css">
		<link href="http://www.freewebs.com/top3ranks/teamspeakdisplay.css" rel="stylesheet" type="text/css">
<?php
	if (isset($_GET['autorefresh'])) {
		$autorefresh = $_GET['autorefresh'];
	} else {
		$autorefresh = 0;
	}
	if ($autorefresh == 1) {
		echo("		<meta http-equiv=\"refresh\" content=\"10; URL=" . $_SERVER["PHP_SELF"] . "?autorefresh=1\">\n");
	}
?>
	</head>
	<body>
		<h1>GangstaParadise [Gp] Clan</h1>
<?php
	// The code between the 2 lines below turns on PHPs error handlers.
	// Uncomment it for debugging purposes, but leave commented in live
	// environments. Having your script running in a live environment with the
	// error handlers turned on, decreases your sites security as a warning may
	// reveal information used to exploit security holes in your site.
	//================== BEGIN OF ERROR REPORTING CODE ====================
	//echo("<span style=\"color: #dd0000; font-weight: bold\">Error reporting ");
	//echo("is currently on. Turn it off in live environments !</span><br><br>\n");
	//error_reporting(E_ALL);
	//ini_set("display_errors", "1");
	//ini_set("display_startup_errors", "1");
	//ini_set("ignore_repeated_errors", "0");
	//ini_set("ignore_repeated_source", "0");
	//ini_set("report_memleaks", "1");
	//ini_set("track_errors", "1");
	//ini_set("html_errors", "1");
	//ini_set("warn_plus_overloading", "1");
	//================== END OF ERROR REPORTING CODE ======================
	
	// Load the Teamspeak Display:
	require("http://www.freewebs.com/top3ranks/teamspeakdisplay.php");
	
	// Get the default settings
	$settings = $teamspeakDisplay->getDefaultSettings();
	
	//================== BEGIN OF CONFIGURATION CODE ======================
	
	// Set the teamspeak server IP or Hostname below (DO NOT INCLUDE THE
	// PORT NUMBER):
	$settings["88.90.130.212"] = "";
	
	// If your you use another port than 8767 to connect to your teamspeak
	// server using a teamspeak client, then uncomment the line below and
	// set the correct teamspeak port:
	//$settings["8767"] = 8767;
	
	// If your teamspeak server uses another query port than 51234, then
	// uncomment the line below and set the teamspeak query port of your
	// server (look in the server.ini of your teamspeak server for this
	// portnumber):
	//$settings["51234"] = 51234;
	
	// If you want to limit the display to only one channel including it's
	// players and subchannels, uncomment the following line and set the
	// exact name of the channel. This feature is case-sensitive!
	//$settings["limitchannel"] = "";
	
	// If your teamspeak server uses another set of forbidden nickname
	// characters than "()[]{}" (look in your server.ini for this setting),
	// then uncomment the following line and set the correct set of
	// forbidden nickname characters:
	//$settings["forbiddennicknamechars"] = "()[]{}";
	
	//================== END OF CONFIGURATION CODE ========================
	
	// Is the script improperly configured?
	if ($settings["88.90.130.212"] == "8767") { die("You need to configure this script as described inside the CONFIGURATION CODE block in " . $_SERVER["PHP_SELF"] . "<br>\n"); }
	
	// Display the Teamspeak server
	$teamspeakDisplay->displayTeamspeakEx($settings);
	
	// Display autorefresh status and control link:
	echo("<br>\n");
	if ($autorefresh == 0) {
		echo("Autorefresh: Off (<a href=\"" . $_SERVER["PHP_SELF"] . "?autorefresh=1\">Turn on</a>)<br>\n");
	} else if ($autorefresh == 1) {
		echo("Autorefresh: On (<a href=\"" . $_SERVER["PHP_SELF"] . "?autorefresh=0\">Turn off</a>)<br>\n");
	}
?>
		<br>
så får jeg masse error på siden

Kode

\n"); } ?> 
GangstaParadise [Gp] Clan
Error reporting "); //echo("is currently on. Turn it off in live environments !

\n"); //error_reporting(E_ALL); //ini_set("display_errors", "1"); //ini_set("display_startup_errors", "1"); //ini_set("ignore_repeated_errors", "0"); //ini_set("ignore_repeated_source", "0"); //ini_set("report_memleaks", "1"); //ini_set("track_errors", "1"); //ini_set("html_errors", "1"); //ini_set("warn_plus_overloading", "1"); //================== END OF ERROR REPORTING CODE ====================== // Load the Teamspeak Display: require("http://www.freewebs.com/top3ranks/teamspeakdisplay.php"); // Get the default settings $settings = $teamspeakDisplay->getDefaultSettings(); //================== BEGIN OF CONFIGURATION CODE ====================== // Set the teamspeak server IP or Hostname below (DO NOT INCLUDE THE // PORT NUMBER): $settings["88.90.130.212"] = ""; // If your you use another port than 8767 to connect to your teamspeak // server using a teamspeak client, then uncomment the line below and // set the correct teamspeak port: //$settings["8767"] = 8767; // If your teamspeak server uses another query port than 51234, then // uncomment the line below and set the teamspeak query port of your // server (look in the server.ini of your teamspeak server for this // portnumber): //$settings["51234"] = 51234; // If you want to limit the display to only one channel including it's // players and subchannels, uncomment the following line and set the // exact name of the channel. This feature is case-sensitive! //$settings["limitchannel"] = ""; // If your teamspeak server uses another set of forbidden nickname // characters than "()[]{}" (look in your server.ini for this setting), // then uncomment the following line and set the correct set of // forbidden nickname characters: //$settings["forbiddennicknamechars"] = "()[]{}"; //================== END OF CONFIGURATION CODE ======================== // Is the script improperly configured? if ($settings["88.90.130.212"] == "8767") { die("You need to configure this script as described inside the CONFIGURATION CODE block in " . $_SERVER["PHP_SELF"] . "
\n"); } // Display the Teamspeak server $teamspeakDisplay->displayTeamspeakEx($settings); // Display autorefresh status and control link: echo("
\n"); if ($autorefresh == 0) { echo("Autorefresh: Off (Turn on)
\n"); } else if ($autorefresh == 1) { echo("Autorefresh: On (Turn off)
\n"); } ?>
kan noe være så snill og hjelpe meg, har prøvet dette lenge nå
Sist endret av eisval; 14. juni 2007 kl. 00:02.
Trigonoceps occipita
vidarlo's Avatar
Donor
Freewebs støtter neppe PHP, og det er ikkje feilmeldinger du får, men kildekoden.
eisval's Avatar
Trådstarter
ja fant ut det men vet du ikke om noen side som er gratis og hoste php. for da klarer jeg alt selv
eisval's Avatar
Trådstarter
http://phpnet.us/ fant en her unasett lol
TIPS: VELDIG BRA PHP SIDE

den her er den beste jeg har funnet hertil
Sist endret av eisval; 14. juni 2007 kl. 00:43.