All pastes #964162 Raw Edit

Unnamed

public text v1 · immutable
#964162 ·published 2008-03-31 01:26 UTC
rendered paste body
<?php
        require_once EXTRA;

        requireAuth();

	// $type = mission type
	// $require_basic = should I require basics? 
	// $require_order = do you have to go in order?
	// $showform = show the input form or let the lvl.php file do it?
        $uid = $sess->get_var('member_id');
        $username = nameFromID($uid);
        $lvl = $_GET['lvl'];
        $blah = $lvl;
	setType($lvl,'int');
	/*
        if (!isset($_GET['pass']))
        {
                $pass='*NOWINEVER';
        }
	else
	{*/
	        $pass = stripslashes(htmlspecialchars_decode($_GET['pass']));
	/*}*/


        if ($lvl > newPoints($type,'max') && $_GET['comperr']!='mimo'  &&!checkAccess('developer'))
	{
                generateError(1,'This level can not exist yet.',1);
        }
        if ($lvl <=0)
        {
                $lvl = 0;
        }


        if (!file_exists("lvl/$lvl.php"))
        {
                generateError(1,'This level does not exist.',1);
        }

        if (!catComplete($uid,'basic')&&$require_basic==TRUE)
        {
                generateError(1,'You must complete all the basic missions first.',1);
        }
        if (!doneLevel($uid,$type,$lvl-1)&&$lvl>1&&$_GET['comperr']!='mimo'&&$require_order==TRUE)
        {
                generateError(1,'Please do the previous one before you do this one.',1);
        }
?>