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 5.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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-8">
  17. </div>
  18. <div class="col-sm-4">
  19. <div class="panel panel-default">
  20. <div class="panel-heading">
  21. <h3 class="panel-title text-center">Recent Blog Posts</h3>
  22. </div>
  23. <div class="panel-body">
  24. <?php
  25. $new_posts = $db->select('blog', "1=? ORDER BY date_posted DESC LIMIT 10", array(1));
  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. $reply_msg = "";
  46. $replies = $db->select('comments', "reply_id=? AND service=?", array($post_id, 'blog'), 'count(*) cnt');
  47. $reply_count = $replies['cnt'];
  48. if ($reply_count > 0)
  49. {
  50. $reply_msg = " | <a href='".get_page_url("blog", $CONF)."/".$author->username."/".$post_id."#replies'>Replies:".$reply_count."</a>";
  51. }
  52. ?>
  53. <script>
  54. var converter = new Markdown.getSanitizingConverter();
  55. // Title Conversion
  56. var old_post = $("#title_<?php echo $post_id; ?>").text();
  57. var new_post = converter.makeHtml(old_post);
  58. $("#title_<?php echo $post_id; ?>").html(new_post);
  59. </script>
  60. <div class="row">
  61. <div class="col-sm-12">
  62. <div class="blog-post">
  63. <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>
  64. <p class="blog-post-meta text-left text-muted">
  65. 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><?php echo $reply_msg; ?>
  66. </p>
  67. </div>
  68. </div>
  69. </div>
  70. <?php
  71. }
  72. ?>
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. <br />
  78. <div class="container">
  79. <div class="row">
  80. <a href="<?php echo get_page_url("help", $CONF); ?>/#Mail">
  81. <div class="col-md-3 text-center">
  82. <div class="thumbnail">
  83. <br />
  84. <i class="fa fa-at fa-5x"></i>
  85. <div class="caption">
  86. <h3>Free Email</h3>
  87. </div>
  88. </div>
  89. </div>
  90. </a>
  91. <a href="<?php echo get_page_url("help", $CONF); ?>/#Git">
  92. <div class="col-md-3 text-center">
  93. <div class="thumbnail">
  94. <br />
  95. <i class="fa fa-git fa-5x"></i>
  96. <div class="caption">
  97. <h3>Unlimited Git Repositories</h3>
  98. </div>
  99. </div>
  100. </div>
  101. </a>
  102. <a href="<?php echo get_page_url("blog", $CONF); ?>">
  103. <div class="col-md-3 text-center">
  104. <div class="thumbnail">
  105. <br />
  106. <i class="fa fa-rss fa-5x"></i>
  107. <div class="caption">
  108. <h3>Personal Blog</h3>
  109. </div>
  110. </div>
  111. </div>
  112. </a>
  113. <a href="<?php echo get_page_url("upload", $CONF); ?>">
  114. <div class="col-md-3 text-center">
  115. <div class="thumbnail">
  116. <br />
  117. <i class="fa fa-lock fa-5x"></i>
  118. <div class="caption">
  119. <h3>Encrypted File Uploads</h3>
  120. </div>
  121. </div>
  122. </div>
  123. </a>
  124. </div>
  125. <div class="row">
  126. <a href="<?php echo get_page_url("paste", $CONF); ?>">
  127. <div class="col-md-3 text-center">
  128. <div class="thumbnail">
  129. <br />
  130. <i class="fa fa-code fa-5x"></i>
  131. <div class="caption">
  132. <h3>Clean Pastebin</h3>
  133. </div>
  134. </div>
  135. </div>
  136. </a>
  137. <a href="<?php echo get_page_url("podcast", $CONF); ?>">
  138. <div class="col-md-3 text-center">
  139. <div class="thumbnail">
  140. <br />
  141. <i class="fa fa-microphone fa-5x"></i>
  142. <div class="caption">
  143. <h3>Technical Podcasts</h3>
  144. </div>
  145. </div>
  146. </div>
  147. </a>
  148. <a href="<?php echo get_page_url("help", $CONF); ?>/#Mumble">
  149. <div class="col-md-3 text-center">
  150. <div class="thumbnail">
  151. <br />
  152. <i class="fa fa-comments fa-5x"></i>
  153. <div class="caption">
  154. <h3>Mumble Server</h3>
  155. </div>
  156. </div>
  157. </div>
  158. </a>
  159. <a href="<?php echo get_page_url("api", $CONF); ?>">
  160. <div class="col-md-3 text-center">
  161. <div class="thumbnail">
  162. <br />
  163. <i class="fa fa-exchange fa-5x"></i>
  164. <div class="caption">
  165. <h3>Easy to Use API</h3>
  166. </div>
  167. </div>
  168. </div>
  169. </a>
  170. </div>
  171. </div>