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.6KB

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