Location: PHPKode > projects > Philosopher'Stone Personal > pssp/calc.php
<?php

include('setup.php');

$sc->register('calc', array('class' => 'rpnstack'));
$app_navs = $sc->appnavs;

$s = $sc->calc;

$num_lines = 1;
if ($_POST['clear'] == 'Clear') {
	$_POST['program'] = '';
}

$answer = $s->calculate($_POST['program']);

$meta['app_navs'] = $app_navs->get();
$meta['mod_navs'] = array();
$meta['file_mtime'] = date("d F Y H:i:s", filemtime($_SERVER['SCRIPT_FILENAME']));
$meta['focus_field'] = 'program';
$meta['app_title'] = 'Util';
$meta['page_title'] = 'RPN Calculator';
$meta['view_file'] = fullpath('view', 'calc');
include 'generic.php';

Return current item: Philosopher'Stone Personal