16 include_once (
'FREEDOM/freedom_view.php');
17 include_once (
'FREEDOM/Lib.portfolio.php');
27 $docid = GetHttpVars(
"id", 0);
32 if (!$folio->isAffected()) {
39 $var = GetHttpVars(
"viewstate", -1);
40 if (is_numeric($var) && $var >= 0 && $var <= 4) {
41 $pfctx[
'viewstate'] = $var;
44 $var = GetHttpVars(
"framelist",
'');
45 if (!empty($var) && preg_match(
'/^([0-9]+),([0-9]+)$/i', $var, $matches)) {
46 $pfctx[
'framelist'] = array(
47 'dirid' => $matches[1],
48 'folioid' => $matches[2],
58 $var = GetHttpVars($param,
'');
59 if (!empty($var) && is_numeric($var)) {
61 if ($pfctx[
'viewstate'] == 0 && in_array($param, array(
65 $pfctx[
'frame1'] = $var;
66 $pfctx[
'frame2'] = $var;
portfolio_get_context($doc)
exitError($texterr, $exit=true, $code="")
portfolio_set_context($doc, $context)
new_Doc($dbaccess, $id= '', $latest=false)
folioparams(Action &$action)