I got too lazy to fix/finish this. If anyone's interested:
[code]<?php
$pdo = new PDO('sqlite:forum.db'); $do=isset($_GET['x'])? $_GET['x']:null;$t =( array)isset($_GET['t'])?:array( 0)
;$pdo->exec('create table IF NOT'. ' EXISTS t(id INTEGER' .' PRIMARY KEY AUTO' .'INCREMENT,b TEXT,d INTEGER,p INT'
.'EGER)');if ($do!='p' ){$c = $pdo->prepare( 'SELECT * FROM t WHE' .'RE p=? ' . ' ORDER'
.' BY d DES' . 'C; '); $c->execute($t);$pos= $c->fetchAll(constant ('PDO::FET' . 'CH_OBJ'
));}else if( $do== 'p' ){$b=isset($_POST['b' ])?$_POST['b']: null; $a='b';if(! empty( $$a
)){$a=$pdo-> prepare( 'INSERT INTO t (b,d,p)VALUES(?,datetime(),?)'); $a->execute ( array (
$b,$t[0]));} header('Location: .'); exit;}?><head><title>super forum</title><style> html {font:14px sans-serif}</style>
<meta charset="utf-8"><body><h1>▐► <?php echo $t ? 'Viewing Thread' : 'Super Foru' .'m!'; ?></h1> <form method= "POST"
<?php echo ' action="?x=p&t='.$t[0] .'"><textarea name="' .'b" rows=6'
.' cols=60>' .'</textarea><input '. 'type="hidden" value' .'= "'.$t[0]
.'" name=t' .'><input type="subm'. 'it" value="post!!">' ; ?> </form>
<div class= 'forum'><?php foreach( $pos as $p):?> <div> <?php if($t
==0): ?><h1> <?php echo substr($p-> b,0, max(32,strlen($b ))) ?> </h1>
<?php break; else:?><?php echo $p-> b?><?endif;endforeach ;?> poopdick[/code]
It's a forum. Right now it'll throw an error about an unexpected $end because I didn't bother fixing the two control statements near the end.
Working on my MVC framework, extremely lightweight, flexible and [b]VERY[/b] fast. Renders a page in only 0.0027s, 0.002 of those are including files. Hoping to minimize even that by caching them or something.
guys, I'm losing my mind at the moment
I thought watching TV shows would never get boring, but I've stopped watching most of my shows since they just can't match Modern Family and Prison Break :(
Anyone got any ideas for a site? I need to do something productive because I'm getting very depressed very quickly
[QUOTE=Jelly;32793060]Working on my MVC framework, extremely lightweight, flexible and [b]VERY[/b] fast. Renders a page in only 0.0027s, 0.002 of those are including files. Hoping to minimize even that by caching them or something.[/QUOTE]
That's more than fast enough, adding a caching schema on top will only add extra overhead without any meaningful benefit. Develop caching as a component to your library later on if you're bored, and focus on more important stuff first.
Where do you guys get all of your really nice fonts?
[QUOTE=nos217;32793637]Where do you guys get all of your really nice fonts?[/QUOTE]
[url]http://www.google.com/webfonts[/url]
[editline]15th October 2011[/editline]
[url]http://eu.bape.com/[/url] - Thought this was pretty cool.
[QUOTE=StinkyJoe;32793595]That's more than fast enough, adding a caching schema on top will only add extra overhead without any meaningful benefit. Develop caching as a component to your library later on if you're bored, and focus on more important stuff first.[/QUOTE]
It's more of me being really bored and I want to get everything as pointlessly fast as possible.
[QUOTE=Chuushajou;32793824][url]http://www.google.com/webfonts[/url]
[editline]15th October 2011[/editline]
[url]http://eu.bape.com/[/url] - Thought this was pretty cool.[/QUOTE]
Almost as cool as this:
[url]http://visualize.yahoo.com/[/url]
-snip-
[QUOTE=iamacyborg;32794941]Almost as cool as this:
[url]http://visualize.yahoo.com/[/url][/QUOTE]
reveal blocked spam and look at united states :v:
[QUOTE=zzlawlzz;32795006]reveal blocked spam and look at united states :v:[/QUOTE]
Or just look at how many Gigabytes of data are being transferred per second.
Anyone have any experience with Mediawiki?
Have this site up:
[url]http://www.pathofexilewiki.com[/url]
Need to skin it, but just wondering if people have any experience in that department and have any tips to share.
[QUOTE=nos217;32793637]Where do you guys get all of your really nice fonts?[/QUOTE]
[url]http://www.fontspace.com/[/url] is quite good. I just generally search the net for free fonts, occasionally I will buy fonts but not very often.
Anyone here use Rails? Ruby was the second programming language I ever learned and Rails was my first introduction to web development, so it's what I like. But it seems like it's still largely unaccepted despite years of stable development.
[img]http://i.imgur.com/hi7JT.png[/img]
Working on a site for a lawyer, need help with this sidebar though :v:
How can I get the sidebar on the right to take up all of the parent's height?
The parent's height changes with the content so I can't just use 100%, any ideas from the webdev masters?
[QUOTE=Alcapwne;32793403]guys, I'm losing my mind at the moment
I thought watching TV shows would never get boring, but I've stopped watching most of my shows since they just can't match Modern Family and Prison Break :(
Anyone got any ideas for a site? I need to do something productive because I'm getting very depressed very quickly[/QUOTE]
I left that new show Terra Nova running on my other monitor the other day, got a suprising ammount done.
[QUOTE=Fatal-Error;32797655]I left that new show Terra Nova running on my other monitor the other day, got a suprising ammount done.[/QUOTE]
yeah I had that lined up to watch after prison break, but I don't like watching shows on secondary monitors
it's just not the same you know, they deserve one's full attention
just a the nivo slider ([url]http://nivo.dev7studios.com/demos/[/url]) modify by me...
[img]http://i.imgur.com/i6OpH.png[/img]
What you think?
I keep constantly posting pictures of a project I'm working on and consequently snipping them. I guess I should post them for once.
[QUOTE=Kopimi;32797530][img]http://i.imgur.com/hi7JT.png[/img]
Working on a site for a lawyer, need help with this sidebar though :v:
How can I get the sidebar on the right to take up all of the parent's height?
The parent's height changes with the content so I can't just use 100%, any ideas from the webdev masters?[/QUOTE]
"...describing your legal needs..."
There's only forms for name, e-mail and phone number.
Okay, this is what I've been working on this week:
[img]http://dl.dropbox.com/u/2951174/webdesign/collage1.png[/img]
It's a redesign for my [URL="http://isitgoonair.net"]school's homepage[/URL]. The ribbons are all animated and when you click on one of the four colored ones the main white one comes downwards and reveals the content related to the entry you've selected, which explains some of the stuff the school does. It's not functional yet but it should be in the coming days.
[img]http://i.imgur.com/YTmOo.png[/img]
what do you think?
I'm not satisfied with the text at all, but we'll see how that goes when it comes to coding it since photoshop sucks ass at text
[QUOTE=Larikang;32797002]Anyone here use Rails? Ruby was the second programming language I ever learned and Rails was my first introduction to web development, so it's what I like. But it seems like it's still largely unaccepted despite years of stable development.[/QUOTE]
"Unaccepted"?
[QUOTE=Alcapwne;32801531][img]http://i.imgur.com/YTmOo.png[/img]
what do you think?
I'm not satisfied with the text at all, but we'll see how that goes when it comes to coding it since photoshop sucks ass at text[/QUOTE]
I really like the background but I think the text should be more transparent.
[QUOTE=theJohn;32801140]"...describing your legal needs..."
There's only forms for name, e-mail and phone number.[/QUOTE]
Yeah I'm aware. It's a WIP.
[QUOTE=Alcapwne;32801531][img]http://i.imgur.com/YTmOo.png[/img]
what do you think?
I'm not satisfied with the text at all, but we'll see how that goes when it comes to coding it since photoshop sucks ass at text[/QUOTE]
is the navigation on the right navigated sliders? I think you should put a V symbol or something after the title so users know that they drop down
[QUOTE=Kwaq;32808874]is the navigation on the right navigated sliders? I think you should put a V symbol or something after the title so users know that they drop down[/QUOTE]
Yeah I'm gonna just have that one page and move the sliders with jquery,
Thanks for the feedback, I'll try and do that
Regex to get rid of unwanted directory traversal:
[img]http://www.gabrielecirulli.com/p/20111016-131411.png[/img]
[editline]16th October 2011[/editline]
Am I doing it right?
Sorry, you need to Log In to post a reply to this thread.