You need to insert the following text after "include('config.php');" in npcpos.php:
Code:
if(isset($HTTP_GET_VARS['step']))
$step = intval($HTTP_GET_VARS['step']);
else
$step = 0;
if(isset($HTTP_GET_VARS['page']))
$page = intval($HTTP_GET_VARS['page']);
else
$page = 1;
Also, you should make sure your permissions are set such that the directory is writable by your web server.