Teknik is a suite of services with attractive and functional interfaces. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.php 9.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  1. <div class="container">
  2. <div class="row">
  3. <center>
  4. <img src="<?php echo get_page_url("cdn", $CONF); ?>/<?php echo $CONF['template']; ?>/img/logo-blue.svg" class="img-responsive" alt="Teknik">
  5. </center>
  6. </div>
  7. <br />
  8. <div class="row text-center">
  9. <h2>
  10. Teknik is dedicated to the advancement of technology and ideas, and we provide these services to help those who try to innovate.
  11. </h2>
  12. </div>
  13. </div>
  14. <br />
  15. <div class="container">
  16. <div class="row">
  17. <a href="<?php echo get_page_url("upload", $CONF); ?>">
  18. <div class="col-md-3 text-center">
  19. <div class="thumbnail">
  20. <br />
  21. <i class="fa fa-lock fa-5x"></i>
  22. <div class="caption">
  23. <h3>Encrypted File Uploads</h3>
  24. </div>
  25. </div>
  26. </div>
  27. </a>
  28. <a href="<?php echo get_page_url("paste", $CONF); ?>">
  29. <div class="col-md-3 text-center">
  30. <div class="thumbnail">
  31. <br />
  32. <i class="fa fa-code fa-5x"></i>
  33. <div class="caption">
  34. <h3>Clean Pastebin</h3>
  35. </div>
  36. </div>
  37. </div>
  38. </a>
  39. <a href="<?php echo get_page_url("podcast", $CONF); ?>">
  40. <div class="col-md-3 text-center">
  41. <div class="thumbnail">
  42. <br />
  43. <i class="fa fa-microphone fa-5x"></i>
  44. <div class="caption">
  45. <h3>Technical Podcasts</h3>
  46. </div>
  47. </div>
  48. </div>
  49. </a>
  50. <a href="<?php echo get_page_url("help", $CONF); ?>/#Mumble">
  51. <div class="col-md-3 text-center">
  52. <div class="thumbnail">
  53. <br />
  54. <i class="fa fa-comments fa-5x"></i>
  55. <div class="caption">
  56. <h3>Mumble Server</h3>
  57. </div>
  58. </div>
  59. </div>
  60. </a>
  61. </div>
  62. </div>
  63. <br />
  64. <div class="container">
  65. <div class="row text-center">
  66. <h1>Sign Up for free and get access to these features and more!</h1>
  67. </div>
  68. <br />
  69. <div class="row">
  70. <a href="<?php echo get_page_url("help", $CONF); ?>/#Mail">
  71. <div class="col-md-3 text-center">
  72. <div class="thumbnail">
  73. <br />
  74. <i class="fa fa-at fa-5x"></i>
  75. <div class="caption">
  76. <h3>Free Email</h3>
  77. </div>
  78. </div>
  79. </div>
  80. </a>
  81. <a href="<?php echo get_page_url("help", $CONF); ?>/#Git">
  82. <div class="col-md-3 text-center">
  83. <div class="thumbnail">
  84. <br />
  85. <i class="fa fa-git fa-5x"></i>
  86. <div class="caption">
  87. <h3>Unlimited Git Repositories</h3>
  88. </div>
  89. </div>
  90. </div>
  91. </a>
  92. <a href="<?php echo get_page_url("blog", $CONF); ?>">
  93. <div class="col-md-3 text-center">
  94. <div class="thumbnail">
  95. <br />
  96. <i class="fa fa-rss fa-5x"></i>
  97. <div class="caption">
  98. <h3>Personal Blog</h3>
  99. </div>
  100. </div>
  101. </div>
  102. </a>
  103. <a href="<?php echo get_page_url("help", $CONF); ?>/#IRC">
  104. <div class="col-md-3 text-center">
  105. <div class="thumbnail">
  106. <br />
  107. <i class="fa fa-tag fa-5x"></i>
  108. <div class="caption">
  109. <h3>IRC Nickname</h3>
  110. </div>
  111. </div>
  112. </div>
  113. </a>
  114. </div>
  115. </div>
  116. <br />
  117. <div class="container">
  118. <div class="col-sm-4">
  119. <div class="panel panel-default">
  120. <div class="panel-heading">
  121. <h3 class="panel-title text-center">Recent News</h3>
  122. </div>
  123. <div class="panel-body">
  124. <p>
  125. <ul class="list-group">
  126. <?php
  127. $new_posts = $db->select('blog', "user_id=? ORDER BY date_posted DESC LIMIT 5", array(0));
  128. $posts = array();
  129. foreach ($new_posts as $post)
  130. {
  131. if (!is_array($post))
  132. {
  133. $posts = array($new_posts);
  134. break;
  135. }
  136. array_push($posts, $post);
  137. }
  138. foreach ($posts as $post)
  139. {
  140. $post_id = $post['id'];
  141. $author_id = $post['author_id'];
  142. $author = $userTools->get($author_id);
  143. $date = $post['date_posted'];
  144. $title = $post['title'];
  145. $tags = $post['tags'];
  146. $post = $post['post'];
  147. ?>
  148. <script>
  149. var converter = new Markdown.getSanitizingConverter();
  150. // Title Conversion
  151. var old_post = $("#title_<?php echo $post_id; ?>").text();
  152. var new_post = converter.makeHtml(old_post);
  153. $("#title_<?php echo $post_id; ?>").html(new_post);
  154. </script>
  155. <li class="list-group-item">
  156. <div class="row">
  157. <div class="col-sm-12">
  158. <div class="blog-post-sm">
  159. <h2 class="blog-post-title-sm text-left"><a href="<?php echo get_page_url("blog", $CONF); ?>/<?php echo $author->username; ?>/<?php echo $post_id; ?>" id="title_<?php echo $post_id; ?>"><?php echo $title; ?></a></h2>
  160. <p class="blog-post-meta-sm text-left text-muted">
  161. Posted on <?php echo date("F d, Y",strtotime($date)); ?> by <a href="<?php echo get_page_url("home", $CONF); ?>/<?php echo $author->username; ?>"><?php echo $author->username; ?></a>
  162. </p>
  163. </div>
  164. </div>
  165. </div>
  166. </li>
  167. <?php
  168. }
  169. ?>
  170. </ul>
  171. </p>
  172. </div>
  173. </div>
  174. </div>
  175. <div class="col-sm-4">
  176. <div class="panel panel-default">
  177. <div class="panel-heading">
  178. <h3 class="panel-title text-center">Recent Podcasts</h3>
  179. </div>
  180. <div class="panel-body">
  181. <p>
  182. <ul class="list-group">
  183. <?php
  184. $new_posts = $db->select('podcast', "1=? ORDER BY date_posted DESC LIMIT 5", array(1));
  185. $posts = array();
  186. foreach ($new_posts as $post)
  187. {
  188. if (!is_array($post))
  189. {
  190. $posts = array($new_posts);
  191. break;
  192. }
  193. array_push($posts, $post);
  194. }
  195. foreach ($posts as $post)
  196. {
  197. $post_id = $post['id'];
  198. $date = $post['date_posted'];
  199. $title = $post['title'];
  200. ?>
  201. <script>
  202. var converter = new Markdown.getSanitizingConverter();
  203. // Title Conversion
  204. var old_post = $("#podcast_title_<?php echo $post_id; ?>").text();
  205. var new_post = converter.makeHtml(old_post);
  206. $("#podcast_title_<?php echo $post_id; ?>").html(new_post);
  207. </script>
  208. <li class="list-group-item">
  209. <div class="row">
  210. <div class="col-sm-12">
  211. <div class="podcast-post-sm">
  212. <h2 class="podcast-post-title-sm text-left"><a href="<?php echo get_page_url("podcast", $CONF); ?>/<?php echo $post_id; ?>" id="podcast_title_<?php echo $post_id; ?>"><?php echo $title; ?></a></h2>
  213. <p class="podcast-post-meta-sm text-left text-muted">
  214. Posted on <?php echo date("F d, Y",strtotime($date)); ?>
  215. </p>
  216. </div>
  217. </div>
  218. </div>
  219. </li>
  220. <?php
  221. }
  222. ?>
  223. </ul>
  224. </p>
  225. </div>
  226. </div>
  227. </div>
  228. <div class="col-sm-4">
  229. <div class="panel panel-default">
  230. <div class="panel-heading">
  231. <h3 class="panel-title text-center">Recent Blog Posts</h3>
  232. </div>
  233. <div class="panel-body">
  234. <p>
  235. <ul class="list-group">
  236. <?php
  237. $new_posts = $db->select('blog', "user_id!=? ORDER BY date_posted DESC LIMIT 5", array(0));
  238. $posts = array();
  239. foreach ($new_posts as $post)
  240. {
  241. if (!is_array($post))
  242. {
  243. $posts = array($new_posts);
  244. break;
  245. }
  246. array_push($posts, $post);
  247. }
  248. foreach ($posts as $post)
  249. {
  250. $post_id = $post['id'];
  251. $author_id = $post['author_id'];
  252. $author = $userTools->get($author_id);
  253. $date = $post['date_posted'];
  254. $title = $post['title'];
  255. $tags = $post['tags'];
  256. $post = $post['post'];
  257. ?>
  258. <script>
  259. var converter = new Markdown.getSanitizingConverter();
  260. // Title Conversion
  261. var old_post = $("#title_<?php echo $post_id; ?>").text();
  262. var new_post = converter.makeHtml(old_post);
  263. $("#title_<?php echo $post_id; ?>").html(new_post);
  264. </script>
  265. <li class="list-group-item">
  266. <div class="row">
  267. <div class="col-sm-12">
  268. <div class="blog-post-sm">
  269. <h2 class="blog-post-title-sm text-left"><a href="<?php echo get_page_url("blog", $CONF); ?>/<?php echo $author->username; ?>/<?php echo $post_id; ?>" id="title_<?php echo $post_id; ?>"><?php echo $title; ?></a></h2>
  270. <p class="blog-post-meta-sm text-left text-muted">
  271. Posted on <?php echo date("F d, Y",strtotime($date)); ?> by <a href="<?php echo get_page_url("home", $CONF); ?>/<?php echo $author->username; ?>"><?php echo $author->username; ?></a>
  272. </p>
  273. </div>
  274. </div>
  275. </div>
  276. </li>
  277. <?php
  278. }
  279. ?>
  280. </ul>
  281. </p>
  282. </div>
  283. </div>
  284. </div>
  285. </div>