May 27, 2017, 07:18 pm

News:

Please note these forums are mostly a testing ground for my SMF work and I don't really use them otherwise.


Recent Posts

Pages1 2 3 ... 10
1
PasteBin / Paste-1432601028:v:use_geshi-1...
Last post by yipper - May 26, 2015, 12:43 am
001 http://www.pastebay.net
002 http://pastebin.com/
003 http://pastehtml.com
004 http://pad.telecomix.org
005 https://pad.riseup.net/
006 http://titanpad.com/
007 http://pastebin.mozilla.org/
008 https://anonymous.piratenpad.de
009 http://piratepad.net/
010 http://codepad.org
011 http://shorttext.com/
012 http://www.pastedump.com/
013 http://pastie.org/
014 https://pzt.me
015 http://paste.frubar.net/
016 http://dumpz.org/
017 http://pure-paste.tk (limited but works)
018 http://codeupload.com/
019 http://stickypaste.com/
020 http://www.pasteit.in/
021 http://privatepaste.com/
022 http://securepastebin.com/go/index.action
023 http://paste.scratchbook.ch/
024 http://pbox.ca/
025 http://pastebin.ca/
026 http://bitbin.it/
027 http://www.anonpaste.me/
028 http://slexy.org/
029 http://www.fpaste.org/
030 http://pastebin.me/
031 http://paste.kde.org
032 http://paste.ubuntu.com/
033 http://inetpro.org/pastebin/ [404]
034 http://paste.ie/
035 http://paste.is/
036 http://pastebucket.com/
037 http://paste.devpda.net
038 http://paste.hihn.org/
039 http://www.megapastebin.com.ar [404]
040 http://pbin.be/
041 http://m.essag.es/ [404]
042 http://paste.fuzzyhosts.com/
043 http://paste.pagelines.com/ [404]
044 http://bin.rad-dev.org/
045 http://copypastebin.com/
046 http://paste.adoy.net/
047 http://paste.martynip.co.uk/
048 http://paste2.org/new-paste [404]
049 http://paste.factorcode.org/new-paste
050 http://pastebin.daviey.com/
051 http://bin.cakephp.org/
052 http://pastebin.dqd.cz/
053 http://pastebin.falz.net/
054 http://www.everfall.com/paste/
055 http://primarypad.com/
056 http://justpaste.it/
057 http://nopaste.dk/
058 http://paste.lisp.org/
059 http://paste.cullt.org/ [404]
060 http://paste.jaraco.com/
061 http://pastebin.osuosl.org/
062 http://hpaste.org/
063 http://0paste.com/
064 http://paste.perldancer.org/
065 http://pastebin.stonekeep.com/
066 http://paste.manjaro.org/ [404]
067 http://paste.geeknode.org/paste.html
068 http://kib2.free.fr/pastebin/edit_new_paste.php
069 http://paste.hostchaos.com/
070 http://pastebin.skullcandy.com/ [404]
071 http://pastebin.jwillmer.de/
072 https://paste.ohai.su/
073 http://pastebin.furver.se/
074 http://ja.pastebin.ca/
075 http://paste.mappify.org/new/
076 http://p.baf.cc/ [404]
077 http://www.fixee.org/home/
078 http://vpaste.net/
079 http://pastium.org/
080 http://paste.chakra-project.org/
081 http://paste.qth.fr/
082 http://paste.balbinus.org/
083 http://paste.cinnarch.com/ [404]
084 http://ponypaste.co/
085 http://paste.mock.ws/ [404]
086 http://pastepal.net/
087 http://paste.mikulla.org/ [404]
088 http://panicb.in/
089 http://p.linode.com [404]
090 http://pastebin.centos.org/
091 https://cryptobin.org/
092 https://privatepaste.com/
093 http://pastebin.tlhiv.org/
094 http://paste.opensuse.org/
095 https://paste.lugons.org/
096 http://paste.samhart.net/
097 http://nopaste.info/
098 http://wankbin.kippage.com/
099 http://paste.cryogenix.co.uk/
100 http://paste.lab10.de/ [404'd]
101 http://paste.drhack.net/
102 http://lassobin.com/
103 http://paste.blixt.org/
104 http://paste.jabbim.cz/
105 http://paste.cloudstack.org/
106 http://paste.strictfp.com/
107 http://pb.mgawow.co.uk/
108 http://paste.felixbruns.de
109 http://paste.unfoog.de/
110 http://paste.cdtag.de/
111 http://paste.tclhelp.net/
112 http://pastebin.kruton.de/
113 http://www.sebastiaanmeijer.nl/
114 https://paste.bitlair.nl/
115 http://pastebin.sabayon.org/
116 http://paste.jabbim.cz/
117 http://paste.security-portal.cz/
118 http://p.mzf.cz/
119 http://vm.frantovo.cz/
120 http://paste.ndlp.info/ [404'd]
121 http://pastebin.lujun.info/
122 http://paste.5cm.ru/
123 http://paste.thezomg.com/
124 http://paste.rohitab.com/
125 http://paste.servut.us/ [404]
126 http://pastebin.ipocalypse.net/ [404]
127 http://paste.tbee-clan.de/
128 http://paste.chakra-project.org/
129 http://pastebin.fr/
130 http://stirkbin.com/
131 http://pastebin.slackadelic.com/
132 http://pastebin.anope.org/
133 http://troll.ws/ [404]
134 http://www.n00bunlimited.net/
135 https://paste.oxynux.org/
136 http://opensolaris.pastebin.ca/
137 http://paste.schredder.me/
138 http://pastebins.com.ar/ [404]
139 http://pstbn.com/
140 http://text0.tk/
141 http://code.bulix.org/
142 http://demo.php-pastebin.com/ [404]
143 http://gentoo.pastebin.ca/
144 http://rula.net/
145 http://0wx.org/pastebin
146 http://paste.posativ.org/
147 http://siripaste.com/
148 http://handbrake.pastebin.ca/
149 http://www.killthemonsters.com/
150 http://p.casidiablo.net/
151 http://pastebin.tropi.us/ [404]
152 http://pastebin.127001.org/
153 http://p.gw.gd/ [404]
154 http://p.iain.it/ [404]
155 http://p.xae.in/
156 http://pastebin.k0d.cc/
157 http://ae7.st/p/
158 http://c.nopaste.dk/
159 http://paster.testmax.dk/Paste.htm
160 http://wklej.to/
161 https://paste.bugabuse.net/
162 http://rifers.org/paste/
163 http://paste.sirenfal.com/new
164 http://paste.luisaranguren.com/
165 http://pastebin.pandaboard.org/
166 http://9url.us/
167 http://sql.nopaste.dk/
168 http://csharp.nopaste.dk/
169 http://www.nopaste.pl/
170 http://nopaste.linux-dev.org/
171 http://nopaste.euirc.net/
172 http://nopaste.paefchen.net/
173 http://nopaste.64p.org/ [404]
174 http://nopaste.oppserver.net/index.php
175 http://nopaste.inside-irc.net/
176 http://paste.dprogramming.com/
177 http://lua.nopaste.dk/
178 http://nopaste.narf.at/
179 http://nopaste.ooaahh.de/
180 http://nopaste.phil.to/
181 http://nopaste.urbanswelt.de/
182 http://paste.arn-fai.net/
183 http://nopaste.penguinfriends.org/
184 http://nopaste.yamagi.org/
185 http://pasta.test-smoke.org/
186 http://paste.poohtarou.net/
187 http://paste.clug.gr/ [404]
188 http://nopaste.eisscholle.net/
189 http://nopaste.talk-web.de/
190 http://np.gsfx.de/
191 http://paste.tuxfamily.org/
192 http://www.trinchera.it/nopaste/
193 http://nopaste.secretlake.at/
194 http://paste.letsbaron.de/
195 http://nopaste.giuseppetropea.net/
196 http://nopaste.remodding.de/
197 http://nopaste.michael-skiba.de/
198 http://pb.rbfh.de/
199 https://defuse.ca/pastebin.htm
200 http://cheerilee.pastebay.com
201 http://wrttn.in
202 http://pb.lui.li/
203 https://pb.privatepaste.com/
204 http://pb.stoleyour.com/
205 https://openanno.privatepaste.com/
206 http://paste.omsklug.com/
207 http://sho.rtify.com/
208 http://paste.call-cc.org/
209 http://paste.mrzyx.de/
210 http://paste.pwny.biz/
211 http://paste.rndc.or.id/ [404]
212 http://paste.ewnix.net/index.php [404]
213 http://pastefree.com.ar/ [404]
214 http://p.ncrmnt.org/
215 http://paste.larry1123.net/
216 http://d.pragith.net/
217 http://lab.xero.nu/paste/?/new/
218 http://txt.krow.me/ [404]
219 http://paste.nuller.ir/
220 http://trashb.info/
221 http://toothpaste.centi.sk/
222 http://code.hackerspace.no/
223 http://paste.eriador.info/new
224 http://noteboxie.com/
225 http://paste.flashrom.org/
226 http://paste.simonsickle.com/ [404]
227 http://bin.idlerice.com/paste.html
228 http://pastebin.pro-web.by/ [404]
229 http://paste1.aayipanthi.com/ [404]
230 http://paste.davromaniak.eu/
231 http://app.urlbag.com/
232 http://wip.b-zeal.net/
233 http://pb.q3w.org/
234 http://pastensn.com/
235 http://www.xbmclogs.com/
236 http://pb.larskl.de/
237 http://www.fr3d.org/paste/
238 http://quark-paste.herokuapp.com/paste/ [404]
239 http://www.bilietu-pasaulis.lt/
240 http://pb.petermannlive.net/
241 http://code.str0.be/ [404]
242 http://www.fashionopti.com/
243 http://pastedata.cmdata.fr/
244 http://www.kthx.net/paste/
245 http://paste.tclers.tk/-New/
246 http://paste.dafaq.se/
247 http://4fs.org:5000/paste/
248 http://script.pathaila.com/
249 http://stikked.jaakko.se/
250 http://vprlins.pastebay.net/
251 http://code.suck-o.com/
252 http://www.paste.to/
253 http://paste.whitecollarcoding.com/
254 http://paste.hydraze.org/ [404]
255 http://p.pomf.se/
256 http://pb.wrik.co.uk/
257 http://pb.neckbeards.co.uk/
258 http://paste.invertika.org/
259 http://paste.girilaya.com/ [404]
260 http://anddev.pastebay.net/
261 http://paste.moepl.eu/
262 http://paste.drizzle.org/ [404]
263 https://paste.aeum.net/
264 http://dev.pastebay.net/
265 http://paste.kd8fre.com/ [404]
266 http://www.posu.org/
267 http://freetexthost.in/
268 http://paxii.de/pastebin/ [404]
269 http://paste.pool-x.eu/ [404]
270 http://pastebin.dimio.org/
271 http://dpaste.dzfl.pl/
272 http://upaste.us/
273 http://pastebin.blesmrt.net/
274 http://monddl.com/
275 http://paste.capsload.it/
276 http://paste.behstant.com/
277 http://paste.pchowtos.co.uk/
278 http://paste.geekon.in/
279 http://pastebin.d3vito.de/
280 http://paste.deltadigital.us/ [404]
281 http://webzi.dk/
282 http://rapor.terkos.com.tr/
283 http://infovlad.com/
284 http://www.while.do/ [404]
285 http://pastebin.theitcave.com/
286 http://script.pathaila.com/
287 http://pastebin.mods-xbmc.pl/
288 http://p.khobbits.co.uk/
289 http://paste.liamstanley.net/
290 http://memorybank.in/
291 http://julien311085.free.fr/pastebin/
292 http://pasteguru.com/
292 http://links.pelisdescargas.com/
293 http://test.chosd.com/
294 http://worldpaste.com/
295 http://paste.e-shell.org/
296 https://www.quickleak.org/
297 http://paste.yt/
298 http://pasterack.org/
299 http://tehsausage.com/paste/
300 http://paste.darkbyte.ru/  [404]
301 http://paste.dumbinter.net/
302 http://pastebin.starforge.co.uk/
303 http://pasting.djstey.com/
304 http://pastebin.sk89q.com/
305 http://pastebin.paxii.de/
306 http://bin.jr26.tk/
307 http://ciurana.eu/pastebin/
308 http://perl.nopaste.dk/
309 http://pastebin.dinhosting.fr/
310 http://paste.desdelinux.net/
311 http://paste42.de/
312 http://pastebox.m4tt30.de/
313 http://pastebin.gadean.de/
315 http://paste.scsys.co.uk/
316 http://k3rmit.org/nopaste/
317 http://paste.siedlaa.com/
318 http://nopaste.ceske-hry.cz/
319 http://nopaste.chaoz-irc.net/
320 http://lidor.net/p/p.aspx
321 http://nopaste.martes.de/
322 http://paste.archive01.org/
323 http://paste.novarata.net/
324 http://paste.bitswap.de/
325 http://paste.flying-sheep.de/ [404'd]
326 http://www.fungusnuts.com/pasty.php
327 http://gbpaste.org/
328 http://pastekitten.com/ [404'd]
329 http://g0dil.de/paste
330 http://paste.mooc.fi/
331 http://paste.phcn.ws/
332 http://www.miemala.com/paste
333 http://pascal.pastebay.com/
334 http://paste.wcell.org/
335 http://bybox.us/
336 http://paste.shadow-dragon.net [404'd]
337 http://pastebin.jity.de/ [404'd]
338 http://www.pastebin.com.br/
339 http://paste.devosi.info/ [404'd]
340 http://pastebin.scriptacademy.org/
341 http://blib.org/
342 http://paste.paluminum.net/
343 http://pastebin.cmsmadesimple.org/
344 http://p.mac-mini.org/
345 http://pastebin.avamods.com/
356 http://nonal.paste.atraxi.fr/
357 http://paste.jpowermacg4.com/
358 http://ciurana.eu/pastebin/
359 http://rage.n3t-t3z.com/ [defunct]
360 http://nopaste.edoom.de/
361 http://paste.atomiku.com/ [defunct]
362 http://eilios.kpaste.net/
363 http://fferen.kpaste.net/
364 http://rathena.kpaste.net/
365 http://pastebin.sekati.com/
366 http://pastebin.bothouse.net/ [defunct]
367 http://pastebin.bon99.com/
368 http://pastebin.sandboxsite.net/
369 http://www.heypasteit.com/
370 http://openpaste.org/
372 http://paste.htxurl.info/
372 http://paste.sis.bthstudent.se/
373 http://pastethis.in/
374 http://paste.phcn.de/
375 http://paste.z0p.org/ [defunct]
376 http://paste.kealper.com/
377 http://pasab.pastebay.com/
378 http://paste.akingi.com/
379 http://mtrobilisim.tk/
380 http://paste.bradleygill.com/
381 http://paste.thelovebug.org/
382 http://a3dl.org/
383 http://paste.irc-ban.de/
384 http://www.cryptolit.nl/
385 http://paste.fls-wiesbaden.de/
386 http://kodo.ameoto.com/
387 http://www.pastershub.com/
388 http://demo.nullfix.com/pastebox/
389 http://paste.se/
390 http://paste.edvx.net/
391 http://www.divu.in/paste/ [defunct]
392 http://paste.cxxc.se/
393 http://cogblock.com/paste/
394 http://stikked-ita.apps.zone52.org/
395 http://paste.itunix.eu/
396 http://minetest.wjake.com/stikked/
397 http://paste.analyticsninja.co/
398 http://paste.riothero.com/stikked/
399 http://q.sedw.ca/
400 http://www.donesh.com/dpaste/
401 http://pb.ricin.us/
402 http://stikked.giev.de/ [defunct]
403 http://paste.svenz.lv/
404 http://f00l.de/pastebin/ [defunct]
405 http://bcsav.kpaste.net/
406 http://secsav.kpaste.net/
407 http://xyz.kpaste.net/
408 http://sit.kpaste.net/
409 http://pastebin.fcftw.org/
410 http://p.lo5t.com/
411 http://tty0.in/
412 http://wasteb.in/
413 http://pastebin.bandbsat.com/
414 http://paste.hexsolutions.net/
415 http://paste.absolnet.se/
417 http://paste.unixteam.ru/
418 http://paste.jobnix.in/
419 http://paste.drftpd.org/
420 https://paste.teknik.io/
421 http://pastebin.eyraud.me/
422 http://paste.headstrong.de/
423 http://sebsauvage.net/paste/
424 http://paste.the-compiler.org/
425 http://pastebin.jphix.com/
426 http://pastes.sinvalentine.com/
427 http://paste.t0m-s.be/
428 http://paste.sarkastic.org/
429 http://cv.aklab.org/
430 http://paste.iindya.com/
431 http://paste4btc.com/
432 http://bin.soluslabs.com/
433 http://jdarwood.com/pastebin/
434 http://paste.oneb1t.cz/
435 http://lab.xero.nu/paste/?/new/
436 http://ssl.mattburdine.com/paste/?/new/
437 http://pastecan.com/
438 http://txt.blorgblorgbl.org/
439 http://stefanomonni.com/paste/
440 http://paste.evervolv.com/
441 http://pastebin.calculate-linux.ru/
442 http://wklej-kod.aktualizacje.net/
443 http://toolz.nexuizninjaz.com/pb/
444 http://pastebin.jonasscholz.de
445 http://pastebin.dixo.net
446 http://paste.withdevo.net/
447 http://paste.ideaslabs.com/
448 http://paste.alteredeffect.com
449 http://paste.zombiecode.net
450 http://paste.cssnr.com/
451 http://pastelib.com/
452 http://pastebin.canonicaldev.com/
453 http://paste.misacek.net/
454 http://text.urlb.ag
455 http://t.urlb.ag
456 http://www.thptmytho.com/
457 http://paste.thecompy.net/
458 http://pastebin.myrror.net/
459 https://friendpaste.com/
460 https://justpaste.it/
461 http://www.pix-host.me/stikked/
462 http://stikked.luisaranguren.com/
463 http://stikked.jonrandoem.com/
464 http://www.xup.in/paste/
465 http://p.ip.fi/
466 http://www.ipaste.eu/
467 https://haste.zertrin.org/
468 https://www.jottit.com/
469 https://www.refheap.com/
470 http://frugalware.org/paste/
471 http://pastebin.bash-hackers.org/
472 http://paste.muflone.com/
473 http://p.theglu.org/
474 https://paste.swagger.pro/
475 http://paste.nbounce.com/
476 http://dev.uavp.ch/pastebin/
478 http://paste.experimentshed.com/
479 http://notes.tedb.co/
480 http://garbagespot.com/
481 http://akarthik10.heliohost.org/paste/
482 http://kokthansogreta.nu/pasteyourself/
483 https://rof.li/p/
484 http://paste.frozenbox.org/
485 http://wstaw.eu/
486 http://example.org.il/
487 http://pastebin.campus.mephi.ru/
488 http://elsitio.ws/copypaste/
489 http://pastebin.mdbnet.net/
490 http://pasting.ninja/
491 http://logcat.us/
492 http://urdunotepad.com/
493 http://chanops.org/paste/
494 http://paste.angodev.com/
495 http://tools.eggdrop.fr/pasteme/
496 http://ioclk.com/notes/
497 http://outils.altevo.net/paste/
498 http://paste.xz.ee/
499 http://mun.sc/paste/
500 http://itamecstore.com/paste/
501 http://hydromind.org/paste/
502 http://javanese.worldnet.us/paste/
503 http://paste.freegaminghq.com/
504 http://phpaste.sourceforge.net/demo/
505 http://paste.rlcnetwork.com/
506 https://riskmitigation.ch/paste/
507 http://paste.kani.hu/
508 http://yaap.it/
509 http://paste.neurohack.com/
510 http://paste.emudevs.com/
511 http://paste.masterweb.com
512 http://paste.nerdbox.it/
513 https://fnpaste.com/
514 https://paste.villavu.com/
515 http://paste.tinyw.in/
516 http://infamousdevelopment.com/paste/
517 http://paste.pac-rom.com/
518 http://jeremysamler.com/pastebin/
519 http://paste.pztrn.name/
520 http://p.smx.lt/
521 http://paste.jabberon.ru
522 http://paste.edu-soft.ru/
523 http://paste.orangehattech.com/
524 http://paste.godclan.hu/
525 http://paste.cakeforce.co.uk/
526 http://paste.maniactwister.de/
527 http://paste.creeperhost.net/
528 http://paste.quadbyte.net/
529 http://note.kirql.com
530 https://paste.rocks/
531 http://p.j2.io/
532 http://p.ngx.cc
533 http://paste.ircnet.ru/
534 http://janhkrueger.de/stikked/
535 http://rayneau.fr/
536 http://pastebin.pc-freak.net/
537 http://pastebin.mtasa.com/
538 http://pastebin.za.net/
539 http://www.style-python.fr/PasteBin/new/
540 http://svn.sleepycode.com/pastebin/
2
PasteBin / Paste-1401711889:v:use_geshi-1...
Last post by Guest - Jun 02, 2014, 12:24 pm
<HTML></HTML>
3
PasteBin / Paste-1400197654:v:use_geshi-0...
Last post by Guest - May 15, 2014, 11:47 pm
asdf<>"asdf
4
PasteBin / Paste-1400197641:v:use_geshi-0...
Last post by Guest - May 15, 2014, 11:47 pm
asdf<>"asdf
5
PasteBin / Paste-1393467383:v:use_geshi-1...
Last post by Guest - Feb 27, 2014, 02:16 am
nkkjkjkhkjhjhjk
6
PasteBin / Paste-1374353864:v:use_geshi-1...
Last post by Liam - Jul 20, 2013, 08:57 pm
debug.disableEventLog(true)
tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAutoTimeLeft(true)
tfm.exec.disableAutoScore(true)
tfm.exec.disableAutoShaman(true)
TICKS = 10;

local s = 1000/TICKS;
for t = 0, 1000 - s, s do
   system.newTimer(function () system.newTimer(loop, 1000, true) end, 1000 + t, false);
end

function newRound()
   tfm.exec.newGame(2876844)
   players={}
   fights={}
   spawns={}
   runes={}
   runestime={}
   runesshot={}
   canShoot={}
   fightsalive = 0
   spawnsalive = 0
end

function eventNewGame()
   for name,player in pairs(tfm.get.room.playerList) do
      table.insert(players,player)
      bindKeys(name, true)
   end
   for i=1,#players,1 do
      local index=math.random(#players)
      local player=players[index]
      if i%3==0 then
         table.insert(fights,player.playerName)
         --tfm.exec.chatMessage("<R>"..player.playerName)
         tfm.exec.movePlayer(player.playerName,1380,215)
         tfm.exec.setNameColor(player.playerName,0xc13535)
         fightsalive = fightsalive + 1
      elseif i%2==0 then
         table.insert(spawns,player.playerName)
         --tfm.exec.chatMessage("<BV>"..player.playerName)
         tfm.exec.movePlayer(player.playerName,140,345)
         tfm.exec.setNameColor(player.playerName,0x354fc1)
         canShoot[player.playerName]=true
         spawnsalive = spawnsalive + 1
      else
         table.insert(fights,player.playerName)
         --tfm.exec.chatMessage("<R>"..player.playerName)
         tfm.exec.movePlayer(player.playerName,1380,215)
         tfm.exec.setNameColor(player.playerName,0xc13535)
         fightsalive = fightsalive + 1
      end
      table.remove(players,index)
   end
end

function eventLoop(time,remaining)
   if remaining<=0 or fightsalive<=0 or spawnsalive<=0 then
      newRound()
   end
end

function loop()
   for k,v in pairs(runestime) do
      if v~=0 and (tonumber(os.time())>v+5000) then
         tfm.exec.removeObject(runes[k])
         canShoot[runesshot[k]] = true
         --runestime[v] = 0
         table.remove(runestime,k)
         table.remove(runes,k)
         table.remove(runesshot,k)
         break
      end
   end
end

function eventPlayerLeft(playerName)
   bindKeys(playerName, false)
end

function bindKeys(playerName, active)
   tfm.exec.bindKeyboard(playerName,83,active,true) -- S
   tfm.exec.bindKeyboard(playerName,40,active,true) -- DOWN
end

function eventKeyboard(playerName, key, down, x, y)
   if (key==83 or key==40) and inTable(spawns,playerName) and canShoot[playerName]==true then
      rune=tfm.exec.addShamanObject(62,x+25,y,0,0,0,true)
      table.insert(runes,rune)
      table.insert(runestime,os.time())
      table.insert(runesshot,playerName)
      canShoot[playerName]=false
   end
end

function eventPlayerDied(playerName)
   if inTable(fights,playerName) then
      fightsalive = fightsalive - 1
   end
   if inTable(spawns,playerName) then
      spawnsalive = spawnsalive - 1
   end
end

function eventPlayerWon(playerName)
   if inTable(fights,playerName) then
      fightsalive = fightsalive - 1
   end
   if inTable(spawns,playerName) then
      fightsalive = fightsalive - 1
   end
end

function tfm.exec.giveWinAll()
   for playerName,player in pairs(tfm.get.room.playerList) do
      if not player.isDead then
         tfm.exec.giveCheese(playerName)
         tfm.exec.playerVictory(playerName)
      end
   end
end

function inTable(tbl, item)
   for key, value in pairs(tbl) do
      if value == item then
         return key
      end
   end
   return false
end

newRound()
7
PasteBin / Paste-1370422937:v:use_geshi-1...
Last post by Guest - Jun 05, 2013, 09:02 am
<?xml version="1.0"?>

<!DOCTYPE package-info SYSTEM "http://www.simplemachines.org/xml/package-info">
-<package-info xmlns:smf="http://www.simplemachines.org/" xmlns="http://www.simplemachines.org/xml/package-info"><id>vbgamer45:ContactPage</id><name>Contact Page</name><type>modification</type><version>3.2</version>-<install for="1.1 - 1.1.99,1.1 RC3,1.1 RC2"><readme>ReadMe.txt</readme><modification type="file">contact.xml</modification><require-file destination="$sourcedir" name="Contact.php"/><require-file destination="$themedir" name="Contact.template.php"/></install>-<uninstall for="1.1 - 1.1.99,1.1 RC3,1.1 RC2"><modification type="file" reverse="true">contact.xml</modification><code>UnInstall.php</code></uninstall>-<install for="1.0 - 1.0.99"><readme>ReadMe.txt</readme><modification type="file">contact107.xml</modification><require-file destination="$sourcedir" name="Contact.php"/><require-file destination="$themedir" name="Contact.template.php"/><require-file destination="$themedir/images/english" name="contact.gif"/></install>-<uninstall for="1.0 - 1.0.99"><modification type="file" reverse="true">contact107.xml</modification><code>UnInstall.php</code></uninstall>-<install for="2.0 - 2.0.99, 2.0 RC2, 2.0 RC3, 2.0 RC4, 2.0 RC5"><readme>ReadMe.txt</readme><modification type="file">contact2.xml</modification><require-file destination="$sourcedir" name="Contact2.php"/><require-file destination="$themedir" name="Contact2.template.php"/></install>-<uninstall for="2.0 - 2.0.99, 2.0 RC2, 2.0 RC3, 2.0 RC4, 2.0 RC5"><modification type="file" reverse="true">contact2.xml</modification><code>UnInstall.php</code></uninstall></package-info>
8
PasteBin / Paste-1329191346:v:use_geshi-1...
Last post by SleePy - Feb 14, 2012, 03:49 am
   /**
   * Encodes an email address in multiple ways.
   * @param $str String The email address to encode.
   * @version $url_encode bool Should we use url encoding? Do not use this for displaying, only for mailto: links.
   */
   public function encode_email_address($str, $url_encode = true)
   {
      if (empty($str))
         return;

      $strlength = strlen($str);
      $ret = '';
      for($index = 0; $index < $strlength; $index++)
      {
         $type = rand(1, $url_encode ? 4 : 3);
         $char = $str[$index];
         switch($type)
         {
            case 1: $ret .= '&#' . ord($char) . ';';  break;
            case 2: $ret .= '&#x' . dechex(ord($char)) . ';'; break;
            case 3: $ret .= $char; break;
            case 4: $ret .= '%' . bin2hex($char); break;
         }
      }
      return $ret;
   }
9
PasteBin / Paste-1329158865:v:use_geshi-1...
Last post by SleePy - Feb 13, 2012, 06:47 pm
   /**
   * Encodes an email address in multiple ways.
   * @param $str String The email address to encode.
   * @version $url_encode bool Should we use url encoding? Do not use this for displaying, only for mailto: links.
   */
   public function encode_email_address($str, $url_encode = true)
   {
      if (empty($str))
         return;

      $strlength = strlen($str);
      $ret = '';
      for($index = 0; $index < $strlength; $index++)
      {
         $type = rand(1, $url_encode ? 4 : 3);
         $char = $str[$index];
         switch($type)
         {
            case 1: $ret .= '&#' . ord($char) . ';';  break;
            case 2: $ret .= '&#x' . dechex(ord($char)) . ';'; break;
            case 3: $ret .= $char; break;
            case 4: $ret .= '%' . bin2hex($char); break;
         }
      }
      return $ret;
   }
10
PasteBin / Paste-1327945249:v:use_geshi-1...
Last post by SleePy - Jan 30, 2012, 05:40 pm
<?php
if (isset($_SERVER['_']))
   echo shell_exec($_SERVER['_'] .' -v | head -n 1');
else
   echo `php -v | head -n 1`;
echo "\n";

$array_size = 1000;
$array_data_size = 1000;
$loops = 1000;

$data = array();

for ($i = 0; $i < $array_size; $i++)
   $data[] = str_repeat('a', $array_data_size);

$data_serialized = serialize($data);
$data_json = json_encode($data);

echo 'Array Size: ' . $array_size . "\n";
echo 'Data Size: ' . $array_data_size . "\n";
echo 'Loops to run: ' . $array_data_size . "\n";

/******** SERIALIZE *************/
echo "\nSerialize(): ";
$start = microtime(true);

for ($i = 0; $i < $loops; $i++)
   serialize($data);

$stop = microtime(true);
$diff = $stop - $start;

echo round($diff, 3) . ' (Start: ' . $stop . ' | Stop: ' . $start . ')';


/******** JSON *************/
echo "\njson_encode(): ";
$start = microtime(true);

for ($i = 0; $i < $loops; $i++)
   json_encode($data);

$stop = microtime(true);
$diff = $stop - $start;

echo round($diff, 3) . ' (Start: ' . $stop . ' | Stop: ' . $start . ')';


/******** SERIALIZE DECODE *************/
echo "\nunserialize(): ";
$start = microtime(true);

for ($i = 0; $i < $loops; $i++)
   unserialize($data_serialized);

$stop = microtime(true);
$diff = $stop - $start;

echo round($diff, 3) . ' (Start: ' . $stop . ' | Stop: ' . $start . ')';


/******** JSON DECODE *************/
echo "\njson_decode(): ";
$start = microtime(true);

for ($i = 0; $i < $loops; $i++)
   json_decode($data_json);

$stop = microtime(true);
$diff = $stop - $start;

echo round($diff, 3) . ' (Start: ' . $stop . ' | Stop: ' . $start . ')';

echo "\n\n";
Pages1 2 3 ... 10
Browser ID: smf ()
Templates: 2: index (default), Recent (default).
Sub templates: 6: init, html_above, body_above, recent, body_below, html_below.
Language files: 1: index+Modifications.english (default).
Style sheets: 2: index.css, responsive.css.
Hooks called: 50 (show)
Files included: 19 - 652KB. (show)
Memory used: 1441KB.
Tokens: post-login, post-register.
Cache hits: 15: 0.00284s for 12,429 bytes (show)
Cache misses: 6: (show)
Queries used: 13.

[Show Queries]