226

(13 replies, posted in Programming)

???
that's weird, all the database layers around are OOP. i think you are mixing up the names.
If by OOP you mean Objected Oriented Programming

http://en.wikipedia.org/wiki/Object-ori … rogramming

BTW, i would also know more about punbb detabase layer. Was it developed for punbb specially? why? why not using an existent one?

thank you quaker, i also found another...
has anybody used this?
http://www.pablosoftwaresolutions.com/h … erver.html

Ok, those are too web 2.0 blablabla... i want to giver them a try anyway and check myself digg, delicious, furl, etc etc really generate any traffic.

I am thinking of placing a few icons on every viewtopic page. But i dont really know where to place the links...
any sugestions?

Is there any out of the box solution?
I am a total ignorant in all microsoft tecnologies. I need quick solution that just works, for dummies. Any sugestions?
I would prefer a portable package.

230

(5 replies, posted in General discussion)

Jérémie wrote:

That I have a computer.

Indeed! ehehe... that's all i have to say to

231

(27 replies, posted in Feature requests)

that should be a SQL bug. it never happened to me

232

(18 replies, posted in PunBB 1.2 discussion)

this sounds stupid, but did you check you home dir permitions?

pretty much every script devteam/comunity says that the 'baby' is fast, light secure, etc.
concerning speed if you belive my word, punbb is BY FAR the fastest.
I sugest you test it, no need to make any special complicated tests. Just browse it, the difference is huge.

I gave a try to phorum ( "it's like fast and stuff" ) , it's a similar aproach to punbb, not bad at all, but punbb is beter. I run punbb and phorum in the same server, no ofense to phorum, but is way slower than punbb.

other advatage is the code: it's super easy to follow because it's simple. I get annoyed with all those fancy ways of code that nobody understands because they are suposed to be advanced and dificult. With punbb you easly follow the code execution and it's damn simple to code hacks for it.

also: it ouputs Valid strict XHTML and CSS, google gets all crazzy with it. Keep it valid and google will keep up snapshot of your site on a weekly base. Once again, make your tests, the differences are surprising.

This is cool. Nice for users with less experience.

I agree with rickard, if you want to run a croned backup you would go better with the traditional dumps.
This is just a way to save a backup by clicking a few links in a simple and intuitive pannel. Love it. Just click>save and go!

anyway... i am running punbb with mysql, i use this the script i cron, it saves all databases with user read permition on the server.

<?php
$host = "localhost";
$user = "username";
$senha = "xpto";
 
$dbc = mysql_connect($host, $user, $senha);
$m   = mysql_select_db("test", $dbc);
 
$sql = "SHOW DATABASES";
$sts = mysql_query($sql,$dbc) or die (mysql_error());
$data = date("YmdHis");
 
while($row = mysql_fetch_array($sts)){
   $nome = $row[0];
   $NARQUIVO = $nome."-".$data;
   $resp = `mysqldump --host=$host --user=$user --password=$senha --databases $nome > $NARQUIVO.sql` ;
}
 
//set a name for the file
$arquivo = "mysql_".$data;
 
//create a .tar.gz file containing all the sql files
$resp = `tar -cvzf $arquivo.tar.gz *.sql`;
$resp = `rm *.sql`;
 
?>

235

(5 replies, posted in Programming)

i think you want to create FLOWCHARTs right?

try SMARTDRAW... it's not free sad

236

(21 replies, posted in Programming)

thank you smile

237

(16 replies, posted in PunBB 1.2 discussion)

mmm...
in that case i would recomend you something else than punbb.
Would a threaded tagboard do it?

i mean, something like this:
http://www.dotcomjunkies.com/members/St … ven/forum/

in that case i would recomend you tribby board:
http://www.tribby.com/board/
it has not been maintanined for years but is still great.

Since you need user acounts then maybe phorum would be more suitable as you can use a threaded view.
http://phorum.org

238

(21 replies, posted in Programming)

Smartys wrote:
pedrotuga wrote:

ok... i will insist...
smartys... you said yourself that no slashes are necessary to perform an injection. Knowing this, how can a adslashes be enough?

Yes, if you're expecting an integer and don't use intval or an equivalent function I can perform an SQL inject.
There is no function that will magically make everything safe. You need to know what you're expecting and deal with each type correctly.

what if i am expecting a string? can you still perform an inject even if i use addslashes() ?

239

(16 replies, posted in PunBB 1.2 discussion)

In that casei would create a table to relate posts with badpostreports and the origin user and eventualy ip address.
If more than, lets say... three people report a post than a maintainance script would drop it.

240

(49 replies, posted in General discussion)

wel... to carry a development environment that can be cool. But in thaat case i preffer to carry a full small linux distro.

hctv, i dont see so much the point of those who buy those products you liked. Like... is it that dificult or time consumming to install apache and php?

as pointed before you can even dload a all in one fully working package in minutes.

241

(21 replies, posted in Programming)

ok... i will insist...
smartys... you said yourself that no slashes are necessary to perform an injection. Knowing this, how can a adslashes be enough?

242

(4 replies, posted in PunBB 1.2 discussion)

This should probably have been  discussed before...

I got an offer to develop a minimalist CMS. I told the client there is dozens of open source CMS that are way more complete than anything i can develop myself, but he wont listen to me. Since he is the one paying i'll do whatever he wants.

The script should be used in at least 3 diferent sites and some might have user autentication.

First i thought i could use punbb db layer as it's the coolest i've seen so far. After a second i though about the user control system, and so on and so on.

It comes with a lot of usable stuff: user-control, sindication, parsers, implemented CRUD operations, etc etc

Has anybody reused punbb's code this way? I've seen a lot of sites running a portal or a news script based on punbb, but, what do you think about using parts of punbb to develop a new aplication?
Is it a good idea? is it just supid cording on the alternatives?

243

(21 replies, posted in Programming)

Rickard wrote:

As long as you're not inserting binary data (such as images) into the database, addslashes() will do fine.

I'm afraid you let me even more confused... in the message i pointed just above smartys says the oposite sad

though he is talking about mysql_magic_qutes directive.

244

(21 replies, posted in Programming)

Ok... there is something on php.net that makes me think...

they sugest using mysql_real_escape_string()...If not consider addslashes.
Now... acording on what smartys told me here http://punbb.org/forums/viewtopic.php?pid=83488#p83488 , one should ALLWAYS use mysql_real_escape_string in order to be safe as addslashes doesnt protect against everything.

Am i right or did i forgot something?

I take the chance to share my favorite micro snippet.

<?php
function print_r2($var){
echo "<pre>".print_r($var)."</pre>";
}
?>

big_smile

246

(27 replies, posted in Feature requests)

thank you soonotes and guardian. I wil add user checking.

This is a cool mod smile

The link to the printable version i think i like it in the header. As you said: personal preference.

On the topit has 3 links, one for the index page, one for the forum in which the post is in and one for the full version of the post. Still it's a bit confusing, i agree. I haven't decided yet what links to keep and how and where to put them.

The printable mod is not mine, i found it at punres. Go to punres and search for "printable". My mod is the lo fi version ( check out the modifications forum.. is called 'punmap' ) , though from the begginning the .htaccess rewrites the topic links to viewtopic.php, you have to change it so it rewrites it to  viewprintable.php.

Basically i put both mods together.

Hey there!

I started to use punbb as an archive engine and i couldnt be more satisfied. I spider content from some websites with a couple of scripts i wrote and store it on punbb for restricted usage. It's way cool becaue one can discuss the content on the specific thread and everything gets organized and properly stored with date on a database.

Some time ago, since i had punbb installed, i decided to create a couple of categories and some public forums.

http://shareminer.com/forum/

I put together my last mod (punmap) and the printable topic one so i can have a light version browsable by pda's and mobiles and with fancy meaningfull urls.
The printview page still doesn't validate and there is also some changes i will do, but basicaly it's working as it should be.

http://shareminer.com/forum/archive

249

(27 replies, posted in Feature requests)

Yep, i already dload and install it.
Really cool.

Snootes... it's true, you need to add user autenticity. Since you already did that, would it be ok to post your code?

250

(27 replies, posted in Feature requests)

soonotes, thank you!
Looks like we dont need to work on this big_smile

i will look for it