浏览代码

Removed Try-Catch, removed irc status from about page, updated home page.

pull/24/head
Teknikode 5 年前
父节点
当前提交
35f92fe05b
共有 3 个文件被更改,包括 2 次插入52 次删除
  1. 0
    41
      about/main.php
  2. 2
    4
      home/main.php
  3. 0
    7
      includes/lookup.php

+ 0
- 41
about/main.php 查看文件

@@ -15,11 +15,6 @@
}
array_push($history, $history_event);
}
$irc_info = $db->select('irc', "1=? ORDER BY id DESC LIMIT 1", array("1"));
$max_count = $irc_info['max_nicks'];
$count = $irc_info['cur_nicks'];
$topic = $irc_info['topic'];
?>

<div class="container">
@@ -121,42 +116,6 @@
</div>
</div>
</div>
<div class="tab-pane" id="stats">
<div class="row">
<div class="col-sm-12 text-center">
<h2>#/g/technology's current channel information</h2>
</div>
</div>
<br />
<div class="row">
<div class="col-sm-12">
<div class="hero-widget well well-sm">
<?php echo $topic; ?>
<div class="text">
<label class="text-muted">Current Topic</label>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-3 col-sm-offset-3">
<div class="hero-widget well well-sm">
<div class="text">
<var><?php echo $count; ?></var>
<label class="text-muted">Current Nick Count</label>
</div>
</div>
</div>
<div class="col-sm-3">
<div class="hero-widget well well-sm">
<div class="text">
<var><?php echo $max_count; ?></var>
<label class="text-muted">Max Nick Count</label>
</div>
</div>
</div>
</div>
</div>
<div class="tab-pane" id="staff">
<?php
if ($FounderUsers || $AdminUsers || $ModUsers)

+ 2
- 4
home/main.php 查看文件

@@ -13,9 +13,7 @@ $topic = $irc_info['topic'];
<br />
<div class="row text-center">
<h2>
Teknik is the website for the #/g/technology IRC channel on Rizon.
<br />
We host various channels services for our IRC community and by extension, 4chan's Technology board.
Teknik is dedicated to the advancement of technology and ideas, and we provide these services to help those who try to innovate.
</h2>
</div>
</div>
@@ -113,4 +111,4 @@ $topic = $irc_info['topic'];
</div>
</a>
</div>
</div>
</div>

+ 0
- 7
includes/lookup.php 查看文件

@@ -36,8 +36,6 @@ THE SOFTWARE.
/*
you should server side cache this response, especially if your site is active
*/
try
{
$data = isset($_GET['data'])?$_GET['data']:'';
if (!empty($data)) {
$data = explode("|", $data);
@@ -61,11 +59,6 @@ try
}
echo 'var COINWIDGETCOM_DATA = '.json_encode($responses).';';
}
}
catch (Exception $e)
{
echo 'Caught Exception: ', $e->getMessage();
}

function get_bitcoin($address) {
$return = array();

正在加载...
取消
保存