lowheartrate

some of checkLogin() function

Nov 29th, 2016
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.77 KB | None | 0 0
  1. echo '
  2.    <div class="navbar-right">
  3.       <!-- sign up / log in buttons -->
  4.       <a href="action.php?action=register_account"><button type="button" class="sign-up">Sign Up</button></a>
  5.       <a href="action.php?action=sign_in"><button type="button" class="log-in">Log In</button></a>
  6.  
  7.       <!-- icons -->
  8.       <img src="http://i.imgur.com/HD6W7XJ.png" class="icon-search" alt="search-icon" />
  9.  
  10.       <!--
  11.       <span class="icon-bars-button">
  12.          <span class="icon-bar"></span>
  13.          <span class="icon-bar"></span>
  14.          <span class="icon-bar"></span>
  15.       </span>
  16.       -->
  17.  
  18.        <a class="p1" href="#p1">
  19.         <!-- teamspeak icon -->
  20.         <img src="http://i.imgur.com/iHfwTS1.png" class="teamspeak-icon" alt="teamspeak icon" />
  21.        </a>
  22.  
  23.        <div class="page" id="p1-page">
  24.          <div id="shell">
  25.            <a class="btn-register">X</a>
  26.    ';
  27.  
  28.             error_reporting(0);
  29.  
  30.             // load framework files
  31.             require_once("includes/libraries/TeamSpeak3/TeamSpeak3.php");
  32.  
  33.             // connect to server, authenticate and spawn an object for the virtual server on port xxxx
  34.             $ts3_VirtualServer = TeamSpeak3::factory("serverquery://serverquerylogin:[email protected]:14012/?server_port=14010&use_offline_as_virtual=1&no_query_clients=1");
  35.  
  36.             // build and display HTML treeview using custom image paths (remote icons will be embedded using data URI sheme)
  37.             echo $ts3_VirtualServer->getViewer(new TeamSpeak3_Viewer_Html("includes/images/viewer/", "", "data:image"));
  38.  
  39.     echo '
  40.            <a href="ts3server://ts3.heartfx.org/?port=4010&nickname=WebGuest"><button class="btn-connect">Connect</button></a>
  41.          </div>
  42.        </div>
  43.  
  44.    </div>
  45.    ';
Advertisement
Add Comment
Please, Sign In to add comment