aboutsummaryrefslogtreecommitdiff
path: root/blocks
diff options
context:
space:
mode:
authorjhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6>2009-12-21 16:32:16 -0500
committerjhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6>2009-12-21 16:32:16 -0500
commit027b405b1bdeb5bb7f3362ff1d570aa076846bc3 (patch)
tree9d3e02405eba84f4e3337f64943fe7ca89322dea /blocks
parent0713fd6c1cebe1b32f173af0ef447e7853cbaf70 (diff)
downloadbayonetcms-027b405b1bdeb5bb7f3362ff1d570aa076846bc3.tar.gz
(OC) added some jQuery stuff. Working dragable ui for newsreel
git-svn-id: http://svn.3rd-infantry-division.org/testing/branches/Bayonet CMS v2@389 c5b2fb0a-d05d-0410-98c8-828840a80ff6
Diffstat (limited to 'blocks')
-rw-r--r--blocks/soldier_info/index.php127
-rw-r--r--blocks/tsviewer/index.php22
2 files changed, 74 insertions, 75 deletions
diff --git a/blocks/soldier_info/index.php b/blocks/soldier_info/index.php
index 4db230d..f7ff24c 100644
--- a/blocks/soldier_info/index.php
+++ b/blocks/soldier_info/index.php
@@ -1,61 +1,66 @@
-<?php
-if($_COOKIE['mybbuser'] != '')
-{
- global $db;
- $logged_in = 'true';
-
- $username = stripslashes($_COOKIE['mybbuser']);
- $login_cookie = explode('_', $username);
- $result = $db->Query("SELECT `uid`, `username`, `unreadpms`, `totalpms`, `postnum`, `usergroup`, `additionalgroups` FROM `mybb_users` WHERE `uid` = '".$login_cookie['0']."' AND `loginkey` = '".$login_cookie['1']."'");
- $check_num = $db->Rows($result);
- if ($check_num != '1')
- {
- $past = time() - 100;
- $logged_in = '';
- setcookie('mybbuser', gone, $past);
- header("location: index.php");
- }
- while(($row = $db->Fetch($result))!==false)
- {
- $logged_uid = $row['uid'];
- $logged_username = $row['username'];
- $avatar_type = $row['avatartype'];
- $pm_unread = $row['unreadpms'];
- $pm_total = $row['totalpms'];
- $postnum = $row['postnum'];
-
- $main_usergroup = $row['usergroup'];
- $add_usergroup = $row['additionalgroups'];
-
- $add_usergroups= explode(',', $add_usergroup);
- }
-}
-?>
- <center>
-
- Your IP: <?php echo $_SERVER['REMOTE_ADDR']; ?><br />
-<?php
- if ($logged_in == 'true'){
- //echo '<img src="'.$avatar.'" alt="'.$logged_username.'"/><br /><br />
- echo $postnum.' post(s)<br /><br />';
- echo '</center>
-
-
- Welcome, '.$logged_username.' <br />
- <a href="logout.php"><img src="images/arrow-blk.gif" border="0" alt="" />&nbsp;Logout</a><br />';
- }
- else{
- echo 'Welcome Guest.<br />
- </center>
- <br />';
- }
- if ($logged_in == 'true'){
- ?>
- <hr />
- <!-- <img src="images/email-y.gif" /> -->Private Messages <br />
- <!-- <img src="images/email-r.gif" /> -->Unread: <a href="forums/private.php"><?php echo $pm_unread; ?></a><br />
- <!-- <img src="images/email-g.gif" /> -->Total: <a href="forums/private.php"><?php echo $pm_total; ?></a><br /><hr />
- <?php
- }
-?>
- </center> \ No newline at end of file
+<?php
+if($_COOKIE['mybbuser'] != '')
+{
+ global $db;
+ $logged_in = 'true';
+
+ $username = stripslashes($_COOKIE['mybbuser']);
+ $login_cookie = explode('_', $username);
+ $result = $db->Query("SELECT `uid`, `username`, `unreadpms`, `totalpms`, `postnum`, `usergroup`, `additionalgroups` FROM `mybb_users` WHERE `uid` = '".$login_cookie['0']."' AND `loginkey` = '".$login_cookie['1']."'");
+ $check_num = $db->Rows($result);
+ if ($check_num != '1')
+ {
+ $past = time() - 100;
+ $logged_in = '';
+ setcookie('mybbuser', gone, $past);
+ header("location: index.php");
+ }
+ while(($row = $db->Fetch($result))!==false)
+ {
+ $logged_uid = $row['uid'];
+ $logged_username = $row['username'];
+ $avatar_type = $row['avatartype'];
+ $pm_unread = $row['unreadpms'];
+ $pm_total = $row['totalpms'];
+ $postnum = $row['postnum'];
+
+ $main_usergroup = $row['usergroup'];
+ $add_usergroup = $row['additionalgroups'];
+
+ $add_usergroups= explode(',', $add_usergroup);
+ }
+}
+?>
+ <center>
+
+ Your IP: <?php echo $_SERVER['REMOTE_ADDR']; ?><br />
+<?php
+ if ($logged_in == 'true'){
+?>
+ <!-- <img src="<?php echo $avatar; ?>" alt="<?php echo $logged_username; ?>"/><br /><br /> -->
+ <?php echo $postnum;?> post(s)<br /><br />
+ </center>
+
+ Welcome, <?php echo $logged_username; ?> <a href="logout.php">Logout</a><br />
+ <hr />
+ Private Messages <br />
+ Unread: <a href="forums/private.php"><?php echo $pm_unread; ?></a><br />
+ Total: <a href="forums/private.php"><?php echo $pm_total; ?></a><br />
+ <hr />
+<?php
+ }
+ else{
+?>
+ Welcome Guest.<br /><br />
+
+ <form method="POST" action="">
+ <table>
+ <tr><td><input type="text" name="username" /></td></tr>
+ <tr><td><input type="password" name="password" /></td><td><input type="submit" value="Login" /></td></tr>
+ </table>
+ </form>
+
+ </center>
+<?php
+ }
+?> \ No newline at end of file
diff --git a/blocks/tsviewer/index.php b/blocks/tsviewer/index.php
index cee0be4..fd24fb3 100644
--- a/blocks/tsviewer/index.php
+++ b/blocks/tsviewer/index.php
@@ -1,18 +1,12 @@
<?php
-OpenBlock("Teamspeak Server");
-
-echo "<div style=\"margin: 5px;\">\n";
-////until it works again i'm going to have this here...
-//echo "TSViewer is not working.";
-//echo "</div>\n";
-//CloseBlock();
-//return; //die
+/**
+* The overlaying css div.content class is messing up the padding of the text.
+* Apparently I cannot override this...
+*/
+echo "<div style=\"padding:0px; margin: 5px;\">\n";
+$ts = implode('',file("http://www.tsviewer.com/ts_viewer_pur.php?ID=902437&bg=&type=8f8f8f&type_size=11&type_family=5&info=1&channels=1&users=1&type_s_color=000000&type_s_weight=bold&type_s_style=normal&type_s_variant=normal&type_s_decoration=none&type_s_color_h=525284&type_s_weight_h=bold&type_s_style_h=normal&type_s_variant_h=normal&type_s_decoration_h=underline&type_i_color=000000&type_i_weight=normal&type_i_style=normal&type_i_variant=normal&type_i_decoration=none&type_i_color_h=525284&type_i_weight_h=normal&type_i_style_h=normal&type_i_variant_h=normal&type_i_decoration_h=underline&type_c_color=000000&type_c_weight=normal&type_c_style=normal&type_c_variant=normal&type_c_decoration=none&type_c_color_h=525284&type_c_weight_h=normal&type_c_style_h=normal&type_c_variant_h=normal&type_c_decoration_h=underline&type_u_color=000000&type_u_weight=normal&type_u_style=normal&type_u_variant=normal&type_u_decoration=none&type_u_color_h=525284&type_u_weight_h=normal&type_u_style_h=normal&type_u_variant_h=normal&type_u_decoration_h=none"));
+echo $ts;
+echo "</div>\n";
?>
-
-<script language="javascript" type="text/javascript" src="http://www.tsviewer.com/ts_viewer_pur.php?ID=58659&bg=transparent&type=eeeeee&type_size=11&type_family=1&info=1&channels=0&users=1&js=1&type_s_weight=normal&type_s_style=normal&type_s_variant=normal&type_s_decoration=none&type_s_weight_h=normal&type_s_style_h=normal&type_s_variant_h=normal&type_s_decoration_h=none&type_i_weight=normal&type_i_style=normal&type_i_variant=normal&type_i_decoration=none&type_i_weight_h=normal&type_i_style_h=normal&type_i_variant_h=normal&type_i_decoration_h=none&type_c_weight=normal&type_c_style=normal&type_c_variant=normal&type_c_decoration=none&type_c_weight_h=normal&type_c_style_h=normal&type_c_variant_h=normal&type_c_decoration_h=none&type_u_weight=normal&type_u_style=normal&type_u_variant=normal&type_u_decoration=none&type_u_weight_h=normal&type_u_style_h=normal&type_u_variant_h=normal&type_u_decoration_h=none&cflags=0"></script><NOSCRIPT>Enable JavaScript to see TeamSpeak Viewer or click <a href="http://www.tsviewer.com/index.php?page=ts_viewer&ID=58659">here</a>.</NOSCRIPT>
-
-<?php
-echo "</div>\n";
-CloseBlock(); ?>