- <style>
- #idx {
- width: 100% !important;
- }
- #idx2 {
- width: 100%;
- padding: 3px;
- border: 1px solid #222;
- background: #111;
- }
- #idx td.center {
- font-size: 11px;
- }
- table.dirlist {
- border-width: 0px 0px 0px 0px;
- border-spacing: 2px;
- border-style: outset outset outset outset;
- border-color: #111;
- border-collapse: collapse;
- width: 100%;
- margin-left: auto;
- margin-right: auto;
- font-size: 8pt;
- }
- table.dirlist th {
- border-width: 1px 1px 1px 1px;
- padding: 2px 2px 2px 2px;
- border-style: inset inset inset inset;
- border-color: #111;
- }
- table.dirlist td {
- border-bottom: 1px solid #111;
- font-size: 8pt;
- padding:3px;
- }
- .proj1{
- background: #111;
- }
- .proj2{
- background: #222;
- }
- .titles {
- background: #242424;
- }
- </style>
- <?php
- function size_readable($size, $retstring = null)
- {
- // adapted from code at http://aidanlister.com/repos/v/function.size_readable.php
- if ($retstring === null) {
- $retstring = '%01.2f %s';
- }
- foreach ($sizes as $sizestring) {
- if ($size < 1024) {
- break;
- }
- if ($sizestring != $lastsizestring) {
- $size /= 1024;
- }
- }
- if ($sizestring == $sizes[0]) {
- $retstring = '%01d %s';
- }
- // Bytes aren't normally fractional
- }
- class D2K5_PageCallback_Comic
- {
- public static function respond(XenForo_ControllerPublic_Abstract $controller, XenForo_ControllerResponse_Abstract &$response)
- {
- $response->params['srv'] = null;
- $directory="/home/uploadfiles/d2k5/ftpaccounts/Emyylii12/public/Comic/";
- $sortOrder="newestFirst";
- $i = null;
- $nu = 0;
- $numfiles = 0;
- if ($file != '.' && $file != '..' && $file != '.htaccess' && $file != 'Thumbs.db' && $file != 'index.html' && $file != 'index.php' && $file != 'public.inf'){
- $file_names[] = $file;
- $file_dates[] = $currentModified;
- $numfiles = $numfiles + 1;
- }
- }
- $lolwatpage = $_GET['page'];
- }else{
- $lolwatpage = $numfiles - 1;
- }
- $latestcomic = $numfiles - 1;
- if($lolwatpage == -1){
- $lolwatpage = 0;
- }
- if($lolwatpage > $numfiles - 1){
- $lolwatpage = $latestcomic;
- }
- $nextcomic = $lolwatpage + 1;
- $previouscomic = $lolwatpage - 1;
- $buttons = '<font style="font-size: 18pt; font-weight: bold;"><a href="/pages/comic/?page=0">First</a> ';
- if($lolwatpage != 0){
- $buttons .= '<a href="/pages/comic/?page='.$previouscomic.'">Previous</a> ';
- }
- if($lolwatpage != $latestcomic){
- $buttons .= '<a href="/pages/comic/?page='.$nextcomic.'">Next</a> ';
- }
- $buttons .= '<a href="/pages/comic/?page='.$latestcomic.'">Last</a></font>';
- $response->params['srv'] .= $buttons;
- if ($page < 1 || $page > $total_pages) {
- $page = 1;
- }
- $offset = ($page + 1);
- $class = ' class="active"';
- $prepend = '<b>';
- $prepend2 = '</b>';
- //Sort the date array by preferred order
- //Match file_names array to file_dates array
- foreach ($file_names_Array as $idx => $name) $name=$file_names[$name];
- $firstno = $lolwatpage;
- $lastno = $firstno;
- $no = 0;
- foreach ($file_dates as $file_dates){
- if (($no >= $firstno) && ($no <= $lastno)) {
- $date = $file_dates;
- $j = $file_names_Array[$no];
- $file = $file_names[$j];
- if ($ext != null){
- if($lolwatpage != $latestcomic){
- $response->params['srv'] .= '<br/><br/><span style="font-size: 14pt; font-weight: bold;">#'.$lolwatpage.'</span><br/><a href="/pages/comic/?page='.$nextcomic.'"><img src="http://me.d2k5.com/Emyylii12/public/Comic/'.$file.'"></a><br/><br/>';
- }else{
- $response->params['srv'] .= '<br/><br/><span style="font-size: 14pt; font-weight: bold;">#'.$lolwatpage.'</span><br/><img src="http://me.d2k5.com/Emyylii12/public/Comic/'.$file.'"><br/><br/>';
- }
- }
- }
- $no = $no + 1;
- }
- for ($in = 0; $in <= $total_pages; $in++) {
- if ($in == $page) {
- $class = ' class="active"';
- $prepend = '<u>';
- $prepend2 = '</u>';
- }else{
- $class = '';
- $prepend = '';
- $prepend2 = '';
- }
- $response->params['srv'] .= '<font size="6"><a href="/pages/comic/?page=' . $in . '"' . $class . '>' . $prepend . $in . $prepend2 ."</a></font> ";
- }
- $response->params['srv'] .= "<br/><br/>I really felt that when we decided it would be a good idea to allow common users of this forum to have an insight into out minds and thoughts, we needed inspiration. After a lot of hard work, thinking and masturbating, we came to the decision that we would take our template from popular internet comic, Cyanide and Happiness. We hope that this small snippet of what we hope to become a well known internet series (the unique reading point being the fact that the comic is produced to such a high standard). We may think about marketing our comic in the near future, depending on response from readers (which we obviously expect to be amazing. I mean, it's D2K5, in one comic, who would not want to read that? I certainly would love to read a comic on that.)
- <br/><br/>
- We also hope that the comic brings a new sight into the life of transgender women, and we hope this comic (in particular) shows that you don't have to be a foolish man to want to play with vidya games and cocks, and also to fall down stairs, because we all fall down stairs sometimes, but it's okay because we all do it (like when you think nobody uses their smartphone on the toilet but actually people do so you don't need to feel weird about it, although if you're googling porn on it while using the toilet that's just weird.) I hope that this hasn't been too much of a read, this is just a small snippet of the full ten page report I made to go with the comic to enlighten the reader because we really hope you take some valuable life lessons away after reading it.
- <br/><br/>
- Thank you for reading.";
- }
- }
Untitled
Posted by Anonymous on Sat 7th Apr 2012 12:55
raw | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.
aerika.kpaste.net RSS