MyBB development - worse than I thought
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #11
RE: MyBB development - worse than I thought
Huji Lee is definitely a really kind person from what I've seen.  He does quickly fix the problems I reported and genuinely seems motivated.

Kimi, please don't misunderstand me.  I'm not saying you're bad in any way, and I've admitted various concessions on my part.  I really do congratulate your position and hope you make great contributions to MyBB.
Okay, I admit, I was over excited when I made this thread.  Please forgive me.




Ryan Gordon Wrote:that wouldn't pass my standards (which is very high

PHP Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
function secure_seed_rng($count=8)
{
	$output = '';
		
	// Try the OpenSSL method first. This is the strongest.
	if(function_exists('openssl_random_pseudo_bytes'))
	{
		$output = openssl_random_pseudo_bytes($count, $strong);
		
		if($strong !== true)
		{
			$output = '';
		}
	}
	
	if($output == '')
	{
		// Then try the unix/linux method
		if(@is_readable('/dev/urandom') && ($handle = @fopen('/dev/urandom', 'rb')))
		{
			$output = @fread($handle, $count);
			@fclose($handle);
		}
		
		// Then try the Microsoft method
		if(class_exists('COM'))
		{
			try {
				$util = new COM('CAPICOM.Utilities.1');
				$output = base64_decode($util->GetRandom($count, 0));
			}
			catch(Exception $ex) { }
		}
	}
	
	// Didn't work? Do we still not have enough bytes? Use our own (less secure) rng generator
	if(strlen($output) < $count)
	{
		$output = '';
		
		// Close to what PHP basically uses internally to seed, but not quite.
		$unique_state = microtime().getmypid();
		
		for($i = 0; $i < $count; $i += 16)
		{
			$unique_state = md5(microtime().$unique_state);
			$output .= pack('H*', md5($unique_state));
		}
	}
	
	// /dev/urandom and openssl will always be twice as long as $count. base64_encode will roughly take up 33% more space but crc32 will put it to 32 characters
	$output = hexdec(substr(dechex(crc32(base64_encode($output))), 0, $count));
	
	return $output;
}

I lol'd.



(06-10-2010 06:18 AM)walkman Wrote:  Those fucking morons banned my account there only because I expressed my opinion about that joke for a developer.
No offense or anything, but you did kinda ask for it with that comment you made...
Still, lol that you made it Tongue  That idiot deserves it.


Anyway, they obviously need designers, since there's nothing really to design as far as I can tell (of course, I don't know any hidden agendas they may have).  I'd consider HTML/CSS basic knowledge that all web developers should know.  As for Javascript, it's a scripting language just like PHP, and they share a number of syntactical similarities.  From what he originally had, he doesn't even understand PHP syntax, so there's practically no hope of him getting Javascript.
And programming/scripting is MUCH more than just understanding syntax...

My Blog
(This post was last modified: 06-10-2010 09:01 AM by ZiNgA BuRgA.)
06-10-2010 08:05 AM
Find all posts by this user

« Next Oldest | Next Newest »

Messages In This Thread
RE: MyBB development - worse than I thought - ZiNgA BuRgA - 06-10-2010 08:05 AM
a "professional image." LOL - Firefox Wins - 06-11-2010, 11:43 AM

 Standard Tools
Forum Jump: