251

(200 replies, posted in General discussion)

I got two a couple of weeks ago, my first ones :)

I read this article on slashdot that SHA-0 is broken, and MD5 is rumored to be broken. This article show's more data about it. It took them 80'000 PCU hours to find it.

Some info:

[url=http://www.freedom-to-tinker.com/archives/000661.html wrote:

Freedom to Tinker[/url]]A cryptographic hashfunction (CHF) is a mathematical operation which, roughly speaking, takes a pile of data and computes a fixed size "digest" of that data. To be cryptographically sound, a CHF should have two main properties. (1) Given a digest, it must be essentially impossible to figure out what data generated that digest. (2) It must be essentially impossible to find find a "collision", that is, to find two different data values that have the same digest.

Isn't it quite obvious that there are alot of text that share the same hash, and that it just is a matter of time to find two text's that have the same one? All hashes has colitions, it's unavoidable...

253

(200 replies, posted in General discussion)

Todd wrote:

I know.... I'm sad and pathetic.

No you're not. Everybody should have a Gmail, it owns all other webmails I've ever tested! :)

254

(18 replies, posted in PunBB 1.2 troubleshooting)

You should really upgrade your forum from 1.0 RC 2. There's some serious security bugs found lately...

Btw, your forum are the new #1 on PunBBig now :)

255

(1 replies, posted in PunBB 1.2 discussion)

This query selects how many users who have been logged in within 24 hours. The same principle should works fine for your purpose.

SELECT count(*) FROM '.$db->prefix.'users WHERE id>1 AND FROM_UNIXTIME(last_action) > DATE_SUB(NOW(), INTERVAL 1 DAY)

Have you even looked in the admin-interface?

It's the first thing you see in Admin -> Permissions.

257

(7 replies, posted in PunBB 1.2 discussion)

True... My example does not work that well when having ALOT of information to give. Back to the drawing board!

Do we want to have all the information on one page or can there be several ones? Is the show/hide"-part a good idea or not? (Maybe have different 'boxes' for different databases and so on...)

258

(7 replies, posted in PunBB 1.2 discussion)

Maybe like this?

(Not working, I've just made the html-file)

indyjon wrote:

No, they are in two different DBs.  It works and now it is converted except for _end.php.  I just left it alone and it is ready to go now.

What happened in _end.php then?

I'm glad if you help me, don't want other people to have the same problem (as they might give up instead of solving it like you did). By the way, is it a large forum? Can I see it? :)

260

(7 replies, posted in PunBB 1.2 discussion)

Change it to:

$pun_root = './forum/';

and it'll probably work

261

(7 replies, posted in PunBB 1.2 discussion)

The problem is that you must set $pun_root to make it work. $pun_root defines where the forum is installed, so add a line like this before the require-line:

$pun_root = './';

Of cource, if your php-file is located somewhere else you have to change the path.

262

(7 replies, posted in PunBB 1.2 discussion)

I'm discussing here instead :)

I think hdiff is much better than the readme, mostly beqause it's MUCH easier to make them. Second, I don't think it's that hard to understand.

- Holds very little information about the mod

This can easily be changed. It's not hard to rewrite hdiff to include an information-header att the top (I've already changed my version so it includes a list with installation steps).

? Is there anyway to include database changes?

Well, we could make this as a part of the header as I mentioned above.

Should we consider making the hdiff standard? Or maybe a modified version of it?

Sounds like a good idea. I could make some changes to hdiff and show some examples here. Is there more things than the info from the current header we want included?

How does other forums solves this problem?

Edit1: I looked at the file-attachement-mod in phpbb, and it's basically using the same sort of readme as we does.

Edit2: The only problem with hdiff that I've encountered is that when you copy many rows from the html-file, you also get all the line numbers...

Rod wrote:

Question : what line to change ... only mods and admin can create a poll ? (in the actual case, all people can do it)

It's easy, just change the option "Allow polls in topics" in Admin -> Options -> Polls to "No".

Is it rally necessary? I think the hdiff is easier than the readme-files. On the other hand, what's the problem with the hdiff-files? As we have the "source code" (it's perl), we can change whatever we want :)

Edit: Create a new topic instead, this is not a poll-specific querstion...

$_SESSION['pun_prefix'] is only the prefix (example: "pun_"), and $_SESSION['pun'] is the database and the prefix (example: "forum.pun_"). This is done beqause I don't have to use two variables everywhere in the code.

Do you have both forums in one database? That's probably why it works...

266

(1 replies, posted in PunBB 1.2 troubleshooting)

PunBB is using sha1 if it's availible (PHP 4 >= 4.3.0, PHP 5), and md5 otherwice.

Edit: Mhash can also be used... here is the code:

function pun_hash($str)
{
    if (function_exists('sha1'))    // Only in PHP 4.3.0+
        return sha1($str);
    else if (function_exists('mhash'))    // Only if Mhash library is loaded
        return bin2hex(mhash(MHASH_SHA1, $str));
    else
        return md5($str);
}
lololesoulot wrote:

Finally I restart with the punpost.html  and all seems good, I have the button

Thanks very much to the help :)

Ahh, great! Problem magically solved :D

lololesoulot wrote:

your file "post.php" seems to be for the the 1.1.4 version not for the 1.1.5 : is there another change to do in the post.php to the new version ?

No, that should be no problem.

I can't find any errors, don't know what might be wrong. You could mail me your post.php and I'll look at it.

Great :)

Can I change the install someway to make it easier to install?

It sounds like you've missed to include some file. Try to add some echo-lines and see what happens.

271

(4 replies, posted in PunBB 1.2 discussion)

Though, I don't think there will be any difff's for 1.1.x to 1.2, beqause there will be too much changes between them.

272

(4 replies, posted in PunBB 1.2 discussion)

There will be diff's and hdiff's released so people can change the code themselves. Look at the download-section, and you'll se what I'm talking about.

273

(5 replies, posted in Programming)

From PunBB index.php, where the forums and categories are fetched from the database:

$result = $db->query('SELECT c.id AS cid, c.cat_name, f.id AS fid, f.forum_name, f.forum_desc, f.moderators, f.num_topics, f.num_posts, f.last_post, f.last_post_id, f.last_poster, f.closed FROM categories AS c INNER JOIN forums AS f ON c.id=f.cat_id ORDER BY c.disp_position, c.id, f.disp_position') or error('Unable to fetch category/forum list', __FILE__, __LINE__, $db->error());

I'll look at it sometime today. Seems to be something wrong yes...

275

(14 replies, posted in Programming)

alisoft wrote:

Hi,

Kindly let  me know the  exact URL to get PHP installer.

Thanks,

You can download if from www.php.net.