Demon Hunter Reps Version 2
ferf said i should add a search and that was a good enough excuse to work on the site so 2nd version of demon hunter reps is up. changes: sort by site, event, matchup, map as well as a search. i guess i’ll stop deleting old database records so that the search is more useful.
oh yeah… izireps (the replay database most commonly used) has some really fucking weird code for the page numbers.. didn’t even notice til i rewrote a lot of stuff today. here’s what it had:
$tmpsum = ($all_num_of_rows / $REPSPROSEITE) + 1.0;
if ($tmpsum == ((floor($all_num_of_rows / $REPSPROSEITE + 1.0)))) $tmpsum–;
for ($i=1; $i<(floor($tmpsum)+1); $i++){
if ($i == $seite){
echo $i.’ | ‘;
}elseif (!empty($show)){
echo’<a href=”‘.$replaypath.’file=show_replays&show=’.$show.’&seite=’.$i.’” >’.$i.’</a> | ‘;
}else{
echo’<a href=”‘.$replaypath.’file=show_replays&seite=’.$i.’”">’.$i.’</a> | ‘;
}
}
dunno where the guy came up with that.. it’s even worse cause in the for loop it’s going to calculate floor($tmpsum)+1 every single time. the value never changes so you don’t want to do that
broke my losing streak in clan wars against cruncher today in wcip quals. replays: lost temple - terenas stand
so let’s see today is sunday the 23rd. after i wake up i’ll work on something for this blog :D dunno how it will turn out though i might decide it sucks while doing it. next few days i absolutely have to finish this other project i’ve been doing i’ve already wasted about 20 fucking days away “working on it”… battle tanks games take like 1 hour +.. dota is around there too…
want to make my own blog template for this site.. that’s going to take a good few hours of work. that will come LATER though so i best not even think about it. it’s when i think too much i end up doing nothing
so i guess i’ll put this on this blog instead of my personal one. i got around to reading this ebook i should have read a million years ago and that’s really why i could just work and finish version 2 of demonreps in a few consecutive hours. i’ll just quote a little bit
“do you know how to tell a successful person from a[n] unsuccessful one? the easiest way is by the language they use. when you talk to a successful person about his goals, he’ll tell you what he plans to do and when it will be done. when an unsuccessful person talks about his goals (assuming he even has one), you’ll hear something along the lines of, ‘i hope to do this someday.’ here’s a clue for all you losers out there; someday never comes.”
so DO IT. DO IT NOW.













