Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- index.lol:
- <html>
- <head>
- <title>I CAN HAZ SOSHAL NETWERK?</title>
- </head>
- <body>
- HAI
- VISIBLE "<h2>OMG, I HAZ LOLLIT!</h2>"
- VISIBLE "<form name='stori' action='index.php' method='get'>"
- VISIBLE " Title "
- VISIBLE "<input type='text' name='title' /> "
- VISIBLE "URL "
- VISIBLE "<input type='text' name='url' /> "
- BTW HAX! FORM EATS MAI PAGE=SUBMIT OMNOMNOM
- VISIBLE "<input type='text' value='submit' name='page' style='visibility:hidden;' />"
- VISIBLE "<br><input type='submit' value='Submit' />"
- VISIBLE "<form/>"
- CAN HAS SQL?
- DBASE IZ GETDB('db/lcsn.db')
- FUNNAHS IZ DBUCKET(&DBASE&,"CAN I PLZ GET * ALL UP IN lollit")
- IM IN UR FUNNAHS ITZA TITLE
- VOTEZ IZ &TITLE#ups& - &TITLE#downs&
- VISIBLE "<P><a href='index.php?page=vote&id=".&TITLE#id&."&type=up'>↑</a> "
- VISIBLE $VOTEZ
- VISIBLE " <a href='index.php?page=vote&id=".&TITLE#id&."&type=down'>↓</a>"
- VISIBLE " <a href='".&TITLE#url&."'>".&TITLE#title&."</a></P>"
- KTHX
- KTHXBYE
- <body>
- </html>
- submit.lol:
- HAI
- header( 'Location: index.php' ) ;
- CAN HAS SQL?
- IZ isset($_REQUEST['title']) && isset($_REQUEST['url'])
- TITLE IZ $_REQUEST['title']
- URL IZ $_REQUEST['url']
- NOWAI
- OOPS IZ 1
- KTHX
- IZ &OOPS& != 1
- DBASE IZ GETDB('db/lcsn.db')
- DBUCKET(&DBASE&," PUTSIN INTO lollit (title, url, ups, downs) THINGZ ('".$TITLE."','".$URL."',1,0)");
- KTHX
- KTHXBYE
- vote.lol:
- HAI
- header( 'Location: index.php' ) ;
- CAN HAS SQL?
- IZ isset($_REQUEST['type'])
- TYPE IZ $_REQUEST['type']
- ID IZ $_REQUEST['id']
- NOWAI
- TYPE IZ 0
- KTHX
- IZ &TYPE& == 'up'
- DBASE IZ GETDB('db/lcsn.db')
- DBUCKET(&DBASE&,"CHAENJ lollit MAEK ups = ups + 1 OMG (id=".$ID.")");
- ORLY &TYPE& == 'down'
- DBASE IZ GETDB('db/lcsn.db')
- DBUCKET(&DBASE&,"CHAENJ lollit MAEK downs = downs + 1 OMG (id=".$ID.")");
- KTHX
- KTHXBYE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement