Changeset 1011840
- Timestamp:
- 10/22/2014 12:50:25 AM (11 years ago)
- Location:
- counter-strike-server-viewer
- Files:
-
- 6 added
- 1 deleted
- 2 edited
-
tags/1.1 (added)
-
tags/1.1/LICENCE.txt (added)
-
tags/1.1/Readme.txt (added)
-
tags/1.1/csserverinfo.php (added)
-
tags/1.1/csviewer.php (added)
-
tags/1.1/style.css (added)
-
tags/1.3 (deleted)
-
trunk/Readme.txt (modified) (5 diffs)
-
trunk/csviewer.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
counter-strike-server-viewer/trunk/Readme.txt
r1011839 r1011840 18 18 With these Plugin cou can display your Counter Strike Source - or Counter Strike Global Offensive Serverinformation yon your Wordpress-Hompage. 19 19 20 It is easy to activate. You must on ylDownlaod the Plugin and place the String '[csviewer ip="mydomain.com" port="26015"]'20 It is easy to activate. You must only Downlaod the Plugin and place the String '[csviewer ip="mydomain.com" port="26015"]' 21 21 on your Wordpress Page or Article, 22 22 … … 30 30 31 31 Function: 32 Auto-connect by klicking on the IP. (steam Protocoll must be activated)32 Auto-connect by clicking on the IP. (steam Protocol must be activated) 33 33 34 34 Display following Information: … … 41 41 * Mod (CS:S or CS:GO) 42 42 43 * Password ( Yes or No)43 * Password ('Yes' or 'No password' or the password) 44 44 45 45 * Ping … … 52 52 2. Activate the plugin through the 'Plugins' menu in WordPress 53 53 3. Place `[csviewer ip="mydomain.com" port="26015"]` on any Wordpress Page or Article and change the ip and the port. 54 4.(optional) Password 55 * Show password and add it to the autoconnect-url, so now password request from steam will displayed. 56 `[csviewer ip="mydomain.com" port="26015" password="mypassword"]` 57 * You can add the password to the autoconnect-url without displaying the password on the website.(In the HTML you see the password anyway!) 58 `[csviewer ip="mydomain.com" port="26015" password="mypassword" hidepassword="true"]` 54 59 55 4.(optional) add this CSS Lines in to the CSS from your Template 60 61 5.(optional) add this CSS Lines in to the CSS from your Template 56 62 57 63 table.server_data { width:60%; max-width: 280px; float:left; margin: 10px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; } … … 120 126 * Resolve problem "PHP error: Cannot modify header information - headers already sent by" 121 127 * Tested with Wordpress 4.0 128 129 = 1.2 = 130 * Show Password -
counter-strike-server-viewer/trunk/csviewer.php
r1011817 r1011840 3 3 Plugin Name: csViewer 4 4 Plugin URI: http://rainbow-six3.com/blog/allgemein/counter-strike-server-viewer/ 5 Description: CS:S and CS:GO Vi wer6 Version: 1. 15 Description: CS:S and CS:GO Viewer 6 Version: 1.3 7 7 Author: Reto Arnold 8 8 URI: http://rainbow-six3.com … … 38 38 if($serverInfo['password'] == 1){ 39 39 $serverInfo['password'] = 'Yes'; 40 } 40 if(array_key_exists('password', $atts )){ 41 $serverInfo['password'] = $atts['password']; 42 if(array_key_exists('hidepassword', $atts ) and $atts['hidepassword'] == 'true'){ 43 $serverInfo['password'] = 'Yes'; 44 } 45 } 46 } 41 47 else { 42 $serverInfo['password'] = 'No ';48 $serverInfo['password'] = 'No password'; 43 49 } 44 50 $html = "<div ><table class=\"server_data\">\n"; 45 51 $html .= "<tbody><tr><td class=\"strong\">Servername:</td> <td id=\"address\" class=\"loading last\">".$serverInfo['hostname']."</td></tr>\n"; 46 $html .= "<tr><td class=\"strong\">Address:</td> <td id=\"address\" class=\"loading last\"><a href=\"steam://connect/".$atts['ip'].":".$atts['port']." \">".$atts['ip'].":".$atts['port']."</a></td></tr>\n";52 $html .= "<tr><td class=\"strong\">Address:</td> <td id=\"address\" class=\"loading last\"><a href=\"steam://connect/".$atts['ip'].":".$atts['port']."/".$atts['password']."\">".$atts['ip'].":".$atts['port']."</a></td></tr>\n"; 47 53 $html .= "<tr><td class=\"strong\">Map:</td> <td id=\"map\" class=\"loading last\">".$serverInfo['map']."</td></tr>\n"; 48 54 $html .= "<tr><td class=\"strong\">Mod:</td> <td id=\"desc\" class=\"loading last\">".$serverInfo['desc']."</td></tr>\n";
Note: See TracChangeset
for help on using the changeset viewer.