IPB

Welcome Guest ( Log In | Register )

> Table of Content / Inhaltsverzeichnis

> ET:W - Servermonitor FAQ, How to integrate the sl.-servermonitor into your website
sl.Binaural
post Jun 14 2006, 10:13 AM
Post #1


Group Icon Chief_Translator

Group: RtCW/ET-Division

Joined: 26-September 04
From: Bonn, Germany
Member No.: 655




The Splatterladder gives you the possibility to run this little servermonitor on your website. Of course it is for free and without any obligation.


Features:
  • automated refresh without reloading the website
  • up to date mapinformation and download links
  • One-Click-Content
  • easy integration per javascript
You have to finish following steps:

1.Upload the attached file to your webspace. This file has to be located in the same directory as the site which runs the servermonitor.

2. Paste the following code into your website and change the given ip-adress to the one of your server.
CODE
<script language="JavaScript" src="http://et.splatterladder.com/export/servermon.js.php?ip=213.239.206.82:27960"></script>


3. So now you can lean back comfortable because you are running a cool servermonitor wich updates itself automatically, lets your users connect directly (with sl.-gamelauncher) and provides them with newsworthy mapinfos and downloads.

Check below how to add the server monitor to:
Attached File(s)
Attached File  sl_wrapper.php ( 216bytes ) Number of downloads: 5494
 
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
sl.Proddi
post Jun 14 2006, 10:56 AM
Post #2


Group Icon Chief_Software_Architect

Group: Management

Joined: 10-May 04
From: Germany
Member No.: 2



Details of this file:

QUELLTEXT

<?php
    $url = urldecode($_REQUEST['query']);
    // Securitycheck
    $i = strpos($url,'.splatterladder.com/export/'); if ($i<7 || $i>22) exit;
    $url .= '&wrapper=sl_sm_wrapper.php';
    echo file_get_contents($url);
?>


This file is nothing else than a 'content-wrapper', a kind of proxy-script which only handles requests for Splatterladder (see security check code).
Why this file? Quite simple, your site occupies webspace, the refreshing does the sl-server (normally). These are different domains and it would be cross frame scripting, which is disallowed by every browser. With this wrapper the monitor will be updated through your webspace and there should be no problem with cross frame scripting. super.gif
Go to the top of the page
 
+Quote Post

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 4th December 2024 - 09:38 AM