All pastes #638643 Raw Edit

tmp

public php v1 · immutable
#638643 ·published 2007-07-30 00:06 UTC
rendered paste body
<?phpfunction numPoints ($type,$level){	switch ($type) {	case 'basic' :	    $type = 'basic';	    break;	case 'realistic':	    $type = 'real';	    break;	case 'application':	    $type = 'app';	    break;	case 'encryption':		$type='enc';		break;	case 'programming':	case 'permprogramming':		$type = 'prog':		break;	default:	return newPoints ($type,$level);	}}function newPoints ($type,$level){	for ($num=1; $num <= 10; $num++) 	{		$pointVal['basic'][1] = 5 * $num;			}	$pointVal['real'][1] = 20;	$pointVal['real'][2] = 35;	$pointVal['real'][3] = 50;	$pointVal['real'][4] = 75;	$pointVal['real'][5] = 95;	$pointVal['real'][6] = 95;	$pointVal['real'][7] = 120;	$pointVal['real'][8] = 165;	$pointVal['real'][9] = 210;	$pointVal['real'][10] = 240;	$pointVal['real'][11] = 300;	$pointVal['real'][12] = 210;	$pointVal['real'][13] = 220;	$pointVal['real'][14] = 350;	$pointVal['real'][15] = 450;	$pointVal['app'][1] =10;	$pointVal['app'][2] =20;	$pointVal['app'][3] =30;	$pointVal['app'][4] =15;	$pointVal['app'][5] =25;	$pointVal['app'][6] =30;	$pointVal['app'][7] =150;	$pointVal['app'][8] =60;	$pointVal['app'][9] =80;	$pointVal['app'][10] =95;	$pointVal['app'][11] =115;	$pointVal['app'][12] =130;	$pointVal['app'][13] =150;	$pointVal['enc'][1] = 200;	$pointVal['enc'][2] = 100;	$pointVal['enc'][3] = 150;	$pointVal['enc'][4] = 60;	$pointVal['enc'][5] = 50;	$pointVal['enc'][6] = 200;	$pointVal['enc'][7] = 70;	$pointVal['enc'][8] = 120;	$pointVal['enc'][9] = 200;	$pointVal['prog'][1] = 100;	$pointVal['prog'][2] = 100;	$pointVal['prog'][3] = 250;	$pointVal['prog'][4] = 150;	$pointVal['prog'][5] = 250;	$pointVal['prog'][6] = 300;	$pointVal['prog'][7] = 250;	$pointVal['prog'][8] = 100;	return $pointVal[$type][$level];}?>