robdrimmie / babynewt Goto Github PK
View Code? Open in Web Editor NEWSimple, unthreaded forum software written in PHP with a MySQL database.
License: MIT License
Simple, unthreaded forum software written in PHP with a MySQL database.
License: MIT License
babynewt is forum software. The basic functionality is that of a single thread with categorized posts. Users can make their own templates (including stylesheets) and share them with other users. Initial development was by Rob Drimmie. Significant contributions (especially for templating and searching) were made by Clayton Hannah. Most of the code was written in 2001 and is terrible. Adding it to github is the first step in a concerted effort to clean the code up and make it useful. Licensed under the MIT License.
(via null)
went to the template selection page, and was greeted by a bunch of SQL errors
I see two things:
the link for "View site with selected template" somehow gets created at the end of printing out the "Your Templates". This causes clicking on the select menu for "Public Templates" to direct you to the link destination instead.
There's a weird value in the "Public Templates" select menu which isn't what we're running into but suspicious:
"Notice: Undefined index: selTemplate in /home/ccranium/1142/edittemplate.php on line 138"
Possible workaround: Use the "tab" key to interact with the form and avoid clicking the link.
@import url(/essl.css)
is referenced in the codebase, but the essl.css
file is not present in this repo. can it be added?
eg:
[Fri Jan 04 18:41:51 2013] [error] [client 163.192.12.2] PHP Fatal error: Call to undefined function imagecreatefrompng() in /home/[my username]/babynewt/yelling/yelling.php on line 32, referer: http://babynewt.drimmie.net/main.php
From lines 436, 437, 438 in main.php
:
$Header = str_replace('[$LOGOUT$]', "<a href=\"logout.php\">$LoutStr</a>", $Header);
$Comment = str_replace('[$LOGOUT$]', "<a href=\"logout.php\">$LoutStr</a>", $Comment);
$Footer = str_replace('[$LOGOUT$]', "<a href=\"logout.php\">$LoutStr</a>", $Footer);
from line 557:
$tComment = str_replace('[$CATNAMELINK$]', '<a href="changecategory.php?id=[$COMMENTNUMBER$]" class="[$CATCSSNAME$]CHANGECATEGORYLINK"> [$CATEGORYNAME$]</a>', $tComment);
On whatever pages a user selects from a list of stylesheets or templates, the default option should be the one they have selected already.
likely places:
*editstylesheet.php
*edittemplate.php
Some entities (eg &heart;) are not rendering correctly.
eg:
[Fri Jan 04 18:41:06 2013] [error] [client 141.114.154.105] PHP Notice: Undefined index: chkRemember in /home/[my username]/babynewt/login.php on line 45, referer: http://babynewt.drimmie.net/main.php
solutions at: http://stackoverflow.com/questions/11055418/safari-top-sites-preview
If someone has a babynewt site in their Safari Top Sites, when it checks to update the screenshot the last read post value in the database is updated.
Allows variable substitution in sql strings, statement preparation and execution, etc. Will make code cleaner/safer.
But next works just fine.
because I can't even database, bro.
eg the new (as of this writing) stardate one, I wanted to do "$RAND1000,9999_1$.$RAND1.9_1$" but that breaks shit
everything, though mostly notable is weirdcrap.php. the search page requires a session to see the results.
Referenced on lines 44 and 45 of edittemplate.php
:
<a href="TemplateHelp.html">Get your helpfile here!</a> |
<a href="editstyles.php">jump to stylesheets</a>
I found references to:
on line 242 of custom.php
:
<a href="/">Main</a> | <a href="Statistics.php">Re-Select</a> | <a href="UserInfo.php">Users</a> | <a href="oddball.php">Random Statistics</a>
Should these files be in the codebase? Or should the references be removed?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.